Contract 0x4a42FdF6F33226c03d68292De8113c96E78850Ab

 
 
Txn Hash
Method
Block
From
To
Value
0x30e71d612e20b734bef1bc356af96abe36d778fdaa13d628de647a621eb8ee37Safe Transfer Fr...159794542022-11-16 1:57:3510 days 23 hrs ago0x4e76c12e0f153967a42894d8c32e476ff1f70a5e IN  0x4a42fdf6f33226c03d68292de8113c96e78850ab0 Ether0.00099443 16.43636235
0xa6af191d7d3bee81d6d6bff0637d321e07ae4705eabe8a99f487b355d3eb305bSet Approval For...157909752022-10-20 18:02:4737 days 7 hrs agoENS Name graslo.eth IN  0x4a42fdf6f33226c03d68292de8113c96e78850ab0 Ether0.00174789 37.85954379
0x9970a340b42f943b1703139362fa317129a16426a6b39a5d67a6db49912b70b0Safe Transfer Fr...155979542022-09-23 18:52:1164 days 6 hrs ago0xf90b371c0368b3f5a2a047d771e6740f0b37b30a IN  0x4a42fdf6f33226c03d68292de8113c96e78850ab0 Ether0.00056532 9.34197199
0x2fb2a62b8cef5a40030b73ce80d9e7c3aa6f8e65b376b78f5e0de9987c0c7d98Set Approval For...155930942022-09-23 2:35:2364 days 22 hrs agoENS Name graslo.eth IN  0x4a42fdf6f33226c03d68292de8113c96e78850ab0 Ether0.00031398 6.81340608
0xcbf0e4921a5f8535ea828470a54c3fecba3133277c1e1b091c5514bc79564f10Set Approval For...155807482022-09-21 9:02:2366 days 16 hrs agoENS Name niftys.eth IN  0x4a42fdf6f33226c03d68292de8113c96e78850ab0 Ether0.00017609 3.82125724
0x74901abaf7bc8b56196e22a93c1aec8ac061c5a916d45f9b81862889be0d133dRenounce Role155807242022-09-21 8:57:1166 days 16 hrs agoENS Name niftys.eth IN  0x4a42fdf6f33226c03d68292de8113c96e78850ab0 Ether0.00009079 3.63544197
0xdffc93f511212795faf3defffd1f7417d19b4fc246ca925a513221014aad1833Mint Batch155807232022-09-21 8:56:4766 days 16 hrs agoENS Name niftys.eth IN  0x4a42fdf6f33226c03d68292de8113c96e78850ab0 Ether0.00047465 3.77578816
0x7c74d220941c0661312b63361dcd1ce4f8e09c9280ce8388a1134f2a30fa59c5Grant Role155807212022-09-21 8:56:2366 days 16 hrs agoENS Name niftys.eth IN  0x4a42fdf6f33226c03d68292de8113c96e78850ab0 Ether0.00020009 3.89056497
0x2d508002782a7b3f51455f2d9f01bc2def6c138148ed0ad71a4aa9a0d3ba2810Set Contract URI155805702022-09-21 8:24:3566 days 16 hrs agoENS Name niftys.eth IN  0x4a42fdf6f33226c03d68292de8113c96e78850ab0 Ether0.00052054 4.52807349
0x6ef4cfa7b3f9fb7b2829932bbd6648ae29b3105bcc264ce857085603a932996eSet Base URI155805702022-09-21 8:24:3566 days 16 hrs agoENS Name niftys.eth IN  0x4a42fdf6f33226c03d68292de8113c96e78850ab0 Ether0.0005206 4.52807349
0x23a1c48c0c21113ce2c27a1b907b0c518858958e5c183c6e313110256ed166c70x60806040155805682022-09-21 8:24:1166 days 16 hrs agoENS Name niftys.eth IN  Create: Tweety0 Ether0.01537338 4.68481613
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Tweety

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 400 runs

Other Settings:
default evmVersion
File 1 of 21 : Tweety.sol
// SPDX-License-Identifier: MIT

import '../../NiftysERC721.sol';
import '../../utils/NiftysDefaultOperators.sol';

pragma solidity ^0.8.0;

/**
  _______                _         
 |__   __|              | |        
    | |_      _____  ___| |_ _   _ 
    | \ \ /\ / / _ \/ _ \ __| | | |
    | |\ V  V /  __/  __/ |_| |_| |
    |_| \_/\_/ \___|\___|\__|\__, |
                              __/ |
                             |___/ 
*/

contract Tweety is NiftysERC721, NiftysDefaultOperators {
    constructor(
        string memory name,
        string memory symbol,
        string memory baseURI,
        address recipient,
        uint24 value,
        address admin,
        address operator,
        address relay
    ) NiftysERC721(name, symbol, baseURI, baseURI, recipient, value, admin) {
        _setupDefaultOperator(operator);
        grantRole(MINTER, relay);
    }

    function globalRevokeDefaultOperator() public isAdmin {
        _globalRevokeDefaultOperator();
    }

    function isApprovedForAll(address owner, address operator) public view override(ERC721) returns (bool) {
        return (isDefaultOperatorFor(owner, operator) || super.isApprovedForAll(owner, operator));
    }
}

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

import './utils/NiftysAccessControl.sol';
import './utils/NiftysMetadataERC721.sol';
import './royalties/NiftysContractWideRoyalties.sol';

import '@openzeppelin/contracts/token/ERC721/ERC721.sol';

