ETH Price: $3,306.37 (-3.72%)
Gas: 20 Gwei

Token

Art On Ledger Stax Mint Pass (ARTLDGRSTX)
 

Overview

Max Total Supply

4,780 ARTLDGRSTX

Holders

3,563

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 ARTLDGRSTX
0x30d8277f61C6C04c599Bce5b05FaCE06CdB63268
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
ArtOnLedgerStaxMintPass

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

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

pragma solidity >=0.8.4;

import {ERC721} from "@rari-capital/solmate/src/tokens/ERC721.sol";
import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import "./Errors.sol";
import "./IArtOfStaxMintPass.sol";
import "./ReentrancyGuard.sol";
import "../Helpers.sol";

contract ArtOnLedgerStaxMintPass is
    ERC721,
    IArtOfStaxMintPass,
    ReentrancyGuard,
    AccessControl,
    Ownable
{
    bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");

    string private _baseTokenURI;
    string private _baseContractURI;

    uint256 private _nextTokenCount = 1;

    address private _rootContract;

    constructor(
        string memory baseTokenURI_,
        string memory baseContractURI_,
        string memory _name,
        string memory _symbol,
        address rootContract_
    ) ERC721(_name, _symbol) {
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);

        _rootContract = rootContract_;
        _baseTokenURI = baseTokenURI_;
        _baseContractURI = baseContractURI_;
    }

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

    function mint(address to) external lock {
        if (_rootContract != msg.sender) revert Errors.OnlyRootContract();
        _safeMint(to, _nextTokenCount);

        unchecked {
            ++_nextTokenCount;
        }
    }

    function mint(address to, uint256 amount) external lock {
        if (_rootContract != msg.sender) revert Errors.OnlyRootContract();

        for (uint256 i; i < amount; ) {
            _safeMint(to, _nextTokenCount);

            unchecked {
                ++_nextTokenCount;
                ++i;
            }
        }
    }

    function burn(uint256 id, address tokenOwner)
        external
        onlyRole(BURNER_ROLE)
    {
        _burnLogic(id, tokenOwner);
    }

    function setContractURI(string calldata baseContractURI_)
        external
        onlyOwner
    {
        if (bytes(baseContractURI_).length == 0)
            revert Errors.InvalidBaseContractURL();

        _baseContractURI = baseContractURI_;
    }

    function setBaseURI(string calldata baseURI_) external onlyOwner {
        if (bytes(baseURI_).length == 0) revert Errors.InvalidBaseURI();

        _baseTokenURI = baseURI_;
    }

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

    function contractURI() external view returns (string memory) {
        return _baseContractURI;
    }

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

    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        if (ownerOf(tokenId) == address(0)) revert Errors.TokenDoesNotExist();

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

    function _burnLogic(uint256 id, address tokenOwner) private {
        address owner_ = ownerOf(id);

        if (tokenOwner != owner_) revert Errors.InvalidOwner();

        _burn(id);
    }
}

File 2 of 14 : Helpers.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;

library Helpers {
    function uint2string(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);
    }
}

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

pragma solidity >=0.8.4;

import "./Errors.sol";

abstract contract ReentrancyGuard {
    uint256 private unlocked = 1;
    modifier lock() {
        if (unlocked == 0) revert Errors.ContractLocked();

        unlocked = 0;
        _;
        unlocked = 1;
    }
}

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

pragma solidity >=0.8.4;

// TODO: Fix name
interface IArtOfStaxMintPass {
    function mint(address to) external;
    function mint(address to, uint256 amount) external;
}

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

pragma solidity >=0.8.4;

library Errors {
    error TokenDoesNotExist();
    error OnlyRootContract();
    error InvalidBaseURI();
    error InvalidBaseContractURL();
    error InvalidOwner();

    /* ReentrancyGuard.sol */
    error ContractLocked();
}

File 6 of 14 : 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 7 of 14 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

