ETH Price: $2,507.55 (-0.12%)

Token

Disco District (DISCO)
 

Overview

Max Total Supply

516 DISCO

Holders

515

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 DISCO
0x6866a6a28129839f67da069ceb68ad258830363e
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
DiscoERC721

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 13 : DiscoERC721.sol
//SPDX-License-Identifier: MIT
pragma solidity 0.8.15;

import { Strings } from "@openzeppelin/contracts/utils/Strings.sol";
import { Base64 } from "base64-sol/base64.sol";
import { ERC721 } from "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import { AccessControl } from "@openzeppelin/contracts/access/AccessControl.sol";

contract DiscoERC721 is ERC721, AccessControl {
  using Strings for uint256;
  bytes32 public constant MINTER_BURNER_ROLE = keccak256("MINTER_BURNER_ROLE");

  // Private
  uint256 private _idCounter = 0;
  uint256 private _numberOfImages;
  string private _baseTokenURI;
  ContractURI private _contractURI;

  struct ContractURI {
    string name;
    string description;
    string image;
    string externalLink;
    string sellerFeeBasisPoints;
    string feeRecipient;
  }

  mapping(address => uint256) private _tokenOwner;

  /// @notice Map to track tokenId to block timestamp when minted
  mapping(uint256 => uint256) public _tokenIdToTimestamp;

  constructor(
    string memory name,
    string memory symbol,
    string memory _baseTokenURI_,
    ContractURI memory _contractURI_,
    address admin,
    uint256 _numberOfImages_
  ) ERC721(name, symbol) {
    _idCounter++;
    _baseTokenURI = _baseTokenURI_;
    _contractURI = _contractURI_;
    _numberOfImages = _numberOfImages_;
    _setupRole(DEFAULT_ADMIN_ROLE, admin);
  }

  /* ===================================================================================== */
  /* External Functions                                                                    */
  /* ===================================================================================== */

  function totalSupply() external view returns (uint256) {
    return _idCounter - 1;
  }

  /**
   * @notice Mints a new token to the given address
   * @param to address - Address to mint to`
   */
  function mint(address to) external {
    require(hasRole(MINTER_BURNER_ROLE, _msgSender()), "DiscoERC721:unauthorized");
    unchecked {
      uint256 nextId = _idCounter++;
      _tokenOwner[to] = nextId;
      _tokenIdToTimestamp[nextId] = block.timestamp;
      _mint(to, nextId);
    }
  }

  /**
   * @notice Burns a token
   * @param tokenId uint256 - Token ID to burn
   */
  function burn(uint256 tokenId) external {
    require(hasRole(MINTER_BURNER_ROLE, _msgSender()), "DiscoERC721:unauthorized");
    _burn(tokenId);
  }

  /**
   * @notice Grants the MINTER_BURNER_ROLE to the given address
   * @param _minterBurner address - Address to grant the role to
   */
  function grantMinterBurnerRole(address _minterBurner) public {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "DiscoERC721:unauthorized");
    grantRole(MINTER_BURNER_ROLE, _minterBurner);
  }

  /**
   * @notice Revokes the MINTER_BURNER_ROLE from the given address
   * @param _minterBurner address - Address to revoke the role from
   */
  function revokeMinterBurner(address _minterBurner) public {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "DiscoERC721:unauthorized");
    revokeRole(MINTER_BURNER_ROLE, _minterBurner);
  }

  function supportsInterface(bytes4 interfaceId)
    public
    view
    virtual
    override(ERC721, AccessControl)
    returns (bool)
  {
    return super.supportsInterface(interfaceId);
  }

  function setBaseURI(string memory baseURI_) external {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "DiscoERC721:unauthorized");
    _baseTokenURI = baseURI_;
  }

  /**
   * @notice Override: returns the the tokens uri metadata based on the timestamp minted
   */
  function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
    // _requireMinted(tokenId);
    // get the image id based on the minted timestamp - +1 since tokenid starts at 1
    uint256 imageId = (_tokenIdToTimestamp[tokenId] % _numberOfImages) + 1;
    string memory baseURI = _baseURI();
    return
      bytes(baseURI).length > 0
        ? string(abi.encodePacked(baseURI, imageId.toString(), ".json"))
        : "";
  }

  function contractURI() external view returns (string memory uri) {
    return
      string(
        abi.encodePacked(
          "data:application/json;base64,",
          Base64.encode(
            bytes(
              string.concat(
                '{"name":',
                '"',
                _contractURI.name,
                '",',
                '"description":',
                '"',
                _contractURI.description,
                '",',
                '"image":',
                '"',
                _contractURI.image,
                '",',
                '"externalLink":',
                '"',
                _contractURI.externalLink,
                '",',
                '"sellerFeeBasisPoints":',
                '"',
                _contractURI.sellerFeeBasisPoints,
                '",',
                '"feeRecipient":',
                '"',
                _contractURI.feeRecipient,
                '"',
                "}"
              )
            )
          )
        )
      );
  }

  function transferAdmin(address account) external {
    grantRole(DEFAULT_ADMIN_ROLE, account);
    renounceRole(DEFAULT_ADMIN_ROLE, _msgSender());
  }

  /* ===================================================================================== */
  /* Internal Functions                                                                    */
  /* ===================================================================================== */

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