import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol';

error MaxIssuanceSet();
error MaxIssuanceReached();
error NonceAlreadyUsed();
error MintAuthorizationExpired();
error ArrayLengthMismatch();
error Unauthorized();

abstract contract NiftysERC721 is
    ERC721,
    NiftysMetadataERC721,
    NiftysContractWideRoyalties,
    NiftysAccessControl
{
    using ECDSA for bytes32;

    uint256 public maxIssuance;

    mapping(bytes32 => bool) public nonces;

    constructor(
        string memory name,
        string memory symbol,
        string memory baseTokenURI,
        string memory contractURI,
        address royaltyrecipient,
        uint24 royaltyvalue,
        address owner
    ) ERC721(name, symbol) NiftysAccessControl(owner) {
        _setBaseURI(baseTokenURI);
        _setContractURI(contractURI);
        _setRoyalties(royaltyrecipient, royaltyvalue);
    }

    function setMaxIssuance(uint256 _maxIssuance) external isAdmin {
        if (maxIssuance > 0) revert MaxIssuanceSet();
        maxIssuance = _maxIssuance;
    }

    function setRoyalties(address recipient, uint24 value) external isAdmin {
        _setRoyalties(recipient, value);
    }

    function setContractURI(string memory contractURI) external isAdmin {
        _setContractURI(contractURI);
    }

    function setBaseURI(string memory uri) external isAdmin {
        _setBaseURI(uri);
    }

    function setTokenURI(uint256 tokenId, string memory tokenURI_) external isAdmin {
        _setTokenURI(tokenId, tokenURI_);
    }

    function burn(uint256 tokenId) public {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            'ERC721Burnable: caller is not owner nor approved'
        );
        _burn(tokenId);
    }

    function getContractHash() public view returns (bytes32) {
        return keccak256(abi.encode(block.chainid, address(this)));
    }

    function hashMintData(
        address to,
        uint256 id,
        bytes32 nonce,
        uint256 expires
    ) public view returns (bytes32) {
        return keccak256(abi.encode(getContractHash(), abi.encode(to, id, nonce, expires)));
    }

    function validateSignature(
        address to,
        uint256 id,
        bytes32 nonce,
        uint256 expires,
        bytes memory sig
    ) internal view returns (bool) {
        address signer = hashMintData(to, id, nonce, expires).toEthSignedMessageHash().recover(sig);
        return hasRole(SIGNER, signer);
    }

    function mint(address to, uint256 id) external isMinter whenNotPaused {
        _mint(to, id);
    }

    function mintBatch(address[] calldata tos, uint256[] calldata ids)
        external
        isMinter
        whenNotPaused
    {
        _mintBatch(tos, ids);
    }

    function _mintBatch(address[] calldata tos, uint256[] calldata ids) internal {
        if (tos.length != ids.length) revert ArrayLengthMismatch();

        unchecked {
            for (uint256 i = 0; i < tos.length; i++) {
                _mint(tos[i], ids[i]);
            }
        }
    }

    function authorizedMint(
        address to,
        uint256 id,
        bytes32 nonce,
        uint256 expires,
        bytes memory sig
    ) external whenNotPaused {
        if (validateSignature(to, id, nonce, expires, sig) == false) revert Unauthorized();
        if (expires < block.timestamp) revert MintAuthorizationExpired();
        if (nonces[nonce]) revert NonceAlreadyUsed();

        nonces[nonce] = true;
        _mint(to, id);
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override(ERC721, NiftysMetadataERC721)
        returns (string memory)
    {
        return super.tokenURI(tokenId);
    }

    function _baseURI()
        internal
        view
        virtual
        override(ERC721, NiftysMetadataERC721)
        returns (string memory)
    {
        return super._baseURI();
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721, NiftysContractWideRoyalties, NiftysAccessControl)
        returns (bool)
    {
        return
            interfaceId == type(NiftysContractWideRoyalties).interfaceId ||
            interfaceId == type(NiftysMetadataERC721).interfaceId ||
            interfaceId == type(NiftysAccessControl).interfaceId ||
            super.supportsInterface(interfaceId);
    }
}

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

import '@openzeppelin/contracts/utils/Context.sol';

abstract contract NiftysDefaultOperators is Context {
    address private _defaultOperator;

    error DefaultOperatorExists();

    event DefaultOperatorRevoked(address operator, address user);

    // For each account, a mapping of its operators and revoked default operators.
    mapping(address => mapping(address => bool)) private _revokedDefaultOperators;

    /**
     * @dev Sets `_defaultOperator` to `account`.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the default operator for the system.
     *
     * Using this function in any other way is effectively circumventing the
     * sequrity of the system
     * ====
     */
    function _setupDefaultOperator(address account) internal virtual {
        if (_defaultOperator != address(0)) revert DefaultOperatorExists();
        _defaultOperator = account;
    }

    function _globalRevokeDefaultOperator() internal virtual {
        _defaultOperator = address(0);
    }

    function defaultOperator() public view virtual returns (address) {
        return _defaultOperator;
    }

    function isDefaultOperatorFor(address tokenHolder, address operator)
        public
        view
        virtual
        returns (bool)
    {
        return _defaultOperator == operator && !_revokedDefaultOperators[tokenHolder][operator];
    }

    function revokeDefaultOperator() public virtual {
        _revokedDefaultOperators[_msgSender()][_defaultOperator] = true;
        emit DefaultOperatorRevoked(_defaultOperator, _msgSender());
    }
}

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

