Contract 0xec8a309BDA22C2fB53d0BDBbdF6D43Aa0B602683

 
Txn Hash
Method
Block
From
To
Value
0x9cecf504c1350c86b26b264d2f45275cf1ab7df18a79e4232560206fa3b502edSet Approval For...156021032022-09-24 8:44:2312 days 11 hrs agoENS Name harmvandendorpel.eth IN  left gallery: lg Token0 Ether0.00026225 5.68678337
0xccac0213b02fa794f86cf77a06c330181ff21eccf71a7c269e4589a536e30135Set Approval For...155913612022-09-22 20:46:4713 days 23 hrs ago0x47940f6992d9d0c9d96e412623a75033285c2683 IN  left gallery: lg Token0 Ether0.00095423 20.69208902
0xcaca6a9bafd8726ceb0a0c2517f544308b9c3a3f72f2493b02c9d9faa4a32f9aSafe Transfer Fr...155466632022-09-16 14:07:1120 days 6 hrs agoENS Name harmvandendorpel.eth IN  left gallery: lg Token0 Ether0.00490992 43.08954092
0x7c248152125a34da392fba2f4963c169d2afecd92ac4de579eef80e751ef2686Set Approval For...155385112022-09-15 10:29:3521 days 9 hrs ago0xf99126d360d337e75daee0a9d2e0ccf9e0ae9476 IN  left gallery: lg Token0 Ether0.00052554 11.39617455
0x38a1d700b8a3626439374ad37c10df0766a25b3b1a6b33fd114d76edfc995eceSafe Transfer Fr...154580952022-09-02 8:29:2734 days 11 hrs agoENS Name harmvandendorpel.eth IN  left gallery: lg Token0 Ether0.00139905 13.03630029
0x0c5b1ef60a10279610680aa431906e4fd920a54c3c046f4d350363b022dfad17Mint154580542022-09-02 8:18:0334 days 11 hrs agoENS Name harmvandendorpel.eth IN  left gallery: lg Token0 Ether0.00245663 16.09682619
0xf87e4e9ae2cd72b8bfb616d77be0dda53d2a6333b8122787c52a980eb532e59aMint154580542022-09-02 8:18:0334 days 11 hrs agoENS Name harmvandendorpel.eth IN  left gallery: lg Token0 Ether0.00245663 16.09682619
0xc6f7a61e6fac806c0bbf46fc707154933b9f531443429cbee8fc50e65dace5e9Add Admin154580502022-09-02 8:16:2434 days 12 hrs agoleft gallery: Deployer IN  left gallery: lg Token0 Ether0.00055924 10.85109322
0x1c18a8209dec9b1121b6647ec071ff83a4e2d53c64605c5ed4ddbaadb71e7d81Set Approval For...153905552022-08-22 13:44:4345 days 6 hrs ago0xd595710aedaba1d2e18bfdbab46ab796664c6d89 IN  left gallery: lg Token0 Ether0.00093468 20.26822596
0x0c1320956381a06f21d62e689a30c23ab6c1ee60675af1892b1d9ff3ba9cf285Set Approval For...153401112022-08-14 13:47:5853 days 6 hrs ago0xb63a5c5710f06e111fa14ac82da2183c5102b504 IN  left gallery: lg Token0 Ether0.00051313 11.12702542
0xe9c1a30f870e2de587fc04881221c8d9c9eb2e2d7c1503a0d02dfded1378577cSet Approval For...152899802022-08-06 17:10:3161 days 3 hrs ago0xe4da2f2239095e0988ed599f46cab0c3a5e76390 IN  left gallery: lg Token0 Ether0.00147758 31.98229621
0xb7e0b2cf9417c026681e314d930bb8ffda6b2441c2b04cb74891e8aba2dac28cTransfer From152678562022-08-03 6:21:5264 days 13 hrs agoENS Name algoriddims.eth IN  left gallery: lg Token0 Ether0.00069043 6.67547599
0x172637d89ee5eca8df8c6827a92dbc902cef0578e0555d6bc0ba05d87e3bf6ceSet Approval For...152234922022-07-27 8:40:5671 days 11 hrs agoENS Name pureheroine.eth IN  left gallery: lg Token0 Ether0.00038004 8.240963
0xb16c1cc7ae0af9b7c06e5d12481392376abf07c8d8e0fc408a4cb14231a4e4eeSet Approval For...152189012022-07-26 15:26:4572 days 4 hrs ago0xa4a5ef3661a7e8f58536938f268d5712ebe0eb91 IN  left gallery: lg Token0 Ether0.00215124 46.64848608
0xf8a96c381f65b55a7280746ab49250e5eb0198f385ce9e6e64d5728b50030895Set Approval For...151822182022-07-20 22:38:0577 days 21 hrs ago0x7d5db3bbf958138b412511830d78c4fa5b67ac49 IN  left gallery: lg Token0 Ether0.00110113 23.87747134
0xa68c4b3cad7251d11b34eb43a29eacf76619eae7c27d61bfbcc749b580e8223aSet Approval For...151579972022-07-17 4:15:0081 days 16 hrs agoENS Name atomdance.eth IN  left gallery: lg Token0 Ether0.00039426 8.54949326
0xc9c56b6c378305658b19c470d5552e43bf455c9dfda525e82a845a608e75fc2cSet Approval For...151104982022-07-09 20:18:2188 days 23 hrs agoENS Name douglasss.eth IN  left gallery: lg Token0 Ether0.00156168 33.86436823
0xb032e27b3aa74d3046241d0d7d4e465d40619cfeeb4fa347df92cca746516821Set Approval For...150774242022-07-04 17:32:1394 days 2 hrs agoENS Name nobearnft.eth IN  left gallery: lg Token0 Ether0.00074609 30.71859473
0x7775f2adb07de76d7520aee32e8e9832b2e277b7a17eda97352c46809e03e02cTransfer From150771302022-07-04 16:33:5294 days 3 hrs ago0xfd43e48a7d12736932e1393ab95bf05271225423 IN  left gallery: lg Token0 Ether0.00392876 44.08
0x7c8ece9f5d141b6b4faeb3264da03f539a2faee120832cb9523e238b6d6a02e4Transfer From150770392022-07-04 16:11:1794 days 4 hrs agoENS Name harmvandendorpel.eth IN  left gallery: lg Token0 Ether0.00504016 41.41503065
0xd67d12909565502e05e993f66a4324962ed21c95cea482821f1ec5f86f42b41eSet Approval For...150238692022-06-25 13:17:16103 days 6 hrs ago0xc3abaaadeef3d365dbfdeb4028b2bb3dec1e0d67 IN  left gallery: lg Token0 Ether0.00135619 29.40841999
0x03c66463b9ab747b1fbcbe5bd810ffc6a4214df03c309011af0872718dacfffeSet Approval For...150078872022-06-22 13:42:36106 days 6 hrs agoENS Name caput.eth IN  left gallery: lg Token0 Ether0.0018418 39.93848435
0xeded7ae87beba3ccc2ae89401778ae1eb6f3d2829808bc624778ce1e82329325Set Approval For...149759452022-06-16 23:15:16111 days 21 hrs ago0x5693a95fff469c591bae4601d1d5da8cd8d9bee2 IN  left gallery: lg Token0 Ether0.00224119 48.59898591
0xfa0af35c8c25a7eaeef91b102e90c7334e14d3c5b04073c727ee0850dc64cbabTransfer From149718712022-06-16 6:27:58112 days 13 hrs agoENS Name killakoins.eth IN  left gallery: lg Token0 Ether0.00344292 32.91550181
0xcb0bba122beac3aac80c15ec1801a51b3c1970b856568439eba0d70eabad3c82Transfer From149718702022-06-16 6:27:34112 days 13 hrs agoENS Name killakoins.eth IN  left gallery: lg Token0 Ether0.00339512 30.57903221
[ Download CSV Export 

OVERVIEW

left gallery produces and sells downloadable objects – curated and artist-run since 2015

View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LeftGallery

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Apache-2.0 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-03-24
*/

// https://github.com/left-gallery/contracts/
//
// Forked from folia-app/folia-contracts: https://github.com/folia-app/folia-contracts
// Many thanks to Billy Rennekamp <https://github.com/okwme> and Folia <https://www.folia.app/> 💚
//
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8?~^[email protected]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@o_        .;>sX%[email protected]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@8?.                 ,;|[email protected]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@QJ,                           .~<Jm%[email protected]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@R<`                                    ';|[email protected]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Q7`                                              `[email protected]@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@U;                                                        .;|[email protected]@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Qv,                                                                 ,!|[email protected]@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@j;                                                                           .;>[email protected]@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@Q\`                                                                                ;[email protected]@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@E;                                                                                 '[email protected]@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@D+`                                                                                 `[email protected]@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@Q}~                                                                                   [email protected]@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@E^                                                                                    ,[email protected]@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@Qs'                                                                                    `[email protected]@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@K^`                                                                                     ;[email protected]@@@@@@@@@@@@@@@@@@
// @@@@@@@@@a'                                                                                      ,[email protected]@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@%a\;.                                                                                [email protected]@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@gai;.                                                                        [email protected]@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@QqY+:`                                                                '[email protected]@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@Ryi;`                                                         `[email protected]@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%o\;.                                                  ^[email protected]@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@QUJ^,                                           ,[email protected]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Qdo|~.                                    \@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@RSi;`                            >[email protected]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@QUz=,                     [email protected]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Q6t>,             `[email protected]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@QDoL~.      [email protected]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@[email protected]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

// File openzeppelin-solidity/contracts/GSN/[email protected]

pragma solidity ^0.5.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 GSN 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.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor() internal {}

    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File openzeppelin-solidity/contracts/introspection/[email protected]

pragma solidity ^0.5.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 openzeppelin-solidity/contracts/token/ERC721/[email protected]

pragma solidity ^0.5.0;

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
contract IERC721 is IERC165 {
    event Transfer(
        address indexed from,
        address indexed to,
        uint256 indexed tokenId
    );
    event Approval(
        address indexed owner,
        address indexed approved,
        uint256 indexed tokenId
    );
    event ApprovalForAll(
        address indexed owner,
        address indexed operator,
        bool approved
    );

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

    /**
     * @dev Returns the owner of the NFT specified by `tokenId`.
     */
    function ownerOf(uint256 tokenId) public view returns (address owner);

    /**
     * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to
     * another (`to`).
     *
     *
     *
     * Requirements:
     * - `from`, `to` cannot be zero.
     * - `tokenId` must be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this
     * NFT by either {approve} or {setApprovalForAll}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public;

    /**
     * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to
     * another (`to`).
     *
     * Requirements:
     * - If the caller is not `from`, it must be approved to move this NFT by
     * either {approve} or {setApprovalForAll}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public;

    function approve(address to, uint256 tokenId) public;

    function getApproved(uint256 tokenId)
        public
        view
        returns (address operator);

    function setApprovalForAll(address operator, bool _approved) public;

    function isApprovedForAll(address owner, address operator)
        public
        view
        returns (bool);

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public;
}

// File openzeppelin-solidity/contracts/token/ERC721/[email protected]

pragma solidity ^0.5.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
contract IERC721Receiver {
    /**
     * @notice Handle the receipt of an NFT
     * @dev The ERC721 smart contract calls this function on the recipient
     * after a {IERC721-safeTransferFrom}. This function MUST return the function selector,
     * otherwise the caller will revert the transaction. The selector to be
     * returned can be obtained as `this.onERC721Received.selector`. This
     * function MAY throw to revert and reject the transfer.
     * Note: the ERC721 contract address is always the message sender.
     * @param operator The address which called `safeTransferFrom` function
     * @param from The address which previously owned the token
     * @param tokenId The NFT identifier which is being transferred
     * @param data Additional data with no specified format
     * @return bytes4 `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes memory data
    ) public returns (bytes4);
}

// File openzeppelin-solidity/contracts/math/[email protected]

pragma solidity ^0.5.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File openzeppelin-solidity/contracts/utils/[email protected]

pragma solidity ^0.5.5;

/**
 * @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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash =
            0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            codehash := extcodehash(account)
        }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account)
        internal
        pure
        returns (address payable)
    {
        return address(uint160(account));
    }

    /**
     * @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].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(
            address(this).balance >= amount,
            "Address: insufficient balance"
        );

        // solhint-disable-next-line avoid-call-value
        (bool success, ) = recipient.call.value(amount)("");
        require(
            success,
            "Address: unable to send value, recipient may have reverted"
        );
    }
}

// File openzeppelin-solidity/contracts/drafts/[email protected]

pragma solidity ^0.5.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath}
 * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never
 * directly accessed.
 */
library Counters {
    using SafeMath for uint256;

    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        // The {SafeMath} overflow check can be skipped here, see the comment at the top
        counter._value += 1;
    }

    function decrement(Counter storage counter) internal {
        counter._value = counter._value.sub(1);
    }
}

// File openzeppelin-solidity/contracts/introspection/[email protected]

pragma solidity ^0.5.0;

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor() internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId)
        external
        view
        returns (bool)
    {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

// File openzeppelin-solidity/contracts/token/ERC721/[email protected]

pragma solidity ^0.5.0;

/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721 is Context, ERC165, IERC721 {
    using SafeMath for uint256;
    using Address for address;
    using Counters for Counters.Counter;

    // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
    // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
    bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

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

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

    // Mapping from owner to number of owned token
    mapping(address => Counters.Counter) private _ownedTokensCount;

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

    /*
     *     bytes4(keccak256('balanceOf(address)')) == 0x70a08231
     *     bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
     *     bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
     *     bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
     *
     *     => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
     *        0xa22cb465 ^ 0xe985e9c ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
     */
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;

    constructor() public {
        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721);
    }

    /**
     * @dev Gets the balance of the specified address.
     * @param owner address to query the balance of
     * @return uint256 representing the amount owned by the passed address
     */
    function balanceOf(address owner) public view returns (uint256) {
        require(
            owner != address(0),
            "ERC721: balance query for the zero address"
        );

        return _ownedTokensCount[owner].current();
    }

    /**
     * @dev Gets the owner of the specified token ID.
     * @param tokenId uint256 ID of the token to query the owner of
     * @return address currently marked as the owner of the given token ID
     */
    function ownerOf(uint256 tokenId) public view returns (address) {
        address owner = _tokenOwner[tokenId];
        require(
            owner != address(0),
            "ERC721: owner query for nonexistent token"
        );

        return owner;
    }

    /**
     * @dev Approves another address to transfer the given token ID
     * The zero address indicates there is no approved address.
     * There can only be one approved address per token at a given time.
     * Can only be called by the token owner or an approved operator.
     * @param to address to be approved for the given token ID
     * @param tokenId uint256 ID of the token to be approved
     */
    function approve(address to, uint256 tokenId) public {
        address owner = 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"
        );

        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Gets the approved address for a token ID, or zero if no address set
     * Reverts if the token ID does not exist.
     * @param tokenId uint256 ID of the token to query the approval of
     * @return address currently approved for the given token ID
     */
    function getApproved(uint256 tokenId) public view returns (address) {
        require(
            _exists(tokenId),
            "ERC721: approved query for nonexistent token"
        );

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev Sets or unsets the approval of a given operator
     * An operator is allowed to transfer all tokens of the sender on their behalf.
     * @param to operator address to set the approval
     * @param approved representing the status of the approval to be set
     */
    function setApprovalForAll(address to, bool approved) public {
        require(to != _msgSender(), "ERC721: approve to caller");

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

    /**
     * @dev Tells whether an operator is approved by a given owner.
     * @param owner owner address which you want to query the approval of
     * @param operator operator address which you want to query the approval of
     * @return bool whether the given operator is approved by the given owner
     */
    function isApprovedForAll(address owner, address operator)
        public
        view
        returns (bool)
    {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev Transfers the ownership of a given token ID to another address.
     * Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     * Requires the msg.sender to be the owner, approved, or operator.
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public {
        //solhint-disable-next-line max-line-length
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721: transfer caller is not owner nor approved"
        );

        _transferFrom(from, to, tokenId);
    }

    /**
     * @dev Safely transfers the ownership of a given token ID to another address
     * If the target address is a contract, it must implement {IERC721Receiver-onERC721Received},
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * Requires the msg.sender to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev Safely transfers the ownership of a given token ID to another address
     * If the target address is a contract, it must implement {IERC721Receiver-onERC721Received},
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * Requires the _msgSender() to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes data to send along with a safe transfer check
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721: transfer caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers the ownership of a given token ID to another address
     * If the target address is a contract, it must implement `onERC721Received`,
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * Requires the msg.sender to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes data to send along with a safe transfer check
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal {
        _transferFrom(from, to, tokenId);
        require(
            _checkOnERC721Received(from, to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Returns whether the specified token exists.
     * @param tokenId uint256 ID of the token to query the existence of
     * @return bool whether the token exists
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        address owner = _tokenOwner[tokenId];
        return owner != address(0);
    }

    /**
     * @dev Returns whether the given spender can transfer a given token ID.
     * @param spender address of the spender to query
     * @param tokenId uint256 ID of the token to be transferred
     * @return bool whether the msg.sender is approved for the given token ID,
     * is an operator of the owner, or is the owner of the token
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId)
        internal
        view
        returns (bool)
    {
        require(
            _exists(tokenId),
            "ERC721: operator query for nonexistent token"
        );
        address owner = ownerOf(tokenId);
        return (spender == owner ||
            getApproved(tokenId) == spender ||
            isApprovedForAll(owner, spender));
    }

    /**
     * @dev Internal function to safely mint a new token.
     * Reverts if the given token ID already exists.
     * If the target address is a contract, it must implement `onERC721Received`,
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * @param to The address that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     */
    function _safeMint(address to, uint256 tokenId) internal {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Internal function to safely mint a new token.
     * Reverts if the given token ID already exists.
     * If the target address is a contract, it must implement `onERC721Received`,
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * @param to The address that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     * @param _data bytes data to send along with a safe transfer check
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Internal function to mint a new token.
     * Reverts if the given token ID already exists.
     * @param to The address that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     */
    function _mint(address to, uint256 tokenId) internal {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _tokenOwner[tokenId] = to;
        _ownedTokensCount[to].increment();

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

    /**
     * @dev Internal function to burn a specific token.
     * Reverts if the token does not exist.
     * Deprecated, use {_burn} instead.
     * @param owner owner of the token to burn
     * @param tokenId uint256 ID of the token being burned
     */
    function _burn(address owner, uint256 tokenId) internal {
        require(
            ownerOf(tokenId) == owner,
            "ERC721: burn of token that is not own"
        );

        _clearApproval(tokenId);

        _ownedTokensCount[owner].decrement();
        _tokenOwner[tokenId] = address(0);

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

    /**
     * @dev Internal function to burn a specific token.
     * Reverts if the token does not exist.
     * @param tokenId uint256 ID of the token being burned
     */
    function _burn(uint256 tokenId) internal {
        _burn(ownerOf(tokenId), tokenId);
    }

    /**
     * @dev Internal function to transfer ownership of a given token ID to another address.
     * As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     */
    function _transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) internal {
        require(
            ownerOf(tokenId) == from,
            "ERC721: transfer of token that is not own"
        );
        require(to != address(0), "ERC721: transfer to the zero address");

        _clearApproval(tokenId);

        _ownedTokensCount[from].decrement();
        _ownedTokensCount[to].increment();

        _tokenOwner[tokenId] = to;

        emit Transfer(from, 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.
     *
     * This is an internal detail of the `ERC721` contract and its use is deprecated.
     * @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
    ) internal returns (bool) {
        if (!to.isContract()) {
            return true;
        }
        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) =
            to.call(
                abi.encodeWithSelector(
                    IERC721Receiver(to).onERC721Received.selector,
                    _msgSender(),
                    from,
                    tokenId,
                    _data
                )
            );
        if (!success) {
            if (returndata.length > 0) {
                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert("ERC721: transfer to non ERC721Receiver implementer");
            }
        } else {
            bytes4 retval = abi.decode(returndata, (bytes4));
            return (retval == _ERC721_RECEIVED);
        }
    }

    /**
     * @dev Private function to clear current approval of a given token ID.
     * @param tokenId uint256 ID of the token to be transferred
     */
    function _clearApproval(uint256 tokenId) private {
        if (_tokenApprovals[tokenId] != address(0)) {
            _tokenApprovals[tokenId] = address(0);
        }
    }
}

// File openzeppelin-solidity/contracts/token/ERC721/[email protected]

pragma solidity ^0.5.0;

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
contract IERC721Enumerable is IERC721 {
    function totalSupply() public view returns (uint256);

    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        returns (uint256 tokenId);

    function tokenByIndex(uint256 index) public view returns (uint256);
}

// File openzeppelin-solidity/contracts/token/ERC721/[email protected]

pragma solidity ^0.5.0;

/**
 * @title ERC-721 Non-Fungible Token with optional enumeration extension logic
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721Enumerable is Context, ERC165, ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => 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;

    /*
     *     bytes4(keccak256('totalSupply()')) == 0x18160ddd
     *     bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59
     *     bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7
     *
     *     => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63
     */
    bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;

    /**
     * @dev Constructor function.
     */
    constructor() public {
        // register the supported interface to conform to ERC721Enumerable via ERC165
        _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
    }

    /**
     * @dev Gets the token ID at a given index of the tokens list of the requested owner.
     * @param owner address owning the tokens list to be accessed
     * @param index uint256 representing the index to be accessed of the requested tokens list
     * @return uint256 token ID at the given index of the tokens list owned by the requested address
     */
    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        returns (uint256)
    {
        require(
            index < balanceOf(owner),
            "ERC721Enumerable: owner index out of bounds"
        );
        return _ownedTokens[owner][index];
    }

    /**
     * @dev Gets the total amount of tokens stored by the contract.
     * @return uint256 representing the total amount of tokens
     */
    function totalSupply() public view returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev Gets the token ID at a given index of all the tokens in this contract
     * Reverts if the index is greater or equal to the total number of tokens.
     * @param index uint256 representing the index to be accessed of the tokens list
     * @return uint256 token ID at the given index of the tokens list
     */
    function tokenByIndex(uint256 index) public view returns (uint256) {
        require(
            index < totalSupply(),
            "ERC721Enumerable: global index out of bounds"
        );
        return _allTokens[index];
    }

    /**
     * @dev Internal function to transfer ownership of a given token ID to another address.
     * As opposed to transferFrom, this imposes no restrictions on msg.sender.
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     */
    function _transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) internal {
        super._transferFrom(from, to, tokenId);

        _removeTokenFromOwnerEnumeration(from, tokenId);

        _addTokenToOwnerEnumeration(to, tokenId);
    }

    /**
     * @dev Internal function to mint a new token.
     * Reverts if the given token ID already exists.
     * @param to address the beneficiary that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     */
    function _mint(address to, uint256 tokenId) internal {
        super._mint(to, tokenId);

        _addTokenToOwnerEnumeration(to, tokenId);

        _addTokenToAllTokensEnumeration(tokenId);
    }

    /**
     * @dev Internal function to burn a specific token.
     * Reverts if the token does not exist.
     * Deprecated, use {ERC721-_burn} instead.
     * @param owner owner of the token to burn
     * @param tokenId uint256 ID of the token being burned
     */
    function _burn(address owner, uint256 tokenId) internal {
        super._burn(owner, tokenId);

        _removeTokenFromOwnerEnumeration(owner, tokenId);
        // Since tokenId will be deleted, we can clear its slot in _ownedTokensIndex to trigger a gas refund
        _ownedTokensIndex[tokenId] = 0;

        _removeTokenFromAllTokensEnumeration(tokenId);
    }

    /**
     * @dev Gets the list of token IDs of the requested owner.
     * @param owner address owning the tokens
     * @return uint256[] List of token IDs owned by the requested address
     */
    function _tokensOfOwner(address owner)
        internal
        view
        returns (uint256[] storage)
    {
        return _ownedTokens[owner];
    }

    /**
     * @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 {
        _ownedTokensIndex[tokenId] = _ownedTokens[to].length;
        _ownedTokens[to].push(tokenId);
    }

    /**
     * @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 = _ownedTokens[from].length.sub(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
        _ownedTokens[from].length--;

        // Note that _ownedTokensIndex[tokenId] hasn't been cleared: it still points to the old slot (now occupied by
        // lastTokenId, or just over the end of the array if the token was the last one).
    }

    /**
     * @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.sub(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
        _allTokens.length--;
        _allTokensIndex[tokenId] = 0;
    }
}

// File openzeppelin-solidity/contracts/token/ERC721/[email protected]

pragma solidity ^0.5.0;

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

    function symbol() external view returns (string memory);

    function tokenURI(uint256 tokenId) external view returns (string memory);
}

// File openzeppelin-solidity/contracts/token/ERC721/[email protected]

pragma solidity ^0.5.0;

contract ERC721Metadata is Context, ERC165, ERC721, IERC721Metadata {
    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Base URI
    string private _baseURI;

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

    /*
     *     bytes4(keccak256('name()')) == 0x06fdde03
     *     bytes4(keccak256('symbol()')) == 0x95d89b41
     *     bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd
     *
     *     => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f
     */
    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;

    /**
     * @dev Constructor function
     */
    constructor(string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;

        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721_METADATA);
    }

    /**
     * @dev Gets the token name.
     * @return string representing the token name
     */
    function name() external view returns (string memory) {
        return _name;
    }

    /**
     * @dev Gets the token symbol.
     * @return string representing the token symbol
     */
    function symbol() external view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the URI for a given token ID. May return an empty string.
     *
     * If the token's URI is non-empty and a base URI was set (via
     * {_setBaseURI}), it will be added to the token ID's URI as a prefix.
     *
     * Reverts if the token ID does not exist.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory) {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );

        string memory _tokenURI = _tokenURIs[tokenId];

        // Even if there is a base URI, it is only appended to non-empty token-specific URIs
        if (bytes(_tokenURI).length == 0) {
            return "";
        } else {
            // abi.encodePacked is being used to concatenate strings
            return string(abi.encodePacked(_baseURI, _tokenURI));
        }
    }

    /**
     * @dev Internal function to set the token URI for a given token.
     *
     * Reverts if the token ID does not exist.
     *
     * TIP: if all token IDs share a prefix (e.g. if your URIs look like
     * `http://api.myproject.com/token/<id>`), use {_setBaseURI} to store
     * it and save gas.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI set of nonexistent token"
        );
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev Internal function to set the base URI for all token IDs. It is
     * automatically added as a prefix to the value returned in {tokenURI}.
     *
     * _Available since v2.5.0._
     */
    function _setBaseURI(string memory baseURI) internal {
        _baseURI = baseURI;
    }

    /**
     * @dev Returns the base URI set via {_setBaseURI}. This will be
     * automatically added as a preffix in {tokenURI} to each token's URI, when
     * they are non-empty.
     *
     * _Available since v2.5.0._
     */
    function baseURI() external view returns (string memory) {
        return _baseURI;
    }

    /**
     * @dev Internal function to burn a specific token.
     * Reverts if the token does not exist.
     * Deprecated, use _burn(uint256) instead.
     * @param owner owner of the token to burn
     * @param tokenId uint256 ID of the token being burned by the msg.sender
     */
    function _burn(address owner, uint256 tokenId) internal {
        super._burn(owner, tokenId);

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

// File openzeppelin-solidity/contracts/token/ERC721/[email protected]

pragma solidity ^0.5.0;

/**
 * @title Full ERC721 Token
 * @dev This implementation includes all the required and some optional functionality of the ERC721 standard
 * Moreover, it includes approve all functionality using operator terminology.
 *
 * See https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721Full is ERC721, ERC721Enumerable, ERC721Metadata {
    constructor(string memory name, string memory symbol)
        public
        ERC721Metadata(name, symbol)
    {
        // solhint-disable-previous-line no-empty-blocks
    }
}

// File openzeppelin-solidity/contracts/token/ERC20/[email protected]

pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount)
        external
        returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
}

// File openzeppelin-solidity/contracts/ownership/[email protected]

pragma solidity ^0.5.0;

/**
 * @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.
 *
 * 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.
 */
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() internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _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 onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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 onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(
            newOwner != address(0),
            "Ownable: new owner is the zero address"
        );
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File openzeppelin-solidity/contracts/access/[email protected]

pragma solidity ^0.5.0;

/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
library Roles {
    struct Role {
        mapping(address => bool) bearer;
    }

    /**
     * @dev Give an account access to this role.
     */
    function add(Role storage role, address account) internal {
        require(!has(role, account), "Roles: account already has role");
        role.bearer[account] = true;
    }

    /**
     * @dev Remove an account's access to this role.
     */
    function remove(Role storage role, address account) internal {
        require(has(role, account), "Roles: account does not have role");
        role.bearer[account] = false;
    }

    /**
     * @dev Check if an account has this role.
     * @return bool
     */
    function has(Role storage role, address account)
        internal
        view
        returns (bool)
    {
        require(account != address(0), "Roles: account is the zero address");
        return role.bearer[account];
    }
}

// File contracts/helpers/strings.sol

/*
 * @title String & slice utility library for Solidity contracts.
 * @author Nick Johnson <[email protected]>
 */

pragma solidity ^0.5.0;

library strings {
    struct slice {
        uint256 _len;
        uint256 _ptr;
    }

    function memcpy(
        uint256 dest,
        uint256 src,
        uint256 len
    ) private pure {
        // Copy word-length chunks while possible
        for (; len >= 32; len -= 32) {
            assembly {
                mstore(dest, mload(src))
            }
            dest += 32;
            src += 32;
        }

        // Copy remaining bytes
        uint256 mask = 256**(32 - len) - 1;
        assembly {
            let srcpart := and(mload(src), not(mask))
            let destpart := and(mload(dest), mask)
            mstore(dest, or(destpart, srcpart))
        }
    }

    /*
     * @dev Returns a slice containing the entire string.
     * @param self The string to make a slice from.
     * @return A newly allocated slice containing the entire string.
     */
    function toSlice(string memory self) internal pure returns (slice memory) {
        uint256 ptr;
        assembly {
            ptr := add(self, 0x20)
        }
        return slice(bytes(self).length, ptr);
    }

    /*
     * @dev Returns a newly allocated string containing the concatenation of
     *      `self` and `other`.
     * @param self The first slice to concatenate.
     * @param other The second slice to concatenate.
     * @return The concatenation of the two strings.
     */
    function concat(slice memory self, slice memory other)
        internal
        pure
        returns (string memory)
    {
        string memory ret = new string(self._len + other._len);
        uint256 retptr;
        assembly {
            retptr := add(ret, 32)
        }
        memcpy(retptr, self._ptr, self._len);
        memcpy(retptr + self._len, other._ptr, other._len);
        return ret;
    }
}

// File contracts/Metadata.sol

/**
 *           __     ______
 *          / /__  / __/ /_
 *         / / _ \/ /_/ __/
 *        / /  __/ __/ /_____
 *       /_/\___/_/__\__/ / /__  _______  __
 *         / __ `/ __ `/ / / _ \/ ___/ / / /
 *        / /_/ / /_/ / / /  __/ /  / /_/ /
 *        \__, /\__,_/_/_/\___/_/   \__, /
 *       /____/                    /____/
 *
 * https://github.com/left-gallery/contracts/
 *
 * Forked from folia-app/folia-contracts: https://github.com/folia-app/folia-contracts
 * Many thanks to Billy Rennekamp <https://github.com/okwme> and Folia <https://www.folia.app/> 💚
 */

pragma solidity ^0.5.0;

/**
 * Metadata contract is upgradeable and returns metadata about Token
 */

contract Metadata {
    using strings for *;

    function tokenURI(uint256 _tokenId)
        public
        pure
        returns (string memory _infoUrl)
    {
        string memory base = "https://left.gallery/v1/metadata/";
        string memory id = uint2str(_tokenId);
        return base.toSlice().concat(id.toSlice());
    }

    function uint2str(uint256 i) internal pure returns (string memory) {
        if (i == 0) return "0";
        uint256 j = i;
        uint256 length;
        while (j != 0) {
            length++;
            j /= 10;
        }
        bytes memory bstr = new bytes(length);
        uint256 k = length - 1;
        while (i != 0) {
            uint256 _uint = 48 + (i % 10);
            bstr[k--] = toBytes(_uint)[31];
            i /= 10;
        }
        return string(bstr);
    }

    function toBytes(uint256 x) public pure returns (bytes memory b) {
        b = new bytes(32);
        assembly {
            mstore(add(b, 32), x)
        }
    }
}

// File contracts/LeftGallery.sol

/**
 *           __     ______
 *          / /__  / __/ /_
 *         / / _ \/ /_/ __/
 *        / /  __/ __/ /_____
 *       /_/\___/_/__\__/ / /__  _______  __
 *         / __ `/ __ `/ / / _ \/ ___/ / / /
 *        / /_/ / /_/ / / /  __/ /  / /_/ /
 *        \__, /\__,_/_/_/\___/_/   \__, /
 *       /____/                    /____/
 *
 * https://github.com/left-gallery/contracts/
 *
 * Forked from folia-app/folia-contracts: https://github.com/folia-app/folia-contracts
 * Many thanks to Billy Rennekamp <https://github.com/okwme> and Folia <https://www.folia.app/> 💚
 */

pragma solidity ^0.5.0;

/**
 * The Token contract does this and that...
 */
contract LeftGallery is ERC721Full, Ownable {
    using Roles for Roles.Role;
    Roles.Role private _admins;
    uint8 admins;

    address public metadata;
    address public controller;

    modifier onlyAdminOrController() {
        require(
            (_admins.has(msg.sender) || msg.sender == controller),
            "DOES_NOT_HAVE_ADMIN_OR_CONTROLLER_ROLE"
        );
        _;
    }

    constructor(
        string memory name,
        string memory symbol,
        address _metadata
    ) public ERC721Full(name, symbol) {
        metadata = _metadata;
        _admins.add(msg.sender);
        admins += 1;
    }

    function mint(address recepient, uint256 tokenId)
        public
        onlyAdminOrController
    {
        _mint(recepient, tokenId);
    }

    function burn(uint256 tokenId) public onlyAdminOrController {
        _burn(ownerOf(tokenId), tokenId);
    }

    function updateMetadata(address _metadata) public onlyAdminOrController {
        metadata = _metadata;
    }

    function updateController(address _controller)
        public
        onlyAdminOrController
    {
        controller = _controller;
    }

    function addAdmin(address _admin) public onlyOwner {
        _admins.add(_admin);
        admins += 1;
    }

    function removeAdmin(address _admin) public onlyOwner {
        require(admins > 1, "CANT_REMOVE_LAST_ADMIN");
        _admins.remove(_admin);
        admins -= 1;
    }

    function tokenURI(uint256 _tokenId)
        external
        view
        returns (string memory _infoUrl)
    {
        return Metadata(metadata).tokenURI(_tokenId);
    }

    /**
     * @dev Moves Token to a certain address.
     * @param _to The address to receive the Token.
     * @param _amount The amount of Token to be transferred.
     * @param _token The address of the Token to be transferred.
     */
    function moveToken(
        address _to,
        uint256 _amount,
        address _token
    ) public onlyAdminOrController returns (bool) {
        require(_amount <= IERC20(_token).balanceOf(address(this)));
        return IERC20(_token).transfer(_to, _amount);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"_metadata","type":"address"}],"payable":false,"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"},{"constant":false,"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"addAdmin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"controller","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"metadata","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"recepient","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_token","type":"address"}],"name":"moveToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"removeAdmin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"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":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"_infoUrl","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_controller","type":"address"}],"name":"updateController","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_metadata","type":"address"}],"name":"updateMetadata","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002a4738038062002a47833981810160405260608110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b9083019060208201858111156200006e57600080fd5b82516401000000008111828201881017156200008957600080fd5b82525081516020918201929091019080838360005b83811015620000b85781810151838201526020016200009e565b50505050905090810190601f168015620000e65780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200010a57600080fd5b9083019060208201858111156200012057600080fd5b82516401000000008111828201881017156200013b57600080fd5b82525081516020918201929091019080838360005b838110156200016a57818101518382015260200162000150565b50505050905090810190601f168015620001985780820380516001836020036101000a031916815260200191505b50604052602001519150839050828181620001c36301ffc9a760e01b6001600160e01b03620002fc16565b620001de6380ac58cd60e01b6001600160e01b03620002fc16565b620001f963780e9d6360e01b6001600160e01b03620002fc16565b81516200020e9060099060208501906200047c565b5080516200022490600a9060208401906200047c565b5062000240635b5e139f60e01b6001600160e01b03620002fc16565b505050506000620002566200038160201b60201c565b600d80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600f8054610100600160a81b0319166101006001600160a01b03841602179055620002dd600e3362000386602090811b620016af17901c565b5050600f805460ff8082166001011660ff19909116179055506200051e565b6001600160e01b031980821614156200035c576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b335b90565b6200039b82826001600160e01b036200041316565b15620003ee576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b60006001600160a01b0382166200045c5760405162461bcd60e51b815260040180806020018281038252602281526020018062002a256022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620004bf57805160ff1916838001178555620004ef565b82800160010185558215620004ef579182015b82811115620004ef578251825591602001919060010190620004d2565b50620004fd92915062000501565b5090565b6200038391905b80821115620004fd576000815560010162000508565b6124f7806200052e6000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c80636352211e1161010457806395d89b41116100a2578063c87b56dd11610071578063c87b56dd1461064b578063e985e9c514610668578063f2fde38b14610696578063f77c4791146106bc576101da565b806395d89b4114610529578063a22cb46514610531578063b88d4fde1461055f578063c5e2a7db14610625576101da565b806370a08231116100de57806370a08231146104eb578063715018a6146105115780638da5cb5b146105195780638f32d59b14610521576101da565b80636352211e146104a05780636c0360eb146104bd57806370480275146104c5576101da565b806318160ddd1161017c57806340c10f191161014b57806340c10f191461040457806342842e0e1461043057806342966c68146104665780634f6ccce714610483576101da565b806318160ddd1461038057806323b872dd1461039a5780632f745c59146103d0578063392f37e9146103fc576101da565b806306fdde03116101b857806306fdde0314610278578063081812fc146102f5578063095ea7b31461032e5780631785f53c1461035a576101da565b806301ffc9a7146101df578063048e62ca1461021a57806306cb5b6614610250575b600080fd5b610206600480360360208110156101f557600080fd5b50356001600160e01b0319166106c4565b604080519115158252519081900360200190f35b6102066004803603606081101561023057600080fd5b506001600160a01b038135811691602081013591604090910135166106e3565b6102766004803603602081101561026657600080fd5b50356001600160a01b0316610858565b005b6102806108db565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102ba5781810151838201526020016102a2565b50505050905090810190601f1680156102e75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103126004803603602081101561030b57600080fd5b5035610972565b604080516001600160a01b039092168252519081900360200190f35b6102766004803603604081101561034457600080fd5b506001600160a01b0381351690602001356109d4565b6102766004803603602081101561037057600080fd5b50356001600160a01b0316610afc565b610388610bc4565b60408051918252519081900360200190f35b610276600480360360608110156103b057600080fd5b506001600160a01b03813581169160208101359091169060400135610bca565b610388600480360360408110156103e657600080fd5b506001600160a01b038135169060200135610c26565b610312610ca5565b6102766004803603604081101561041a57600080fd5b506001600160a01b038135169060200135610cb9565b6102766004803603606081101561044657600080fd5b506001600160a01b03813581169160208101359091169060400135610d28565b6102766004803603602081101561047c57600080fd5b5035610d43565b6103886004803603602081101561049957600080fd5b5035610db9565b610312600480360360208110156104b657600080fd5b5035610e1f565b610280610e79565b610276600480360360208110156104db57600080fd5b50356001600160a01b0316610eda565b6103886004803603602081101561050157600080fd5b50356001600160a01b0316610f4b565b610276610fb3565b610312611044565b610206611053565b610280611079565b6102766004803603604081101561054757600080fd5b506001600160a01b03813516906020013515156110da565b6102766004803603608081101561057557600080fd5b6001600160a01b038235811692602081013590911691604082013591908101906080810160608201356401000000008111156105b057600080fd5b8201836020820111156105c257600080fd5b803590602001918460018302840111640100000000831117156105e457600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506111df945050505050565b6102766004803603602081101561063b57600080fd5b50356001600160a01b031661123d565b6102806004803603602081101561066157600080fd5b50356112c6565b6102066004803603604081101561067e57600080fd5b506001600160a01b038135811691602001351661140b565b610276600480360360208110156106ac57600080fd5b50356001600160a01b0316611439565b610312611489565b6001600160e01b03191660009081526020819052604090205460ff1690565b60006106f6600e3363ffffffff61149816565b8061070b57506010546001600160a01b031633145b6107465760405162461bcd60e51b81526004018080602001828103825260268152602001806122676026913960400191505060405180910390fd5b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561078c57600080fd5b505afa1580156107a0573d6000803e3d6000fd5b505050506040513d60208110156107b657600080fd5b50518311156107c457600080fd5b816001600160a01b031663a9059cbb85856040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561082457600080fd5b505af1158015610838573d6000803e3d6000fd5b505050506040513d602081101561084e57600080fd5b5051949350505050565b610869600e3363ffffffff61149816565b8061087e57506010546001600160a01b031633145b6108b95760405162461bcd60e51b81526004018080602001828103825260268152602001806122676026913960400191505060405180910390fd5b601080546001600160a01b0319166001600160a01b0392909216919091179055565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109675780601f1061093c57610100808354040283529160200191610967565b820191906000526020600020905b81548152906001019060200180831161094a57829003601f168201915b505050505090505b90565b600061097d826114ff565b6109b85760405162461bcd60e51b815260040180806020018281038252602c815260200180612389602c913960400191505060405180910390fd5b506000908152600260205260409020546001600160a01b031690565b60006109df82610e1f565b9050806001600160a01b0316836001600160a01b03161415610a325760405162461bcd60e51b81526004018080602001828103825260218152602001806124206021913960400191505060405180910390fd5b806001600160a01b0316610a4461151c565b6001600160a01b03161480610a655750610a6581610a6061151c565b61140b565b610aa05760405162461bcd60e51b81526004018080602001828103825260388152602001806122dd6038913960400191505060405180910390fd5b60008281526002602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610b04611053565b610b43576040805162461bcd60e51b815260206004820181905260248201526000805160206123b5833981519152604482015290519081900360640190fd5b600f54600160ff90911611610b98576040805162461bcd60e51b815260206004820152601660248201527521a0a72a2fa922a6a7ab22afa620a9aa2fa0a226a4a760511b604482015290519081900360640190fd5b610ba9600e8263ffffffff61152016565b50600f805460ff19811660ff91821660001901909116179055565b60075490565b610bdb610bd561151c565b82611587565b610c165760405162461bcd60e51b81526004018080602001828103825260318152602001806124416031913960400191505060405180910390fd5b610c2183838361162b565b505050565b6000610c3183610f4b565b8210610c6e5760405162461bcd60e51b815260040180806020018281038252602b8152602001806121e4602b913960400191505060405180910390fd5b6001600160a01b0383166000908152600560205260409020805483908110610c9257fe5b9060005260206000200154905092915050565b600f5461010090046001600160a01b031681565b610cca600e3363ffffffff61149816565b80610cdf57506010546001600160a01b031633145b610d1a5760405162461bcd60e51b81526004018080602001828103825260268152602001806122676026913960400191505060405180910390fd5b610d24828261164a565b5050565b610c21838383604051806020016040528060008152506111df565b610d54600e3363ffffffff61149816565b80610d6957506010546001600160a01b031633145b610da45760405162461bcd60e51b81526004018080602001828103825260268152602001806122676026913960400191505060405180910390fd5b610db6610db082610e1f565b82611667565b50565b6000610dc3610bc4565b8210610e005760405162461bcd60e51b815260040180806020018281038252602c815260200180612472602c913960400191505060405180910390fd5b60078281548110610e0d57fe5b90600052602060002001549050919050565b6000818152600160205260408120546001600160a01b031680610e735760405162461bcd60e51b815260040180806020018281038252602981526020018061233f6029913960400191505060405180910390fd5b92915050565b600b8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109675780601f1061093c57610100808354040283529160200191610967565b610ee2611053565b610f21576040805162461bcd60e51b815260206004820181905260248201526000805160206123b5833981519152604482015290519081900360640190fd5b610f32600e8263ffffffff6116af16565b50600f805460ff8082166001011660ff19909116179055565b60006001600160a01b038216610f925760405162461bcd60e51b815260040180806020018281038252602a815260200180612315602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600360205260409020610e7390611730565b610fbb611053565b610ffa576040805162461bcd60e51b815260206004820181905260248201526000805160206123b5833981519152604482015290519081900360640190fd5b600d546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600d80546001600160a01b0319169055565b600d546001600160a01b031690565b600d546000906001600160a01b031661106a61151c565b6001600160a01b031614905090565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109675780601f1061093c57610100808354040283529160200191610967565b6110e261151c565b6001600160a01b0316826001600160a01b03161415611148576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b806004600061115561151c565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561119961151c565b60408051841515815290516001600160a01b0392909216917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319181900360200190a35050565b6111f06111ea61151c565b83611587565b61122b5760405162461bcd60e51b81526004018080602001828103825260318152602001806124416031913960400191505060405180910390fd5b61123784848484611734565b50505050565b61124e600e3363ffffffff61149816565b8061126357506010546001600160a01b031633145b61129e5760405162461bcd60e51b81526004018080602001828103825260268152602001806122676026913960400191505060405180910390fd5b600f80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600f546040805163c87b56dd60e01b815260048101849052905160609261010090046001600160a01b03169163c87b56dd916024808301926000929190829003018186803b15801561131757600080fd5b505afa15801561132b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561135457600080fd5b810190808051604051939291908464010000000082111561137457600080fd5b90830190602082018581111561138957600080fd5b82516401000000008111828201881017156113a357600080fd5b82525081516020918201929091019080838360005b838110156113d05781810151838201526020016113b8565b50505050905090810190601f1680156113fd5780820380516001836020036101000a031916815260200191505b506040525050509050919050565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b611441611053565b611480576040805162461bcd60e51b815260206004820181905260248201526000805160206123b5833981519152604482015290519081900360640190fd5b610db681611786565b6010546001600160a01b031681565b60006001600160a01b0382166114df5760405162461bcd60e51b81526004018080602001828103825260228152602001806123d56022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b6000908152600160205260409020546001600160a01b0316151590565b3390565b61152a8282611498565b6115655760405162461bcd60e51b81526004018080602001828103825260218152602001806123686021913960400191505060405180910390fd5b6001600160a01b0316600090815260209190915260409020805460ff19169055565b6000611592826114ff565b6115cd5760405162461bcd60e51b815260040180806020018281038252602c8152602001806122b1602c913960400191505060405180910390fd5b60006115d883610e1f565b9050806001600160a01b0316846001600160a01b031614806116135750836001600160a01b031661160884610972565b6001600160a01b0316145b806116235750611623818561140b565b949350505050565b611636838383611827565b611640838261196b565b610c218282611a60565b6116548282611a9e565b61165e8282611a60565b610d2481611bcf565b6116718282611c13565b6000818152600c60205260409020546002600019610100600184161502019091160415610d24576000818152600c60205260408120610d2491612161565b6116b98282611498565b1561170b576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b5490565b61173f84848461162b565b61174b84848484611c3f565b6112375760405162461bcd60e51b815260040180806020018281038252603281526020018061220f6032913960400191505060405180910390fd5b6001600160a01b0381166117cb5760405162461bcd60e51b81526004018080602001828103825260268152602001806122416026913960400191505060405180910390fd5b600d546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600d80546001600160a01b0319166001600160a01b0392909216919091179055565b826001600160a01b031661183a82610e1f565b6001600160a01b03161461187f5760405162461bcd60e51b81526004018080602001828103825260298152602001806123f76029913960400191505060405180910390fd5b6001600160a01b0382166118c45760405162461bcd60e51b815260040180806020018281038252602481526020018061228d6024913960400191505060405180910390fd5b6118cd81611e7a565b6001600160a01b03831660009081526003602052604090206118ee90611eb5565b6001600160a01b038216600090815260036020526040902061190f90611ecc565b60008181526001602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03821660009081526005602052604081205461199590600163ffffffff611ed516565b600083815260066020526040902054909150808214611a30576001600160a01b03841660009081526005602052604081208054849081106119d257fe5b906000526020600020015490508060056000876001600160a01b03166001600160a01b031681526020019081526020016000208381548110611a1057fe5b600091825260208083209091019290925591825260069052604090208190555b6001600160a01b0384166000908152600560205260409020805490611a599060001983016121a5565b5050505050565b6001600160a01b0390911660009081526005602081815260408084208054868652600684529185208290559282526001810183559183529091200155565b6001600160a01b038216611af9576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b611b02816114ff565b15611b54576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b600081815260016020908152604080832080546001600160a01b0319166001600160a01b038716908117909155835260039091529020611b9390611ecc565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600780546000838152600860205260408120829055600182018355919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880155565b611c1d8282611f1e565b611c27828261196b565b600081815260066020526040812055610d2481611ff5565b6000611c53846001600160a01b0316612091565b611c5f57506001611623565b600060606001600160a01b038616630a85bd0160e11b611c7d61151c565b89888860405160240180856001600160a01b03166001600160a01b03168152602001846001600160a01b03166001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611cf6578181015183820152602001611cde565b50505050905090810190601f168015611d235780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909a16999099178952518151919890975087965094509250829150849050835b60208310611d8b5780518252601f199092019160209182019101611d6c565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611ded576040519150601f19603f3d011682016040523d82523d6000602084013e611df2565b606091505b509150915081611e4357805115611e0c5780518082602001fd5b60405162461bcd60e51b815260040180806020018281038252603281526020018061220f6032913960400191505060405180910390fd5b6000818060200190516020811015611e5a57600080fd5b50516001600160e01b031916630a85bd0160e11b14935061162392505050565b6000818152600260205260409020546001600160a01b031615610db657600090815260026020526040902080546001600160a01b0319169055565b8054611ec890600163ffffffff611ed516565b9055565b80546001019055565b6000611f1783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506120ca565b9392505050565b816001600160a01b0316611f3182610e1f565b6001600160a01b031614611f765760405162461bcd60e51b815260040180806020018281038252602581526020018061249e6025913960400191505060405180910390fd5b611f7f81611e7a565b6001600160a01b0382166000908152600360205260409020611fa090611eb5565b60008181526001602052604080822080546001600160a01b0319169055518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60075460009061200c90600163ffffffff611ed516565b6000838152600860205260408120546007805493945090928490811061202e57fe5b90600052602060002001549050806007838154811061204957fe5b6000918252602080832090910192909255828152600890915260409020829055600780549061207c9060001983016121a5565b50505060009182525060086020526040812055565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611623575050151592915050565b600081848411156121595760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561211e578181015183820152602001612106565b50505050905090810190601f16801561214b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b50805460018160011615610100020316600290046000825580601f106121875750610db6565b601f016020900490600052602060002090810190610db691906121c5565b815481835581811115610c2157600083815260209020610c219181019083015b61096f91905b808211156121df57600081556001016121cb565b509056fe455243373231456e756d657261626c653a206f776e657220696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373444f45535f4e4f545f484156455f41444d494e5f4f525f434f4e54524f4c4c45525f524f4c454552433732313a207472616e7366657220746f20746865207a65726f20616464726573734552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c654552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572526f6c65733a206163636f756e7420697320746865207a65726f20616464726573734552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243373231456e756d657261626c653a20676c6f62616c20696e646578206f7574206f6620626f756e64734552433732313a206275726e206f6620746f6b656e2074686174206973206e6f74206f776ea265627a7a7231582002b0e818d8101eb2360be345a5c161e9a411da19289b64c9295de3eca1e4154464736f6c63430005110032526f6c65733a206163636f756e7420697320746865207a65726f2061646472657373000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000f4371bc0237311003ecbd691370abf8746218ce7000000000000000000000000000000000000000000000000000000000000000c6c6566742e67616c6c657279000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026c67000000000000000000000000000000000000000000000000000000000000

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000f4371bc0237311003ecbd691370abf8746218ce7000000000000000000000000000000000000000000000000000000000000000c6c6566742e67616c6c657279000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000026c67000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): left.gallery
Arg [1] : symbol (string): lg
Arg [2] : _metadata (address): 0xf4371bc0237311003ecBd691370aBf8746218Ce7

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000f4371bc0237311003ecbd691370abf8746218ce7
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [4] : 6c6566742e67616c6c6572790000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 6c67000000000000000000000000000000000000000000000000000000000000