File 2 of 13 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 13 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 5 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 13 of 13 : base64.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0;

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides functions for encoding/decoding base64
library Base64 {
    string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    bytes  internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000"
                                            hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000"
                                            hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000"
                                            hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000";

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';

        // load the table into memory
        string memory table = TABLE_ENCODE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
                // read 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // write 4 characters
                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(        input,  0x3F))))
                resultPtr := add(resultPtr, 1)
            }

            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }

        return result;
    }

    function decode(string memory _data) internal pure returns (bytes memory) {
        bytes memory data = bytes(_data);

        if (data.length == 0) return new bytes(0);
        require(data.length % 4 == 0, "invalid base64 decoder input");

        // load the table into memory
        bytes memory table = TABLE_DECODE;

        // every 4 characters represent 3 bytes
        uint256 decodedLen = (data.length / 4) * 3;

        // add some extra buffer at the end required for the writing
        bytes memory result = new bytes(decodedLen + 32);

        assembly {
            // padding with '='
            let lastBytes := mload(add(data, mload(data)))
            if eq(and(lastBytes, 0xFF), 0x3d) {
                decodedLen := sub(decodedLen, 1)
                if eq(and(lastBytes, 0xFFFF), 0x3d3d) {
                    decodedLen := sub(decodedLen, 1)
                }
            }

            // set the actual output length
            mstore(result, decodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 4 characters at a time
            for {} lt(dataPtr, endPtr) {}
            {
               // read 4 characters
               dataPtr := add(dataPtr, 4)
               let input := mload(dataPtr)

               // write 3 bytes
               let output := add(
                   add(
                       shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)),
                       shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))),
                   add(
                       shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)),
                               and(mload(add(tablePtr, and(        input , 0xFF))), 0xFF)
                    )
                )
                mstore(resultPtr, shl(232, output))
                resultPtr := add(resultPtr, 3)
            }
        }

        return result;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"_baseTokenURI_","type":"string"},{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"image","type":"string"},{"internalType":"string","name":"externalLink","type":"string"},{"internalType":"string","name":"sellerFeeBasisPoints","type":"string"},{"internalType":"string","name":"feeRecipient","type":"string"}],"internalType":"struct DiscoERC721.ContractURI","name":"_contractURI_","type":"tuple"},{"internalType":"address","name":"admin","type":"address"},{"internalType":"uint256","name":"_numberOfImages_","type":"uint256"}],"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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_BURNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_tokenIdToTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minterBurner","type":"address"}],"name":"grantMinterBurnerRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minterBurner","type":"address"}],"name":"revokeMinterBurner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"transferAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260006007553480156200001657600080fd5b50604051620028603803806200286083398101604081905262000039916200041d565b8585600062000049838262000580565b50600162000058828262000580565b505060078054915060006200006d836200064c565b909155506009905062000081858262000580565b5082518390600a90819062000097908262000580565b5060208201516001820190620000ae908262000580565b5060408201516002820190620000c5908262000580565b5060608201516003820190620000dc908262000580565b5060808201516004820190620000f3908262000580565b5060a082015160058201906200010a908262000580565b50505060088190556200011f6000836200012b565b50505050505062000674565b6200013782826200013b565b5050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16620001375760008281526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200019b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b03811182821017156200021a576200021a620001df565b60405290565b604051601f8201601f191681016001600160401b03811182821017156200024b576200024b620001df565b604052919050565b600082601f8301126200026557600080fd5b81516001600160401b03811115620002815762000281620001df565b602062000297601f8301601f1916820162000220565b8281528582848701011115620002ac57600080fd5b60005b83811015620002cc578581018301518282018401528201620002af565b83811115620002de5760008385840101525b5095945050505050565b600060c08284031215620002fb57600080fd5b62000305620001f5565b82519091506001600160401b03808211156200032057600080fd5b6200032e8583860162000253565b835260208401519150808211156200034557600080fd5b620003538583860162000253565b602084015260408401519150808211156200036d57600080fd5b6200037b8583860162000253565b604084015260608401519150808211156200039557600080fd5b620003a38583860162000253565b60608401526080840151915080821115620003bd57600080fd5b620003cb8583860162000253565b608084015260a0840151915080821115620003e557600080fd5b50620003f48482850162000253565b60a08301525092915050565b80516001600160a01b03811681146200041857600080fd5b919050565b60008060008060008060c087890312156200043757600080fd5b86516001600160401b03808211156200044f57600080fd5b6200045d8a838b0162000253565b975060208901519150808211156200047457600080fd5b620004828a838b0162000253565b965060408901519150808211156200049957600080fd5b620004a78a838b0162000253565b95506060890151915080821115620004be57600080fd5b50620004cd89828a01620002e8565b935050620004de6080880162000400565b915060a087015190509295509295509295565b600181811c908216806200050657607f821691505b6020821081036200052757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200057b57600081815260208120601f850160051c81016020861015620005565750805b601f850160051c820191505b81811015620005775782815560010162000562565b5050505b505050565b81516001600160401b038111156200059c576200059c620001df565b620005b481620005ad8454620004f1565b846200052d565b602080601f831160018114620005ec5760008415620005d35750858301515b600019600386901b1c1916600185901b17855562000577565b600085815260208120601f198616915b828110156200061d57888601518255948401946001909101908401620005fc565b50858210156200063c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000600182016200066d57634e487b7160e01b600052601160045260246000fd5b5060010190565b6121dc80620006846000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c806370a0823111610104578063a217fddf116100a2578063c87b56dd11610071578063c87b56dd146103ec578063d547741f146103ff578063e8a3d48514610412578063e985e9c51461041a57600080fd5b8063a217fddf1461039e578063a22cb465146103a6578063b646a0e3146103b9578063b88d4fde146103d957600080fd5b8063879455c7116100de578063879455c71461035d57806391d148541461037057806395d89b4114610383578063994e75d11461038b57600080fd5b806370a082311461032257806372c328601461033557806375829def1461034a57600080fd5b80632f2ff15d1161017157806342966c681161014b57806342966c68146102d657806355f804b3146102e95780636352211e146102fc5780636a6278421461030f57600080fd5b80632f2ff15d1461029d57806336568abe146102b057806342842e0e146102c357600080fd5b8063095ea7b3116101ad578063095ea7b31461023c57806318160ddd1461025157806323b872dd14610267578063248a9ca31461027a57600080fd5b806301ffc9a7146101d457806306fdde03146101fc578063081812fc14610211575b600080fd5b6101e76101e23660046117ee565b610456565b60405190151581526020015b60405180910390f35b610204610467565b6040516101f39190611863565b61022461021f366004611876565b6104f9565b6040516001600160a01b0390911681526020016101f3565b61024f61024a3660046118ab565b610520565b005b61025961063a565b6040519081526020016101f3565b61024f6102753660046118d5565b610650565b610259610288366004611876565b60009081526006602052604090206001015490565b61024f6102ab366004611911565b610681565b61024f6102be366004611911565b6106a6565b61024f6102d13660046118d5565b610724565b61024f6102e4366004611876565b61073f565b61024f6102f73660046119c9565b61077f565b61022461030a366004611876565b6107b2565b61024f61031d366004611a12565b610812565b610259610330366004611a12565b610886565b61025960008051602061218783398151915281565b61024f610358366004611a12565b61090c565b61024f61036b366004611a12565b610922565b6101e761037e366004611911565b610961565b61020461098c565b61024f610399366004611a12565b61099b565b610259600081565b61024f6103b4366004611a2d565b6109da565b6102596103c7366004611876565b60116020526000908152604090205481565b61024f6103e7366004611a69565b6109e5565b6102046103fa366004611876565b610a1d565b61024f61040d366004611911565b610aa5565b610204610aca565b6101e7610428366004611ae5565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600061046182610b2a565b92915050565b60606000805461047690611b0f565b80601f01602080910402602001604051908101604052809291908181526020018280546104a290611b0f565b80156104ef5780601f106104c4576101008083540402835291602001916104ef565b820191906000526020600020905b8154815290600101906020018083116104d257829003601f168201915b5050505050905090565b600061050482610b4f565b506000908152600460205260409020546001600160a01b031690565b600061052b826107b2565b9050806001600160a01b0316836001600160a01b03160361059d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806105b957506105b98133610428565b61062b5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610594565b6106358383610bae565b505050565b6000600160075461064b9190611b5f565b905090565b61065a3382610c1c565b6106765760405162461bcd60e51b815260040161059490611b76565b610635838383610c9a565b60008281526006602052604090206001015461069c81610e36565b6106358383610e40565b6001600160a01b03811633146107165760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610594565b6107208282610ec6565b5050565b610635838383604051806020016040528060008152506109e5565b61075760008051602061218783398151915233610961565b6107735760405162461bcd60e51b815260040161059490611bc4565b61077c81610f2d565b50565b61078a600033610961565b6107a65760405162461bcd60e51b815260040161059490611bc4565b60096107208282611c49565b6000818152600260205260408120546001600160a01b0316806104615760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610594565b61082a60008051602061218783398151915233610961565b6108465760405162461bcd60e51b815260040161059490611bc4565b60078054600181019091556001600160a01b0382166000908152601060209081526040808320849055838352601190915290204290556107208282610fc8565b60006001600160a01b0382166108f05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610594565b506001600160a01b031660009081526003602052604090205490565b610917600082610681565b61077c6000336106a6565b61092d600033610961565b6109495760405162461bcd60e51b815260040161059490611bc4565b61077c60008051602061218783398151915282610681565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606001805461047690611b0f565b6109a6600033610961565b6109c25760405162461bcd60e51b815260040161059490611bc4565b61077c60008051602061218783398151915282610aa5565b61072033838361110a565b6109ef3383610c1c565b610a0b5760405162461bcd60e51b815260040161059490611b76565b610a17848484846111d8565b50505050565b600854600082815260116020526040812054606092610a3b91611d1f565b610a46906001611d33565b90506000610a5261120b565b90506000815111610a725760405180602001604052806000815250610a9d565b80610a7c8361121a565b604051602001610a8d929190611d4b565b6040516020818303038152906040525b949350505050565b600082815260066020526040902060010154610ac081610e36565b6106358383610ec6565b604051606090610b0690610af290600a90600b90600c90600d90600e90600f90602001611dfd565b60405160208183030381529060405261131b565b604051602001610b169190611f67565b604051602081830303815290604052905090565b60006001600160e01b03198216637965db0b60e01b1480610461575061046182611480565b6000818152600260205260409020546001600160a01b031661077c5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610594565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610be3826107b2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080610c28836107b2565b9050806001600160a01b0316846001600160a01b03161480610c6f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80610a9d5750836001600160a01b0316610c88846104f9565b6001600160a01b031614949350505050565b826001600160a01b0316610cad826107b2565b6001600160a01b031614610d115760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610594565b6001600160a01b038216610d735760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610594565b610d7e600082610bae565b6001600160a01b0383166000908152600360205260408120805460019290610da7908490611b5f565b90915550506001600160a01b0382166000908152600360205260408120805460019290610dd5908490611d33565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61077c81336114d0565b610e4a8282610961565b6107205760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610e823390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610ed08282610961565b156107205760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610f38826107b2565b9050610f45600083610bae565b6001600160a01b0381166000908152600360205260408120805460019290610f6e908490611b5f565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b03821661101e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610594565b6000818152600260205260409020546001600160a01b0316156110835760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610594565b6001600160a01b03821660009081526003602052604081208054600192906110ac908490611d33565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b03160361116b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610594565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6111e3848484610c9a565b6111ef84848484611534565b610a175760405162461bcd60e51b815260040161059490611fac565b60606009805461047690611b0f565b6060816000036112415750506040805180820190915260018152600360fc1b602082015290565b8160005b811561126b578061125581611ffe565b91506112649050600a83612017565b9150611245565b60008167ffffffffffffffff8111156112865761128661193d565b6040519080825280601f01601f1916602001820160405280156112b0576020820181803683370190505b5090505b8415610a9d576112c5600183611b5f565b91506112d2600a86611d1f565b6112dd906030611d33565b60f81b8183815181106112f2576112f261202b565b60200101906001600160f81b031916908160001a905350611314600a86612017565b94506112b4565b6060815160000361133a57505060408051602081019091526000815290565b600060405180606001604052806040815260200161214760409139905060006003845160026113699190611d33565b6113739190612017565b61137e906004612041565b9050600061138d826020611d33565b67ffffffffffffffff8111156113a5576113a561193d565b6040519080825280601f01601f1916602001820160405280156113cf576020820181803683370190505b509050818152600183018586518101602084015b8183101561143b576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016113e3565b600389510660018114611455576002811461146657611472565b613d3d60f01b600119830152611472565b603d60f81b6000198301525b509398975050505050505050565b60006001600160e01b031982166380ac58cd60e01b14806114b157506001600160e01b03198216635b5e139f60e01b145b8061046157506301ffc9a760e01b6001600160e01b0319831614610461565b6114da8282610961565b610720576114f2816001600160a01b03166014611635565b6114fd836020611635565b60405160200161150e929190612060565b60408051601f198184030181529082905262461bcd60e51b825261059491600401611863565b60006001600160a01b0384163b1561162a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906115789033908990889088906004016120d5565b6020604051808303816000875af19250505080156115b3575060408051601f3d908101601f191682019092526115b091810190612112565b60015b611610573d8080156115e1576040519150601f19603f3d011682016040523d82523d6000602084013e6115e6565b606091505b5080516000036116085760405162461bcd60e51b815260040161059490611fac565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610a9d565b506001949350505050565b60606000611644836002612041565b61164f906002611d33565b67ffffffffffffffff8111156116675761166761193d565b6040519080825280601f01601f191660200182016040528015611691576020820181803683370190505b509050600360fc1b816000815181106116ac576116ac61202b565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106116db576116db61202b565b60200101906001600160f81b031916908160001a90535060006116ff846002612041565b61170a906001611d33565b90505b6001811115611782576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061173e5761173e61202b565b1a60f81b8282815181106117545761175461202b565b60200101906001600160f81b031916908160001a90535060049490941c9361177b8161212f565b905061170d565b5083156117d15760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610594565b9392505050565b6001600160e01b03198116811461077c57600080fd5b60006020828403121561180057600080fd5b81356117d1816117d8565b60005b8381101561182657818101518382015260200161180e565b83811115610a175750506000910152565b6000815180845261184f81602086016020860161180b565b601f01601f19169290920160200192915050565b6020815260006117d16020830184611837565b60006020828403121561188857600080fd5b5035919050565b80356001600160a01b03811681146118a657600080fd5b919050565b600080604083850312156118be57600080fd5b6118c78361188f565b946020939093013593505050565b6000806000606084860312156118ea57600080fd5b6118f38461188f565b92506119016020850161188f565b9150604084013590509250925092565b6000806040838503121561192457600080fd5b823591506119346020840161188f565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561196e5761196e61193d565b604051601f8501601f19908116603f011681019082821181831017156119965761199661193d565b816040528093508581528686860111156119af57600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156119db57600080fd5b813567ffffffffffffffff8111156119f257600080fd5b8201601f81018413611a0357600080fd5b610a9d84823560208401611953565b600060208284031215611a2457600080fd5b6117d18261188f565b60008060408385031215611a4057600080fd5b611a498361188f565b915060208301358015158114611a5e57600080fd5b809150509250929050565b60008060008060808587031215611a7f57600080fd5b611a888561188f565b9350611a966020860161188f565b925060408501359150606085013567ffffffffffffffff811115611ab957600080fd5b8501601f81018713611aca57600080fd5b611ad987823560208401611953565b91505092959194509250565b60008060408385031215611af857600080fd5b611b018361188f565b91506119346020840161188f565b600181811c90821680611b2357607f821691505b602082108103611b4357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611b7157611b71611b49565b500390565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b60208082526018908201527f446973636f4552433732313a756e617574686f72697a65640000000000000000604082015260600190565b601f82111561063557600081815260208120601f850160051c81016020861015611c225750805b601f850160051c820191505b81811015611c4157828155600101611c2e565b505050505050565b815167ffffffffffffffff811115611c6357611c6361193d565b611c7781611c718454611b0f565b84611bfb565b602080601f831160018114611cac5760008415611c945750858301515b600019600386901b1c1916600185901b178555611c41565b600085815260208120601f198616915b82811015611cdb57888601518255948401946001909101908401611cbc565b5085821015611cf95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601260045260246000fd5b600082611d2e57611d2e611d09565b500690565b60008219821115611d4657611d46611b49565b500190565b60008351611d5d81846020880161180b565b835190830190611d7181836020880161180b565b64173539b7b760d91b9101908152600501949350505050565b60008154611d9781611b0f565b60018281168015611daf5760018114611dc457611df3565b60ff1984168752821515830287019450611df3565b8560005260208060002060005b85811015611dea5781548a820152908401908201611dd1565b50505082870194505b5050505092915050565b673d913730b6b2911d60c11b8152601160f91b60088201526000611e246009830189611d8a565b61088b60f21b81526002611e4a8183016d113232b9b1b934b83a34b7b7111d60911b9052565b601160f91b6010830152611e61601183018a611d8a565b61088b60f21b81529150671134b6b0b3b2911d60c11b82820152601160f91b600a830152611e92600b830189611d8a565b61088b60f21b815291506e1132bc3a32b93730b62634b735911d60891b82820152601160f91b6011830152611eca6012830188611d8a565b61088b60f21b815291507f2273656c6c65724665654261736973506f696e7473223a00000000000000000082820152601160f91b6019830152611f10601a830187611d8a565b61088b60f21b815291506e113332b2a932b1b4b834b2b73a111d60891b82820152601160f91b6011830152611f486012830186611d8a565b601160f91b8152607d60f81b6001820152019998505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251611f9f81601d85016020870161180b565b91909101601d0192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006001820161201057612010611b49565b5060010190565b60008261202657612026611d09565b500490565b634e487b7160e01b600052603260045260246000fd5b600081600019048311821515161561205b5761205b611b49565b500290565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161209881601785016020880161180b565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516120c981602884016020880161180b565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061210890830184611837565b9695505050505050565b60006020828403121561212457600080fd5b81516117d1816117d8565b60008161213e5761213e611b49565b50600019019056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fcfd53186d792f1ec9d0679afc2dc3ffc86fc31fe1e0f342b838eb6c3eade62b3a2646970667358221220b947d02502bc80836aa1e3fe012aa082e6c1d9033505190381cf85ecd4c0ba2564736f6c634300080f003300000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000002258a593f8c35c3634de17fd5e9320e00d699264000000000000000000000000000000000000000000000000000000000000004b000000000000000000000000000000000000000000000000000000000000000f20446973636f20446973747269637400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005444953434f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f697066732e696f2f697066732f516d5a6578576657475a57436d73625932465570384e384376535a655952753375634a37347757583138415a69702f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000004c000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000540000000000000000000000000000000000000000000000000000000000000000e446973636f2044697374726963740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000326446973636f204469737472696374206973206120636f6c6c61626f7261746976652070726f6f662d6f662d636f6e63657074206265747765656e20446973636f2e78797a20616e64204469737472696374204c6162732e20546865206c696d697465642065646974696f6e20446973636f204469737472696374204e46547320696e74726f647563652061206e6f76656c20617070726f61636820746f20696d706c656d656e74696e6720736d61727420636f6e7472616374732e20446973636f204469737472696374204e4654732063616e206f6e6c79206265206d696e7465642062792074686520686f6c64657273206f6620616e206f66662d636861696e204f6666696369616c20446973636f6e6175742063726564656e7469616c2077686963682063616e206265206561726e6564206166746572206f6e626f617264696e67206f6e746f20446973636f2e78797a2e20446973636f2044697374726963742073686f777320686f7720457468657265756d2061707020646576656c6f706572732063616e206275696c6420616e64206465706c6f79206f6e2d636861696e206c6f67696320746861742063616e2062652067617465642074686520766572696669636174696f6e206f66206f66662d636861696e2072657075746174696f6e20776869636820726570726573656e74732061207374657020666f727761726420666f72207468652065636f73797374656d2077697468207265737065637420746f2074686520636f6e6365707473206f66206964656e746974792c2072657075746174696f6e2c207072697661637920616e642073656375726974792e20546f206c6561726e206d6f726520706c6561736520636865636b6f7574206f75742061206d6f726520657874656e7369766520627265616b646f776e206f6620746869732070726f6f662d6f662d636f6e63657074206865726520646973636f2e64697374726963746c6162732e636f6d2e20416e64206265207375726520746f20636865636b6f757420446973636f20617420646973636f2e78797a20616e64204469737472696374204c6162732061742064697374726963746c6162732e636f6d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d525a38366a6d485363466d3934686f454432466d4236536a717075414367793656594e356e546962787753420000000000000000000000000000000000000000000000000000000000000000000000000000000000001168747470733a2f2f646973636f2e78797a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a30783030303030303030303030303030303030303030303030303030303030303030303030303030303000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c806370a0823111610104578063a217fddf116100a2578063c87b56dd11610071578063c87b56dd146103ec578063d547741f146103ff578063e8a3d48514610412578063e985e9c51461041a57600080fd5b8063a217fddf1461039e578063a22cb465146103a6578063b646a0e3146103b9578063b88d4fde146103d957600080fd5b8063879455c7116100de578063879455c71461035d57806391d148541461037057806395d89b4114610383578063994e75d11461038b57600080fd5b806370a082311461032257806372c328601461033557806375829def1461034a57600080fd5b80632f2ff15d1161017157806342966c681161014b57806342966c68146102d657806355f804b3146102e95780636352211e146102fc5780636a6278421461030f57600080fd5b80632f2ff15d1461029d57806336568abe146102b057806342842e0e146102c357600080fd5b8063095ea7b3116101ad578063095ea7b31461023c57806318160ddd1461025157806323b872dd14610267578063248a9ca31461027a57600080fd5b806301ffc9a7146101d457806306fdde03146101fc578063081812fc14610211575b600080fd5b6101e76101e23660046117ee565b610456565b60405190151581526020015b60405180910390f35b610204610467565b6040516101f39190611863565b61022461021f366004611876565b6104f9565b6040516001600160a01b0390911681526020016101f3565b61024f61024a3660046118ab565b610520565b005b61025961063a565b6040519081526020016101f3565b61024f6102753660046118d5565b610650565b610259610288366004611876565b60009081526006602052604090206001015490565b61024f6102ab366004611911565b610681565b61024f6102be366004611911565b6106a6565b61024f6102d13660046118d5565b610724565b61024f6102e4366004611876565b61073f565b61024f6102f73660046119c9565b61077f565b61022461030a366004611876565b6107b2565b61024f61031d366004611a12565b610812565b610259610330366004611a12565b610886565b61025960008051602061218783398151915281565b61024f610358366004611a12565b61090c565b61024f61036b366004611a12565b610922565b6101e761037e366004611911565b610961565b61020461098c565b61024f610399366004611a12565b61099b565b610259600081565b61024f6103b4366004611a2d565b6109da565b6102596103c7366004611876565b60116020526000908152604090205481565b61024f6103e7366004611a69565b6109e5565b6102046103fa366004611876565b610a1d565b61024f61040d366004611911565b610aa5565b610204610aca565b6101e7610428366004611ae5565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600061046182610b2a565b92915050565b60606000805461047690611b0f565b80601f01602080910402602001604051908101604052809291908181526020018280546104a290611b0f565b80156104ef5780601f106104c4576101008083540402835291602001916104ef565b820191906000526020600020905b8154815290600101906020018083116104d257829003601f168201915b5050505050905090565b600061050482610b4f565b506000908152600460205260409020546001600160a01b031690565b600061052b826107b2565b9050806001600160a01b0316836001600160a01b03160361059d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806105b957506105b98133610428565b61062b5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610594565b6106358383610bae565b505050565b6000600160075461064b9190611b5f565b905090565b61065a3382610c1c565b6106765760405162461bcd60e51b815260040161059490611b76565b610635838383610c9a565b60008281526006602052604090206001015461069c81610e36565b6106358383610e40565b6001600160a01b03811633146107165760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610594565b6107208282610ec6565b5050565b610635838383604051806020016040528060008152506109e5565b61075760008051602061218783398151915233610961565b6107735760405162461bcd60e51b815260040161059490611bc4565b61077c81610f2d565b50565b61078a600033610961565b6107a65760405162461bcd60e51b815260040161059490611bc4565b60096107208282611c49565b6000818152600260205260408120546001600160a01b0316806104615760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610594565b61082a60008051602061218783398151915233610961565b6108465760405162461bcd60e51b815260040161059490611bc4565b60078054600181019091556001600160a01b0382166000908152601060209081526040808320849055838352601190915290204290556107208282610fc8565b60006001600160a01b0382166108f05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610594565b506001600160a01b031660009081526003602052604090205490565b610917600082610681565b61077c6000336106a6565b61092d600033610961565b6109495760405162461bcd60e51b815260040161059490611bc4565b61077c60008051602061218783398151915282610681565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b60606001805461047690611b0f565b6109a6600033610961565b6109c25760405162461bcd60e51b815260040161059490611bc4565b61077c60008051602061218783398151915282610aa5565b61072033838361110a565b6109ef3383610c1c565b610a0b5760405162461bcd60e51b815260040161059490611b76565b610a17848484846111d8565b50505050565b600854600082815260116020526040812054606092610a3b91611d1f565b610a46906001611d33565b90506000610a5261120b565b90506000815111610a725760405180602001604052806000815250610a9d565b80610a7c8361121a565b604051602001610a8d929190611d4b565b6040516020818303038152906040525b949350505050565b600082815260066020526040902060010154610ac081610e36565b6106358383610ec6565b604051606090610b0690610af290600a90600b90600c90600d90600e90600f90602001611dfd565b60405160208183030381529060405261131b565b604051602001610b169190611f67565b604051602081830303815290604052905090565b60006001600160e01b03198216637965db0b60e01b1480610461575061046182611480565b6000818152600260205260409020546001600160a01b031661077c5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610594565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610be3826107b2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080610c28836107b2565b9050806001600160a01b0316846001600160a01b03161480610c6f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80610a9d5750836001600160a01b0316610c88846104f9565b6001600160a01b031614949350505050565b826001600160a01b0316610cad826107b2565b6001600160a01b031614610d115760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610594565b6001600160a01b038216610d735760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610594565b610d7e600082610bae565b6001600160a01b0383166000908152600360205260408120805460019290610da7908490611b5f565b90915550506001600160a01b0382166000908152600360205260408120805460019290610dd5908490611d33565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61077c81336114d0565b610e4a8282610961565b6107205760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610e823390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610ed08282610961565b156107205760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610f38826107b2565b9050610f45600083610bae565b6001600160a01b0381166000908152600360205260408120805460019290610f6e908490611b5f565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b03821661101e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610594565b6000818152600260205260409020546001600160a01b0316156110835760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610594565b6001600160a01b03821660009081526003602052604081208054600192906110ac908490611d33565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b03160361116b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610594565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6111e3848484610c9a565b6111ef84848484611534565b610a175760405162461bcd60e51b815260040161059490611fac565b60606009805461047690611b0f565b6060816000036112415750506040805180820190915260018152600360fc1b602082015290565b8160005b811561126b578061125581611ffe565b91506112649050600a83612017565b9150611245565b60008167ffffffffffffffff8111156112865761128661193d565b6040519080825280601f01601f1916602001820160405280156112b0576020820181803683370190505b5090505b8415610a9d576112c5600183611b5f565b91506112d2600a86611d1f565b6112dd906030611d33565b60f81b8183815181106112f2576112f261202b565b60200101906001600160f81b031916908160001a905350611314600a86612017565b94506112b4565b6060815160000361133a57505060408051602081019091526000815290565b600060405180606001604052806040815260200161214760409139905060006003845160026113699190611d33565b6113739190612017565b61137e906004612041565b9050600061138d826020611d33565b67ffffffffffffffff8111156113a5576113a561193d565b6040519080825280601f01601f1916602001820160405280156113cf576020820181803683370190505b509050818152600183018586518101602084015b8183101561143b576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016113e3565b600389510660018114611455576002811461146657611472565b613d3d60f01b600119830152611472565b603d60f81b6000198301525b509398975050505050505050565b60006001600160e01b031982166380ac58cd60e01b14806114b157506001600160e01b03198216635b5e139f60e01b145b8061046157506301ffc9a760e01b6001600160e01b0319831614610461565b6114da8282610961565b610720576114f2816001600160a01b03166014611635565b6114fd836020611635565b60405160200161150e929190612060565b60408051601f198184030181529082905262461bcd60e51b825261059491600401611863565b60006001600160a01b0384163b1561162a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906115789033908990889088906004016120d5565b6020604051808303816000875af19250505080156115b3575060408051601f3d908101601f191682019092526115b091810190612112565b60015b611610573d8080156115e1576040519150601f19603f3d011682016040523d82523d6000602084013e6115e6565b606091505b5080516000036116085760405162461bcd60e51b815260040161059490611fac565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610a9d565b506001949350505050565b60606000611644836002612041565b61164f906002611d33565b67ffffffffffffffff8111156116675761166761193d565b6040519080825280601f01601f191660200182016040528015611691576020820181803683370190505b509050600360fc1b816000815181106116ac576116ac61202b565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106116db576116db61202b565b60200101906001600160f81b031916908160001a90535060006116ff846002612041565b61170a906001611d33565b90505b6001811115611782576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061173e5761173e61202b565b1a60f81b8282815181106117545761175461202b565b60200101906001600160f81b031916908160001a90535060049490941c9361177b8161212f565b905061170d565b5083156117d15760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610594565b9392505050565b6001600160e01b03198116811461077c57600080fd5b60006020828403121561180057600080fd5b81356117d1816117d8565b60005b8381101561182657818101518382015260200161180e565b83811115610a175750506000910152565b6000815180845261184f81602086016020860161180b565b601f01601f19169290920160200192915050565b6020815260006117d16020830184611837565b60006020828403121561188857600080fd5b5035919050565b80356001600160a01b03811681146118a657600080fd5b919050565b600080604083850312156118be57600080fd5b6118c78361188f565b946020939093013593505050565b6000806000606084860312156118ea57600080fd5b6118f38461188f565b92506119016020850161188f565b9150604084013590509250925092565b6000806040838503121561192457600080fd5b823591506119346020840161188f565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561196e5761196e61193d565b604051601f8501601f19908116603f011681019082821181831017156119965761199661193d565b816040528093508581528686860111156119af57600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156119db57600080fd5b813567ffffffffffffffff8111156119f257600080fd5b8201601f81018413611a0357600080fd5b610a9d84823560208401611953565b600060208284031215611a2457600080fd5b6117d18261188f565b60008060408385031215611a4057600080fd5b611a498361188f565b915060208301358015158114611a5e57600080fd5b809150509250929050565b60008060008060808587031215611a7f57600080fd5b611a888561188f565b9350611a966020860161188f565b925060408501359150606085013567ffffffffffffffff811115611ab957600080fd5b8501601f81018713611aca57600080fd5b611ad987823560208401611953565b91505092959194509250565b60008060408385031215611af857600080fd5b611b018361188f565b91506119346020840161188f565b600181811c90821680611b2357607f821691505b602082108103611b4357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611b7157611b71611b49565b500390565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b60208082526018908201527f446973636f4552433732313a756e617574686f72697a65640000000000000000604082015260600190565b601f82111561063557600081815260208120601f850160051c81016020861015611c225750805b601f850160051c820191505b81811015611c4157828155600101611c2e565b505050505050565b815167ffffffffffffffff811115611c6357611c6361193d565b611c7781611c718454611b0f565b84611bfb565b602080601f831160018114611cac5760008415611c945750858301515b600019600386901b1c1916600185901b178555611c41565b600085815260208120601f198616915b82811015611cdb57888601518255948401946001909101908401611cbc565b5085821015611cf95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601260045260246000fd5b600082611d2e57611d2e611d09565b500690565b60008219821115611d4657611d46611b49565b500190565b60008351611d5d81846020880161180b565b835190830190611d7181836020880161180b565b64173539b7b760d91b9101908152600501949350505050565b60008154611d9781611b0f565b60018281168015611daf5760018114611dc457611df3565b60ff1984168752821515830287019450611df3565b8560005260208060002060005b85811015611dea5781548a820152908401908201611dd1565b50505082870194505b5050505092915050565b673d913730b6b2911d60c11b8152601160f91b60088201526000611e246009830189611d8a565b61088b60f21b81526002611e4a8183016d113232b9b1b934b83a34b7b7111d60911b9052565b601160f91b6010830152611e61601183018a611d8a565b61088b60f21b81529150671134b6b0b3b2911d60c11b82820152601160f91b600a830152611e92600b830189611d8a565b61088b60f21b815291506e1132bc3a32b93730b62634b735911d60891b82820152601160f91b6011830152611eca6012830188611d8a565b61088b60f21b815291507f2273656c6c65724665654261736973506f696e7473223a00000000000000000082820152601160f91b6019830152611f10601a830187611d8a565b61088b60f21b815291506e113332b2a932b1b4b834b2b73a111d60891b82820152601160f91b6011830152611f486012830186611d8a565b601160f91b8152607d60f81b6001820152019998505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251611f9f81601d85016020870161180b565b91909101601d0192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006001820161201057612010611b49565b5060010190565b60008261202657612026611d09565b500490565b634e487b7160e01b600052603260045260246000fd5b600081600019048311821515161561205b5761205b611b49565b500290565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161209881601785016020880161180b565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516120c981602884016020880161180b565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061210890830184611837565b9695505050505050565b60006020828403121561212457600080fd5b81516117d1816117d8565b60008161213e5761213e611b49565b50600019019056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fcfd53186d792f1ec9d0679afc2dc3ffc86fc31fe1e0f342b838eb6c3eade62b3a2646970667358221220b947d02502bc80836aa1e3fe012aa082e6c1d9033505190381cf85ecd4c0ba2564736f6c634300080f0033

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