import '@openzeppelin/contracts/access/AccessControl.sol';
import '@openzeppelin/contracts/security/Pausable.sol';

abstract contract NiftysAccessControl is AccessControl, Pausable {
    address private _owner;

    bytes32 public constant ADMIN = keccak256('ADMIN');
    bytes32 public constant MINTER = keccak256('Minter');
    bytes32 public constant SIGNER = keccak256('SIGNER');

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

    modifier isAdmin() {
        require(hasRole(ADMIN, _msgSender()), 'sender must have the ADMIN role');
        _;
    }

    modifier isMinter() {
        require(hasRole(MINTER, _msgSender()), 'sender must have the MINT role');
        _;
    }

    modifier isGlobalAdmin() {
        require(
            hasRole(DEFAULT_ADMIN_ROLE, _msgSender()),
            'sender must hae the DEFAULT ADMIN ROLE'
        );
        _;
    }

    constructor(address globalAdmin) {
        if (_msgSender() != globalAdmin) {
            _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
            _setupRole(ADMIN, _msgSender());
        }
        _setupRole(DEFAULT_ADMIN_ROLE, globalAdmin);
        _setupRole(ADMIN, globalAdmin);

        _setOwner(_msgSender());
    }

    function pause() public isGlobalAdmin {
        _pause();
    }

    function unpause() public isGlobalAdmin {
        _unpause();
    }

    /**
     * @dev Ownership is
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual isAdmin {
        require(newOwner != address(0), 'Ownable: new owner is the zero address');
        _setOwner(newOwner);
    }

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

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(AccessControl)
        returns (bool)
    {
        return
            interfaceId == type(AccessControl).interfaceId ||
            interfaceId == type(Pausable).interfaceId ||
            super.supportsInterface(interfaceId);
    }
}

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

import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/token/ERC721/ERC721.sol';

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract NiftysMetadataERC721 is ERC721 {
    using Strings for uint256;
    mapping(uint256 => string) private _tokenURIs;

    string private _uri;
    string private _contractURI;

    function contractURI() public view virtual returns (string memory) {
        return _contractURI;
    }

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

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), 'ERC721URIStorage: URI query for nonexistent token');

        string memory _tokenURI = _tokenURIs[tokenId];

        // If token has optional URI mapping, return it
        if (bytes(_tokenURI).length > 0) return _tokenURI;

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_uri` as the uri
     *
     */
    function _setBaseURI(string memory uri) internal virtual {
        _uri = uri;
    }

    /**
     * @dev Sets `_contractURI` as the contractURI
     *
     */
    function _setContractURI(string memory contractURI_) internal virtual {
        _contractURI = contractURI_;
    }

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

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

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

/// @dev This is a contract used to add ERC2981 support to ERC721, 721A, 1155
/// @dev This implementation has the same royalties for each and every tokens
abstract contract NiftysContractWideRoyalties is ERC2981Base {
    uint256 public constant ROYALTY_FEE_DENOMINATOR = 100000;

    RoyaltyInfo private _royalties;

    /// @dev Sets token royalties
    /// @param recipient recipient of the royalties
    /// @param value percentage (10000 = 10%, 0 = 0)
    function _setRoyalties(address recipient, uint24 value) internal {
        require(value <= ROYALTY_FEE_DENOMINATOR, 'ERC2981Royalties: Too high');
        _royalties = RoyaltyInfo(recipient, uint24(value));
        emit RoyaltyFeeChanged(recipient, value);
    }

    /// @inheritdoc	IERC2981Royalties
    function royaltyInfo(uint256, uint256 value)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        RoyaltyInfo memory royalties = _royalties;
        receiver = royalties.recipient;
        royaltyAmount = (value * royalties.amount) / ROYALTY_FEE_DENOMINATOR;
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC2981Base)
        returns (bool)
    {
        return interfaceId == type(ERC2981Base).interfaceId || super.supportsInterface(interfaceId);
    }

    function royaltyWallet() public view returns (address) {
        return _royalties.recipient;
    }

    function royaltyFee() public view returns (uint24) {
        return _royalties.amount;
    }

    event RoyaltyFeeChanged(address recipient, uint24 royalty);
}

