Contract 0x5F5600aa68333b80D28D98e7Ae80bD090f84F2d0

 
 
Txn Hash
Method
Block
From
To
Value
0xb38a67453aa9d7fad82ea58b96fb73ed18f75094ebf190bb01efb568ce098ee0Set Approval For...151781362022-07-20 7:17:3330 days 16 hrs ago0x909621551998cdb98691e50a897c57cd437c6668 IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.00090506 19.62379517
0x63021a4bb7b124d4227552e71e25bd11d59d9f647f9295eb0573ff63a7f1ea51Safe Transfer Fr...150650682022-07-02 19:47:3348 days 3 hrs ago0xb43cd755ef507d556d8643c5032c25387cd4df9e IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.00105082 12.14248469
0x43e79d70399da5b87f2b762003545ff81908a11aae8f92370d3ae444b61777ceSet Approval For...149203182022-06-07 10:29:4673 days 12 hrs ago0x45263a2e2b27ddea6908887c1024baaecc98464d IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.00055027 22.65155762
0x495c74006f751ab4cb45cdcae7a8f2aa2f81055327d5688d0aed8c2a703a9b0eTransfer From147392102022-05-09 0:12:04102 days 23 hrs ago0x1780221ada86524116b70fd5da9f36424a4c8ec6 IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.00137549 15.89447289
0x7de68192a3da64c20bd9f17b03a38bbe4cadd23f2b6fcf49b1afdf7b9bd9b382Transfer From147392062022-05-09 0:11:13102 days 23 hrs ago0x1780221ada86524116b70fd5da9f36424a4c8ec6 IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.00160157 17.0320912
0xae953cbc8ecc274fefdcc1395551372998a320ad3a4706582821d4eabc402e55Set Approval For...147278182022-05-07 4:52:08104 days 18 hrs agoENS Name banik.eth IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.00132193 28.61773786
0x4b52d5799f6d6d5384acc172933e77a2155c07b5f6465c0706d565165e7a00fbSet Approval For...147128582022-05-04 19:48:15107 days 3 hrs ago0xe98849d87c211734783ef9d8933ef77b94ad2c81 IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.00392504 84.94850502
0x23b08673341748dc4e47b84f51b67277231f0ef769564071448a697587e889beSet Approval For...145631942022-04-11 7:59:17130 days 15 hrs ago0x1172e69d868a20e7b2ea2a92ddf724e45ba4c7ab IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.00108774 23.54173999
0x863114499f6c23ef95aef2eee494f387888db19bdaa8f2f60f8ee9ce88ad6f8aTransfer Ownersh...144919292022-03-31 4:57:03141 days 18 hrs ago0x2e6e25716ff7f58908ecdc986617442e63c47d53 IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.00100225 34.9851328
0x2ca4515a399383a3b318af07a4540219a1d1acea608b1f2e674f72339550f2f2Set Approval For...144630222022-03-26 16:51:38146 days 6 hrs ago0xdde35f4bcfd74d4cce31f917f2febc69c8f364f4 IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.00119406 25.84282269
0x419ac936d767c9c01978b5992fd1f0364958e5bfb5d4d3fd84db076bdaa4ae5dTransfer From143829282022-03-14 5:38:52158 days 17 hrs agoENS Name neiljoshi.eth IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.00104514 12.48274892
0xd24668f4cae00a403e9fd4ab17e6e7ad01d41c7bc1df6b37788f8bdfbc97ac94Set Approval For...143069102022-03-02 10:01:41170 days 13 hrs ago0x58fa8ca9195464d8b105d5011d6bba4f4e19b3bf IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.00161779 35.01331171
0x3e5b3deed1baaaafd6764031964a505d40bc8bce7b5b1b5d24f734d7b99a3913Set Approval For...143055172022-03-02 4:43:44170 days 18 hrs ago0x6c4c19156a321b5ed6e1d38178758ba961d47a0e IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.00164297 35.55834802
0x99bd4554a417b97368d8146d884bd04ffa22cbd08f593423f118dc461fbe099dMint For Pixlr G...142814652022-02-26 11:31:47174 days 11 hrs ago0xf669fcbd31bdf6b23546bea094a4942f7c76e590 IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.00061768 20
0x7482d04374ac4016c90ad90c6d1c581996b5dcca39ea5a3fc21bb1f8c8f8975aSet Approval For...142433902022-02-20 14:16:42180 days 9 hrs ago0x6c4c19156a321b5ed6e1d38178758ba961d47a0e IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.00253902 104.51685173
0x6ece687085fd3548f688f017c01bd90de526ffb165361487905d5f47b2410987Set Approval For...142431232022-02-20 13:16:58180 days 10 hrs ago0x2a2b676d146093435424f67231289eb61bbfb50e IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.00086058 35.42521857
0x59e96a040bc09082f119a092e9361b22396495ebbba7722561e1f3d379810a9cSet Approval For...142403822022-02-20 3:02:06180 days 20 hrs ago0x7f8e98cd8a88c1e34d7f734912aef5fe88cbdc48 IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.00142258 58.55937775
0x9c516323e626c8a65c143fd31fcfffcbcfa797847c26e0090e4b527340175daeSet Approval For...142307072022-02-18 14:46:02182 days 8 hrs agoENS Name lordbuks.eth IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.00464582 191.24147498
0xb603219141520da904cd4b33c207329952c27efe2318050bb1f52051dbf8c04fSet Approval For...142294402022-02-18 10:08:37182 days 13 hrs ago0x6c4c19156a321b5ed6e1d38178758ba961d47a0e IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.0045307 98.05663286
0xd95502b98a21c04da07dad8b99f1f409ae0e17f6a122b8ac1382a9dc789073e5Set Approval For...142230622022-02-17 10:18:37183 days 13 hrs agoENS Name makanoto.eth IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.00187848 40.65548298
0x18a6c1368015cb07cd21cd8ef00708ae5c95c065fd0b33a7ec1f694cd4bb3db8Set Approval For...142226222022-02-17 8:40:38183 days 14 hrs agoENS Name stickmancycling.eth IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.00300514 65.0394522
0xf0d429feaca87999b181e7557bcc06abe10eca0c69e62be43fc06c0524d4e2c6Set Approval For...142222592022-02-17 7:15:23183 days 16 hrs agoENS Name lordbuks.eth IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.00190382 41.20390982
0xebc9bd6b6ff61d8ce2e35edb2de4adc61aa7ac454e1db6da4bc398c1dbf42dcaSet Approval For...142202972022-02-17 0:06:14183 days 23 hrs agoENS Name wingcreative.eth IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.0030001 64.93030265
0xbca75957a5ee7b992a25b01496a844e137e4f6e4c1d767c4837f3d8a58b6740fSet Approval For...142196312022-02-16 21:36:04184 days 1 hr ago0x07278577398cc956af76ac19367a1c87c8933965 IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.004108 88.90815591
0xa1fd480c1f6aee3d6b1c0d9e7569b508dafaeb531e534ac78ca9e6cb4e26f1e4Set Approval For...142166322022-02-16 10:37:39184 days 12 hrs ago0xfd2031bcfea885aef4437d9aa8995417b0a7fa45 IN  0x5f5600aa68333b80d28d98e7ae80bd090f84f2d00 Ether0.00184586 39.94954107
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CirclesInMotion

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 14 : CirclesInMotion.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