00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000002258a593f8c35c3634de17fd5e9320e00d699264000000000000000000000000000000000000000000000000000000000000004b000000000000000000000000000000000000000000000000000000000000000f20446973636f20446973747269637400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005444953434f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004468747470733a2f2f697066732e696f2f697066732f516d5a6578576657475a57436d73625932465570384e384376535a655952753375634a37347757583138415a69702f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000004c000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000540000000000000000000000000000000000000000000000000000000000000000e446973636f2044697374726963740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000326446973636f204469737472696374206973206120636f6c6c61626f7261746976652070726f6f662d6f662d636f6e63657074206265747765656e20446973636f2e78797a20616e64204469737472696374204c6162732e20546865206c696d697465642065646974696f6e20446973636f204469737472696374204e46547320696e74726f647563652061206e6f76656c20617070726f61636820746f20696d706c656d656e74696e6720736d61727420636f6e7472616374732e20446973636f204469737472696374204e4654732063616e206f6e6c79206265206d696e7465642062792074686520686f6c64657273206f6620616e206f66662d636861696e204f6666696369616c20446973636f6e6175742063726564656e7469616c2077686963682063616e206265206561726e6564206166746572206f6e626f617264696e67206f6e746f20446973636f2e78797a2e20446973636f2044697374726963742073686f777320686f7720457468657265756d2061707020646576656c6f706572732063616e206275696c6420616e64206465706c6f79206f6e2d636861696e206c6f67696320746861742063616e2062652067617465642074686520766572696669636174696f6e206f66206f66662d636861696e2072657075746174696f6e20776869636820726570726573656e74732061207374657020666f727761726420666f72207468652065636f73797374656d2077697468207265737065637420746f2074686520636f6e6365707473206f66206964656e746974792c2072657075746174696f6e2c207072697661637920616e642073656375726974792e20546f206c6561726e206d6f726520706c6561736520636865636b6f7574206f75742061206d6f726520657874656e7369766520627265616b646f776e206f6620746869732070726f6f662d6f662d636f6e63657074206865726520646973636f2e64697374726963746c6162732e636f6d2e20416e64206265207375726520746f20636865636b6f757420446973636f20617420646973636f2e78797a20616e64204469737472696374204c6162732061742064697374726963746c6162732e636f6d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d525a38366a6d485363466d3934686f454432466d4236536a717075414367793656594e356e546962787753420000000000000000000000000000000000000000000000000000000000000000000000000000000000001168747470733a2f2f646973636f2e78797a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a30783030303030303030303030303030303030303030303030303030303030303030303030303030303000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Disco District
Arg [1] : symbol (string): DISCO
Arg [2] : _baseTokenURI_ (string): https://ipfs.io/ipfs/QmZexWfWGZWCmsbY2FUp8N8CvSZeYRu3ucJ74wWX18AZip/
Arg [3] : _contractURI_ (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [4] : admin (address): 0x2258A593F8C35C3634dE17Fd5E9320e00d699264
Arg [5] : _numberOfImages_ (uint256): 75

-----Encoded View---------------
59 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [4] : 0000000000000000000000002258a593f8c35c3634de17fd5e9320e00d699264
Arg [5] : 000000000000000000000000000000000000000000000000000000000000004b
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [7] : 20446973636f2044697374726963740000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [9] : 444953434f000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000044
Arg [11] : 68747470733a2f2f697066732e696f2f697066732f516d5a6578576657475a57
Arg [12] : 436d73625932465570384e384376535a655952753375634a3734775758313841
Arg [13] : 5a69702f00000000000000000000000000000000000000000000000000000000
Arg [14] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000460
Arg [17] : 00000000000000000000000000000000000000000000000000000000000004c0
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000500
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000540
Arg [20] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [21] : 446973636f204469737472696374000000000000000000000000000000000000
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000326
Arg [23] : 446973636f204469737472696374206973206120636f6c6c61626f7261746976
Arg [24] : 652070726f6f662d6f662d636f6e63657074206265747765656e20446973636f
Arg [25] : 2e78797a20616e64204469737472696374204c6162732e20546865206c696d69
Arg [26] : 7465642065646974696f6e20446973636f204469737472696374204e46547320
Arg [27] : 696e74726f647563652061206e6f76656c20617070726f61636820746f20696d
Arg [28] : 706c656d656e74696e6720736d61727420636f6e7472616374732e2044697363
Arg [29] : 6f204469737472696374204e4654732063616e206f6e6c79206265206d696e74
Arg [30] : 65642062792074686520686f6c64657273206f6620616e206f66662d63686169
Arg [31] : 6e204f6666696369616c20446973636f6e6175742063726564656e7469616c20
Arg [32] : 77686963682063616e206265206561726e6564206166746572206f6e626f6172
Arg [33] : 64696e67206f6e746f20446973636f2e78797a2e20446973636f204469737472
Arg [34] : 6963742073686f777320686f7720457468657265756d2061707020646576656c
Arg [35] : 6f706572732063616e206275696c6420616e64206465706c6f79206f6e2d6368
Arg [36] : 61696e206c6f67696320746861742063616e2062652067617465642074686520
Arg [37] : 766572696669636174696f6e206f66206f66662d636861696e20726570757461
Arg [38] : 74696f6e20776869636820726570726573656e74732061207374657020666f72
Arg [39] : 7761726420666f72207468652065636f73797374656d20776974682072657370
Arg [40] : 65637420746f2074686520636f6e6365707473206f66206964656e746974792c
Arg [41] : 2072657075746174696f6e2c207072697661637920616e642073656375726974
Arg [42] : 792e20546f206c6561726e206d6f726520706c6561736520636865636b6f7574
Arg [43] : 206f75742061206d6f726520657874656e7369766520627265616b646f776e20
Arg [44] : 6f6620746869732070726f6f662d6f662d636f6e636570742068657265206469
Arg [45] : 73636f2e64697374726963746c6162732e636f6d2e20416e6420626520737572
Arg [46] : 6520746f20636865636b6f757420446973636f20617420646973636f2e78797a
Arg [47] : 20616e64204469737472696374204c6162732061742064697374726963746c61
Arg [48] : 62732e636f6d0000000000000000000000000000000000000000000000000000
Arg [49] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [50] : 697066733a2f2f516d525a38366a6d485363466d3934686f454432466d423653
Arg [51] : 6a717075414367793656594e356e546962787753420000000000000000000000
Arg [52] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [53] : 68747470733a2f2f646973636f2e78797a000000000000000000000000000000
Arg [54] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [55] : 3000000000000000000000000000000000000000000000000000000000000000
Arg [56] : 000000000000000000000000000000000000000000000000000000000000002a
Arg [57] : 3078303030303030303030303030303030303030303030303030303030303030
Arg [58] : 3030303030303030303000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.