ETH Price: $2,633.24 (-0.93%)

Agoria {Comp-nd} x [ L ] Market (COMPND)
 

Overview

TokenID

8374

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Welcome to the home of Agoria {Comp-nd} x [ L ] Market on OpenSea. Discover the best items in this collection.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
AgoriaXLedger

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

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

pragma solidity >=0.8.4;

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

contract AgoriaXLedger is ERC721, ReentrancyGuard, AccessControl, Ownable {
    // We have role for multiple accounts in case a transaction of one minter will stack (because of gas price)
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");

    // Constants
    // Maximum number of NFTs can be allocated
    uint256 public immutable maxSupply;

    // Base token and contract URI
    string private baseTokenURI;
    string private baseContractURI;

    // Current supply
    uint256 private _currentSupply;

    constructor(
        uint256 _maxSupply,
        string memory _baseTokenURI,
        string memory _baseContractURI,
        string memory _name,
        string memory _symbol
    ) ERC721(_name, _symbol) {
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setupRole(MINTER_ROLE, msg.sender);

        maxSupply = _maxSupply;
        baseTokenURI = _baseTokenURI;
        baseContractURI = _baseContractURI;
    }

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

    // Accounts with MINTER_ROLE can call this function to mint `tokens` into `addresses`
    function airdropTokens(address[] memory addresses, uint256[] memory tokens) external onlyRole(MINTER_ROLE) lock {
        uint256 length = addresses.length;
        if (length != tokens.length)
            revert Errors.WrongInputSize();

        for (uint i; i < length; i++) {
            uint256 tokenId = tokens[i];
            if (tokenId > maxSupply || tokenId == 0)
                revert Errors.IdBeyondSupplyLimit();

            address mintAddress = addresses[i];
            _mint(mintAddress, tokenId);
        }

        unchecked {
            _currentSupply += length;
        }
    }

    function burn(uint256 id) external {
        address owner = ownerOf(id);
        if (msg.sender != owner && !isApprovedForAll[owner][msg.sender] && getApproved[id] != msg.sender)
            revert Errors.NotAuthorized();
        _burn(id);
    }

    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 _currentSupply;
    }

    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))
                )
                : "";
    }
}

File 2 of 13 : 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 3 of 13 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 4 of 13 : 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 5 of 13 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 8 of 13 : 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);
        }
    }
}

File 9 of 13 : 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 10 of 13 : 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 11 of 13 : Errors.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.4;

library Errors {
    error IdBeyondSupplyLimit();
    error WrongInputSize();
    error TokenDoesNotExist();
    error NotOwner();
    error NotAuthorized();
    error InvalidBaseContractURL();
    error InvalidBaseURI();
    error NewSignerCantBeZero();

    error InvalidOwner();
    error InvalidOwnerSignature();

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

File 12 of 13 : 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 13 of 13 : 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);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"string","name":"_baseTokenURI","type":"string"},{"internalType":"string","name":"_baseContractURI","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ContractLocked","type":"error"},{"inputs":[],"name":"IdBeyondSupplyLimit","type":"error"},{"inputs":[],"name":"InvalidBaseContractURL","type":"error"},{"inputs":[],"name":"InvalidBaseURI","type":"error"},{"inputs":[],"name":"NotAuthorized","type":"error"},{"inputs":[],"name":"TokenDoesNotExist","type":"error"},{"inputs":[],"name":"WrongInputSize","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":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"tokens","type":"uint256[]"}],"name":"airdropTokens","outputs":[],"stateMutability":"nonpayable","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"}],"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":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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"}]