import "ERC721.sol";
import "ERC721Enumerable.sol";
import "ReentrancyGuard.sol";
import "Ownable.sol";

interface IPixlrGenesis {
    function balanceOf(address owner) external view returns (uint256 balance);

    function ownerOf(uint256 tokenId) external view returns (address owner);
}

contract CirclesInMotion is ERC721Enumerable, ReentrancyGuard, Ownable {
    using Strings for uint256;

    bool public mintIsActive = false;
    bool public onlyWhitelisted = false;
    uint256 public maxToken;
    uint256 public reservedForPixlrGenesis;
    uint256 public mintedByPixlrGenesis;
    uint256 public cimPrice;
    uint256 public maxTokensPerTransaction;
    string private _baseURIextended;
    mapping(address => bool) public whitelist;
    mapping(uint256 => bool) public pixlrGenesisClaimedFree;
    IPixlrGenesis pixlrGenesis;

    constructor(
        uint256 _maxToken,
        uint256 _reservedForPixlrGenesis,
        uint256 _cimPrice,
        uint256 _maxTokensPerTransaction,
        address _pixlrGenesis
    ) ERC721("CirclesInMotion", "CIM") {
        maxToken = _maxToken;
        reservedForPixlrGenesis = _reservedForPixlrGenesis;
        cimPrice = _cimPrice;
        maxTokensPerTransaction = _maxTokensPerTransaction;
        pixlrGenesis = IPixlrGenesis(_pixlrGenesis);
    }

    function addAddressesToWhitelist(address[] memory _addrs) public onlyOwner {
        for (uint256 i = 0; i < _addrs.length; i++) {
            whitelist[_addrs[i]] = true;
        }
    }

    function removeAddressesFromWhitelist(address[] memory _addrs)
        public
        onlyOwner
    {
        for (uint256 i = 0; i < _addrs.length; i++) {
            whitelist[_addrs[i]] = false;
        }
    }

    function flipWhitelistStatus() public onlyOwner {
        onlyWhitelisted = !onlyWhitelisted;
    }

    function flipMintStatus() public onlyOwner {
        mintIsActive = !mintIsActive;
    }

    function setBaseURI(string memory _baseURI) external onlyOwner {
        _baseURIextended = _baseURI;
    }

    function _baseURI() internal view virtual override returns (string memory) {
        return _baseURIextended;
    }

    function baseURI() external view returns (string memory) {
        return _baseURI();
    }

    function setMaxToken(uint256 numberOfTokens) external onlyOwner {
        maxToken = numberOfTokens;
    }

    function setReservedForPixlrGenesis(uint256 numberOfTokens)
        external
        onlyOwner
    {
        reservedForPixlrGenesis = numberOfTokens;
    }

    function setPrice(uint256 _price) external onlyOwner {
        cimPrice = _price;
    }

    function setMaxTokensPerTransaction(uint256 numberOfTokens)
        external
        onlyOwner
    {
        maxTokensPerTransaction = numberOfTokens;
    }

    function mintForPixlrGenesis(uint16[] calldata pgTokenIds) public {
        // Can only mint when mintIsActive
        require(mintIsActive, "Minting is not available yet");
        // Check whitelist requirement
        if (onlyWhitelisted) {
            require(
                whitelist[msg.sender],
                "Minting is only available for whitelisted users"
            );
        }
        // Check number of tokens requested per transaction
        require(
            pgTokenIds.length <= maxTokensPerTransaction,
            "Number of tokens requested exceeded the value allowed per transaction"
        );
        // Check token availability
        require(
            (mintedByPixlrGenesis + pgTokenIds.length) <=
                reservedForPixlrGenesis,
            "Purchase would exceed reserved supply of CirclesInMotion tokens for PixlrGenesis holders"
        );
        for (uint256 i = 0; i < pgTokenIds.length; i++) {
            require(
                pixlrGenesis.ownerOf(pgTokenIds[i]) == msg.sender,
                "Only owner of this PixlrGenesis token can call this function"
            );
            require(
                !pixlrGenesisClaimedFree[pgTokenIds[i]],
                "Free token already claimed by this Pixlr Genesis token"
            );
            _safeMint(msg.sender, totalSupply());
            mintedByPixlrGenesis += 1;
            pixlrGenesisClaimedFree[pgTokenIds[i]] = true;
        }
    }

    function mint(uint256 numberOfTokens) public payable {
        // Check mintIsActive
        require(mintIsActive, "Minting is not available yet");
        // Check whitelist requirement
        if (onlyWhitelisted) {
            require(
                whitelist[msg.sender],
                "Minting is only available for whitelisted users"
            );
        }
        // Check number of tokens requested per transaction
        require(
            numberOfTokens <= maxTokensPerTransaction,
            "Number of tokens requested exceeded the value allowed per transaction"
        );
        uint256 total = totalSupply();
        // Check token availability
        require(
            (total - mintedByPixlrGenesis + numberOfTokens) <=
                (maxToken - reservedForPixlrGenesis),
            "Purchase would exceed max supply of CirclesInMotion tokens"
        );
        // Check ether value == price;
        require(
            numberOfTokens * cimPrice == msg.value,
            "Ether value sent is not correct"
        );

        for (uint256 i = 0; i < numberOfTokens; i++) {
            _safeMint(msg.sender, total + i);
        }
    }

    function reserveTokens(uint256 amount) public onlyOwner {
        uint256 supply = totalSupply();
        uint256 i;
        uint256 balance;
        if ((maxToken - supply) >= amount) {
            balance = amount;
        } else {
            balance = maxToken - supply;
        }

        for (i = 1; i <= balance; i++) {
            _safeMint(msg.sender, supply + i);
        }
    }

    /**
     * allows owner to withdraw funds from minting
     */
    function withdraw() external onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }
}