File 8 of 14 : ERC721.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern, minimalist, and gas efficient ERC-721 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 indexed id);

    event Approval(address indexed owner, address indexed spender, uint256 indexed id);

    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /*//////////////////////////////////////////////////////////////
                         METADATA STORAGE/LOGIC
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    function tokenURI(uint256 id) public view virtual returns (string memory);

    /*//////////////////////////////////////////////////////////////
                      ERC721 BALANCE/OWNER STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) internal _ownerOf;

    mapping(address => uint256) internal _balanceOf;

    function ownerOf(uint256 id) public view virtual returns (address owner) {
        require((owner = _ownerOf[id]) != address(0), "NOT_MINTED");
    }

    function balanceOf(address owner) public view virtual returns (uint256) {
        require(owner != address(0), "ZERO_ADDRESS");

        return _balanceOf[owner];
    }

    /*//////////////////////////////////////////////////////////////
                         ERC721 APPROVAL STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) public getApproved;

    mapping(address => mapping(address => bool)) public isApprovedForAll;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(string memory _name, string memory _symbol) {
        name = _name;
        symbol = _symbol;
    }

    /*//////////////////////////////////////////////////////////////
                              ERC721 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 id) public virtual {
        address owner = _ownerOf[id];

        require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED");

        getApproved[id] = spender;

        emit Approval(owner, spender, id);
    }

    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function transferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        require(from == _ownerOf[id], "WRONG_FROM");

        require(to != address(0), "INVALID_RECIPIENT");

        require(
            msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id],
            "NOT_AUTHORIZED"
        );

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        unchecked {
            _balanceOf[from]--;

            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

        delete getApproved[id];

        emit Transfer(from, to, id);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes calldata data
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    /*//////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 id) internal virtual {
        require(to != address(0), "INVALID_RECIPIENT");

        require(_ownerOf[id] == address(0), "ALREADY_MINTED");

        // Counter overflow is incredibly unrealistic.
        unchecked {
            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

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

    function _burn(uint256 id) internal virtual {
        address owner = _ownerOf[id];

        require(owner != address(0), "NOT_MINTED");

        // Ownership check above ensures no underflow.
        unchecked {
            _balanceOf[owner]--;
        }

        delete _ownerOf[id];

        delete getApproved[id];

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

    /*//////////////////////////////////////////////////////////////
                        INTERNAL SAFE MINT LOGIC
    //////////////////////////////////////////////////////////////*/

    function _safeMint(address to, uint256 id) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _safeMint(
        address to,
        uint256 id,
        bytes memory data
    ) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }
}

/// @notice A generic interface for a contract which properly accepts ERC721 tokens.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721TokenReceiver {
    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC721TokenReceiver.onERC721Received.selector;
    }
}

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

pragma solidity ^0.8.0;

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

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