60a060405260016006553480156200001657600080fd5b50604051620023a0380380620023a08339810160408190526200003991620002ab565b81816000620000498382620003fe565b506001620000588282620003fe565b505050620000756200006f620000dc60201b60201c565b620000e0565b6200008260003362000132565b620000ae7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a63362000132565b60808590526009620000c18582620003fe565b50600a620000d08482620003fe565b505050505050620004ca565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200013e828262000142565b5050565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff166200013e5760008281526007602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001a23390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200020e57600080fd5b81516001600160401b03808211156200022b576200022b620001e6565b604051601f8301601f19908116603f01168101908282118183101715620002565762000256620001e6565b816040528381526020925086838588010111156200027357600080fd5b600091505b8382101562000297578582018301518183018401529082019062000278565b600093810190920192909252949350505050565b600080600080600060a08688031215620002c457600080fd5b855160208701519095506001600160401b0380821115620002e457600080fd5b620002f289838a01620001fc565b955060408801519150808211156200030957600080fd5b6200031789838a01620001fc565b945060608801519150808211156200032e57600080fd5b6200033c89838a01620001fc565b935060808801519150808211156200035357600080fd5b506200036288828901620001fc565b9150509295509295909350565b600181811c908216806200038457607f821691505b602082108103620003a557634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003f957600081815260208120601f850160051c81016020861015620003d45750805b601f850160051c820191505b81811015620003f557828155600101620003e0565b5050505b505050565b81516001600160401b038111156200041a576200041a620001e6565b62000432816200042b84546200036f565b84620003ab565b602080601f8311600181146200046a5760008415620004515750858301515b600019600386901b1c1916600185901b178555620003f5565b600085815260208120601f198616915b828110156200049b578886015182559484019460019091019084016200047a565b5085821015620004ba5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b608051611eb3620004ed600039600081816104190152610b3d0152611eb36000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c8063715018a611610104578063b88d4fde116100a2578063d5abeb0111610071578063d5abeb0114610414578063e8a3d4851461043b578063e985e9c514610443578063f2fde38b1461047157600080fd5b8063b88d4fde146103b4578063c87b56dd146103c7578063d5391393146103da578063d547741f1461040157600080fd5b8063938e3d7b116100de578063938e3d7b1461037e57806395d89b4114610391578063a217fddf14610399578063a22cb465146103a157600080fd5b8063715018a6146103525780638da5cb5b1461035a57806391d148541461036b57600080fd5b80632f2ff15d1161017c57806355f804b31161014b57806355f804b3146103065780636352211e14610319578063706f69371461032c57806370a082311461033f57600080fd5b80632f2ff15d146102ba57806336568abe146102cd57806342842e0e146102e057806342966c68146102f357600080fd5b8063095ea7b3116101b8578063095ea7b31461025d57806318160ddd1461027257806323b872dd14610284578063248a9ca31461029757600080fd5b806301ffc9a7146101df57806306fdde0314610207578063081812fc1461021c575b600080fd5b6101f26101ed366004611702565b610484565b60405190151581526020015b60405180910390f35b61020f6104a4565b6040516101fe9190611743565b61024561022a366004611776565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101fe565b61027061026b3660046117a6565b610532565b005b600b545b6040519081526020016101fe565b6102706102923660046117d0565b610619565b6102766102a5366004611776565b60009081526007602052604090206001015490565b6102706102c836600461180c565b6107e0565b6102706102db36600461180c565b61080a565b6102706102ee3660046117d0565b610888565b610270610301366004611776565b61097b565b610270610314366004611881565b610a0f565b610245610327366004611776565b610a46565b61027061033a366004611999565b610a9d565b61027661034d366004611a59565b610bd6565b610270610c39565b6008546001600160a01b0316610245565b6101f261037936600461180c565b610c4d565b61027061038c366004611881565b610c78565b61020f610cae565b610276600081565b6102706103af366004611a74565b610cbb565b6102706103c2366004611ab0565b610d27565b61020f6103d5366004611776565b610e0f565b6102767f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61027061040f36600461180c565b610e9f565b6102767f000000000000000000000000000000000000000000000000000000000000000081565b61020f610ec4565b6101f2610451366004611b1f565b600560209081526000928352604080842090915290825290205460ff1681565b61027061047f366004611a59565b610f56565b600061048f82610fcf565b8061049e575061049e8261101d565b92915050565b600080546104b190611b49565b80601f01602080910402602001604051908101604052809291908181526020018280546104dd90611b49565b801561052a5780601f106104ff5761010080835404028352916020019161052a565b820191906000526020600020905b81548152906001019060200180831161050d57829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061057b57506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6105bd5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600260205260409020546001600160a01b0384811691161461066f5760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b60448201526064016105b4565b6001600160a01b0382166106b95760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016105b4565b336001600160a01b03841614806106f357506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b8061071457506000818152600460205260409020546001600160a01b031633145b6107515760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064016105b4565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600760205260409020600101546107fb81611052565b610805838361105c565b505050565b6001600160a01b038116331461087a5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016105b4565b61088482826110e2565b5050565b610893838383610619565b6001600160a01b0382163b158061093c5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af115801561090c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109309190611b83565b6001600160e01b031916145b6108055760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b60448201526064016105b4565b600061098682610a46565b9050336001600160a01b038216148015906109c557506001600160a01b038116600090815260056020908152604080832033845290915290205460ff16155b80156109e857506000828152600460205260409020546001600160a01b03163314155b15610a065760405163ea8e4eb560e01b815260040160405180910390fd5b61088482611149565b610a17611216565b6000819003610a395760405163cc52148360e01b815260040160405180910390fd5b6009610805828483611bee565b6000818152600260205260409020546001600160a01b031680610a985760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064016105b4565b919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610ac781611052565b600654600003610aea576040516337affdbf60e11b815260040160405180910390fd5b6000600655825182518114610b12576040516301c4ec3960e51b815260040160405180910390fd5b60005b81811015610bc2576000848281518110610b3157610b31611cae565b602002602001015190507f0000000000000000000000000000000000000000000000000000000000000000811180610b67575080155b15610b85576040516303ca289960e51b815260040160405180910390fd5b6000868381518110610b9957610b99611cae565b60200260200101519050610bad8183611270565b50508080610bba90611cda565b915050610b15565b50600b805490910190555050600160065550565b60006001600160a01b038216610c1d5760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b60448201526064016105b4565b506001600160a01b031660009081526003602052604090205490565b610c41611216565b610c4b600061137b565b565b60009182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b610c80611216565b6000819003610ca15760405162ea21bf60e21b815260040160405180910390fd5b600a610805828483611bee565b600180546104b190611b49565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610d32858585610619565b6001600160a01b0384163b1580610dc95750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610d7a9033908a90899089908990600401611cf3565b6020604051808303816000875af1158015610d99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dbd9190611b83565b6001600160e01b031916145b610e085760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b60448201526064016105b4565b5050505050565b60606000610e1c83610a46565b6001600160a01b031603610e435760405163677510db60e11b815260040160405180910390fd5b6000610e4d6113cd565b90506000815111610e6d5760405180602001604052806000815250610e98565b80610e77846113dc565b604051602001610e88929190611d47565b6040516020818303038152906040525b9392505050565b600082815260076020526040902060010154610eba81611052565b61080583836110e2565b6060600a8054610ed390611b49565b80601f0160208091040260200160405190810160405280929190818152602001828054610eff90611b49565b8015610f4c5780601f10610f2157610100808354040283529160200191610f4c565b820191906000526020600020905b815481529060010190602001808311610f2f57829003601f168201915b5050505050905090565b610f5e611216565b6001600160a01b038116610fc35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105b4565b610fcc8161137b565b50565b60006301ffc9a760e01b6001600160e01b03198316148061100057506380ac58cd60e01b6001600160e01b03198316145b8061049e5750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b03198216637965db0b60e01b148061049e57506301ffc9a760e01b6001600160e01b031983161461049e565b610fcc81336114e5565b6110668282610c4d565b6108845760008281526007602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561109e3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6110ec8282610c4d565b156108845760008281526007602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000818152600260205260409020546001600160a01b03168061119b5760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064016105b4565b6001600160a01b038116600081815260036020908152604080832080546000190190558583526002825280832080546001600160a01b031990811690915560049092528083208054909216909155518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6008546001600160a01b03163314610c4b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105b4565b6001600160a01b0382166112ba5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016105b4565b6000818152600260205260409020546001600160a01b0316156113105760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b60448201526064016105b4565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606060098054610ed390611b49565b6060816000036114035750506040805180820190915260018152600360fc1b602082015290565b8160005b811561142d578061141781611cda565b91506114269050600a83611d8c565b9150611407565b60008167ffffffffffffffff811115611448576114486118c3565b6040519080825280601f01601f191660200182016040528015611472576020820181803683370190505b5090505b84156114dd57611487600183611da0565b9150611494600a86611db3565b61149f906030611dc7565b60f81b8183815181106114b4576114b4611cae565b60200101906001600160f81b031916908160001a9053506114d6600a86611d8c565b9450611476565b949350505050565b6114ef8282610c4d565b610884576114fc8161153e565b611507836020611550565b604051602001611518929190611dda565b60408051601f198184030181529082905262461bcd60e51b82526105b491600401611743565b606061049e6001600160a01b03831660145b6060600061155f836002611e4f565b61156a906002611dc7565b67ffffffffffffffff811115611582576115826118c3565b6040519080825280601f01601f1916602001820160405280156115ac576020820181803683370190505b509050600360fc1b816000815181106115c7576115c7611cae565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106115f6576115f6611cae565b60200101906001600160f81b031916908160001a905350600061161a846002611e4f565b611625906001611dc7565b90505b600181111561169d576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061165957611659611cae565b1a60f81b82828151811061166f5761166f611cae565b60200101906001600160f81b031916908160001a90535060049490941c9361169681611e66565b9050611628565b508315610e985760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105b4565b6001600160e01b031981168114610fcc57600080fd5b60006020828403121561171457600080fd5b8135610e98816116ec565b60005b8381101561173a578181015183820152602001611722565b50506000910152565b602081526000825180602084015261176281604085016020870161171f565b601f01601f19169190910160400192915050565b60006020828403121561178857600080fd5b5035919050565b80356001600160a01b0381168114610a9857600080fd5b600080604083850312156117b957600080fd5b6117c28361178f565b946020939093013593505050565b6000806000606084860312156117e557600080fd5b6117ee8461178f565b92506117fc6020850161178f565b9150604084013590509250925092565b6000806040838503121561181f57600080fd5b8235915061182f6020840161178f565b90509250929050565b60008083601f84011261184a57600080fd5b50813567ffffffffffffffff81111561186257600080fd5b60208301915083602082850101111561187a57600080fd5b9250929050565b6000806020838503121561189457600080fd5b823567ffffffffffffffff8111156118ab57600080fd5b6118b785828601611838565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611902576119026118c3565b604052919050565b600067ffffffffffffffff821115611924576119246118c3565b5060051b60200190565b600082601f83011261193f57600080fd5b8135602061195461194f8361190a565b6118d9565b82815260059290921b8401810191818101908684111561197357600080fd5b8286015b8481101561198e5780358352918301918301611977565b509695505050505050565b600080604083850312156119ac57600080fd5b823567ffffffffffffffff808211156119c457600080fd5b818501915085601f8301126119d857600080fd5b813560206119e861194f8361190a565b82815260059290921b84018101918181019089841115611a0757600080fd5b948201945b83861015611a2c57611a1d8661178f565b82529482019490820190611a0c565b96505086013592505080821115611a4257600080fd5b50611a4f8582860161192e565b9150509250929050565b600060208284031215611a6b57600080fd5b610e988261178f565b60008060408385031215611a8757600080fd5b611a908361178f565b915060208301358015158114611aa557600080fd5b809150509250929050565b600080600080600060808688031215611ac857600080fd5b611ad18661178f565b9450611adf6020870161178f565b935060408601359250606086013567ffffffffffffffff811115611b0257600080fd5b611b0e88828901611838565b969995985093965092949392505050565b60008060408385031215611b3257600080fd5b611b3b8361178f565b915061182f6020840161178f565b600181811c90821680611b5d57607f821691505b602082108103611b7d57634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611b9557600080fd5b8151610e98816116ec565b601f82111561080557600081815260208120601f850160051c81016020861015611bc75750805b601f850160051c820191505b81811015611be657828155600101611bd3565b505050505050565b67ffffffffffffffff831115611c0657611c066118c3565b611c1a83611c148354611b49565b83611ba0565b6000601f841160018114611c4e5760008515611c365750838201355b600019600387901b1c1916600186901b178355610e08565b600083815260209020601f19861690835b82811015611c7f5786850135825560209485019460019092019101611c5f565b5086821015611c9c5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611cec57611cec611cc4565b5060010190565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008351611d5981846020880161171f565b835190830190611d6d81836020880161171f565b01949350505050565b634e487b7160e01b600052601260045260246000fd5b600082611d9b57611d9b611d76565b500490565b8181038181111561049e5761049e611cc4565b600082611dc257611dc2611d76565b500690565b8082018082111561049e5761049e611cc4565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611e1281601785016020880161171f565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611e4381602884016020880161171f565b01602801949350505050565b808202811582820484141761049e5761049e611cc4565b600081611e7557611e75611cc4565b50600019019056fea26469706673582212204132a770aa62ef8fe2b4073112b1ca971130cb75a6864772b33db03ee16243d164736f6c63430008110033000000000000000000000000000000000000000000000000000000000000276200000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000002868747470733a2f2f6c2d61692e61676f7269612e6465762f6d657461646174612f746f6b656e732f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003268747470733a2f2f6c2d61692e61676f7269612e6465762f6d657461646174612f636f6e74726163742d6d657461646174610000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f41676f726961207b436f6d702d6e647d2078205b204c205d204d61726b6574000000000000000000000000000000000000000000000000000000000000000006434f4d504e440000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101da5760003560e01c8063715018a611610104578063b88d4fde116100a2578063d5abeb0111610071578063d5abeb0114610414578063e8a3d4851461043b578063e985e9c514610443578063f2fde38b1461047157600080fd5b8063b88d4fde146103b4578063c87b56dd146103c7578063d5391393146103da578063d547741f1461040157600080fd5b8063938e3d7b116100de578063938e3d7b1461037e57806395d89b4114610391578063a217fddf14610399578063a22cb465146103a157600080fd5b8063715018a6146103525780638da5cb5b1461035a57806391d148541461036b57600080fd5b80632f2ff15d1161017c57806355f804b31161014b57806355f804b3146103065780636352211e14610319578063706f69371461032c57806370a082311461033f57600080fd5b80632f2ff15d146102ba57806336568abe146102cd57806342842e0e146102e057806342966c68146102f357600080fd5b8063095ea7b3116101b8578063095ea7b31461025d57806318160ddd1461027257806323b872dd14610284578063248a9ca31461029757600080fd5b806301ffc9a7146101df57806306fdde0314610207578063081812fc1461021c575b600080fd5b6101f26101ed366004611702565b610484565b60405190151581526020015b60405180910390f35b61020f6104a4565b6040516101fe9190611743565b61024561022a366004611776565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101fe565b61027061026b3660046117a6565b610532565b005b600b545b6040519081526020016101fe565b6102706102923660046117d0565b610619565b6102766102a5366004611776565b60009081526007602052604090206001015490565b6102706102c836600461180c565b6107e0565b6102706102db36600461180c565b61080a565b6102706102ee3660046117d0565b610888565b610270610301366004611776565b61097b565b610270610314366004611881565b610a0f565b610245610327366004611776565b610a46565b61027061033a366004611999565b610a9d565b61027661034d366004611a59565b610bd6565b610270610c39565b6008546001600160a01b0316610245565b6101f261037936600461180c565b610c4d565b61027061038c366004611881565b610c78565b61020f610cae565b610276600081565b6102706103af366004611a74565b610cbb565b6102706103c2366004611ab0565b610d27565b61020f6103d5366004611776565b610e0f565b6102767f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61027061040f36600461180c565b610e9f565b6102767f000000000000000000000000000000000000000000000000000000000000276281565b61020f610ec4565b6101f2610451366004611b1f565b600560209081526000928352604080842090915290825290205460ff1681565b61027061047f366004611a59565b610f56565b600061048f82610fcf565b8061049e575061049e8261101d565b92915050565b600080546104b190611b49565b80601f01602080910402602001604051908101604052809291908181526020018280546104dd90611b49565b801561052a5780601f106104ff5761010080835404028352916020019161052a565b820191906000526020600020905b81548152906001019060200180831161050d57829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061057b57506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6105bd5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600260205260409020546001600160a01b0384811691161461066f5760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b60448201526064016105b4565b6001600160a01b0382166106b95760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016105b4565b336001600160a01b03841614806106f357506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b8061071457506000818152600460205260409020546001600160a01b031633145b6107515760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064016105b4565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600760205260409020600101546107fb81611052565b610805838361105c565b505050565b6001600160a01b038116331461087a5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016105b4565b61088482826110e2565b5050565b610893838383610619565b6001600160a01b0382163b158061093c5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af115801561090c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109309190611b83565b6001600160e01b031916145b6108055760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b60448201526064016105b4565b600061098682610a46565b9050336001600160a01b038216148015906109c557506001600160a01b038116600090815260056020908152604080832033845290915290205460ff16155b80156109e857506000828152600460205260409020546001600160a01b03163314155b15610a065760405163ea8e4eb560e01b815260040160405180910390fd5b61088482611149565b610a17611216565b6000819003610a395760405163cc52148360e01b815260040160405180910390fd5b6009610805828483611bee565b6000818152600260205260409020546001600160a01b031680610a985760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064016105b4565b919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610ac781611052565b600654600003610aea576040516337affdbf60e11b815260040160405180910390fd5b6000600655825182518114610b12576040516301c4ec3960e51b815260040160405180910390fd5b60005b81811015610bc2576000848281518110610b3157610b31611cae565b602002602001015190507f0000000000000000000000000000000000000000000000000000000000002762811180610b67575080155b15610b85576040516303ca289960e51b815260040160405180910390fd5b6000868381518110610b9957610b99611cae565b60200260200101519050610bad8183611270565b50508080610bba90611cda565b915050610b15565b50600b805490910190555050600160065550565b60006001600160a01b038216610c1d5760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b60448201526064016105b4565b506001600160a01b031660009081526003602052604090205490565b610c41611216565b610c4b600061137b565b565b60009182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b610c80611216565b6000819003610ca15760405162ea21bf60e21b815260040160405180910390fd5b600a610805828483611bee565b600180546104b190611b49565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610d32858585610619565b6001600160a01b0384163b1580610dc95750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610d7a9033908a90899089908990600401611cf3565b6020604051808303816000875af1158015610d99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dbd9190611b83565b6001600160e01b031916145b610e085760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b60448201526064016105b4565b5050505050565b60606000610e1c83610a46565b6001600160a01b031603610e435760405163677510db60e11b815260040160405180910390fd5b6000610e4d6113cd565b90506000815111610e6d5760405180602001604052806000815250610e98565b80610e77846113dc565b604051602001610e88929190611d47565b6040516020818303038152906040525b9392505050565b600082815260076020526040902060010154610eba81611052565b61080583836110e2565b6060600a8054610ed390611b49565b80601f0160208091040260200160405190810160405280929190818152602001828054610eff90611b49565b8015610f4c5780601f10610f2157610100808354040283529160200191610f4c565b820191906000526020600020905b815481529060010190602001808311610f2f57829003601f168201915b5050505050905090565b610f5e611216565b6001600160a01b038116610fc35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105b4565b610fcc8161137b565b50565b60006301ffc9a760e01b6001600160e01b03198316148061100057506380ac58cd60e01b6001600160e01b03198316145b8061049e5750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b03198216637965db0b60e01b148061049e57506301ffc9a760e01b6001600160e01b031983161461049e565b610fcc81336114e5565b6110668282610c4d565b6108845760008281526007602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561109e3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6110ec8282610c4d565b156108845760008281526007602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000818152600260205260409020546001600160a01b03168061119b5760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064016105b4565b6001600160a01b038116600081815260036020908152604080832080546000190190558583526002825280832080546001600160a01b031990811690915560049092528083208054909216909155518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6008546001600160a01b03163314610c4b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105b4565b6001600160a01b0382166112ba5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016105b4565b6000818152600260205260409020546001600160a01b0316156113105760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b60448201526064016105b4565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606060098054610ed390611b49565b6060816000036114035750506040805180820190915260018152600360fc1b602082015290565b8160005b811561142d578061141781611cda565b91506114269050600a83611d8c565b9150611407565b60008167ffffffffffffffff811115611448576114486118c3565b6040519080825280601f01601f191660200182016040528015611472576020820181803683370190505b5090505b84156114dd57611487600183611da0565b9150611494600a86611db3565b61149f906030611dc7565b60f81b8183815181106114b4576114b4611cae565b60200101906001600160f81b031916908160001a9053506114d6600a86611d8c565b9450611476565b949350505050565b6114ef8282610c4d565b610884576114fc8161153e565b611507836020611550565b604051602001611518929190611dda565b60408051601f198184030181529082905262461bcd60e51b82526105b491600401611743565b606061049e6001600160a01b03831660145b6060600061155f836002611e4f565b61156a906002611dc7565b67ffffffffffffffff811115611582576115826118c3565b6040519080825280601f01601f1916602001820160405280156115ac576020820181803683370190505b509050600360fc1b816000815181106115c7576115c7611cae565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106115f6576115f6611cae565b60200101906001600160f81b031916908160001a905350600061161a846002611e4f565b611625906001611dc7565b90505b600181111561169d576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061165957611659611cae565b1a60f81b82828151811061166f5761166f611cae565b60200101906001600160f81b031916908160001a90535060049490941c9361169681611e66565b9050611628565b508315610e985760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105b4565b6001600160e01b031981168114610fcc57600080fd5b60006020828403121561171457600080fd5b8135610e98816116ec565b60005b8381101561173a578181015183820152602001611722565b50506000910152565b602081526000825180602084015261176281604085016020870161171f565b601f01601f19169190910160400192915050565b60006020828403121561178857600080fd5b5035919050565b80356001600160a01b0381168114610a9857600080fd5b600080604083850312156117b957600080fd5b6117c28361178f565b946020939093013593505050565b6000806000606084860312156117e557600080fd5b6117ee8461178f565b92506117fc6020850161178f565b9150604084013590509250925092565b6000806040838503121561181f57600080fd5b8235915061182f6020840161178f565b90509250929050565b60008083601f84011261184a57600080fd5b50813567ffffffffffffffff81111561186257600080fd5b60208301915083602082850101111561187a57600080fd5b9250929050565b6000806020838503121561189457600080fd5b823567ffffffffffffffff8111156118ab57600080fd5b6118b785828601611838565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611902576119026118c3565b604052919050565b600067ffffffffffffffff821115611924576119246118c3565b5060051b60200190565b600082601f83011261193f57600080fd5b8135602061195461194f8361190a565b6118d9565b82815260059290921b8401810191818101908684111561197357600080fd5b8286015b8481101561198e5780358352918301918301611977565b509695505050505050565b600080604083850312156119ac57600080fd5b823567ffffffffffffffff808211156119c457600080fd5b818501915085601f8301126119d857600080fd5b813560206119e861194f8361190a565b82815260059290921b84018101918181019089841115611a0757600080fd5b948201945b83861015611a2c57611a1d8661178f565b82529482019490820190611a0c565b96505086013592505080821115611a4257600080fd5b50611a4f8582860161192e565b9150509250929050565b600060208284031215611a6b57600080fd5b610e988261178f565b60008060408385031215611a8757600080fd5b611a908361178f565b915060208301358015158114611aa557600080fd5b809150509250929050565b600080600080600060808688031215611ac857600080fd5b611ad18661178f565b9450611adf6020870161178f565b935060408601359250606086013567ffffffffffffffff811115611b0257600080fd5b611b0e88828901611838565b969995985093965092949392505050565b60008060408385031215611b3257600080fd5b611b3b8361178f565b915061182f6020840161178f565b600181811c90821680611b5d57607f821691505b602082108103611b7d57634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611b9557600080fd5b8151610e98816116ec565b601f82111561080557600081815260208120601f850160051c81016020861015611bc75750805b601f850160051c820191505b81811015611be657828155600101611bd3565b505050505050565b67ffffffffffffffff831115611c0657611c066118c3565b611c1a83611c148354611b49565b83611ba0565b6000601f841160018114611c4e5760008515611c365750838201355b600019600387901b1c1916600186901b178355610e08565b600083815260209020601f19861690835b82811015611c7f5786850135825560209485019460019092019101611c5f565b5086821015611c9c5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611cec57611cec611cc4565b5060010190565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008351611d5981846020880161171f565b835190830190611d6d81836020880161171f565b01949350505050565b634e487b7160e01b600052601260045260246000fd5b600082611d9b57611d9b611d76565b500490565b8181038181111561049e5761049e611cc4565b600082611dc257611dc2611d76565b500690565b8082018082111561049e5761049e611cc4565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611e1281601785016020880161171f565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611e4381602884016020880161171f565b01602801949350505050565b808202811582820484141761049e5761049e611cc4565b600081611e7557611e75611cc4565b50600019019056fea26469706673582212204132a770aa62ef8fe2b4073112b1ca971130cb75a6864772b33db03ee16243d164736f6c63430008110033

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