File 2 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "IERC721.sol";
import "IERC721Receiver.sol";
import "IERC721Metadata.sol";
import "Address.sol";
import "Context.sol";
import "Strings.sol";
import "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 3 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "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 4 of 14 : 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 5 of 14 : 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 14 : 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 7 of 14 : 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 8 of 14 : 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 9 of 14 : 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 10 of 14 : 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 11 of 14 : 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 12 of 14 : 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 13 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

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

pragma solidity ^0.8.0;

import "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);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_maxToken","type":"uint256"},{"internalType":"uint256","name":"_reservedForPixlrGenesis","type":"uint256"},{"internalType":"uint256","name":"_cimPrice","type":"uint256"},{"internalType":"uint256","name":"_maxTokensPerTransaction","type":"uint256"},{"internalType":"address","name":"_pixlrGenesis","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":"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":"_addrs","type":"address[]"}],"name":"addAddressesToWhitelist","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":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cimPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipMintStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipWhitelistStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"pgTokenIds","type":"uint16[]"}],"name":"mintForPixlrGenesis","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedByPixlrGenesis","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pixlrGenesisClaimedFree","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addrs","type":"address[]"}],"name":"removeAddressesFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"reserveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedForPixlrGenesis","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":"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":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"setMaxToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"setMaxTokensPerTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"setReservedForPixlrGenesis","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600b805461ffff60a01b191690553480156200001f57600080fd5b5060405162002d9e38038062002d9e8339810160408190526200004291620001ec565b604080518082018252600f81526e21b4b931b632b9a4b726b7ba34b7b760891b60208083019182528351808501909452600384526243494d60e81b908401528151919291620000949160009162000146565b508051620000aa90600190602084019062000146565b50506001600a5550620000bd33620000f4565b600c94909455600d92909255600f55601055601480546001600160a01b0319166001600160a01b0390921691909117905562000286565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001549062000249565b90600052602060002090601f016020900481019282620001785760008555620001c3565b82601f106200019357805160ff1916838001178555620001c3565b82800160010185558215620001c3579182015b82811115620001c3578251825591602001919060010190620001a6565b50620001d1929150620001d5565b5090565b5b80821115620001d15760008155600101620001d6565b600080600080600060a086880312156200020557600080fd5b855160208701516040880151606089015160808a0151939850919650945092506001600160a01b03811681146200023b57600080fd5b809150509295509295909350565b600181811c908216806200025e57607f821691505b602082108114156200028057634e487b7160e01b600052602260045260246000fd5b50919050565b612b0880620002966000396000f3fe6080604052600436106102515760003560e01c8063715018a611610139578063b88d4fde116100b6578063dff74ac61161007a578063dff74ac6146106ba578063e2ec6ec3146106cf578063e985e9c5146106ef578063f2fde38b14610738578063f811ec0914610758578063f85aff941461077857600080fd5b8063b88d4fde14610614578063c87b56dd14610634578063ca69e32314610654578063d031370b1461066a578063d732482d1461068a57600080fd5b80639b19251a116100fd5780639b19251a1461057b5780639c70b512146105ab578063a0712d68146105cc578063a22cb465146105df578063b01ee427146105ff57600080fd5b8063715018a6146104fd5780638da5cb5b146105125780638db25a8a1461053057806391b7f5ed1461054657806395d89b411461056657600080fd5b80632f745c59116101d257806355f804b31161019657806355f804b3146104525780636352211e1461047257806365524f11146104925780636a8b751d146104a85780636c0360eb146104c857806370a08231146104dd57600080fd5b80632f745c59146103bc5780633ccfd60b146103dc57806342842e0e146103f1578063471a4294146104115780634f6ccce71461043257600080fd5b80631449d3e6116102195780631449d3e61461032757806318160ddd1461034757806318a8475f1461036657806323b872dd1461037c57806324953eaa1461039c57600080fd5b806301ffc9a71461025657806306fdde031461028b578063081812fc146102ad578063095ea7b3146102e557806309acc2cb14610307575b600080fd5b34801561026257600080fd5b50610276610271366004612317565b61078e565b60405190151581526020015b60405180910390f35b34801561029757600080fd5b506102a06107b9565b604051610282919061238c565b3480156102b957600080fd5b506102cd6102c836600461239f565b61084b565b6040516001600160a01b039091168152602001610282565b3480156102f157600080fd5b506103056103003660046123cd565b6108e5565b005b34801561031357600080fd5b5061030561032236600461239f565b6109fb565b34801561033357600080fd5b5061030561034236600461239f565b610a2a565b34801561035357600080fd5b506008545b604051908152602001610282565b34801561037257600080fd5b50610358600f5481565b34801561038857600080fd5b506103056103973660046123f9565b610a59565b3480156103a857600080fd5b506103056103b7366004612481565b610a8a565b3480156103c857600080fd5b506103586103d73660046123cd565b610b20565b3480156103e857600080fd5b50610305610bb6565b3480156103fd57600080fd5b5061030561040c3660046123f9565b610c1c565b34801561041d57600080fd5b50600b5461027690600160a01b900460ff1681565b34801561043e57600080fd5b5061035861044d36600461239f565b610c37565b34801561045e57600080fd5b5061030561046d36600461258b565b610cca565b34801561047e57600080fd5b506102cd61048d36600461239f565b610d07565b34801561049e57600080fd5b50610358600e5481565b3480156104b457600080fd5b506103056104c336600461239f565b610d7e565b3480156104d457600080fd5b506102a0610dad565b3480156104e957600080fd5b506103586104f83660046125d4565b610dbc565b34801561050957600080fd5b50610305610e43565b34801561051e57600080fd5b50600b546001600160a01b03166102cd565b34801561053c57600080fd5b50610358600d5481565b34801561055257600080fd5b5061030561056136600461239f565b610e79565b34801561057257600080fd5b506102a0610ea8565b34801561058757600080fd5b506102766105963660046125d4565b60126020526000908152604090205460ff1681565b3480156105b757600080fd5b50600b5461027690600160a81b900460ff1681565b6103056105da36600461239f565b610eb7565b3480156105eb57600080fd5b506103056105fa3660046125f1565b6110a9565b34801561060b57600080fd5b5061030561116e565b34801561062057600080fd5b5061030561062f36600461262f565b6111b9565b34801561064057600080fd5b506102a061064f36600461239f565b6111f1565b34801561066057600080fd5b50610358600c5481565b34801561067657600080fd5b5061030561068536600461239f565b6112cc565b34801561069657600080fd5b506102766106a536600461239f565b60136020526000908152604090205460ff1681565b3480156106c657600080fd5b5061030561135e565b3480156106db57600080fd5b506103056106ea366004612481565b6113a9565b3480156106fb57600080fd5b5061027661070a3660046126af565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561074457600080fd5b506103056107533660046125d4565b61143b565b34801561076457600080fd5b506103056107733660046126dd565b6114d3565b34801561078457600080fd5b5061035860105481565b60006001600160e01b0319821663780e9d6360e01b14806107b357506107b382611895565b92915050565b6060600080546107c890612752565b80601f01602080910402602001604051908101604052809291908181526020018280546107f490612752565b80156108415780601f1061081657610100808354040283529160200191610841565b820191906000526020600020905b81548152906001019060200180831161082457829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108c95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108f082610d07565b9050806001600160a01b0316836001600160a01b0316141561095e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108c0565b336001600160a01b038216148061097a575061097a813361070a565b6109ec5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016108c0565b6109f683836118e5565b505050565b600b546001600160a01b03163314610a255760405162461bcd60e51b81526004016108c09061278d565b600c55565b600b546001600160a01b03163314610a545760405162461bcd60e51b81526004016108c09061278d565b601055565b610a633382611953565b610a7f5760405162461bcd60e51b81526004016108c0906127c2565b6109f6838383611a4a565b600b546001600160a01b03163314610ab45760405162461bcd60e51b81526004016108c09061278d565b60005b8151811015610b1c57600060126000848481518110610ad857610ad8612813565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610b148161283f565b915050610ab7565b5050565b6000610b2b83610dbc565b8210610b8d5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016108c0565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b600b546001600160a01b03163314610be05760405162461bcd60e51b81526004016108c09061278d565b600b546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610c19573d6000803e3d6000fd5b50565b6109f6838383604051806020016040528060008152506111b9565b6000610c4260085490565b8210610ca55760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016108c0565b60088281548110610cb857610cb8612813565b90600052602060002001549050919050565b600b546001600160a01b03163314610cf45760405162461bcd60e51b81526004016108c09061278d565b8051610b1c906011906020840190612268565b6000818152600260205260408120546001600160a01b0316806107b35760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016108c0565b600b546001600160a01b03163314610da85760405162461bcd60e51b81526004016108c09061278d565b600d55565b6060610db7611bf5565b905090565b60006001600160a01b038216610e275760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016108c0565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b03163314610e6d5760405162461bcd60e51b81526004016108c09061278d565b610e776000611c04565b565b600b546001600160a01b03163314610ea35760405162461bcd60e51b81526004016108c09061278d565b600f55565b6060600180546107c890612752565b600b54600160a01b900460ff16610f105760405162461bcd60e51b815260206004820152601c60248201527f4d696e74696e67206973206e6f7420617661696c61626c65207965740000000060448201526064016108c0565b600b54600160a81b900460ff1615610f51573360009081526012602052604090205460ff16610f515760405162461bcd60e51b81526004016108c09061285a565b601054811115610f735760405162461bcd60e51b81526004016108c0906128a9565b6000610f7e60085490565b9050600d54600c54610f909190612914565b82600e5483610f9f9190612914565b610fa9919061292b565b111561101d5760405162461bcd60e51b815260206004820152603a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c7960448201527f206f6620436972636c6573496e4d6f74696f6e20746f6b656e7300000000000060648201526084016108c0565b34600f548361102c9190612943565b146110795760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f72726563740060448201526064016108c0565b60005b828110156109f65761109733611092838561292b565b611c56565b806110a18161283f565b91505061107c565b6001600160a01b0382163314156111025760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108c0565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600b546001600160a01b031633146111985760405162461bcd60e51b81526004016108c09061278d565b600b805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6111c33383611953565b6111df5760405162461bcd60e51b81526004016108c0906127c2565b6111eb84848484611c70565b50505050565b6000818152600260205260409020546060906001600160a01b03166112705760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108c0565b600061127a611bf5565b9050600081511161129a57604051806020016040528060008152506112c5565b806112a484611ca3565b6040516020016112b5929190612962565b6040516020818303038152906040525b9392505050565b600b546001600160a01b031633146112f65760405162461bcd60e51b81526004016108c09061278d565b600061130160085490565b90506000808383600c546113159190612914565b10611321575082611332565b82600c5461132f9190612914565b90505b600191505b8082116111eb5761134c33611092848661292b565b816113568161283f565b925050611337565b600b546001600160a01b031633146113885760405162461bcd60e51b81526004016108c09061278d565b600b805460ff60a81b198116600160a81b9182900460ff1615909102179055565b600b546001600160a01b031633146113d35760405162461bcd60e51b81526004016108c09061278d565b60005b8151811015610b1c576001601260008484815181106113f7576113f7612813565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806114338161283f565b9150506113d6565b600b546001600160a01b031633146114655760405162461bcd60e51b81526004016108c09061278d565b6001600160a01b0381166114ca5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108c0565b610c1981611c04565b600b54600160a01b900460ff1661152c5760405162461bcd60e51b815260206004820152601c60248201527f4d696e74696e67206973206e6f7420617661696c61626c65207965740000000060448201526064016108c0565b600b54600160a81b900460ff161561156d573360009081526012602052604090205460ff1661156d5760405162461bcd60e51b81526004016108c09061285a565b60105481111561158f5760405162461bcd60e51b81526004016108c0906128a9565b600d54600e546115a090839061292b565b111561163a5760405162461bcd60e51b815260206004820152605860248201527f507572636861736520776f756c6420657863656564207265736572766564207360448201527f7570706c79206f6620436972636c6573496e4d6f74696f6e20746f6b656e732060648201527f666f72205069786c7247656e6573697320686f6c646572730000000000000000608482015260a4016108c0565b60005b818110156109f65760145433906001600160a01b0316636352211e85858581811061166a5761166a612813565b905060200201602081019061167f9190612991565b6040516001600160e01b031960e084901b16815261ffff9091166004820152602401602060405180830381865afa1580156116be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e291906129b5565b6001600160a01b03161461175e5760405162461bcd60e51b815260206004820152603c60248201527f4f6e6c79206f776e6572206f662074686973205069786c7247656e657369732060448201527f746f6b656e2063616e2063616c6c20746869732066756e6374696f6e0000000060648201526084016108c0565b6013600084848481811061177457611774612813565b90506020020160208101906117899190612991565b61ffff16815260208101919091526040016000205460ff161561180d5760405162461bcd60e51b815260206004820152603660248201527f4672656520746f6b656e20616c726561647920636c61696d656420627920746860448201527534b9902834bc36391023b2b732b9b4b9903a37b5b2b760511b60648201526084016108c0565b61181a3361109260085490565b6001600e600082825461182d919061292b565b90915550600190506013600085858581811061184b5761184b612813565b90506020020160208101906118609190612991565b61ffff1681526020810191909152604001600020805460ff19169115159190911790558061188d8161283f565b91505061163d565b60006001600160e01b031982166380ac58cd60e01b14806118c657506001600160e01b03198216635b5e139f60e01b145b806107b357506301ffc9a760e01b6001600160e01b03198316146107b3565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061191a82610d07565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166119cc5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108c0565b60006119d783610d07565b9050806001600160a01b0316846001600160a01b03161480611a125750836001600160a01b0316611a078461084b565b6001600160a01b0316145b80611a4257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611a5d82610d07565b6001600160a01b031614611ac55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016108c0565b6001600160a01b038216611b275760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108c0565b611b32838383611da1565b611b3d6000826118e5565b6001600160a01b0383166000908152600360205260408120805460019290611b66908490612914565b90915550506001600160a01b0382166000908152600360205260408120805460019290611b9490849061292b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6060601180546107c890612752565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610b1c828260405180602001604052806000815250611e59565b611c7b848484611a4a565b611c8784848484611e8c565b6111eb5760405162461bcd60e51b81526004016108c0906129d2565b606081611cc75750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611cf15780611cdb8161283f565b9150611cea9050600a83612a3a565b9150611ccb565b60008167ffffffffffffffff811115611d0c57611d0c61243a565b6040519080825280601f01601f191660200182016040528015611d36576020820181803683370190505b5090505b8415611a4257611d4b600183612914565b9150611d58600a86612a4e565b611d6390603061292b565b60f81b818381518110611d7857611d78612813565b60200101906001600160f81b031916908160001a905350611d9a600a86612a3a565b9450611d3a565b6001600160a01b038316611dfc57611df781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611e1f565b816001600160a01b0316836001600160a01b031614611e1f57611e1f8382611f8a565b6001600160a01b038216611e36576109f681612027565b826001600160a01b0316826001600160a01b0316146109f6576109f682826120d6565b611e63838361211a565b611e706000848484611e8c565b6109f65760405162461bcd60e51b81526004016108c0906129d2565b60006001600160a01b0384163b15611f7f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611ed0903390899088908890600401612a62565b6020604051808303816000875af1925050508015611f0b575060408051601f3d908101601f19168201909252611f0891810190612a9f565b60015b611f65573d808015611f39576040519150601f19603f3d011682016040523d82523d6000602084013e611f3e565b606091505b508051611f5d5760405162461bcd60e51b81526004016108c0906129d2565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a42565b506001949350505050565b60006001611f9784610dbc565b611fa19190612914565b600083815260076020526040902054909150808214611ff4576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061203990600190612914565b6000838152600960205260408120546008805493945090928490811061206157612061612813565b90600052602060002001549050806008838154811061208257612082612813565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806120ba576120ba612abc565b6001900381819060005260206000200160009055905550505050565b60006120e183610dbc565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166121705760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108c0565b6000818152600260205260409020546001600160a01b0316156121d55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108c0565b6121e160008383611da1565b6001600160a01b038216600090815260036020526040812080546001929061220a90849061292b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461227490612752565b90600052602060002090601f01602090048101928261229657600085556122dc565b82601f106122af57805160ff19168380011785556122dc565b828001600101855582156122dc579182015b828111156122dc5782518255916020019190600101906122c1565b506122e89291506122ec565b5090565b5b808211156122e857600081556001016122ed565b6001600160e01b031981168114610c1957600080fd5b60006020828403121561232957600080fd5b81356112c581612301565b60005b8381101561234f578181015183820152602001612337565b838111156111eb5750506000910152565b60008151808452612378816020860160208601612334565b601f01601f19169290920160200192915050565b6020815260006112c56020830184612360565b6000602082840312156123b157600080fd5b5035919050565b6001600160a01b0381168114610c1957600080fd5b600080604083850312156123e057600080fd5b82356123eb816123b8565b946020939093013593505050565b60008060006060848603121561240e57600080fd5b8335612419816123b8565b92506020840135612429816123b8565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156124795761247961243a565b604052919050565b6000602080838503121561249457600080fd5b823567ffffffffffffffff808211156124ac57600080fd5b818501915085601f8301126124c057600080fd5b8135818111156124d2576124d261243a565b8060051b91506124e3848301612450565b81815291830184019184810190888411156124fd57600080fd5b938501935b838510156125275784359250612517836123b8565b8282529385019390850190612502565b98975050505050505050565b600067ffffffffffffffff83111561254d5761254d61243a565b612560601f8401601f1916602001612450565b905082815283838301111561257457600080fd5b828260208301376000602084830101529392505050565b60006020828403121561259d57600080fd5b813567ffffffffffffffff8111156125b457600080fd5b8201601f810184136125c557600080fd5b611a4284823560208401612533565b6000602082840312156125e657600080fd5b81356112c5816123b8565b6000806040838503121561260457600080fd5b823561260f816123b8565b91506020830135801515811461262457600080fd5b809150509250929050565b6000806000806080858703121561264557600080fd5b8435612650816123b8565b93506020850135612660816123b8565b925060408501359150606085013567ffffffffffffffff81111561268357600080fd5b8501601f8101871361269457600080fd5b6126a387823560208401612533565b91505092959194509250565b600080604083850312156126c257600080fd5b82356126cd816123b8565b91506020830135612624816123b8565b600080602083850312156126f057600080fd5b823567ffffffffffffffff8082111561270857600080fd5b818501915085601f83011261271c57600080fd5b81358181111561272b57600080fd5b8660208260051b850101111561274057600080fd5b60209290920196919550909350505050565b600181811c9082168061276657607f821691505b6020821081141561278757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561285357612853612829565b5060010190565b6020808252602f908201527f4d696e74696e67206973206f6e6c7920617661696c61626c6520666f7220776860408201526e6974656c697374656420757365727360881b606082015260800190565b60208082526045908201527f4e756d626572206f6620746f6b656e732072657175657374656420657863656560408201527f646564207468652076616c756520616c6c6f77656420706572207472616e736160608201526431ba34b7b760d91b608082015260a00190565b60008282101561292657612926612829565b500390565b6000821982111561293e5761293e612829565b500190565b600081600019048311821515161561295d5761295d612829565b500290565b60008351612974818460208801612334565b835190830190612988818360208801612334565b01949350505050565b6000602082840312156129a357600080fd5b813561ffff811681146112c557600080fd5b6000602082840312156129c757600080fd5b81516112c5816123b8565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082612a4957612a49612a24565b500490565b600082612a5d57612a5d612a24565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612a9590830184612360565b9695505050505050565b600060208284031215612ab157600080fd5b81516112c581612301565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220fe7ceaa910c2959b6defe9101fb28ae7a249fbf5e33d2e2c008f9ea246dc0c5064736f6c634300080a003300000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000f8b0a10e470000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000093bbbeefb4768ad5b0fbc91b4bf36b3b691c6cbc

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

00000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000f8b0a10e470000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000093bbbeefb4768ad5b0fbc91b4bf36b3b691c6cbc

-----Decoded View---------------
Arg [0] : _maxToken (uint256): 1000
Arg [1] : _reservedForPixlrGenesis (uint256): 500
Arg [2] : _cimPrice (uint256): 70000000000000000
Arg [3] : _maxTokensPerTransaction (uint256): 10
Arg [4] : _pixlrGenesis (address): 0x93bbbeefb4768ad5b0fbc91b4bf36b3b691c6cbc

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [2] : 00000000000000000000000000000000000000000000000000f8b0a10e470000
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [4] : 00000000000000000000000093bbbeefb4768ad5b0fbc91b4bf36b3b691c6cbc


Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

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.