Deployed ByteCode Sourcemap

68658:2210:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;68658:2210:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24893:167;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24893:167:0;-1:-1:-1;;;;;;24893:167:0;;:::i;:::-;;;;;;;;;;;;;;;;;;70589:276;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;70589:276:0;;;;;;;;;;;;;;;;;:::i;69707:142::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;69707:142:0;-1:-1:-1;;;;;69707:142:0;;:::i;:::-;;53787:85;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;53787:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29969:241;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29969:241:0;;:::i;:::-;;;;-1:-1:-1;;;;;29969:241:0;;;;;;;;;;;;;;29237:439;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;29237:439:0;;;;;;;;:::i;69976:173::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;69976:173:0;-1:-1:-1;;;;;69976:173:0;;:::i;45241:96::-;;;:::i;:::-;;;;;;;;;;;;;;;;31721:363;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;31721:363:0;;;;;;;;;;;;;;;;;:::i;44781:301::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;44781:301:0;;;;;;;;:::i;68796:23::-;;;:::i;69315:146::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;69315:146:0;;;;;;;;:::i;32746:168::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;32746:168:0;;;;;;;;;;;;;;;;;:::i;69469:111::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;69469:111:0;;:::i;45683:236::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;45683:236:0;;:::i;28541:265::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28541:265:0;;:::i;56120:91::-;;;:::i;69857:111::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;69857:111:0;-1:-1:-1;;;;;69857:111:0;;:::i;28067:248::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28067:248:0;-1:-1:-1;;;;;28067:248:0;;:::i;62221:140::-;;;:::i;61410:79::-;;;:::i;61776:94::-;;;:::i;53987:89::-;;;:::i;30511:254::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;30511:254:0;;;;;;;;;;:::i;33651:352::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;33651:352:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;33651:352:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;33651:352:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;33651:352:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;33651:352:0;;-1:-1:-1;33651:352:0;;-1:-1:-1;;;;;33651:352:0:i;69588:111::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;69588:111:0;-1:-1:-1;;;;;69588:111:0;;:::i;70157:178::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;70157:178:0;;:::i;31095:179::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;31095:179:0;;;;;;;;;;:::i;62516:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;62516:109:0;-1:-1:-1;;;;;62516:109:0;;:::i;68826:25::-;;;:::i;24893:167::-;-1:-1:-1;;;;;;25019:33:0;24990:4;25019:33;;;;;;;;;;;;;;24893:167::o;70589:276::-;70726:4;68927:23;:7;68939:10;68927:23;:11;:23;:::i;:::-;:51;;;-1:-1:-1;68968:10:0;;-1:-1:-1;;;;;68968:10:0;68954;:24;68927:51;68904:141;;;;-1:-1:-1;;;68904:141:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70762:39;;;-1:-1:-1;;;70762:39:0;;70795:4;70762:39;;;;;;-1:-1:-1;;;;;70762:24:0;;;;;:39;;;;;;;;;;;;;;:24;:39;;;5:2:-1;;;;30:1;27;20:12;5:2;70762:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;70762:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;70762:39:0;70751:50;;;70743:59;;;;;;70827:6;-1:-1:-1;;;;;70820:23:0;;70844:3;70849:7;70820:37;;;;;;;;;;;;;-1:-1:-1;;;;;70820:37:0;-1:-1:-1;;;;;70820:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;70820:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;70820:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;70820:37:0;;70589:276;-1:-1:-1;;;;70589:276:0:o;69707:142::-;68927:23;:7;68939:10;68927:23;:11;:23;:::i;:::-;:51;;;-1:-1:-1;68968:10:0;;-1:-1:-1;;;;;68968:10:0;68954;:24;68927:51;68904:141;;;;-1:-1:-1;;;68904:141:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69817:10;:24;;-1:-1:-1;;;;;;69817:24:0;-1:-1:-1;;;;;69817:24:0;;;;;;;;;;69707:142::o;53787:85::-;53859:5;53852:12;;;;;;;;-1:-1:-1;;53852:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53826:13;;53852:12;;53859:5;;53852:12;;53859:5;53852:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53787:85;;:::o;29969:241::-;30028:7;30070:16;30078:7;30070;:16::i;:::-;30048:110;;;;-1:-1:-1;;;30048:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30178:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;30178:24:0;;29969:241::o;29237:439::-;29301:13;29317:16;29325:7;29317;:16::i;:::-;29301:32;;29358:5;-1:-1:-1;;;;;29352:11:0;:2;-1:-1:-1;;;;;29352:11:0;;;29344:57;;;;-1:-1:-1;;;29344:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29452:5;-1:-1:-1;;;;;29436:21:0;:12;:10;:12::i;:::-;-1:-1:-1;;;;;29436:21:0;;:62;;;;29461:37;29478:5;29485:12;:10;:12::i;:::-;29461:16;:37::i;:::-;29414:168;;;;-1:-1:-1;;;29414:168:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29595:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;29595:29:0;-1:-1:-1;;;;;29595:29:0;;;;;;;;;29640:28;;29595:24;;29640:28;;;;;;;29237:439;;;:::o;69976:173::-;61622:9;:7;:9::i;:::-;61614:54;;;;;-1:-1:-1;;;61614:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;61614:54:0;;;;;;;;;;;;;;;70049:6;;70058:1;70049:6;;;;:10;70041:45;;;;;-1:-1:-1;;;70041:45:0;;;;;;;;;;;;-1:-1:-1;;;70041:45:0;;;;;;;;;;;;;;;70097:22;:7;70112:6;70097:22;:14;:22;:::i;:::-;-1:-1:-1;70130:6:0;:11;;-1:-1:-1;;70130:11:0;;;;;;-1:-1:-1;;70130:11:0;;;;;;;69976:173::o;45241:96::-;45312:10;:17;45241:96;:::o;31721:363::-;31913:41;31932:12;:10;:12::i;:::-;31946:7;31913:18;:41::i;:::-;31891:140;;;;-1:-1:-1;;;31891:140:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32044:32;32058:4;32064:2;32068:7;32044:13;:32::i;:::-;31721:363;;;:::o;44781:301::-;44888:7;44943:16;44953:5;44943:9;:16::i;:::-;44935:5;:24;44913:117;;;;-1:-1:-1;;;44913:117:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;45048:19:0;;;;;;:12;:19;;;;;:26;;45068:5;;45048:26;;;;;;;;;;;;;;45041:33;;44781:301;;;;:::o;68796:23::-;;;;;;-1:-1:-1;;;;;68796:23:0;;:::o;69315:146::-;68927:23;:7;68939:10;68927:23;:11;:23;:::i;:::-;:51;;;-1:-1:-1;68968:10:0;;-1:-1:-1;;;;;68968:10:0;68954;:24;68927:51;68904:141;;;;-1:-1:-1;;;68904:141:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69428:25;69434:9;69445:7;69428:5;:25::i;:::-;69315:146;;:::o;32746:168::-;32867:39;32884:4;32890:2;32894:7;32867:39;;;;;;;;;;;;:16;:39::i;69469:111::-;68927:23;:7;68939:10;68927:23;:11;:23;:::i;:::-;:51;;;-1:-1:-1;68968:10:0;;-1:-1:-1;;;;;68968:10:0;68954;:24;68927:51;68904:141;;;;-1:-1:-1;;;68904:141:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69540:32;69546:16;69554:7;69546;:16::i;:::-;69564:7;69540:5;:32::i;:::-;69469:111;:::o;45683:236::-;45741:7;45791:13;:11;:13::i;:::-;45783:5;:21;45761:115;;;;-1:-1:-1;;;45761:115:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45894:10;45905:5;45894:17;;;;;;;;;;;;;;;;45887:24;;45683:236;;;:::o;28541:265::-;28596:7;28632:20;;;:11;:20;;;;;;-1:-1:-1;;;;;28632:20:0;28685:19;28663:110;;;;-1:-1:-1;;;28663:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28793:5;28541:265;-1:-1:-1;;28541:265:0:o;56120:91::-;56195:8;56188:15;;;;;;;;-1:-1:-1;;56188:15:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56162:13;;56188:15;;56195:8;;56188:15;;56195:8;56188:15;;;;;;;;;;;;;;;;;;;;;;;;69857:111;61622:9;:7;:9::i;:::-;61614:54;;;;;-1:-1:-1;;;61614:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;61614:54:0;;;;;;;;;;;;;;;69919:19;:7;69931:6;69919:19;:11;:19;:::i;:::-;-1:-1:-1;69949:6:0;:11;;;;;;69959:1;69949:11;;-1:-1:-1;;69949:11:0;;;;;;69857:111::o;28067:248::-;28122:7;-1:-1:-1;;;;;28164:19:0;;28142:111;;;;-1:-1:-1;;;28142:111:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;28273:24:0;;;;;;:17;:24;;;;;:34;;:32;:34::i;62221:140::-;61622:9;:7;:9::i;:::-;61614:54;;;;;-1:-1:-1;;;61614:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;61614:54:0;;;;;;;;;;;;;;;62304:6;;62283:40;;62320:1;;-1:-1:-1;;;;;62304:6:0;;62283:40;;62320:1;;62283:40;62334:6;:19;;-1:-1:-1;;;;;;62334:19:0;;;62221:140::o;61410:79::-;61475:6;;-1:-1:-1;;;;;61475:6:0;61410:79;:::o;61776:94::-;61856:6;;61816:4;;-1:-1:-1;;;;;61856:6:0;61840:12;:10;:12::i;:::-;-1:-1:-1;;;;;61840:22:0;;61833:29;;61776:94;:::o;53987:89::-;54061:7;54054:14;;;;;;;;-1:-1:-1;;54054:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54028:13;;54054:14;;54061:7;;54054:14;;54061:7;54054:14;;;;;;;;;;;;;;;;;;;;;;;;30511:254;30597:12;:10;:12::i;:::-;-1:-1:-1;;;;;30591:18:0;:2;-1:-1:-1;;;;;30591:18:0;;;30583:56;;;;;-1:-1:-1;;;30583:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;30691:8;30652:18;:32;30671:12;:10;:12::i;:::-;-1:-1:-1;;;;;30652:32:0;;;;;;;;;;;;;;;;;-1:-1:-1;30652:32:0;;;:36;;;;;;;;;;;;:47;;-1:-1:-1;;30652:47:0;;;;;;;;;;;30730:12;:10;:12::i;:::-;30715:42;;;;;;;;;;-1:-1:-1;;;;;30715:42:0;;;;;;;;;;;;;;30511:254;;:::o;33651:352::-;33823:41;33842:12;:10;:12::i;:::-;33856:7;33823:18;:41::i;:::-;33801:140;;;;-1:-1:-1;;;33801:140:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33952:43;33970:4;33976:2;33980:7;33989:5;33952:17;:43::i;:::-;33651:352;;;;:::o;69588:111::-;68927:23;:7;68939:10;68927:23;:11;:23;:::i;:::-;:51;;;-1:-1:-1;68968:10:0;;-1:-1:-1;;;;;68968:10:0;68954;:24;68927:51;68904:141;;;;-1:-1:-1;;;68904:141:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69671:8;:20;;-1:-1:-1;;;;;69671:20:0;;;;;-1:-1:-1;;;;;;69671:20:0;;;;;;;;;69588:111::o;70157:178::-;70299:8;;70290:37;;;-1:-1:-1;;;70290:37:0;;;;;;;;;;70243:22;;70299:8;;;-1:-1:-1;;;;;70299:8:0;;70290:27;;:37;;;;;-1:-1:-1;;70290:37:0;;;;;;;70299:8;70290:37;;;5:2:-1;;;;30:1;27;20:12;5:2;70290:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;70290:37:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;70290:37:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;13:2;5:11;;2:2;;;29:1;26;19:12;2:2;70290:37:0;;;;;;;;;;;;;19:11:-1;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;261:11;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;372:25;;-1:-1;70290:37:0;;420:4:-1;411:14;;;;70290:37:0;;;;;411:14:-1;70290:37:0;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;70290:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70283:44;;70157:178;;;:::o;31095:179::-;-1:-1:-1;;;;;31231:25:0;;;31202:4;31231:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;31095:179::o;62516:109::-;61622:9;:7;:9::i;:::-;61614:54;;;;;-1:-1:-1;;;61614:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;61614:54:0;;;;;;;;;;;;;;;62589:28;62608:8;62589:18;:28::i;68826:25::-;;;-1:-1:-1;;;;;68826:25:0;;:::o;63880:235::-;63979:4;-1:-1:-1;;;;;64009:21:0;;64001:68;;;;-1:-1:-1;;;64001:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;64087:20:0;:11;:20;;;;;;;;;;;;;;;63880:235::o;35276:155::-;35333:4;35366:20;;;:11;:20;;;;;;-1:-1:-1;;;;;35366:20:0;35404:19;;;35276:155::o;8619:98::-;8699:10;8619:98;:::o;63602:183::-;63682:18;63686:4;63692:7;63682:3;:18::i;:::-;63674:64;;;;-1:-1:-1;;;63674:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;63749:20:0;63772:5;63749:20;;;;;;;;;;;:28;;-1:-1:-1;;63749:28:0;;;63602:183::o;35801:428::-;35913:4;35957:16;35965:7;35957;:16::i;:::-;35935:110;;;;-1:-1:-1;;;35935:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36056:13;36072:16;36080:7;36072;:16::i;:::-;36056:32;;36118:5;-1:-1:-1;;;;;36107:16:0;:7;-1:-1:-1;;;;;36107:16:0;;:64;;;;36164:7;-1:-1:-1;;;;;36140:31:0;:20;36152:7;36140:11;:20::i;:::-;-1:-1:-1;;;;;36140:31:0;;36107:64;:113;;;;36188:32;36205:5;36212:7;36188:16;:32::i;:::-;36099:122;35801:428;-1:-1:-1;;;;35801:428:0:o;46303:279::-;46423:38;46443:4;46449:2;46453:7;46423:19;:38::i;:::-;46474:47;46507:4;46513:7;46474:32;:47::i;:::-;46534:40;46562:2;46566:7;46534:27;:40::i;46847:202::-;46911:24;46923:2;46927:7;46911:11;:24::i;:::-;46948:40;46976:2;46980:7;46948:27;:40::i;:::-;47001;47033:7;47001:31;:40::i;56513:247::-;56580:27;56592:5;56599:7;56580:11;:27::i;:::-;56666:19;;;;:10;:19;;;;;56660:33;;-1:-1:-1;;56660:33:0;;;;;;;;;;;:38;56656:97;;56722:19;;;;:10;:19;;;;;56715:26;;;:::i;63344:178::-;63422:18;63426:4;63432:7;63422:3;:18::i;:::-;63421:19;63413:63;;;;;-1:-1:-1;;;63413:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;63487:20:0;:11;:20;;;;;;;;;;;:27;;-1:-1:-1;;63487:27:0;63510:4;63487:27;;;63344:178::o;23471:114::-;23563:14;;23471:114::o;34722:352::-;34875:32;34889:4;34895:2;34899:7;34875:13;:32::i;:::-;34940:48;34963:4;34969:2;34973:7;34982:5;34940:22;:48::i;:::-;34918:148;;;;-1:-1:-1;;;34918:148:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62731:266;-1:-1:-1;;;;;62819:22:0;;62797:110;;;;-1:-1:-1;;;62797:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62944:6;;62923:38;;-1:-1:-1;;;;;62923:38:0;;;;62944:6;;62923:38;;62944:6;;62923:38;62972:6;:17;;-1:-1:-1;;;;;;62972:17:0;-1:-1:-1;;;;;62972:17:0;;;;;;;;;;62731:266::o;39700:530::-;39862:4;-1:-1:-1;;;;;39842:24:0;:16;39850:7;39842;:16::i;:::-;-1:-1:-1;;;;;39842:24:0;;39820:115;;;;-1:-1:-1;;;39820:115:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;39954:16:0;;39946:65;;;;-1:-1:-1;;;39946:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40024:23;40039:7;40024:14;:23::i;:::-;-1:-1:-1;;;;;40060:23:0;;;;;;:17;:23;;;;;:35;;:33;:35::i;:::-;-1:-1:-1;;;;;40106:21:0;;;;;;:17;:21;;;;;:33;;:31;:33::i;:::-;40152:20;;;;:11;:20;;;;;;:25;;-1:-1:-1;;;;;;40152:25:0;-1:-1:-1;;;;;40152:25:0;;;;;;;;;40195:27;;40152:20;;40195:27;;;;;;;39700:530;;;:::o;49554:1162::-;-1:-1:-1;;;;;49859:18:0;;49834:22;49859:18;;;:12;:18;;;;;:25;:32;;49889:1;49859:32;:29;:32;:::i;:::-;49902:18;49923:26;;;:17;:26;;;;;;49834:57;;-1:-1:-1;50056:28:0;;;50052:328;;-1:-1:-1;;;;;50123:18:0;;50101:19;50123:18;;;:12;:18;;;;;:34;;50142:14;;50123:34;;;;;;;;;;;;;;50101:56;;50207:11;50174:12;:18;50187:4;-1:-1:-1;;;;;50174:18:0;-1:-1:-1;;;;;50174:18:0;;;;;;;;;;;;50193:10;50174:30;;;;;;;;;;;;;;;;;;;:44;;;;50291:30;;;:17;:30;;;;;:43;;;50052:328;-1:-1:-1;;;;;50469:18:0;;;;;;:12;:18;;;;;:27;;;;;-1:-1:-1;;50469:27:0;;;:::i;:::-;;49554:1162;;;;:::o;48376:186::-;-1:-1:-1;;;;;48490:16:0;;;;;;;:12;:16;;;;;;;;:23;;48461:26;;;:17;:26;;;;;:52;;;48524:16;;;39:1:-1;23:18;;45:23;;48524:30:0;;;;;;;;48376:186::o;38052:335::-;-1:-1:-1;;;;;38124:16:0;;38116:61;;;;;-1:-1:-1;;;38116:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38197:16;38205:7;38197;:16::i;:::-;38196:17;38188:58;;;;;-1:-1:-1;;;38188:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;38259:20;;;;:11;:20;;;;;;;;:25;;-1:-1:-1;;;;;;38259:25:0;-1:-1:-1;;;;;38259:25:0;;;;;;;;38295:21;;:17;:21;;;;;:33;;:31;:33::i;:::-;38346;;38371:7;;-1:-1:-1;;;;;38346:33:0;;;38363:1;;38346:33;;38363:1;;38346:33;38052:335;;:::o;48763:164::-;48867:10;:17;;48840:24;;;;:15;:24;;;;;:44;;;39:1:-1;23:18;;45:23;;48895:24:0;;;;;;;48763:164::o;47333:372::-;47400:27;47412:5;47419:7;47400:11;:27::i;:::-;47440:48;47473:5;47480:7;47440:32;:48::i;:::-;47638:1;47609:26;;;:17;:26;;;;;:30;47652:45;47627:7;47652:36;:45::i;40882:1201::-;41038:4;41060:15;:2;-1:-1:-1;;;;;41060:13:0;;:15::i;:::-;41055:60;;-1:-1:-1;41099:4:0;41092:11;;41055:60;41186:12;41200:23;-1:-1:-1;;;;;41240:7:0;;-1:-1:-1;;;41379:12:0;:10;:12::i;:::-;41414:4;41441:7;41471:5;41266:229;;;;;;-1:-1:-1;;;;;41266:229:0;-1:-1:-1;;;;;41266:229:0;;;;;;-1:-1:-1;;;;;41266:229:0;-1:-1:-1;;;;;41266:229:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;41266:229:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41266:229:0;;;-1:-1:-1;;26:21;;;22:32;6:49;;41266:229:0;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;;;;41266:229:0;;;179:29:-1;;;;160:49;;41240:270:0;;;41266:229;;41240:270;;-1:-1:-1;41240:270:0;;-1:-1:-1;25:18;-1:-1;41240:270:0;-1:-1:-1;41240:270:0;;-1:-1:-1;41240:270:0;;-1:-1:-1;25:18;36:153;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;41240:270:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;41185:325:0;;;;41526:7;41521:555;;41554:17;;:21;41550:384;;41722:10;41716:17;41783:15;41770:10;41766:2;41762:19;41755:44;41670:148;41858:60;;-1:-1:-1;;;41858:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41521:555;41966:13;41993:10;41982:32;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;41982:32:0;-1:-1:-1;;;;;;42037:26:0;-1:-1:-1;;;42037:26:0;;-1:-1:-1;42029:35:0;;-1:-1:-1;;;42029:35:0;42251:175;42351:1;42315:24;;;:15;:24;;;;;;-1:-1:-1;;;;;42315:24:0;:38;42311:108;;42405:1;42370:24;;;:15;:24;;;;;:37;;-1:-1:-1;;;;;;42370:37:0;;;42251:175::o;23782:110::-;23863:14;;:21;;23882:1;23863:21;:18;:21;:::i;:::-;23846:38;;23782:110::o;23593:181::-;23747:19;;23765:1;23747:19;;;23593:181::o;14867:136::-;14925:7;14952:43;14956:1;14959;14952:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;14945:50;14867:136;-1:-1:-1;;;14867:136:0:o;38664:370::-;38773:5;-1:-1:-1;;;;;38753:25:0;:16;38761:7;38753;:16::i;:::-;-1:-1:-1;;;;;38753:25:0;;38731:112;;;;-1:-1:-1;;;38731:112:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38856:23;38871:7;38856:14;:23::i;:::-;-1:-1:-1;;;;;38892:24:0;;;;;;:17;:24;;;;;:36;;:34;:36::i;:::-;38970:1;38939:20;;;:11;:20;;;;;;:33;;-1:-1:-1;;;;;;38939:33:0;;;38990:36;38951:7;;38970:1;-1:-1:-1;;;;;38990:36:0;;;;;38970:1;;38990:36;38664:370;;:::o;51011:1082::-;51289:10;:17;51264:22;;51289:24;;51311:1;51289:24;:21;:24;:::i;:::-;51324:18;51345:24;;;:15;:24;;;;;;51718:10;:26;;51264:49;;-1:-1:-1;51345:24:0;;51264:49;;51718:26;;;;;;;;;;;;;;51696:48;;51782:11;51757:10;51768;51757:22;;;;;;;;;;;;;;;;;;;:36;;;;51862:28;;;:15;:28;;;;;;:41;;;52027:10;:19;;;;;-1:-1:-1;;52027:19:0;;;:::i;:::-;-1:-1:-1;;;52084:1:0;52057:24;;;-1:-1:-1;52057:15:0;:24;;;;;:28;51011:1082::o;19886:654::-;19946:4;20440:20;;20270:66;20489:23;;;;;;:42;;-1:-1:-1;;20516:15:0;;;20481:51;-1:-1:-1;;19886:654:0:o;15340:226::-;15460:7;15496:12;15488:6;;;;15480:29;;;;-1:-1:-1;;;15480:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;15480:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;15532:5:0;;;15340:226::o;68658:2210::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

bzzr://02b0e818d8101eb2360be345a5c161e9a411da19289b64c9295de3eca1e41544
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.