000000000000000000000000000000000000000000000000000000000000276200000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000002868747470733a2f2f6c2d61692e61676f7269612e6465762f6d657461646174612f746f6b656e732f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003268747470733a2f2f6c2d61692e61676f7269612e6465762f6d657461646174612f636f6e74726163742d6d657461646174610000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f41676f726961207b436f6d702d6e647d2078205b204c205d204d61726b6574000000000000000000000000000000000000000000000000000000000000000006434f4d504e440000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _maxSupply (uint256): 10082
Arg [1] : _baseTokenURI (string): https://l-ai.agoria.dev/metadata/tokens/
Arg [2] : _baseContractURI (string): https://l-ai.agoria.dev/metadata/contract-metadata
Arg [3] : _name (string): Agoria {Comp-nd} x [ L ] Market
Arg [4] : _symbol (string): COMPND

-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000002762
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [6] : 68747470733a2f2f6c2d61692e61676f7269612e6465762f6d65746164617461
Arg [7] : 2f746f6b656e732f000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [9] : 68747470733a2f2f6c2d61692e61676f7269612e6465762f6d65746164617461
Arg [10] : 2f636f6e74726163742d6d657461646174610000000000000000000000000000
Arg [11] : 000000000000000000000000000000000000000000000000000000000000001f
Arg [12] : 41676f726961207b436f6d702d6e647d2078205b204c205d204d61726b657400
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [14] : 434f4d504e440000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ 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.