File 7 of 21 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 8 of 21 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 9 of 21 : AccessControl.sol
// SPDX-License-Identifier: MIT

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, _msgSender());
        _;
    }

    /**
     * @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 override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @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 {
        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 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.
     */
    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.
     */
    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 granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    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.
     *
     * [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}.
     * ====
     */
    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);
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 10 of 21 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 11 of 21 : IAccessControl.sol
// SPDX-License-Identifier: MIT

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 12 of 21 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 15 of 21 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 16 of 21 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 17 of 21 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 18 of 21 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 19 of 21 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
abstract contract ERC2981Base is ERC165, IERC2981Royalties {
    struct RoyaltyInfo {
        address recipient;
        uint24 amount;
    }

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint24","name":"value","type":"uint24"},{"internalType":"address","name":"admin","type":"address"},{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"relay","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ArrayLengthMismatch","type":"error"},{"inputs":[],"name":"DefaultOperatorExists","type":"error"},{"inputs":[],"name":"MaxIssuanceSet","type":"error"},{"inputs":[],"name":"MintAuthorizationExpired","type":"error"},{"inputs":[],"name":"NonceAlreadyUsed","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"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":false,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"user","type":"address"}],"name":"DefaultOperatorRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint24","name":"royalty","type":"uint24"}],"name":"RoyaltyFeeChanged","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ADMIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY_FEE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SIGNER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"uint256","name":"expires","type":"uint256"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"authorizedMint","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":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultOperator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getContractHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"globalRevokeDefaultOperator","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":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"uint256","name":"expires","type":"uint256"}],"name":"hashMintData","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"tokenHolder","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isDefaultOperatorFor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxIssuance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"nonces","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"revokeDefaultOperator","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":[],"name":"royaltyFee","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxIssuance","type":"uint256"}],"name":"setMaxIssuance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint24","name":"value","type":"uint24"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"tokenURI_","type":"string"}],"name":"setTokenURI","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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162003fc238038062003fc28339810160408190526200003491620007e4565b878787888888888087878160009080519060200190620000569291906200067e565b5080516200006c9060019060208401906200067e565b5050600b805460ff1916905550336001600160a01b03821614620000b257620000976000336200015a565b620000b260008051602062003fa2833981519152336200015a565b620000bf6000826200015a565b620000da60008051602062003fa2833981519152826200015a565b620000e5336200016a565b50620000f185620001c4565b620000fc84620001d9565b620001088383620001ee565b505050505050506200012082620002c560201b60201c565b6200014c7f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e99408262000312565b505050505050505062000a70565b62000166828262000341565b5050565b600b80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8051620001669060079060208401906200067e565b8051620001669060089060208401906200067e565b620186a08162ffffff1611156200024c5760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f206869676800000000000060448201526064015b60405180910390fd5b6040805180820182526001600160a01b03841680825262ffffff84166020928301819052600980546001600160b81b0319168317600160a01b83021790558351918252918101919091527f677be5d3069b681157d0c07d2225623f5daa4ed41cf0a448c56d2b625d76a57b910160405180910390a15050565b600e546001600160a01b031615620002f05760405163118f982160e21b815260040160405180910390fd5b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6000828152600a6020526040902060010154620003308133620003e5565b6200033c838362000341565b505050565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff1662000166576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620003a13390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff16620001665762000431816001600160a01b031660146200048260201b6200167b1760201c565b620004478360206200167b62000482821b17811c565b6040516020016200045a929190620008cf565b60408051601f198184030181529082905262461bcd60e51b8252620002439160040162000948565b606060006200049383600262000998565b620004a09060026200097d565b6001600160401b03811115620004c657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015620004f1576020820181803683370190505b509050600360fc1b816000815181106200051b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106200055957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006200057f84600262000998565b6200058c9060016200097d565b90505b600181111562000626576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110620005d057634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110620005f557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936200061e81620009ed565b90506200058f565b508315620006775760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640162000243565b9392505050565b8280546200068c9062000a07565b90600052602060002090601f016020900481019282620006b05760008555620006fb565b82601f10620006cb57805160ff1916838001178555620006fb565b82800160010185558215620006fb579182015b82811115620006fb578251825591602001919060010190620006de565b50620007099291506200070d565b5090565b5b808211156200070957600081556001016200070e565b80516001600160a01b03811681146200073c57600080fd5b919050565b600082601f83011262000752578081fd5b81516001600160401b03808211156200076f576200076f62000a5a565b604051601f8301601f19908116603f011681019082821181831017156200079a576200079a62000a5a565b81604052838152866020858801011115620007b3578485fd5b620007c6846020830160208901620009ba565b9695505050505050565b805162ffffff811681146200073c57600080fd5b600080600080600080600080610100898b03121562000801578384fd5b88516001600160401b038082111562000818578586fd5b620008268c838d0162000741565b995060208b01519150808211156200083c578586fd5b6200084a8c838d0162000741565b985060408b015191508082111562000860578586fd5b506200086f8b828c0162000741565b9650506200088060608a0162000724565b94506200089060808a01620007d0565b9350620008a060a08a0162000724565b9250620008b060c08a0162000724565b9150620008c060e08a0162000724565b90509295985092959890939650565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835162000909816017850160208801620009ba565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516200093c816028840160208801620009ba565b01602801949350505050565b602081526000825180602084015262000969816040850160208701620009ba565b601f01601f19169190910160400192915050565b6000821982111562000993576200099362000a44565b500190565b6000816000190483118215151615620009b557620009b562000a44565b500290565b60005b83811015620009d7578181015183820152602001620009bd565b83811115620009e7576000848401525b50505050565b600081620009ff57620009ff62000a44565b506000190190565b600181811c9082168062000a1c57607f821691505b6020821081141562000a3e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6135228062000a806000396000f3fe608060405234801561001057600080fd5b50600436106103205760003560e01c8063781984db116101a7578063a22cb465116100ee578063e1a8bf2c11610097578063ee009c0c11610071578063ee009c0c146106f1578063f2fde38b14610704578063fe6d81241461071757600080fd5b8063e1a8bf2c146106cc578063e8a3d485146106d6578063e985e9c5146106de57600080fd5b8063c6e6c871116100c8578063c6e6c87114610693578063c87b56dd146106a6578063d547741f146106b957600080fd5b8063a22cb4651461064a578063b88d4fde1461065d578063b8997a971461067057600080fd5b806391d148541161015057806395d89b411161012a57806395d89b41146106175780639e317f121461061f578063a217fddf1461064257600080fd5b806391d14854146105c2578063938e3d7b146105fb5780639415e9bf1461060e57600080fd5b8063840d4e5511610181578063840d4e551461059f5780638456cb59146105b257806385c67c01146105ba57600080fd5b8063781984db146105685780637c88e3d91461057b57806380ca11fc1461058e57600080fd5b806336568abe1161026b57806351841ee2116102145780635c975abb116101ee5780635c975abb146105375780636352211e1461054257806370a082311461055557600080fd5b806351841ee2146104ea57806355f804b3146104fd578063582abd121461051057600080fd5b806340c10f191161024557806340c10f19146104b157806342842e0e146104c457806342966c68146104d757600080fd5b806336568abe146104855780633f0d2ec1146104985780633f4ba83a146104a957600080fd5b80631b456651116102cd5780632a0acc6a116102a75780632a0acc6a1461042b5780632a55205a146104405780632f2ff15d1461047257600080fd5b80631b456651146103ed57806323b872dd146103f5578063248a9ca31461040857600080fd5b8063081812fc116102fe578063081812fc1461039a578063095ea7b3146103c5578063162094c4146103da57600080fd5b806301ffc9a71461032557806306fdde031461034d5780630770e23814610362575b600080fd5b61033861033336600461313a565b61073e565b60405190151581526020015b60405180910390f35b61035561079f565b6040516103449190613332565b60408051466020808301919091523082840152825180830384018152606090920190925280519101205b604051908152602001610344565b6103ad6103a8366004613100565b610831565b6040516001600160a01b039091168152602001610344565b6103d86103d3366004612fcd565b6108cb565b005b6103d86103e83660046131a5565b6109e1565b6103d8610a41565b6103d8610403366004612ec0565b610ab3565b61038c610416366004613100565b6000908152600a602052604090206001015490565b61038c6000805160206134cd83398151915281565b61045361044e3660046131e0565b610b2f565b604080516001600160a01b039093168352602083019190915201610344565b6103d8610480366004613118565b610b85565b6103d8610493366004613118565b610bab565b6009546001600160a01b03166103ad565b6103d8610c25565b6103d86104bf366004612fcd565b610c95565b6103d86104d2366004612ec0565b610d5b565b6103d86104e5366004613100565b610d76565b6103386104f8366004612e8e565b610df0565b6103d861050b366004613172565b610e3d565b61038c7f2aeb38be3df14d720aeb10a2de6df09b0fb3cd5c5ec256283a22d4593110ca4081565b600b5460ff16610338565b6103ad610550366004613100565b610e98565b61038c610563366004612e74565b610f0f565b61038c610576366004612ff6565b610f96565b6103d8610589366004613097565b611030565b600e546001600160a01b03166103ad565b6103d86105ad36600461302e565b6110fe565b6103d86111e7565b6103d8611255565b6103386105d0366004613118565b6000918252600a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6103d8610609366004613172565b6112bc565b61038c600c5481565b610355611317565b61033861062d366004613100565b600d6020526000908152604090205460ff1681565b61038c600081565b6103d8610658366004612f61565b611326565b6103d861066b366004612efb565b6113eb565b600954600160a01b900462ffffff1660405162ffffff9091168152602001610344565b6103d86106a1366004612f9b565b611467565b6103556106b4366004613100565b6114c3565b6103d86106c7366004613118565b6114ce565b61038c620186a081565b6103556114f4565b6103386106ec366004612e8e565b611503565b6103d86106ff366004613100565b611543565b6103d8610712366004612e74565b6115bb565b61038c7f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e994081565b60006001600160e01b03198216634d96028760e01b148061076f57506001600160e01b0319821663041b104b60e31b145b8061078a57506001600160e01b0319821663c452b91360e01b145b8061079957506107998261185d565b92915050565b6060600080546107ae906133ea565b80601f01602080910402602001604051908101604052809291908181526020018280546107da906133ea565b80156108275780601f106107fc57610100808354040283529160200191610827565b820191906000526020600020905b81548152906001019060200180831161080a57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108af5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108d682610e98565b9050806001600160a01b0316836001600160a01b031614156109445760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108a6565b336001600160a01b038216148061096057506109608133611503565b6109d25760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016108a6565b6109dc838361189d565b505050565b6109f96000805160206134cd833981519152336105d0565b610a335760405162461bcd60e51b815260206004820152601f60248201526000805160206134ad83398151915260448201526064016108a6565b610a3d828261190b565b5050565b336000818152600f60209081526040808320600e80546001600160a01b03908116865291845293829020805460ff191660011790559254815193168352908201929092527f92db19f37a099ae0849afbf906815a08d61e9bb57604cc75e3385b79bac3e48491015b60405180910390a1565b610abe335b826119a5565b610b245760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60648201526084016108a6565b6109dc838383611a74565b604080518082019091526009546001600160a01b038116808352600160a01b90910462ffffff16602083018190529091600091620186a090610b719086613371565b610b7b919061335d565b9150509250929050565b6000828152600a6020526040902060010154610ba18133611c14565b6109dc8383611c94565b6001600160a01b0381163314610c1b5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016108a6565b610a3d8282611d36565b610c306000336105d0565b610c8b5760405162461bcd60e51b815260206004820152602660248201527f73656e646572206d75737420686165207468652044454641554c542041444d496044820152654e20524f4c4560d01b60648201526084016108a6565b610c93611db9565b565b610cbf7f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e9940336105d0565b610d0b5760405162461bcd60e51b815260206004820152601e60248201527f73656e646572206d757374206861766520746865204d494e5420726f6c65000060448201526064016108a6565b600b5460ff1615610d515760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108a6565b610a3d8282611e50565b6109dc838383604051806020016040528060008152506113eb565b610d7f33610ab8565b610de45760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b60648201526084016108a6565b610ded81611f92565b50565b600e546000906001600160a01b038381169116148015610e3657506001600160a01b038084166000908152600f602090815260408083209386168352929052205460ff16155b9392505050565b610e556000805160206134cd833981519152336105d0565b610e8f5760405162461bcd60e51b815260206004820152601f60248201526000805160206134ad83398151915260448201526064016108a6565b610ded8161202d565b6000818152600260205260408120546001600160a01b0316806107995760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016108a6565b60006001600160a01b038216610f7a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016108a6565b506001600160a01b031660009081526003602052604090205490565b6000610fc7604080514660208083019190915230828401528251808303840181526060909201909252805191012090565b604080516001600160a01b0388166020820152908101869052606081018590526080810184905260a00160408051601f198184030181529082905261100f9291602001613319565b6040516020818303038152906040528051906020012090505b949350505050565b61105a7f6e58ad548d72b425ea94c15f453bf26caddb061d82b2551db7fdd3cefe0e9940336105d0565b6110a65760405162461bcd60e51b815260206004820152601e60248201527f73656e646572206d757374206861766520746865204d494e5420726f6c65000060448201526064016108a6565b600b5460ff16156110ec5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108a6565b6110f884848484612040565b50505050565b600b5460ff16156111445760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108a6565b61115185858585856120d7565b61116d576040516282b42960e81b815260040160405180910390fd5b4282101561118e576040516363d656ff60e01b815260040160405180910390fd5b6000838152600d602052604090205460ff16156111bd57604051623f613760e71b815260040160405180910390fd5b6000838152600d60205260409020805460ff191660011790556111e08585611e50565b5050505050565b6111f26000336105d0565b61124d5760405162461bcd60e51b815260206004820152602660248201527f73656e646572206d75737420686165207468652044454641554c542041444d496044820152654e20524f4c4560d01b60648201526084016108a6565b610c9361218b565b61126d6000805160206134cd833981519152336105d0565b6112a75760405162461bcd60e51b815260206004820152601f60248201526000805160206134ad83398151915260448201526064016108a6565b610c93600e80546001600160a01b0319169055565b6112d46000805160206134cd833981519152336105d0565b61130e5760405162461bcd60e51b815260206004820152601f60248201526000805160206134ad83398151915260448201526064016108a6565b610ded81612206565b6060600180546107ae906133ea565b6001600160a01b03821633141561137f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108a6565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6113f533836119a5565b61145b5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60648201526084016108a6565b6110f884848484612219565b61147f6000805160206134cd833981519152336105d0565b6114b95760405162461bcd60e51b815260206004820152601f60248201526000805160206134ad83398151915260448201526064016108a6565b610a3d8282612297565b606061079982612378565b6000828152600a60205260409020600101546114ea8133611c14565b6109dc8383611d36565b6060600880546107ae906133ea565b600061150f8383610df0565b80610e3657506001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff16610e36565b61155b6000805160206134cd833981519152336105d0565b6115955760405162461bcd60e51b815260206004820152601f60248201526000805160206134ad83398151915260448201526064016108a6565b600c54156115b657604051637722de1f60e11b815260040160405180910390fd5b600c55565b6115d36000805160206134cd833981519152336105d0565b61160d5760405162461bcd60e51b815260206004820152601f60248201526000805160206134ad83398151915260448201526064016108a6565b6001600160a01b0381166116725760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108a6565b610ded816124b7565b6060600061168a836002613371565b611695906002613345565b67ffffffffffffffff8111156116bb57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156116e5576020820181803683370190505b509050600360fc1b8160008151811061170e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061174b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061176f846002613371565b61177a906001613345565b90505b600181111561180e576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106117bc57634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106117e057634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93611807816133d3565b905061177d565b508315610e365760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016108a6565b60006001600160e01b0319821663da8def7360e01b148061188e57506001600160e01b03198216635c975abb60e01b145b8061079957506107998261251e565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906118d282610e98565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000828152600260205260409020546001600160a01b03166119865760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b60648201526084016108a6565b600082815260066020908152604090912082516109dc92840190612cf5565b6000818152600260205260408120546001600160a01b0316611a1e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108a6565b6000611a2983610e98565b9050806001600160a01b0316846001600160a01b03161480611a645750836001600160a01b0316611a5984610831565b6001600160a01b0316145b8061102857506110288185611503565b826001600160a01b0316611a8782610e98565b6001600160a01b031614611aef5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016108a6565b6001600160a01b038216611b515760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108a6565b611b5c60008261189d565b6001600160a01b0383166000908152600360205260408120805460019290611b85908490613390565b90915550506001600160a01b0382166000908152600360205260408120805460019290611bb3908490613345565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff16610a3d57611c52816001600160a01b0316601461167b565b611c5d83602061167b565b604051602001611c6e92919061325c565b60408051601f198184030181529082905262461bcd60e51b82526108a691600401613332565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff16610a3d576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611cf23390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600a602090815260408083206001600160a01b038516845290915290205460ff1615610a3d576000828152600a602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600b5460ff16611e0b5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016108a6565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b039091168152602001610aa9565b6001600160a01b038216611ea65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108a6565b6000818152600260205260409020546001600160a01b031615611f0b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108a6565b6001600160a01b0382166000908152600360205260408120805460019290611f34908490613345565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000611f9d82610e98565b9050611faa60008361189d565b6001600160a01b0381166000908152600360205260408120805460019290611fd3908490613390565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b8051610a3d906007906020840190612cf5565b8281146120605760405163512509d360e11b815260040160405180910390fd5b60005b838110156111e0576120cf85858381811061208e57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906120a39190612e74565b8484848181106120c357634e487b7160e01b600052603260045260246000fd5b90506020020135611e50565b600101612063565b600080612146836121406120ed8a8a8a8a610f96565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90612543565b6001600160a01b031660009081527f02934699510fb38e753a28d038c7114ea6d189cc1265695166280b1f5c6eeb37602052604090205460ff16979650505050505050565b600b5460ff16156121d15760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108a6565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611e383390565b8051610a3d906008906020840190612cf5565b612224848484611a74565b61223084848484612567565b6110f85760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016108a6565b620186a08162ffffff1611156122ef5760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f206869676800000000000060448201526064016108a6565b6040805180820182526001600160a01b03841680825262ffffff841660209283018190526009805476ffffffffffffffffffffffffffffffffffffffffffffff19168317600160a01b83021790558351918252918101919091527f677be5d3069b681157d0c07d2225623f5daa4ed41cf0a448c56d2b625d76a57b910160405180910390a15050565b6000818152600260205260409020546060906001600160a01b03166124055760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f722060448201527f6e6f6e6578697374656e7420746f6b656e00000000000000000000000000000060648201526084016108a6565b6000828152600660205260408120805461241e906133ea565b80601f016020809104026020016040519081016040528092919081815260200182805461244a906133ea565b80156124975780601f1061246c57610100808354040283529160200191612497565b820191906000526020600020905b81548152906001019060200180831161247a57829003601f168201915b505050505090506000815111156124ae5792915050565b610e36836126bc565b600b80546001600160a01b0383811661010081810274ffffffffffffffffffffffffffffffffffffffff001985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160e01b03198216637965db0b60e01b1480610799575061079982612796565b600080600061255285856127bb565b9150915061255f8161282b565b509392505050565b60006001600160a01b0384163b156126b457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906125ab9033908990889088906004016132dd565b602060405180830381600087803b1580156125c557600080fd5b505af19250505080156125f5575060408051601f3d908101601f191682019092526125f291810190613156565b60015b61269a573d808015612623576040519150601f19603f3d011682016040523d82523d6000602084013e612628565b606091505b5080516126925760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016108a6565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611028565b506001611028565b6000818152600260205260409020546060906001600160a01b031661273b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108a6565b6000612745612a2c565b905060008151116127655760405180602001604052806000815250610e36565b8061276f84612a3b565b60405160200161278092919061322d565b6040516020818303038152906040529392505050565b60006001600160e01b031982166301ffc9a760e01b1480610799575061079982612b55565b6000808251604114156127f25760208301516040840151606085015160001a6127e687828585612b7a565b94509450505050612824565b82516040141561281c5760208301516040840151612811868383612c67565b935093505050612824565b506000905060025b9250929050565b600081600481111561284d57634e487b7160e01b600052602160045260246000fd5b14156128565750565b600181600481111561287857634e487b7160e01b600052602160045260246000fd5b14156128c65760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016108a6565b60028160048111156128e857634e487b7160e01b600052602160045260246000fd5b14156129365760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016108a6565b600381600481111561295857634e487b7160e01b600052602160045260246000fd5b14156129b15760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016108a6565b60048160048111156129d357634e487b7160e01b600052602160045260246000fd5b1415610ded5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016108a6565b6060612a36612c96565b905090565b606081612a5f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612a895780612a7381613425565b9150612a829050600a8361335d565b9150612a63565b60008167ffffffffffffffff811115612ab257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612adc576020820181803683370190505b5090505b841561102857612af1600183613390565b9150612afe600a86613440565b612b09906030613345565b60f81b818381518110612b2c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612b4e600a8661335d565b9450612ae0565b60006001600160e01b0319821663152a902d60e11b1480610799575061079982612ca5565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612bb15750600090506003612c5e565b8460ff16601b14158015612bc957508460ff16601c14155b15612bda5750600090506004612c5e565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612c2e573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c5757600060019250925050612c5e565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612c8887828885612b7a565b935093505050935093915050565b6060600780546107ae906133ea565b60006001600160e01b031982166380ac58cd60e01b1480612cd657506001600160e01b03198216635b5e139f60e01b145b8061079957506301ffc9a760e01b6001600160e01b0319831614610799565b828054612d01906133ea565b90600052602060002090601f016020900481019282612d235760008555612d69565b82601f10612d3c57805160ff1916838001178555612d69565b82800160010185558215612d69579182015b82811115612d69578251825591602001919060010190612d4e565b50612d75929150612d79565b5090565b5b80821115612d755760008155600101612d7a565b80356001600160a01b0381168114612da557600080fd5b919050565b60008083601f840112612dbb578081fd5b50813567ffffffffffffffff811115612dd2578182fd5b6020830191508360208260051b850101111561282457600080fd5b600082601f830112612dfd578081fd5b813567ffffffffffffffff80821115612e1857612e18613480565b604051601f8301601f19908116603f01168101908282118183101715612e4057612e40613480565b81604052838152866020858801011115612e58578485fd5b8360208701602083013792830160200193909352509392505050565b600060208284031215612e85578081fd5b610e3682612d8e565b60008060408385031215612ea0578081fd5b612ea983612d8e565b9150612eb760208401612d8e565b90509250929050565b600080600060608486031215612ed4578081fd5b612edd84612d8e565b9250612eeb60208501612d8e565b9150604084013590509250925092565b60008060008060808587031215612f10578081fd5b612f1985612d8e565b9350612f2760208601612d8e565b925060408501359150606085013567ffffffffffffffff811115612f49578182fd5b612f5587828801612ded565b91505092959194509250565b60008060408385031215612f73578182fd5b612f7c83612d8e565b915060208301358015158114612f90578182fd5b809150509250929050565b60008060408385031215612fad578182fd5b612fb683612d8e565b9150602083013562ffffff81168114612f90578182fd5b60008060408385031215612fdf578182fd5b612fe883612d8e565b946020939093013593505050565b6000806000806080858703121561300b578384fd5b61301485612d8e565b966020860135965060408601359560600135945092505050565b600080600080600060a08688031215613045578081fd5b61304e86612d8e565b9450602086013593506040860135925060608601359150608086013567ffffffffffffffff81111561307e578182fd5b61308a88828901612ded565b9150509295509295909350565b600080600080604085870312156130ac578182fd5b843567ffffffffffffffff808211156130c3578384fd5b6130cf88838901612daa565b909650945060208701359150808211156130e7578384fd5b506130f487828801612daa565b95989497509550505050565b600060208284031215613111578081fd5b5035919050565b6000806040838503121561312a578182fd5b82359150612eb760208401612d8e565b60006020828403121561314b578081fd5b8135610e3681613496565b600060208284031215613167578081fd5b8151610e3681613496565b600060208284031215613183578081fd5b813567ffffffffffffffff811115613199578182fd5b61102884828501612ded565b600080604083850312156131b7578182fd5b82359150602083013567ffffffffffffffff8111156131d4578182fd5b610b7b85828601612ded565b600080604083850312156131f2578182fd5b50508035926020909101359150565b600081518084526132198160208601602086016133a7565b601f01601f19169290920160200192915050565b6000835161323f8184602088016133a7565b8351908301906132538183602088016133a7565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516132948160178501602088016133a7565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516132d18160288401602088016133a7565b01602801949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261330f6080830184613201565b9695505050505050565b8281526040602082015260006110286040830184613201565b602081526000610e366020830184613201565b6000821982111561335857613358613454565b500190565b60008261336c5761336c61346a565b500490565b600081600019048311821515161561338b5761338b613454565b500290565b6000828210156133a2576133a2613454565b500390565b60005b838110156133c25781810151838201526020016133aa565b838111156110f85750506000910152565b6000816133e2576133e2613454565b506000190190565b600181811c908216806133fe57607f821691505b6020821081141561341f57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561343957613439613454565b5060010190565b60008261344f5761344f61346a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610ded57600080fdfe73656e646572206d7573742068617665207468652041444d494e20726f6c6500df8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42a2646970667358221220dc5a86c2951b81abfe02118437321398eaa4069ecd79252cc739d578943144c264736f6c63430008040033df8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4200000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000076584bce7eb23aaeefd0eb20a02bf0e626aacc72000000000000000000000000000000000000000000000000000000000000177000000000000000000000000053232f9a89cde9032491a4dd70ecb60edb8aa3910000000000000000000000005eacd383b4e8340d7f7f9c2ff076217a7ed89610000000000000000000000000a10fb482873638af1e9034b1c29e16d1812f0c5000000000000000000000000000000000000000000000000000000000000000065477656574790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000674776565747900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

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