File 10 of 14 : 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 11 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _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) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _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 12 of 14 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 13 of 14 : 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 14 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseTokenURI_","type":"string"},{"internalType":"string","name":"baseContractURI_","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"rootContract_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ContractLocked","type":"error"},{"inputs":[],"name":"InvalidBaseContractURL","type":"error"},{"inputs":[],"name":"InvalidBaseURI","type":"error"},{"inputs":[],"name":"InvalidOwner","type":"error"},{"inputs":[],"name":"OnlyRootContract","type":"error"},{"inputs":[],"name":"TokenDoesNotExist","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BURNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","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":"id","type":"uint256"},{"internalType":"address","name":"tokenOwner","type":"address"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","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":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseContractURI_","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260016006556001600b553480156200001b57600080fd5b5060405162002271380380620022718339810160408190526200003e916200029a565b828260006200004e838262000406565b5060016200005d828262000406565b5050506200007a62000074620000cb60201b60201c565b620000cf565b6200008760003362000121565b600c80546001600160a01b0319166001600160a01b0383161790556009620000b0868262000406565b50600a620000bf858262000406565b505050505050620004d2565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200012d828262000131565b5050565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff166200012d5760008281526007602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001913390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001fd57600080fd5b81516001600160401b03808211156200021a576200021a620001d5565b604051601f8301601f19908116603f01168101908282118183101715620002455762000245620001d5565b816040528381526020925086838588010111156200026257600080fd5b600091505b8382101562000286578582018301518183018401529082019062000267565b600093810190920192909252949350505050565b600080600080600060a08688031215620002b357600080fd5b85516001600160401b0380821115620002cb57600080fd5b620002d989838a01620001eb565b96506020880151915080821115620002f057600080fd5b620002fe89838a01620001eb565b955060408801519150808211156200031557600080fd5b6200032389838a01620001eb565b945060608801519150808211156200033a57600080fd5b506200034988828901620001eb565b608088015190935090506001600160a01b03811681146200036957600080fd5b809150509295509295909350565b600181811c908216806200038c57607f821691505b602082108103620003ad57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200040157600081815260208120601f850160051c81016020861015620003dc5750805b601f850160051c820191505b81811015620003fd57828155600101620003e8565b5050505b505050565b81516001600160401b03811115620004225762000422620001d5565b6200043a8162000433845462000377565b84620003b3565b602080601f831160018114620004725760008415620004595750858301515b600019600386901b1c1916600185901b178555620003fd565b600085815260208120601f198616915b82811015620004a35788860151825594840194600190910190840162000482565b5085821015620004c25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611d8f80620004e26000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c806370a0823111610104578063a22cb465116100a2578063e8a3d48511610071578063e8a3d48514610418578063e985e9c514610420578063f2fde38b1461044e578063fcd3533c1461046157600080fd5b8063a22cb465146103cc578063b88d4fde146103df578063c87b56dd146103f2578063d547741f1461040557600080fd5b806391d14854116100de57806391d1485414610396578063938e3d7b146103a957806395d89b41146103bc578063a217fddf146103c457600080fd5b806370a082311461036a578063715018a61461037d5780638da5cb5b1461038557600080fd5b8063282c51f31161017c57806342842e0e1161014b57806342842e0e1461031e57806355f804b3146103315780636352211e146103445780636a6278421461035757600080fd5b8063282c51f3146102be5780632f2ff15d146102e557806336568abe146102f857806340c10f191461030b57600080fd5b8063095ea7b3116101b8578063095ea7b31461025d57806318160ddd1461027257806323b872dd14610288578063248a9ca31461029b57600080fd5b806301ffc9a7146101df57806306fdde0314610207578063081812fc1461021c575b600080fd5b6101f26101ed366004611734565b610474565b60405190151581526020015b60405180910390f35b61020f610494565b6040516101fe9190611775565b61024561022a3660046117a8565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101fe565b61027061026b3660046117d8565b610522565b005b61027a610609565b6040519081526020016101fe565b610270610296366004611802565b61061f565b61027a6102a93660046117a8565b60009081526007602052604090206001015490565b61027a7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b6102706102f336600461183e565b6107e6565b61027061030636600461183e565b610810565b6102706103193660046117d8565b61088e565b61027061032c366004611802565b610914565b61027061033f3660046118b3565b6109e4565b6102456103523660046117a8565b610a1b565b6102706103653660046118f5565b610a72565b61027a6103783660046118f5565b610ae3565b610270610b46565b6008546001600160a01b0316610245565b6101f26103a436600461183e565b610b5a565b6102706103b73660046118b3565b610b85565b61020f610bbb565b61027a600081565b6102706103da366004611910565b610bc8565b6102706103ed36600461194c565b610c34565b61020f6104003660046117a8565b610cf9565b61027061041336600461183e565b610d89565b61020f610dae565b6101f261042e3660046119bb565b600560209081526000928352604080842090915290825290205460ff1681565b61027061045c3660046118f5565b610e40565b61027061046f36600461183e565b610eb9565b600061047f82610eed565b8061048e575061048e82610f3b565b92915050565b600080546104a1906119e5565b80601f01602080910402602001604051908101604052809291908181526020018280546104cd906119e5565b801561051a5780601f106104ef5761010080835404028352916020019161051a565b820191906000526020600020905b8154815290600101906020018083116104fd57829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061056b57506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6105ad5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006001600b5461061a9190611a35565b905090565b6000818152600260205260409020546001600160a01b038481169116146106755760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b60448201526064016105a4565b6001600160a01b0382166106bf5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016105a4565b336001600160a01b03841614806106f957506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b8061071a57506000818152600460205260409020546001600160a01b031633145b6107575760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064016105a4565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008281526007602052604090206001015461080181610f70565b61080b8383610f7a565b505050565b6001600160a01b03811633146108805760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016105a4565b61088a8282611000565b5050565b6006546000036108b1576040516337affdbf60e11b815260040160405180910390fd5b6000600655600c546001600160a01b031633146108e157604051631512375f60e31b815260040160405180910390fd5b60005b8181101561090a576108f883600b54611067565b600b80546001908101909155016108e4565b5050600160065550565b61091f83838361061f565b6001600160a01b0382163b15806109c85750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610998573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109bc9190611a48565b6001600160e01b031916145b61080b5760405162461bcd60e51b81526004016105a490611a65565b6109ec611133565b6000819003610a0e5760405163cc52148360e01b815260040160405180910390fd5b600961080b828483611af3565b6000818152600260205260409020546001600160a01b031680610a6d5760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064016105a4565b919050565b600654600003610a95576040516337affdbf60e11b815260040160405180910390fd5b6000600655600c546001600160a01b03163314610ac557604051631512375f60e31b815260040160405180910390fd5b610ad181600b54611067565b50600b80546001908101909155600655565b60006001600160a01b038216610b2a5760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b60448201526064016105a4565b506001600160a01b031660009081526003602052604090205490565b610b4e611133565b610b58600061118d565b565b60009182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b610b8d611133565b6000819003610bae5760405162ea21bf60e21b815260040160405180910390fd5b600a61080b828483611af3565b600180546104a1906119e5565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610c3f85858561061f565b6001600160a01b0384163b1580610cd65750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610c879033908a90899089908990600401611bb3565b6020604051808303816000875af1158015610ca6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cca9190611a48565b6001600160e01b031916145b610cf25760405162461bcd60e51b81526004016105a490611a65565b5050505050565b60606000610d0683610a1b565b6001600160a01b031603610d2d5760405163677510db60e11b815260040160405180910390fd5b6000610d376111df565b90506000815111610d575760405180602001604052806000815250610d82565b80610d61846111ee565b604051602001610d72929190611c07565b6040516020818303038152906040525b9392505050565b600082815260076020526040902060010154610da481610f70565b61080b8383611000565b6060600a8054610dbd906119e5565b80601f0160208091040260200160405190810160405280929190818152602001828054610de9906119e5565b8015610e365780601f10610e0b57610100808354040283529160200191610e36565b820191906000526020600020905b815481529060010190602001808311610e1957829003601f168201915b5050505050905090565b610e48611133565b6001600160a01b038116610ead5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105a4565b610eb68161118d565b50565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848610ee381610f70565b61080b83836112f7565b60006301ffc9a760e01b6001600160e01b031983161480610f1e57506380ac58cd60e01b6001600160e01b03198316145b8061048e5750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b03198216637965db0b60e01b148061048e57506301ffc9a760e01b6001600160e01b031983161461048e565b610eb6813361133f565b610f848282610b5a565b61088a5760008281526007602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610fbc3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61100a8282610b5a565b1561088a5760008281526007602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6110718282611398565b6001600160a01b0382163b15806111175750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af11580156110e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110b9190611a48565b6001600160e01b031916145b61088a5760405162461bcd60e51b81526004016105a490611a65565b6008546001600160a01b03163314610b585760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105a4565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606060098054610dbd906119e5565b6060816000036112155750506040805180820190915260018152600360fc1b602082015290565b8160005b811561123f578061122981611c36565b91506112389050600a83611c65565b9150611219565b60008167ffffffffffffffff81111561125a5761125a611a8f565b6040519080825280601f01601f191660200182016040528015611284576020820181803683370190505b5090505b84156112ef57611299600183611a35565b91506112a6600a86611c79565b6112b1906030611c8d565b60f81b8183815181106112c6576112c6611ca0565b60200101906001600160f81b031916908160001a9053506112e8600a86611c65565b9450611288565b949350505050565b600061130283610a1b565b9050806001600160a01b0316826001600160a01b031614611336576040516349e27cff60e01b815260040160405180910390fd5b61080b836114a3565b6113498282610b5a565b61088a5761135681611570565b611361836020611582565b604051602001611372929190611cb6565b60408051601f198184030181529082905262461bcd60e51b82526105a491600401611775565b6001600160a01b0382166113e25760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016105a4565b6000818152600260205260409020546001600160a01b0316156114385760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b60448201526064016105a4565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600260205260409020546001600160a01b0316806114f55760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064016105a4565b6001600160a01b038116600081815260036020908152604080832080546000190190558583526002825280832080546001600160a01b031990811690915560049092528083208054909216909155518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606061048e6001600160a01b03831660145b60606000611591836002611d2b565b61159c906002611c8d565b67ffffffffffffffff8111156115b4576115b4611a8f565b6040519080825280601f01601f1916602001820160405280156115de576020820181803683370190505b509050600360fc1b816000815181106115f9576115f9611ca0565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061162857611628611ca0565b60200101906001600160f81b031916908160001a905350600061164c846002611d2b565b611657906001611c8d565b90505b60018111156116cf576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061168b5761168b611ca0565b1a60f81b8282815181106116a1576116a1611ca0565b60200101906001600160f81b031916908160001a90535060049490941c936116c881611d42565b905061165a565b508315610d825760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105a4565b6001600160e01b031981168114610eb657600080fd5b60006020828403121561174657600080fd5b8135610d828161171e565b60005b8381101561176c578181015183820152602001611754565b50506000910152565b6020815260008251806020840152611794816040850160208701611751565b601f01601f19169190910160400192915050565b6000602082840312156117ba57600080fd5b5035919050565b80356001600160a01b0381168114610a6d57600080fd5b600080604083850312156117eb57600080fd5b6117f4836117c1565b946020939093013593505050565b60008060006060848603121561181757600080fd5b611820846117c1565b925061182e602085016117c1565b9150604084013590509250925092565b6000806040838503121561185157600080fd5b82359150611861602084016117c1565b90509250929050565b60008083601f84011261187c57600080fd5b50813567ffffffffffffffff81111561189457600080fd5b6020830191508360208285010111156118ac57600080fd5b9250929050565b600080602083850312156118c657600080fd5b823567ffffffffffffffff8111156118dd57600080fd5b6118e98582860161186a565b90969095509350505050565b60006020828403121561190757600080fd5b610d82826117c1565b6000806040838503121561192357600080fd5b61192c836117c1565b91506020830135801515811461194157600080fd5b809150509250929050565b60008060008060006080868803121561196457600080fd5b61196d866117c1565b945061197b602087016117c1565b935060408601359250606086013567ffffffffffffffff81111561199e57600080fd5b6119aa8882890161186a565b969995985093965092949392505050565b600080604083850312156119ce57600080fd5b6119d7836117c1565b9150611861602084016117c1565b600181811c908216806119f957607f821691505b602082108103611a1957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561048e5761048e611a1f565b600060208284031215611a5a57600080fd5b8151610d828161171e565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b634e487b7160e01b600052604160045260246000fd5b601f82111561080b57600081815260208120601f850160051c81016020861015611acc5750805b601f850160051c820191505b81811015611aeb57828155600101611ad8565b505050505050565b67ffffffffffffffff831115611b0b57611b0b611a8f565b611b1f83611b1983546119e5565b83611aa5565b6000601f841160018114611b535760008515611b3b5750838201355b600019600387901b1c1916600186901b178355610cf2565b600083815260209020601f19861690835b82811015611b845786850135825560209485019460019092019101611b64565b5086821015611ba15760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008351611c19818460208801611751565b835190830190611c2d818360208801611751565b01949350505050565b600060018201611c4857611c48611a1f565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082611c7457611c74611c4f565b500490565b600082611c8857611c88611c4f565b500690565b8082018082111561048e5761048e611a1f565b634e487b7160e01b600052603260045260246000fd5b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611cee816017850160208801611751565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611d1f816028840160208801611751565b01602801949350505050565b808202811582820484141761048e5761048e611a1f565b600081611d5157611d51611a1f565b50600019019056fea26469706673582212201f7c265bfd2e97e1acfa67018fb332c736022709836347ca9cb65903086011af64736f6c6343000811003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000d3214ef2ae5327468521be8d567e587b38e8ad79000000000000000000000000000000000000000000000000000000000000001768747470733a2f2f7777772e6c65646765722e636f6d2f000000000000000000000000000000000000000000000000000000000000000000000000000000001768747470733a2f2f7777772e6c65646765722e636f6d2f000000000000000000000000000000000000000000000000000000000000000000000000000000001c417274204f6e204c65646765722053746178204d696e74205061737300000000000000000000000000000000000000000000000000000000000000000000000a4152544c44475253545800000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101da5760003560e01c806370a0823111610104578063a22cb465116100a2578063e8a3d48511610071578063e8a3d48514610418578063e985e9c514610420578063f2fde38b1461044e578063fcd3533c1461046157600080fd5b8063a22cb465146103cc578063b88d4fde146103df578063c87b56dd146103f2578063d547741f1461040557600080fd5b806391d14854116100de57806391d1485414610396578063938e3d7b146103a957806395d89b41146103bc578063a217fddf146103c457600080fd5b806370a082311461036a578063715018a61461037d5780638da5cb5b1461038557600080fd5b8063282c51f31161017c57806342842e0e1161014b57806342842e0e1461031e57806355f804b3146103315780636352211e146103445780636a6278421461035757600080fd5b8063282c51f3146102be5780632f2ff15d146102e557806336568abe146102f857806340c10f191461030b57600080fd5b8063095ea7b3116101b8578063095ea7b31461025d57806318160ddd1461027257806323b872dd14610288578063248a9ca31461029b57600080fd5b806301ffc9a7146101df57806306fdde0314610207578063081812fc1461021c575b600080fd5b6101f26101ed366004611734565b610474565b60405190151581526020015b60405180910390f35b61020f610494565b6040516101fe9190611775565b61024561022a3660046117a8565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101fe565b61027061026b3660046117d8565b610522565b005b61027a610609565b6040519081526020016101fe565b610270610296366004611802565b61061f565b61027a6102a93660046117a8565b60009081526007602052604090206001015490565b61027a7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b6102706102f336600461183e565b6107e6565b61027061030636600461183e565b610810565b6102706103193660046117d8565b61088e565b61027061032c366004611802565b610914565b61027061033f3660046118b3565b6109e4565b6102456103523660046117a8565b610a1b565b6102706103653660046118f5565b610a72565b61027a6103783660046118f5565b610ae3565b610270610b46565b6008546001600160a01b0316610245565b6101f26103a436600461183e565b610b5a565b6102706103b73660046118b3565b610b85565b61020f610bbb565b61027a600081565b6102706103da366004611910565b610bc8565b6102706103ed36600461194c565b610c34565b61020f6104003660046117a8565b610cf9565b61027061041336600461183e565b610d89565b61020f610dae565b6101f261042e3660046119bb565b600560209081526000928352604080842090915290825290205460ff1681565b61027061045c3660046118f5565b610e40565b61027061046f36600461183e565b610eb9565b600061047f82610eed565b8061048e575061048e82610f3b565b92915050565b600080546104a1906119e5565b80601f01602080910402602001604051908101604052809291908181526020018280546104cd906119e5565b801561051a5780601f106104ef5761010080835404028352916020019161051a565b820191906000526020600020905b8154815290600101906020018083116104fd57829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061056b57506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6105ad5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006001600b5461061a9190611a35565b905090565b6000818152600260205260409020546001600160a01b038481169116146106755760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b60448201526064016105a4565b6001600160a01b0382166106bf5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016105a4565b336001600160a01b03841614806106f957506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b8061071a57506000818152600460205260409020546001600160a01b031633145b6107575760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064016105a4565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008281526007602052604090206001015461080181610f70565b61080b8383610f7a565b505050565b6001600160a01b03811633146108805760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016105a4565b61088a8282611000565b5050565b6006546000036108b1576040516337affdbf60e11b815260040160405180910390fd5b6000600655600c546001600160a01b031633146108e157604051631512375f60e31b815260040160405180910390fd5b60005b8181101561090a576108f883600b54611067565b600b80546001908101909155016108e4565b5050600160065550565b61091f83838361061f565b6001600160a01b0382163b15806109c85750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610998573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109bc9190611a48565b6001600160e01b031916145b61080b5760405162461bcd60e51b81526004016105a490611a65565b6109ec611133565b6000819003610a0e5760405163cc52148360e01b815260040160405180910390fd5b600961080b828483611af3565b6000818152600260205260409020546001600160a01b031680610a6d5760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064016105a4565b919050565b600654600003610a95576040516337affdbf60e11b815260040160405180910390fd5b6000600655600c546001600160a01b03163314610ac557604051631512375f60e31b815260040160405180910390fd5b610ad181600b54611067565b50600b80546001908101909155600655565b60006001600160a01b038216610b2a5760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b60448201526064016105a4565b506001600160a01b031660009081526003602052604090205490565b610b4e611133565b610b58600061118d565b565b60009182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b610b8d611133565b6000819003610bae5760405162ea21bf60e21b815260040160405180910390fd5b600a61080b828483611af3565b600180546104a1906119e5565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610c3f85858561061f565b6001600160a01b0384163b1580610cd65750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610c879033908a90899089908990600401611bb3565b6020604051808303816000875af1158015610ca6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cca9190611a48565b6001600160e01b031916145b610cf25760405162461bcd60e51b81526004016105a490611a65565b5050505050565b60606000610d0683610a1b565b6001600160a01b031603610d2d5760405163677510db60e11b815260040160405180910390fd5b6000610d376111df565b90506000815111610d575760405180602001604052806000815250610d82565b80610d61846111ee565b604051602001610d72929190611c07565b6040516020818303038152906040525b9392505050565b600082815260076020526040902060010154610da481610f70565b61080b8383611000565b6060600a8054610dbd906119e5565b80601f0160208091040260200160405190810160405280929190818152602001828054610de9906119e5565b8015610e365780601f10610e0b57610100808354040283529160200191610e36565b820191906000526020600020905b815481529060010190602001808311610e1957829003601f168201915b5050505050905090565b610e48611133565b6001600160a01b038116610ead5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105a4565b610eb68161118d565b50565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848610ee381610f70565b61080b83836112f7565b60006301ffc9a760e01b6001600160e01b031983161480610f1e57506380ac58cd60e01b6001600160e01b03198316145b8061048e5750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b03198216637965db0b60e01b148061048e57506301ffc9a760e01b6001600160e01b031983161461048e565b610eb6813361133f565b610f848282610b5a565b61088a5760008281526007602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610fbc3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61100a8282610b5a565b1561088a5760008281526007602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6110718282611398565b6001600160a01b0382163b15806111175750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af11580156110e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110b9190611a48565b6001600160e01b031916145b61088a5760405162461bcd60e51b81526004016105a490611a65565b6008546001600160a01b03163314610b585760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105a4565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606060098054610dbd906119e5565b6060816000036112155750506040805180820190915260018152600360fc1b602082015290565b8160005b811561123f578061122981611c36565b91506112389050600a83611c65565b9150611219565b60008167ffffffffffffffff81111561125a5761125a611a8f565b6040519080825280601f01601f191660200182016040528015611284576020820181803683370190505b5090505b84156112ef57611299600183611a35565b91506112a6600a86611c79565b6112b1906030611c8d565b60f81b8183815181106112c6576112c6611ca0565b60200101906001600160f81b031916908160001a9053506112e8600a86611c65565b9450611288565b949350505050565b600061130283610a1b565b9050806001600160a01b0316826001600160a01b031614611336576040516349e27cff60e01b815260040160405180910390fd5b61080b836114a3565b6113498282610b5a565b61088a5761135681611570565b611361836020611582565b604051602001611372929190611cb6565b60408051601f198184030181529082905262461bcd60e51b82526105a491600401611775565b6001600160a01b0382166113e25760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016105a4565b6000818152600260205260409020546001600160a01b0316156114385760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b60448201526064016105a4565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600260205260409020546001600160a01b0316806114f55760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064016105a4565b6001600160a01b038116600081815260036020908152604080832080546000190190558583526002825280832080546001600160a01b031990811690915560049092528083208054909216909155518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606061048e6001600160a01b03831660145b60606000611591836002611d2b565b61159c906002611c8d565b67ffffffffffffffff8111156115b4576115b4611a8f565b6040519080825280601f01601f1916602001820160405280156115de576020820181803683370190505b509050600360fc1b816000815181106115f9576115f9611ca0565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061162857611628611ca0565b60200101906001600160f81b031916908160001a905350600061164c846002611d2b565b611657906001611c8d565b90505b60018111156116cf576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061168b5761168b611ca0565b1a60f81b8282815181106116a1576116a1611ca0565b60200101906001600160f81b031916908160001a90535060049490941c936116c881611d42565b905061165a565b508315610d825760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105a4565b6001600160e01b031981168114610eb657600080fd5b60006020828403121561174657600080fd5b8135610d828161171e565b60005b8381101561176c578181015183820152602001611754565b50506000910152565b6020815260008251806020840152611794816040850160208701611751565b601f01601f19169190910160400192915050565b6000602082840312156117ba57600080fd5b5035919050565b80356001600160a01b0381168114610a6d57600080fd5b600080604083850312156117eb57600080fd5b6117f4836117c1565b946020939093013593505050565b60008060006060848603121561181757600080fd5b611820846117c1565b925061182e602085016117c1565b9150604084013590509250925092565b6000806040838503121561185157600080fd5b82359150611861602084016117c1565b90509250929050565b60008083601f84011261187c57600080fd5b50813567ffffffffffffffff81111561189457600080fd5b6020830191508360208285010111156118ac57600080fd5b9250929050565b600080602083850312156118c657600080fd5b823567ffffffffffffffff8111156118dd57600080fd5b6118e98582860161186a565b90969095509350505050565b60006020828403121561190757600080fd5b610d82826117c1565b6000806040838503121561192357600080fd5b61192c836117c1565b91506020830135801515811461194157600080fd5b809150509250929050565b60008060008060006080868803121561196457600080fd5b61196d866117c1565b945061197b602087016117c1565b935060408601359250606086013567ffffffffffffffff81111561199e57600080fd5b6119aa8882890161186a565b969995985093965092949392505050565b600080604083850312156119ce57600080fd5b6119d7836117c1565b9150611861602084016117c1565b600181811c908216806119f957607f821691505b602082108103611a1957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561048e5761048e611a1f565b600060208284031215611a5a57600080fd5b8151610d828161171e565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b634e487b7160e01b600052604160045260246000fd5b601f82111561080b57600081815260208120601f850160051c81016020861015611acc5750805b601f850160051c820191505b81811015611aeb57828155600101611ad8565b505050505050565b67ffffffffffffffff831115611b0b57611b0b611a8f565b611b1f83611b1983546119e5565b83611aa5565b6000601f841160018114611b535760008515611b3b5750838201355b600019600387901b1c1916600186901b178355610cf2565b600083815260209020601f19861690835b82811015611b845786850135825560209485019460019092019101611b64565b5086821015611ba15760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008351611c19818460208801611751565b835190830190611c2d818360208801611751565b01949350505050565b600060018201611c4857611c48611a1f565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082611c7457611c74611c4f565b500490565b600082611c8857611c88611c4f565b500690565b8082018082111561048e5761048e611a1f565b634e487b7160e01b600052603260045260246000fd5b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611cee816017850160208801611751565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611d1f816028840160208801611751565b01602801949350505050565b808202811582820484141761048e5761048e611a1f565b600081611d5157611d51611a1f565b50600019019056fea26469706673582212201f7c265bfd2e97e1acfa67018fb332c736022709836347ca9cb65903086011af64736f6c63430008110033

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000d3214ef2ae5327468521be8d567e587b38e8ad79000000000000000000000000000000000000000000000000000000000000001768747470733a2f2f7777772e6c65646765722e636f6d2f000000000000000000000000000000000000000000000000000000000000000000000000000000001768747470733a2f2f7777772e6c65646765722e636f6d2f000000000000000000000000000000000000000000000000000000000000000000000000000000001c417274204f6e204c65646765722053746178204d696e74205061737300000000000000000000000000000000000000000000000000000000000000000000000a4152544c44475253545800000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : baseTokenURI_ (string): https://www.ledger.com/
Arg [1] : baseContractURI_ (string): https://www.ledger.com/
Arg [2] : _name (string): Art On Ledger Stax Mint Pass
Arg [3] : _symbol (string): ARTLDGRSTX
Arg [4] : rootContract_ (address): 0xD3214Ef2Ae5327468521be8d567e587b38E8aD79

-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 000000000000000000000000d3214ef2ae5327468521be8d567e587b38e8ad79
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [6] : 68747470733a2f2f7777772e6c65646765722e636f6d2f000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [8] : 68747470733a2f2f7777772e6c65646765722e636f6d2f000000000000000000
Arg [9] : 000000000000000000000000000000000000000000000000000000000000001c
Arg [10] : 417274204f6e204c65646765722053746178204d696e74205061737300000000
Arg [11] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [12] : 4152544c44475253545800000000000000000000000000000000000000000000


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

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