ETH Price: $3,806.67 (-2.30%)
Gas: 10 Gwei

Contract

0x4b15a9c28034dC83db40CD810001427d3BD7163D
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Safe Transfer Fr...199742502024-05-29 8:12:591 hr ago1716970379IN
HV-MTL: HV-MTL Token
0 ETH0.0007489312.8534469
Safe Transfer Fr...199741912024-05-29 8:01:112 hrs ago1716969671IN
HV-MTL: HV-MTL Token
0 ETH0.000579989.954
Set Approval For...199733622024-05-29 5:14:234 hrs ago1716959663IN
HV-MTL: HV-MTL Token
0 ETH0.000432159.33460321
Set Approval For...199721882024-05-29 1:17:478 hrs ago1716945467IN
HV-MTL: HV-MTL Token
0 ETH0.00033957.34672007
Set Approval For...199693462024-05-28 15:45:3518 hrs ago1716911135IN
HV-MTL: HV-MTL Token
0 ETH0.0008513118.38856226
Set Approval For...199666422024-05-28 6:41:4727 hrs ago1716878507IN
HV-MTL: HV-MTL Token
0 ETH0.0004215617.34840561
Set Approval For...199666352024-05-28 6:40:2327 hrs ago1716878423IN
HV-MTL: HV-MTL Token
0 ETH0.000440518.10997906
Safe Transfer Fr...199657812024-05-28 3:48:2330 hrs ago1716868103IN
HV-MTL: HV-MTL Token
0 ETH0.0063574222.70077896
Transfer From199656772024-05-28 3:27:3530 hrs ago1716866855IN
HV-MTL: HV-MTL Token
0 ETH0.0011069415.27030361
Set Approval For...199651122024-05-28 1:34:2332 hrs ago1716860063IN
HV-MTL: HV-MTL Token
0 ETH0.0005051210.93053566
Safe Transfer Fr...199638922024-05-27 21:28:3536 hrs ago1716845315IN
HV-MTL: HV-MTL Token
0 ETH0.00155519.38160278
Set Approval For...199632142024-05-27 19:12:2338 hrs ago1716837143IN
HV-MTL: HV-MTL Token
0 ETH0.0013836529.8872231
Set Approval For...199612942024-05-27 12:44:5945 hrs ago1716813899IN
HV-MTL: HV-MTL Token
0 ETH0.0006158613.32702911
Set Approval For...199590252024-05-27 5:09:232 days ago1716786563IN
HV-MTL: HV-MTL Token
0 ETH0.000348027.53110311
Set Approval For...199579412024-05-27 1:31:232 days ago1716773483IN
HV-MTL: HV-MTL Token
0 ETH0.000097594.00459331
Transfer From199575052024-05-27 0:03:112 days ago1716768191IN
HV-MTL: HV-MTL Token
0 ETH0.000218663.94854552
Set Approval For...199565822024-05-26 20:57:112 days ago1716757031IN
HV-MTL: HV-MTL Token
0 ETH0.000340137.34887441
Transfer From199551432024-05-26 16:08:112 days ago1716739691IN
HV-MTL: HV-MTL Token
0 ETH0.000440987.9613984
Transfer From199551392024-05-26 16:07:232 days ago1716739643IN
HV-MTL: HV-MTL Token
0 ETH0.000636548.23575066
Set Approval For...199549772024-05-26 15:34:472 days ago1716737687IN
HV-MTL: HV-MTL Token
0 ETH0.0006367513.75397308
Transfer From199547842024-05-26 14:56:112 days ago1716735371IN
HV-MTL: HV-MTL Token
0 ETH0.0007721110.65128717
Set Approval For...199530322024-05-26 9:03:233 days ago1716714203IN
HV-MTL: HV-MTL Token
0 ETH0.000169323.66406898
Set Approval For...199522362024-05-26 6:23:353 days ago1716704615IN
HV-MTL: HV-MTL Token
0 ETH0.000147783.19796465
Set Approval For...199521722024-05-26 6:10:353 days ago1716703835IN
HV-MTL: HV-MTL Token
0 ETH0.000131562.84247378
Safe Transfer Fr...199519292024-05-26 5:21:353 days ago1716700895IN
HV-MTL: HV-MTL Token
0 ETH0.000207672.75323881
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HVMTL

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : HVMTL.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./lib/ERC721Lockable.sol";
import "./lib/Operator.sol";
import "./lib/IRegistry.sol";

//      |||||\          |||||\               |||||\          |||||\
//      ||||| |         ||||| |              ||||| |         ||||| |
//       \__|||||\  |||||\___\|               \__|||||\  |||||\___\|
//          ||||| | ||||| |                      ||||| | ||||| |
//           \__|||||\___\|       Y u g a         \__|||||\___\|
//              ||||| |             L a b s          ||||| |
//          |||||\___\|           H V M T L      |||||\___\|
//          ||||| |                              ||||| |
//           \__|||||||||||\                      \__|||||||||||\
//              ||||||||||| |                        ||||||||||| |
//               \_________\|                         \_________\|

error MintIsNotEnabled();
error NotAllowedToMint();
error NotAllowedToBurn();
error ContractIsLocked();
error UnableToLockContract();
error MaxTokensMinted();
error RegistryAddressIsNotSet();

/**
 * @title HV-MTL ERC-721 Smart Contract
 */