00000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000076584bce7eb23aaeefd0eb20a02bf0e626aacc72000000000000000000000000000000000000000000000000000000000000177000000000000000000000000053232f9a89cde9032491a4dd70ecb60edb8aa3910000000000000000000000005eacd383b4e8340d7f7f9c2ff076217a7ed89610000000000000000000000000a10fb482873638af1e9034b1c29e16d1812f0c5000000000000000000000000000000000000000000000000000000000000000065477656574790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000674776565747900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Tweety
Arg [1] : symbol (string): tweety
Arg [2] : baseURI (string):
Arg [3] : recipient (address): 0x76584BCe7EB23AaEEFD0EB20A02BF0E626aacC72
Arg [4] : value (uint24): 6000
Arg [5] : admin (address): 0x53232F9a89cDE9032491A4Dd70ecB60EDb8AA391
Arg [6] : operator (address): 0x5eacD383b4e8340D7F7F9c2Ff076217a7Ed89610
Arg [7] : relay (address): 0xA10fB482873638AF1E9034b1c29e16D1812f0C50

-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [3] : 00000000000000000000000076584bce7eb23aaeefd0eb20a02bf0e626aacc72
Arg [4] : 0000000000000000000000000000000000000000000000000000000000001770
Arg [5] : 00000000000000000000000053232f9a89cde9032491a4dd70ecb60edb8aa391
Arg [6] : 0000000000000000000000005eacd383b4e8340d7f7f9c2ff076217a7ed89610
Arg [7] : 000000000000000000000000a10fb482873638af1e9034b1c29e16d1812f0c50
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [9] : 5477656574790000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [11] : 7477656574790000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000000


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

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