contract HVMTL is ERC721Lockable, Operator {
    using SafeERC20 for IERC20;

    uint128 public constant MAX_TOKENS = 30_000;
    uint128 private _totalSupply;
    uint256 public mintedSupply;
    address public registryAddress;
    bool public isMintEnabled;
    bool public isMintBatchEnabled;
    bool public isOwnerBurnEnabled;
    bool public isContractBurnEnabled;
    bool public isContractLocked;
    bool public isRegistryActive;
    string private baseURI;
    string public nftLicenseTerms = "mdvmm.xyz/hvmtl-license";
    bytes32 public metadataHash;
    mapping(address => bool) public minters;

    constructor(
        string memory name,
        string memory symbol,
        address operator
    ) ERC721(name, symbol) Operator(operator) {}

    modifier allowedToMint() {
        if (minters[msg.sender] == false) {
            revert NotAllowedToMint();
        }
        _;
    }

    /**
     * @notice mint one
     * can only be called by approved contracts
     * @param to address being minted to
     * @param tokenId id of the token
     */
    function mintOne(address to, uint256 tokenId) external allowedToMint {
        if (!isMintEnabled) revert MintIsNotEnabled();
        if (mintedSupply >= MAX_TOKENS) revert MaxTokensMinted();

        unchecked {
            ++_totalSupply;
            ++mintedSupply;
        }
        _safeMint(to, tokenId);
    }

    /**
     * @notice mint many
     * can only be called by approved contracts
     * @param to address being minted to
     * @param startTokenId id of the first token
     * @param quantity amount to mint
     */
    function mintBatch(
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) external allowedToMint {
        if (!isMintBatchEnabled) revert MintIsNotEnabled();
        if (mintedSupply + quantity > MAX_TOKENS) revert MaxTokensMinted();

        uint256 endTokenId = startTokenId + quantity;
        for (startTokenId; startTokenId < endTokenId; ) {
            uint256 tempIndex = startTokenId;

            unchecked {
                ++startTokenId;
                ++mintedSupply;
                ++_totalSupply;
            }
            _safeMint(to, tempIndex);
        }
    }

    /**
     * @notice check if token id exists
     */
    function exists(uint256 tokenId) external view returns (bool) {
        return _exists(tokenId);
    }

    /**
     * @notice get the total supply of tokens
     */
    function totalSupply() external view returns (uint128) {
        return _totalSupply;
    }

    // operator functions

    /**
     * @notice turn mint on or off
     */
    function setIsMintEnabled(bool isEnabled) external onlyOperator {
        if (isContractLocked) revert ContractIsLocked();
        isMintEnabled = isEnabled;
    }

    /**
     * @notice turn batch mint on or off
     */
    function setIsMintBatchEnabled(bool isEnabled) external onlyOperator {
        if (isContractLocked) revert ContractIsLocked();
        isMintBatchEnabled = isEnabled;
    }

    /**
     * @notice turn token burning by owner on or off
     */
    function setIsOwnerBurnEnabled(bool isEnabled) external onlyOperator {
        if (isContractLocked) revert ContractIsLocked();
        isOwnerBurnEnabled = isEnabled;
    }

    /**
     * @notice turn token burning by contract on or off
     */
    function setIsContractBurnEnabled(bool isEnabled) external onlyOperator {
        if (isContractLocked) revert ContractIsLocked();
        isContractBurnEnabled = isEnabled;
    }

    /**
     * @notice lock the contract - stops minting, contract burn,
     *   setting burn states, and adding minters.
     * KILL SWITCH - THIS CAN'T BE REVERSED
     */
    function lockContract() external onlyOperator {
        if (isMintEnabled || isMintBatchEnabled) revert UnableToLockContract();
        isContractLocked = true;
    }

    /**
     * @notice set the token lock contract
     * @param _tokenLockContract address of contract
     * @param isEnabled enables or disables token locking
     */
    function setTokenLockContract(
        address _tokenLockContract,
        bool isEnabled
    ) external onlyOperator {
        if (isContractLocked) revert ContractIsLocked();
        _addContractAllowedToLock(_tokenLockContract, isEnabled);
    }

    /**
     * @notice set base uri of metadata
     * @param uri the base uri
     */
    function setBaseURI(string memory uri) external onlyOperator {
        baseURI = uri;
    }

    /**
     * @notice set the metadata provenance hash
     * @param _metadataHash the provenance hash
     */
    function setMetadataHash(bytes32 _metadataHash) external onlyOperator {
        metadataHash = _metadataHash;
    }

    /**
     * @notice set NFT License URI
     * @param _nftLicenseUri the uri of the license
     */
    function setNftLicenseTerms(
        string memory _nftLicenseUri
    ) external onlyOperator {
        nftLicenseTerms = _nftLicenseUri;
    }

    /**
     * @notice toggle the minting ability of a minter or burner contract
     * @param _minterContract address of contract
     */
    function toggleMinterContract(
        address _minterContract
    ) external onlyOperator {
        if (isContractLocked) revert ContractIsLocked();
        minters[_minterContract] = !minters[_minterContract];
    }

    /**
     * @notice set the registry contract
     * @param _registryAddress contract address for registry
     */
    function setRegistryAddress(
        address _registryAddress
    ) external onlyOperator {
        registryAddress = _registryAddress;
    }

    /**
     * @notice enables or disables the registry
     */
    function setIsRegistryActive(bool isActive) external onlyOperator {
        if (registryAddress == address(0)) revert RegistryAddressIsNotSet();
        isRegistryActive = isActive;
    }

    /**
     * @notice withdraw erc-20 tokens
     * @param coinContract the erc-20 contract address
     */
    function withdraw(address coinContract) external onlyOperator {
        uint256 balance = IERC20(coinContract).balanceOf(address(this));
        if (balance > 0) {
            IERC20(coinContract).safeTransfer(operator, balance);
        }
    }

    // internal function

    /**
     * @notice checks whether caller is valid on the registry
     */
    function _isValidAgainstRegistry(
        address operator
    ) internal view returns (bool) {
        if (isRegistryActive) {
            IRegistry registry = IRegistry(registryAddress);

            return registry.isAllowedOperator(operator);
        }
        return true;
    }

    // function overrides

    /**
     * @notice override _baseURI function
     */
    function _baseURI() internal view override returns (string memory) {
        return baseURI;
    }

    /**
     * @notice overrides beforeTokenTransfer and triggers before any transfer
     * @param from from address
     * @param to address being transfered to
     * @param tokenId token id being transferred
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        if (_isValidAgainstRegistry(msg.sender)) {
            super._beforeTokenTransfer(from, to, tokenId);
        } else {
            revert IRegistry.NotAllowed();
        }
    }

    // token burning

    /**
     * @notice checks if the sender or contract is approved to burn the token
     * @param tokenId token id to check for burn approval
     */
    function _isApprovedToBurn(uint256 tokenId) private view returns (bool) {
        if (isContractBurnEnabled && minters[_msgSender()]) {
            return true;
        } else if (
            isOwnerBurnEnabled && _isApprovedOrOwner(_msgSender(), tokenId)
        ) {
            return true;
        }
        return false;
    }

    /**
     * @notice burn the token
     * @param tokenId token id to burn
     */
    function burn(uint256 tokenId) public virtual {
        if (!_isApprovedToBurn(tokenId)) revert NotAllowedToBurn();
        unchecked {
            --_totalSupply;
        }
        _burn(tokenId);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 18 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 4 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 5 of 18 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 16 of 18 : ERC721Lockable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "./IERC721Lockable.sol";

error TokenIsLocked();
error NotAllowedToLockToken();
error ExceedsMaxableLockTime();

/**
 * @title ERC721Lockable enables the temporary transfer lock on a token.
 */
abstract contract ERC721Lockable is ERC721, IERC721Lockable {
    uint256 public constant MAX_LOCK_EPOCH = 31536000; // 1 year in seconds
    mapping(uint256 => uint256) private lockedTokens;

    // add a list of contracts that can lock
    mapping(address => bool) public contractsAllowedToLock;

    modifier onlyTokenLocker() {
        if (contractsAllowedToLock[msg.sender] == false) {
            revert NotAllowedToLockToken();
        }
        _;
    }

    /**
     * @notice temporary lock the transferring of a token by a smart contract
     * @param tokenId id of the locked token
     * @param unlockTimestamp timestamp when token unlocks
     */
    function lockTokenByContract(
        uint256 tokenId,
        uint256 unlockTimestamp
    ) external onlyTokenLocker {
        if (lockedTokens[tokenId] > block.timestamp) {
            revert TokenIsLocked();
        }
        if (
            unlockTimestamp > block.timestamp &&
            (unlockTimestamp - block.timestamp) > MAX_LOCK_EPOCH
        ) revert ExceedsMaxableLockTime();

        lockedTokens[tokenId] = unlockTimestamp;
        emit TokenLocked(tokenId, unlockTimestamp);
    }

    /**
     * @notice unlocks token by authorized smart contract
     * @param tokenId id of the locked token
     */
    function unlockTokenByContract(uint256 tokenId) external onlyTokenLocker {
        delete lockedTokens[tokenId];
    }

    /**
     * @notice check if a token is currently locked
     * @param tokenId id of the locked token
     * @return boolean if token is locked
     */
    function isLocked(uint256 tokenId) external view returns (bool) {
        return (lockedTokens[tokenId] > block.timestamp);
    }

    /**
     * @notice check when token lock expires
     * @param tokenId id of the locked token
     * @return uint256 timestamp when token unlocks
     */
    function lockExpiration(uint256 tokenId) external view returns (uint256) {
        return lockedTokens[tokenId];
    }

    /**
     * @notice set the token lock contract
     * @param _tokenLockContract address of contract
     */
    function _addContractAllowedToLock(
        address _tokenLockContract,
        bool isEnabled
    ) internal {
        contractsAllowedToLock[_tokenLockContract] = isEnabled;
    }

    /**
     * @notice override of _beforeTokenTransfer
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override(ERC721) {
        if (lockedTokens[tokenId] > block.timestamp) {
            revert TokenIsLocked();
        }

        super._beforeTokenTransfer(from, to, tokenId);
    }

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

File 17 of 18 : IERC721Lockable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

interface IERC721Lockable {
    /// @notice Emitted when a subscription expiration changes
    event TokenLocked(uint256 indexed tokenId, uint256 unlockBlock);

    /**
     * @notice temporary lock the transferring of a token by a smart contract
     * @param tokenId id of the locked token
     * @param unlockTimestamp timestamp when token unlocks
     */
    function lockTokenByContract(
        uint256 tokenId,
        uint256 unlockTimestamp
    ) external;

    /**
     * @notice unlock the transferring of a token by a smart contract
     * @param tokenId id of the locked token
     */
    function unlockTokenByContract(uint256 tokenId) external;

    /**
     * @notice check if a token is currently locked
     * @param tokenId id of the locked token
     * @return boolean if token is locked
     */
    function isLocked(uint256 tokenId) external view returns (bool);

    /**
     * @notice check when token lock expires
     * @param tokenId id of the locked token
     * @return uint256 timestamp when token unlocks
     */
    function lockExpiration(uint256 tokenId) external view returns (uint256);
}

File 18 of 18 : IRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

/**
 * @dev Required interface of an Registry compliant contract.
 */
interface IRegistry {
    /**
     * @dev Emitted when address trying to transfer is not allowed on the registry
     */
    error NotAllowed();

    /**
     * @dev Checks whether `operator` is valid on the registry; let the registry
     * decide across both allow and blocklists.
     * @param operator - Address of operator
     * @return Bool whether operator is valid against registry
     */
    function isAllowedOperator(address operator) external view returns (bool);

    /**
     * @dev Checks whether `operator` is allowed on the registry
     * @param operator - Address of operator
     * @return Bool whether operator is allowed
     */
    function isAllowed(address operator) external view returns (bool);

    /**
     * @dev Checks whether `operator` is blocked on the registry
     * @param operator - Address of operator
     * @return Bool whether operator is blocked
     */
    function isBlocked(address operator) external view returns (bool);
}

File 19 of 18 : Operator.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

import "@openzeppelin/contracts/access/Ownable.sol";

error OnlyOperatorError();
error OperatorZeroAddressCheck();

contract Operator is Ownable {
    address public operator;

    event OperatorChanged(address operator);

    modifier onlyOperator() {
        if (operator != _msgSender()) revert OnlyOperatorError();
        _;
    }

    constructor(address _operator) {
        if (_operator == address(0)) revert OperatorZeroAddressCheck();
        operator = _operator;
    }

    /**
     * @notice change operator
     */
    function setOperator(address _operator) external onlyOwner {
        if (_operator == address(0)) revert OperatorZeroAddressCheck();

        operator = _operator;
        emit OperatorChanged(_operator);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"operator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ContractIsLocked","type":"error"},{"inputs":[],"name":"ExceedsMaxableLockTime","type":"error"},{"inputs":[],"name":"MaxTokensMinted","type":"error"},{"inputs":[],"name":"MintIsNotEnabled","type":"error"},{"inputs":[],"name":"NotAllowed","type":"error"},{"inputs":[],"name":"NotAllowedToBurn","type":"error"},{"inputs":[],"name":"NotAllowedToLockToken","type":"error"},{"inputs":[],"name":"NotAllowedToMint","type":"error"},{"inputs":[],"name":"OnlyOperatorError","type":"error"},{"inputs":[],"name":"OperatorZeroAddressCheck","type":"error"},{"inputs":[],"name":"RegistryAddressIsNotSet","type":"error"},{"inputs":[],"name":"TokenIsLocked","type":"error"},{"inputs":[],"name":"UnableToLockContract","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"}],"name":"OperatorChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unlockBlock","type":"uint256"}],"name":"TokenLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_LOCK_EPOCH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"contractsAllowedToLock","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isContractBurnEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isContractLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintBatchEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOwnerBurnEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRegistryActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"lockExpiration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"unlockTimestamp","type":"uint256"}],"name":"lockTokenByContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"metadataHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"startTokenId","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintOne","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftLicenseTerms","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"registryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isEnabled","type":"bool"}],"name":"setIsContractBurnEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isEnabled","type":"bool"}],"name":"setIsMintBatchEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isEnabled","type":"bool"}],"name":"setIsMintEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isEnabled","type":"bool"}],"name":"setIsOwnerBurnEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isActive","type":"bool"}],"name":"setIsRegistryActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_metadataHash","type":"bytes32"}],"name":"setMetadataHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_nftLicenseUri","type":"string"}],"name":"setNftLicenseTerms","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_registryAddress","type":"address"}],"name":"setRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenLockContract","type":"address"},{"internalType":"bool","name":"isEnabled","type":"bool"}],"name":"setTokenLockContract","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":"address","name":"_minterContract","type":"address"}],"name":"toggleMinterContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"unlockTokenByContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"coinContract","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c0604052601760809081527f6d64766d6d2e78797a2f68766d746c2d6c6963656e736500000000000000000060a052600e906200003e9082620001f9565b503480156200004c57600080fd5b5060405162002dd438038062002dd48339810160408190526200006f9162000374565b8083836000620000808382620001f9565b5060016200008f8282620001f9565b505050620000ac620000a6620000fe60201b60201c565b62000102565b6001600160a01b038116620000d457604051637652539b60e01b815260040160405180910390fd5b600980546001600160a01b0319166001600160a01b03929092169190911790555062000401915050565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200017f57607f821691505b602082108103620001a057634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001f457600081815260208120601f850160051c81016020861015620001cf5750805b601f850160051c820191505b81811015620001f057828155600101620001db565b5050505b505050565b81516001600160401b0381111562000215576200021562000154565b6200022d816200022684546200016a565b84620001a6565b602080601f8311600181146200026557600084156200024c5750858301515b600019600386901b1c1916600185901b178555620001f0565b600085815260208120601f198616915b82811015620002965788860151825594840194600190910190840162000275565b5085821015620002b55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082601f830112620002d757600080fd5b81516001600160401b0380821115620002f457620002f462000154565b604051601f8301601f19908116603f011681019082821181831017156200031f576200031f62000154565b816040528381526020925086838588010111156200033c57600080fd5b600091505b8382101562000360578582018301518183018401529082019062000341565b600093810190920192909252949350505050565b6000806000606084860312156200038a57600080fd5b83516001600160401b0380821115620003a257600080fd5b620003b087838801620002c5565b94506020860151915080821115620003c757600080fd5b50620003d686828701620002c5565b604086015190935090506001600160a01b0381168114620003f657600080fd5b809150509250925092565b6129c380620004116000396000f3fe608060405234801561001057600080fd5b50600436106103425760003560e01c80638da5cb5b116101b8578063c5a1d7f011610104578063e5b4f6c6116100a2578063f2fde38b1161007c578063f2fde38b14610727578063f46eccc41461073a578063f47c84c51461075d578063f6aacfb11461076657600080fd5b8063e5b4f6c6146106ed578063e985e9c514610701578063ed9aab511461071457600080fd5b8063c87b56dd116100de578063c87b56dd146106a0578063d1439819146106b3578063d40ca218146106c7578063d48e13c3146106da57600080fd5b8063c5a1d7f014610671578063c5ce26121461067a578063c78f2e7b1461068d57600080fd5b8063b12aa78311610171578063bfc740841161014b578063bfc7408414610629578063c1bd8cf914610631578063c21ba5281461063a578063c56c2c431461064e57600080fd5b8063b12aa783146105ef578063b3ab15fb14610603578063b88d4fde1461061657600080fd5b80638da5cb5b1461058957806390578c811461059a57806395d89b41146105ad578063a22cb465146105b5578063ab7b4993146105c8578063abd017ea146105db57600080fd5b806346fff98d11610292578063642359aa1161023057806370a45b701161020a57806370a45b701461055b578063715018a61461056e578063748a97d914610576578063753868e31461058157600080fd5b8063642359aa146105075780636ca3e52b1461053557806370a082311461054857600080fd5b806351cff8d91161026c57806351cff8d9146104bb57806355f804b3146104ce578063570ca735146104e15780636352211e146104f457600080fd5b806346fff98d146104825780634de8bcfb146104955780634f558e79146104a857600080fd5b806323b872dd116102ff5780632e81aaea116102d95780632e81aaea14610435578063346de50a1461044857806342842e0e1461045c57806342966c681461046f57600080fd5b806323b872dd146103fc57806324dfb8901461040f578063271a17461461042257600080fd5b806301ffc9a71461034757806306fdde031461036f578063081812fc14610384578063095ea7b3146103af57806318160ddd146103c457806320f2d275146103e9575b600080fd5b61035a6103553660046122b0565b610788565b60405190151581526020015b60405180910390f35b6103776107b3565b604051610366919061231d565b610397610392366004612330565b610845565b6040516001600160a01b039091168152602001610366565b6103c26103bd366004612365565b61086c565b005b600a546001600160801b03165b6040516001600160801b039091168152602001610366565b6103c26103f736600461239d565b610986565b6103c261040a3660046123d4565b610a08565b6103c261041d366004612410565b610a39565b6103c261043036600461242d565b610aad565b6103c2610443366004612448565b610b2c565b600c5461035a90600160a01b900460ff1681565b6103c261046a3660046123d4565b610c18565b6103c261047d366004612330565b610c33565b6103c2610490366004612410565b610c89565b6103c26104a3366004612410565b610cfb565b61035a6104b6366004612330565b610d6f565b6103c26104c936600461242d565b610d8e565b6103c26104dc366004612507565b610e46565b600954610397906001600160a01b031681565b610397610502366004612330565b610e7d565b610527610515366004612330565b60009081526006602052604090205490565b604051908152602001610366565b6103c2610543366004612410565b610edd565b61052761055636600461242d565b610f51565b6103c2610569366004612550565b610fd7565b6103c26110c4565b6105276301e1338081565b6103c26110d8565b6008546001600160a01b0316610397565b6103c26105a8366004612330565b611157565b610377611187565b6103c26105c336600461239d565b611196565b6103c26105d636600461242d565b6111a1565b600c5461035a90600160c81b900460ff1681565b600c5461035a90600160b01b900460ff1681565b6103c261061136600461242d565b6111ee565b6103c2610624366004612572565b611271565b6103776112a4565b610527600b5481565b600c5461035a90600160b81b900460ff1681565b61035a61065c36600461242d565b60076020526000908152604090205460ff1681565b610527600f5481565b6103c2610688366004612330565b611332565b6103c261069b366004612507565b611377565b6103776106ae366004612330565b6113ae565b600c5461035a90600160a81b900460ff1681565b6103c26106d5366004612410565b611415565b6103c26106e8366004612365565b611489565b600c5461035a90600160c01b900460ff1681565b61035a61070f3660046125ee565b611543565b600c54610397906001600160a01b031681565b6103c261073536600461242d565b611571565b61035a61074836600461242d565b60106020526000908152604090205460ff1681565b6103d161753081565b61035a610774366004612330565b600090815260066020526040902054421090565b60006001600160e01b031982166327e3eb7960e01b14806107ad57506107ad826115e7565b92915050565b6060600080546107c290612621565b80601f01602080910402602001604051908101604052809291908181526020018280546107ee90612621565b801561083b5780601f106108105761010080835404028352916020019161083b565b820191906000526020600020905b81548152906001019060200180831161081e57829003601f168201915b5050505050905090565b600061085082611637565b506000908152600460205260409020546001600160a01b031690565b600061087782610e7d565b9050806001600160a01b0316836001600160a01b0316036108e95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061090557506109058133611543565b6109775760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016108e0565b6109818383611696565b505050565b6009546001600160a01b031633146109b1576040516337fa462360e11b815260040160405180910390fd5b600c54600160c01b900460ff16156109dc5760405163af9e1b4360e01b815260040160405180910390fd5b6001600160a01b0382166000908152600760205260409020805460ff19168215151790555050565b5050565b610a123382611704565b610a2e5760405162461bcd60e51b81526004016108e09061265b565b610981838383611763565b6009546001600160a01b03163314610a64576040516337fa462360e11b815260040160405180910390fd5b600c54600160c01b900460ff1615610a8f5760405163af9e1b4360e01b815260040160405180910390fd5b600c8054911515600160b81b0260ff60b81b19909216919091179055565b6009546001600160a01b03163314610ad8576040516337fa462360e11b815260040160405180910390fd5b600c54600160c01b900460ff1615610b035760405163af9e1b4360e01b815260040160405180910390fd5b6001600160a01b03166000908152601060205260409020805460ff19811660ff90911615179055565b3360009081526010602052604081205460ff1615159003610b605760405163bc88519760e01b815260040160405180910390fd5b600c54600160a81b900460ff16610b8a57604051636d38534360e01b815260040160405180910390fd5b600b5461753090610b9c9083906126bf565b1115610bbb5760405163adb00a1760e01b815260040160405180910390fd5b6000610bc782846126bf565b90505b80831015610c1257600b80546001908101909155600a80546001600160801b038082168401166001600160801b0319909116179055830192610c0c858261190a565b50610bca565b50505050565b61098183838360405180602001604052806000815250611271565b610c3c81611924565b610c595760405163044bcf2f60e31b815260040160405180910390fd5b600a80546001600160801b031981166001600160801b0391821660001901909116179055610c868161198e565b50565b6009546001600160a01b03163314610cb4576040516337fa462360e11b815260040160405180910390fd5b600c546001600160a01b0316610cdd5760405163611ee86360e11b815260040160405180910390fd5b600c8054911515600160c81b0260ff60c81b19909216919091179055565b6009546001600160a01b03163314610d26576040516337fa462360e11b815260040160405180910390fd5b600c54600160c01b900460ff1615610d515760405163af9e1b4360e01b815260040160405180910390fd5b600c8054911515600160a01b0260ff60a01b19909216919091179055565b6000818152600260205260408120546001600160a01b031615156107ad565b6009546001600160a01b03163314610db9576040516337fa462360e11b815260040160405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610e00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2491906126d2565b90508015610a0457600954610a04906001600160a01b03848116911683611a35565b6009546001600160a01b03163314610e71576040516337fa462360e11b815260040160405180910390fd5b600d610a048282612739565b6000818152600260205260408120546001600160a01b0316806107ad5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108e0565b6009546001600160a01b03163314610f08576040516337fa462360e11b815260040160405180910390fd5b600c54600160c01b900460ff1615610f335760405163af9e1b4360e01b815260040160405180910390fd5b600c8054911515600160a81b0260ff60a81b19909216919091179055565b60006001600160a01b038216610fbb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016108e0565b506001600160a01b031660009081526003602052604090205490565b3360009081526007602052604081205460ff161515900361100b576040516354144eff60e11b815260040160405180910390fd5b60008281526006602052604090205442101561103a5760405163c066bae760e01b815260040160405180910390fd5b428111801561105557506301e1338061105342836127f9565b115b1561107357604051635598576f60e11b815260040160405180910390fd5b600082815260066020526040908190208290555182907ff43c632cabf9b23317efd3d40fdd5be89b56d735e96a36181c46684f9f9ea81c906110b89084815260200190565b60405180910390a25050565b6110cc611a87565b6110d66000611ae1565b565b6009546001600160a01b03163314611103576040516337fa462360e11b815260040160405180910390fd5b600c54600160a01b900460ff16806111245750600c54600160a81b900460ff165b1561114257604051634d9e996560e11b815260040160405180910390fd5b600c805460ff60c01b1916600160c01b179055565b6009546001600160a01b03163314611182576040516337fa462360e11b815260040160405180910390fd5b600f55565b6060600180546107c290612621565b610a04338383611b33565b6009546001600160a01b031633146111cc576040516337fa462360e11b815260040160405180910390fd5b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6111f6611a87565b6001600160a01b03811661121d57604051637652539b60e01b815260040160405180910390fd5b600980546001600160a01b0319166001600160a01b0383169081179091556040519081527f4721129e0e676ed6a92909bb24e853ccdd63ad72280cc2e974e38e480e0e6e549060200160405180910390a150565b61127c335b83611704565b6112985760405162461bcd60e51b81526004016108e09061265b565b610c1284848484611c01565b600e80546112b190612621565b80601f01602080910402602001604051908101604052809291908181526020018280546112dd90612621565b801561132a5780601f106112ff5761010080835404028352916020019161132a565b820191906000526020600020905b81548152906001019060200180831161130d57829003601f168201915b505050505081565b3360009081526007602052604081205460ff1615159003611366576040516354144eff60e11b815260040160405180910390fd5b600090815260066020526040812055565b6009546001600160a01b031633146113a2576040516337fa462360e11b815260040160405180910390fd5b600e610a048282612739565b60606113b982611637565b60006113c3611c34565b905060008151116113e3576040518060200160405280600081525061140e565b806113ed84611c43565b6040516020016113fe92919061280c565b6040516020818303038152906040525b9392505050565b6009546001600160a01b03163314611440576040516337fa462360e11b815260040160405180910390fd5b600c54600160c01b900460ff161561146b5760405163af9e1b4360e01b815260040160405180910390fd5b600c8054911515600160b01b0260ff60b01b19909216919091179055565b3360009081526010602052604081205460ff16151590036114bd5760405163bc88519760e01b815260040160405180910390fd5b600c54600160a01b900460ff166114e757604051636d38534360e01b815260040160405180910390fd5b600b546175301161150b5760405163adb00a1760e01b815260040160405180910390fd5b600a80546001600160801b0319811660016001600160801b03928316810190921617909155600b80549091019055610a04828261190a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b611579611a87565b6001600160a01b0381166115de5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108e0565b610c8681611ae1565b60006001600160e01b031982166380ac58cd60e01b148061161857506001600160e01b03198216635b5e139f60e01b145b806107ad57506301ffc9a760e01b6001600160e01b03198316146107ad565b6000818152600260205260409020546001600160a01b0316610c865760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108e0565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906116cb82610e7d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061171083610e7d565b9050806001600160a01b0316846001600160a01b0316148061173757506117378185611543565b8061175b5750836001600160a01b031661175084610845565b6001600160a01b0316145b949350505050565b826001600160a01b031661177682610e7d565b6001600160a01b0316146117da5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016108e0565b6001600160a01b03821661183c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108e0565b611847838383611d44565b611852600082611696565b6001600160a01b038316600090815260036020526040812080546001929061187b9084906127f9565b90915550506001600160a01b03821660009081526003602052604081208054600192906118a99084906126bf565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610a04828260405180602001604052806000815250611d76565b600c54600090600160b81b900460ff16801561194f57503360009081526010602052604090205460ff165b1561195c57506001919050565b600c54600160b01b900460ff168015611979575061197933611276565b1561198657506001919050565b506000919050565b600061199982610e7d565b90506119a781600084611d44565b6119b2600083611696565b6001600160a01b03811660009081526003602052604081208054600192906119db9084906127f9565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610981908490611da9565b6008546001600160a01b031633146110d65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108e0565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603611b945760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108e0565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611c0c848484611763565b611c1884848484611e7b565b610c125760405162461bcd60e51b81526004016108e09061283b565b6060600d80546107c290612621565b606081600003611c6a5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611c945780611c7e8161288d565b9150611c8d9050600a836128bc565b9150611c6e565b60008167ffffffffffffffff811115611caf57611caf61247b565b6040519080825280601f01601f191660200182016040528015611cd9576020820181803683370190505b5090505b841561175b57611cee6001836127f9565b9150611cfb600a866128d0565b611d069060306126bf565b60f81b818381518110611d1b57611d1b6128e4565b60200101906001600160f81b031916908160001a905350611d3d600a866128bc565b9450611cdd565b611d4d33611f7c565b15611d5d57610981838383612009565b604051631eb49d6d60e11b815260040160405180910390fd5b611d808383612038565b611d8d6000848484611e7b565b6109815760405162461bcd60e51b81526004016108e09061283b565b6000611dfe826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166121869092919063ffffffff16565b8051909150156109815780806020019051810190611e1c91906128fa565b6109815760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016108e0565b60006001600160a01b0384163b15611f7157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611ebf903390899088908890600401612917565b6020604051808303816000875af1925050508015611efa575060408051601f3d908101601f19168201909252611ef791810190612954565b60015b611f57573d808015611f28576040519150601f19603f3d011682016040523d82523d6000602084013e611f2d565b606091505b508051600003611f4f5760405162461bcd60e51b81526004016108e09061283b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061175b565b506001949350505050565b600c54600090600160c81b900460ff161561200157600c546040516370c5e04560e11b81526001600160a01b03848116600483015290911690819063e18bc08a90602401602060405180830381865afa158015611fdd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061140e91906128fa565b506001919050565b6000818152600660205260409020544210156109815760405163c066bae760e01b815260040160405180910390fd5b6001600160a01b03821661208e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108e0565b6000818152600260205260409020546001600160a01b0316156120f35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108e0565b6120ff60008383611d44565b6001600160a01b03821660009081526003602052604081208054600192906121289084906126bf565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606061175b8484600085856001600160a01b0385163b6121e85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108e0565b600080866001600160a01b031685876040516122049190612971565b60006040518083038185875af1925050503d8060008114612241576040519150601f19603f3d011682016040523d82523d6000602084013e612246565b606091505b5091509150612256828286612261565b979650505050505050565b6060831561227057508161140e565b8251156122805782518084602001fd5b8160405162461bcd60e51b81526004016108e0919061231d565b6001600160e01b031981168114610c8657600080fd5b6000602082840312156122c257600080fd5b813561140e8161229a565b60005b838110156122e85781810151838201526020016122d0565b50506000910152565b600081518084526123098160208601602086016122cd565b601f01601f19169290920160200192915050565b60208152600061140e60208301846122f1565b60006020828403121561234257600080fd5b5035919050565b80356001600160a01b038116811461236057600080fd5b919050565b6000806040838503121561237857600080fd5b61238183612349565b946020939093013593505050565b8015158114610c8657600080fd5b600080604083850312156123b057600080fd5b6123b983612349565b915060208301356123c98161238f565b809150509250929050565b6000806000606084860312156123e957600080fd5b6123f284612349565b925061240060208501612349565b9150604084013590509250925092565b60006020828403121561242257600080fd5b813561140e8161238f565b60006020828403121561243f57600080fd5b61140e82612349565b60008060006060848603121561245d57600080fd5b61246684612349565b95602085013595506040909401359392505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156124ac576124ac61247b565b604051601f8501601f19908116603f011681019082821181831017156124d4576124d461247b565b816040528093508581528686860111156124ed57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561251957600080fd5b813567ffffffffffffffff81111561253057600080fd5b8201601f8101841361254157600080fd5b61175b84823560208401612491565b6000806040838503121561256357600080fd5b50508035926020909101359150565b6000806000806080858703121561258857600080fd5b61259185612349565b935061259f60208601612349565b925060408501359150606085013567ffffffffffffffff8111156125c257600080fd5b8501601f810187136125d357600080fd5b6125e287823560208401612491565b91505092959194509250565b6000806040838503121561260157600080fd5b61260a83612349565b915061261860208401612349565b90509250929050565b600181811c9082168061263557607f821691505b60208210810361265557634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b808201808211156107ad576107ad6126a9565b6000602082840312156126e457600080fd5b5051919050565b601f82111561098157600081815260208120601f850160051c810160208610156127125750805b601f850160051c820191505b818110156127315782815560010161271e565b505050505050565b815167ffffffffffffffff8111156127535761275361247b565b612767816127618454612621565b846126eb565b602080601f83116001811461279c57600084156127845750858301515b600019600386901b1c1916600185901b178555612731565b600085815260208120601f198616915b828110156127cb578886015182559484019460019091019084016127ac565b50858210156127e95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b818103818111156107ad576107ad6126a9565b6000835161281e8184602088016122cd565b8351908301906128328183602088016122cd565b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006001820161289f5761289f6126a9565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826128cb576128cb6128a6565b500490565b6000826128df576128df6128a6565b500690565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561290c57600080fd5b815161140e8161238f565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061294a908301846122f1565b9695505050505050565b60006020828403121561296657600080fd5b815161140e8161229a565b600082516129838184602087016122cd565b919091019291505056fea2646970667358221220d6c4952bb162f89988292ff3f828ad8847d4981f2b37f5521ab94e95b4dd76c064736f6c63430008110033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000476f3a6b93951f081b1ec119530defaacaa9a330000000000000000000000000000000000000000000000000000000000000000648562d4d544c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000648562d4d544c0000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103425760003560e01c80638da5cb5b116101b8578063c5a1d7f011610104578063e5b4f6c6116100a2578063f2fde38b1161007c578063f2fde38b14610727578063f46eccc41461073a578063f47c84c51461075d578063f6aacfb11461076657600080fd5b8063e5b4f6c6146106ed578063e985e9c514610701578063ed9aab511461071457600080fd5b8063c87b56dd116100de578063c87b56dd146106a0578063d1439819146106b3578063d40ca218146106c7578063d48e13c3146106da57600080fd5b8063c5a1d7f014610671578063c5ce26121461067a578063c78f2e7b1461068d57600080fd5b8063b12aa78311610171578063bfc740841161014b578063bfc7408414610629578063c1bd8cf914610631578063c21ba5281461063a578063c56c2c431461064e57600080fd5b8063b12aa783146105ef578063b3ab15fb14610603578063b88d4fde1461061657600080fd5b80638da5cb5b1461058957806390578c811461059a57806395d89b41146105ad578063a22cb465146105b5578063ab7b4993146105c8578063abd017ea146105db57600080fd5b806346fff98d11610292578063642359aa1161023057806370a45b701161020a57806370a45b701461055b578063715018a61461056e578063748a97d914610576578063753868e31461058157600080fd5b8063642359aa146105075780636ca3e52b1461053557806370a082311461054857600080fd5b806351cff8d91161026c57806351cff8d9146104bb57806355f804b3146104ce578063570ca735146104e15780636352211e146104f457600080fd5b806346fff98d146104825780634de8bcfb146104955780634f558e79146104a857600080fd5b806323b872dd116102ff5780632e81aaea116102d95780632e81aaea14610435578063346de50a1461044857806342842e0e1461045c57806342966c681461046f57600080fd5b806323b872dd146103fc57806324dfb8901461040f578063271a17461461042257600080fd5b806301ffc9a71461034757806306fdde031461036f578063081812fc14610384578063095ea7b3146103af57806318160ddd146103c457806320f2d275146103e9575b600080fd5b61035a6103553660046122b0565b610788565b60405190151581526020015b60405180910390f35b6103776107b3565b604051610366919061231d565b610397610392366004612330565b610845565b6040516001600160a01b039091168152602001610366565b6103c26103bd366004612365565b61086c565b005b600a546001600160801b03165b6040516001600160801b039091168152602001610366565b6103c26103f736600461239d565b610986565b6103c261040a3660046123d4565b610a08565b6103c261041d366004612410565b610a39565b6103c261043036600461242d565b610aad565b6103c2610443366004612448565b610b2c565b600c5461035a90600160a01b900460ff1681565b6103c261046a3660046123d4565b610c18565b6103c261047d366004612330565b610c33565b6103c2610490366004612410565b610c89565b6103c26104a3366004612410565b610cfb565b61035a6104b6366004612330565b610d6f565b6103c26104c936600461242d565b610d8e565b6103c26104dc366004612507565b610e46565b600954610397906001600160a01b031681565b610397610502366004612330565b610e7d565b610527610515366004612330565b60009081526006602052604090205490565b604051908152602001610366565b6103c2610543366004612410565b610edd565b61052761055636600461242d565b610f51565b6103c2610569366004612550565b610fd7565b6103c26110c4565b6105276301e1338081565b6103c26110d8565b6008546001600160a01b0316610397565b6103c26105a8366004612330565b611157565b610377611187565b6103c26105c336600461239d565b611196565b6103c26105d636600461242d565b6111a1565b600c5461035a90600160c81b900460ff1681565b600c5461035a90600160b01b900460ff1681565b6103c261061136600461242d565b6111ee565b6103c2610624366004612572565b611271565b6103776112a4565b610527600b5481565b600c5461035a90600160b81b900460ff1681565b61035a61065c36600461242d565b60076020526000908152604090205460ff1681565b610527600f5481565b6103c2610688366004612330565b611332565b6103c261069b366004612507565b611377565b6103776106ae366004612330565b6113ae565b600c5461035a90600160a81b900460ff1681565b6103c26106d5366004612410565b611415565b6103c26106e8366004612365565b611489565b600c5461035a90600160c01b900460ff1681565b61035a61070f3660046125ee565b611543565b600c54610397906001600160a01b031681565b6103c261073536600461242d565b611571565b61035a61074836600461242d565b60106020526000908152604090205460ff1681565b6103d161753081565b61035a610774366004612330565b600090815260066020526040902054421090565b60006001600160e01b031982166327e3eb7960e01b14806107ad57506107ad826115e7565b92915050565b6060600080546107c290612621565b80601f01602080910402602001604051908101604052809291908181526020018280546107ee90612621565b801561083b5780601f106108105761010080835404028352916020019161083b565b820191906000526020600020905b81548152906001019060200180831161081e57829003601f168201915b5050505050905090565b600061085082611637565b506000908152600460205260409020546001600160a01b031690565b600061087782610e7d565b9050806001600160a01b0316836001600160a01b0316036108e95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b038216148061090557506109058133611543565b6109775760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016108e0565b6109818383611696565b505050565b6009546001600160a01b031633146109b1576040516337fa462360e11b815260040160405180910390fd5b600c54600160c01b900460ff16156109dc5760405163af9e1b4360e01b815260040160405180910390fd5b6001600160a01b0382166000908152600760205260409020805460ff19168215151790555050565b5050565b610a123382611704565b610a2e5760405162461bcd60e51b81526004016108e09061265b565b610981838383611763565b6009546001600160a01b03163314610a64576040516337fa462360e11b815260040160405180910390fd5b600c54600160c01b900460ff1615610a8f5760405163af9e1b4360e01b815260040160405180910390fd5b600c8054911515600160b81b0260ff60b81b19909216919091179055565b6009546001600160a01b03163314610ad8576040516337fa462360e11b815260040160405180910390fd5b600c54600160c01b900460ff1615610b035760405163af9e1b4360e01b815260040160405180910390fd5b6001600160a01b03166000908152601060205260409020805460ff19811660ff90911615179055565b3360009081526010602052604081205460ff1615159003610b605760405163bc88519760e01b815260040160405180910390fd5b600c54600160a81b900460ff16610b8a57604051636d38534360e01b815260040160405180910390fd5b600b5461753090610b9c9083906126bf565b1115610bbb5760405163adb00a1760e01b815260040160405180910390fd5b6000610bc782846126bf565b90505b80831015610c1257600b80546001908101909155600a80546001600160801b038082168401166001600160801b0319909116179055830192610c0c858261190a565b50610bca565b50505050565b61098183838360405180602001604052806000815250611271565b610c3c81611924565b610c595760405163044bcf2f60e31b815260040160405180910390fd5b600a80546001600160801b031981166001600160801b0391821660001901909116179055610c868161198e565b50565b6009546001600160a01b03163314610cb4576040516337fa462360e11b815260040160405180910390fd5b600c546001600160a01b0316610cdd5760405163611ee86360e11b815260040160405180910390fd5b600c8054911515600160c81b0260ff60c81b19909216919091179055565b6009546001600160a01b03163314610d26576040516337fa462360e11b815260040160405180910390fd5b600c54600160c01b900460ff1615610d515760405163af9e1b4360e01b815260040160405180910390fd5b600c8054911515600160a01b0260ff60a01b19909216919091179055565b6000818152600260205260408120546001600160a01b031615156107ad565b6009546001600160a01b03163314610db9576040516337fa462360e11b815260040160405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610e00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2491906126d2565b90508015610a0457600954610a04906001600160a01b03848116911683611a35565b6009546001600160a01b03163314610e71576040516337fa462360e11b815260040160405180910390fd5b600d610a048282612739565b6000818152600260205260408120546001600160a01b0316806107ad5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108e0565b6009546001600160a01b03163314610f08576040516337fa462360e11b815260040160405180910390fd5b600c54600160c01b900460ff1615610f335760405163af9e1b4360e01b815260040160405180910390fd5b600c8054911515600160a81b0260ff60a81b19909216919091179055565b60006001600160a01b038216610fbb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016108e0565b506001600160a01b031660009081526003602052604090205490565b3360009081526007602052604081205460ff161515900361100b576040516354144eff60e11b815260040160405180910390fd5b60008281526006602052604090205442101561103a5760405163c066bae760e01b815260040160405180910390fd5b428111801561105557506301e1338061105342836127f9565b115b1561107357604051635598576f60e11b815260040160405180910390fd5b600082815260066020526040908190208290555182907ff43c632cabf9b23317efd3d40fdd5be89b56d735e96a36181c46684f9f9ea81c906110b89084815260200190565b60405180910390a25050565b6110cc611a87565b6110d66000611ae1565b565b6009546001600160a01b03163314611103576040516337fa462360e11b815260040160405180910390fd5b600c54600160a01b900460ff16806111245750600c54600160a81b900460ff165b1561114257604051634d9e996560e11b815260040160405180910390fd5b600c805460ff60c01b1916600160c01b179055565b6009546001600160a01b03163314611182576040516337fa462360e11b815260040160405180910390fd5b600f55565b6060600180546107c290612621565b610a04338383611b33565b6009546001600160a01b031633146111cc576040516337fa462360e11b815260040160405180910390fd5b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6111f6611a87565b6001600160a01b03811661121d57604051637652539b60e01b815260040160405180910390fd5b600980546001600160a01b0319166001600160a01b0383169081179091556040519081527f4721129e0e676ed6a92909bb24e853ccdd63ad72280cc2e974e38e480e0e6e549060200160405180910390a150565b61127c335b83611704565b6112985760405162461bcd60e51b81526004016108e09061265b565b610c1284848484611c01565b600e80546112b190612621565b80601f01602080910402602001604051908101604052809291908181526020018280546112dd90612621565b801561132a5780601f106112ff5761010080835404028352916020019161132a565b820191906000526020600020905b81548152906001019060200180831161130d57829003601f168201915b505050505081565b3360009081526007602052604081205460ff1615159003611366576040516354144eff60e11b815260040160405180910390fd5b600090815260066020526040812055565b6009546001600160a01b031633146113a2576040516337fa462360e11b815260040160405180910390fd5b600e610a048282612739565b60606113b982611637565b60006113c3611c34565b905060008151116113e3576040518060200160405280600081525061140e565b806113ed84611c43565b6040516020016113fe92919061280c565b6040516020818303038152906040525b9392505050565b6009546001600160a01b03163314611440576040516337fa462360e11b815260040160405180910390fd5b600c54600160c01b900460ff161561146b5760405163af9e1b4360e01b815260040160405180910390fd5b600c8054911515600160b01b0260ff60b01b19909216919091179055565b3360009081526010602052604081205460ff16151590036114bd5760405163bc88519760e01b815260040160405180910390fd5b600c54600160a01b900460ff166114e757604051636d38534360e01b815260040160405180910390fd5b600b546175301161150b5760405163adb00a1760e01b815260040160405180910390fd5b600a80546001600160801b0319811660016001600160801b03928316810190921617909155600b80549091019055610a04828261190a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b611579611a87565b6001600160a01b0381166115de5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108e0565b610c8681611ae1565b60006001600160e01b031982166380ac58cd60e01b148061161857506001600160e01b03198216635b5e139f60e01b145b806107ad57506301ffc9a760e01b6001600160e01b03198316146107ad565b6000818152600260205260409020546001600160a01b0316610c865760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016108e0565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906116cb82610e7d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061171083610e7d565b9050806001600160a01b0316846001600160a01b0316148061173757506117378185611543565b8061175b5750836001600160a01b031661175084610845565b6001600160a01b0316145b949350505050565b826001600160a01b031661177682610e7d565b6001600160a01b0316146117da5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016108e0565b6001600160a01b03821661183c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108e0565b611847838383611d44565b611852600082611696565b6001600160a01b038316600090815260036020526040812080546001929061187b9084906127f9565b90915550506001600160a01b03821660009081526003602052604081208054600192906118a99084906126bf565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610a04828260405180602001604052806000815250611d76565b600c54600090600160b81b900460ff16801561194f57503360009081526010602052604090205460ff165b1561195c57506001919050565b600c54600160b01b900460ff168015611979575061197933611276565b1561198657506001919050565b506000919050565b600061199982610e7d565b90506119a781600084611d44565b6119b2600083611696565b6001600160a01b03811660009081526003602052604081208054600192906119db9084906127f9565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610981908490611da9565b6008546001600160a01b031633146110d65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108e0565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603611b945760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108e0565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611c0c848484611763565b611c1884848484611e7b565b610c125760405162461bcd60e51b81526004016108e09061283b565b6060600d80546107c290612621565b606081600003611c6a5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611c945780611c7e8161288d565b9150611c8d9050600a836128bc565b9150611c6e565b60008167ffffffffffffffff811115611caf57611caf61247b565b6040519080825280601f01601f191660200182016040528015611cd9576020820181803683370190505b5090505b841561175b57611cee6001836127f9565b9150611cfb600a866128d0565b611d069060306126bf565b60f81b818381518110611d1b57611d1b6128e4565b60200101906001600160f81b031916908160001a905350611d3d600a866128bc565b9450611cdd565b611d4d33611f7c565b15611d5d57610981838383612009565b604051631eb49d6d60e11b815260040160405180910390fd5b611d808383612038565b611d8d6000848484611e7b565b6109815760405162461bcd60e51b81526004016108e09061283b565b6000611dfe826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166121869092919063ffffffff16565b8051909150156109815780806020019051810190611e1c91906128fa565b6109815760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016108e0565b60006001600160a01b0384163b15611f7157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611ebf903390899088908890600401612917565b6020604051808303816000875af1925050508015611efa575060408051601f3d908101601f19168201909252611ef791810190612954565b60015b611f57573d808015611f28576040519150601f19603f3d011682016040523d82523d6000602084013e611f2d565b606091505b508051600003611f4f5760405162461bcd60e51b81526004016108e09061283b565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061175b565b506001949350505050565b600c54600090600160c81b900460ff161561200157600c546040516370c5e04560e11b81526001600160a01b03848116600483015290911690819063e18bc08a90602401602060405180830381865afa158015611fdd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061140e91906128fa565b506001919050565b6000818152600660205260409020544210156109815760405163c066bae760e01b815260040160405180910390fd5b6001600160a01b03821661208e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108e0565b6000818152600260205260409020546001600160a01b0316156120f35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108e0565b6120ff60008383611d44565b6001600160a01b03821660009081526003602052604081208054600192906121289084906126bf565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606061175b8484600085856001600160a01b0385163b6121e85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016108e0565b600080866001600160a01b031685876040516122049190612971565b60006040518083038185875af1925050503d8060008114612241576040519150601f19603f3d011682016040523d82523d6000602084013e612246565b606091505b5091509150612256828286612261565b979650505050505050565b6060831561227057508161140e565b8251156122805782518084602001fd5b8160405162461bcd60e51b81526004016108e0919061231d565b6001600160e01b031981168114610c8657600080fd5b6000602082840312156122c257600080fd5b813561140e8161229a565b60005b838110156122e85781810151838201526020016122d0565b50506000910152565b600081518084526123098160208601602086016122cd565b601f01601f19169290920160200192915050565b60208152600061140e60208301846122f1565b60006020828403121561234257600080fd5b5035919050565b80356001600160a01b038116811461236057600080fd5b919050565b6000806040838503121561237857600080fd5b61238183612349565b946020939093013593505050565b8015158114610c8657600080fd5b600080604083850312156123b057600080fd5b6123b983612349565b915060208301356123c98161238f565b809150509250929050565b6000806000606084860312156123e957600080fd5b6123f284612349565b925061240060208501612349565b9150604084013590509250925092565b60006020828403121561242257600080fd5b813561140e8161238f565b60006020828403121561243f57600080fd5b61140e82612349565b60008060006060848603121561245d57600080fd5b61246684612349565b95602085013595506040909401359392505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156124ac576124ac61247b565b604051601f8501601f19908116603f011681019082821181831017156124d4576124d461247b565b816040528093508581528686860111156124ed57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561251957600080fd5b813567ffffffffffffffff81111561253057600080fd5b8201601f8101841361254157600080fd5b61175b84823560208401612491565b6000806040838503121561256357600080fd5b50508035926020909101359150565b6000806000806080858703121561258857600080fd5b61259185612349565b935061259f60208601612349565b925060408501359150606085013567ffffffffffffffff8111156125c257600080fd5b8501601f810187136125d357600080fd5b6125e287823560208401612491565b91505092959194509250565b6000806040838503121561260157600080fd5b61260a83612349565b915061261860208401612349565b90509250929050565b600181811c9082168061263557607f821691505b60208210810361265557634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b808201808211156107ad576107ad6126a9565b6000602082840312156126e457600080fd5b5051919050565b601f82111561098157600081815260208120601f850160051c810160208610156127125750805b601f850160051c820191505b818110156127315782815560010161271e565b505050505050565b815167ffffffffffffffff8111156127535761275361247b565b612767816127618454612621565b846126eb565b602080601f83116001811461279c57600084156127845750858301515b600019600386901b1c1916600185901b178555612731565b600085815260208120601f198616915b828110156127cb578886015182559484019460019091019084016127ac565b50858210156127e95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b818103818111156107ad576107ad6126a9565b6000835161281e8184602088016122cd565b8351908301906128328183602088016122cd565b01949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60006001820161289f5761289f6126a9565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826128cb576128cb6128a6565b500490565b6000826128df576128df6128a6565b500690565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561290c57600080fd5b815161140e8161238f565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061294a908301846122f1565b9695505050505050565b60006020828403121561296657600080fd5b815161140e8161229a565b600082516129838184602087016122cd565b919091019291505056fea2646970667358221220d6c4952bb162f89988292ff3f828ad8847d4981f2b37f5521ab94e95b4dd76c064736f6c63430008110033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000476f3a6b93951f081b1ec119530defaacaa9a330000000000000000000000000000000000000000000000000000000000000000648562d4d544c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000648562d4d544c0000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): HV-MTL
Arg [1] : symbol (string): HV-MTL
Arg [2] : operator (address): 0x476F3a6b93951f081B1eC119530deFaaCAa9A330

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000476f3a6b93951f081b1ec119530defaacaa9a330
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [4] : 48562d4d544c0000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [6] : 48562d4d544c0000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

The HV-MTL (Heavy Metal) collection is made up of 30,000 Mechs derived from 8 different Power Source types. Beginning March 15, 2023, eligible Sewer Passes can be burned to summon a Power Source that will reveal an Evo 1 Mech.

Validator Index Block Amount
View All Withdrawals

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

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