Overview
Max Total Supply
10,000 BOBNX
Holders
2,446 (0.00%)
Market
Volume (24H)
0.0293 ETH
Min Price (24H)
$107.90 @ 0.029300 ETH
Max Price (24H)
$107.90 @ 0.029300 ETH
Other Info
Token Contract
Balance
1 BOBNXLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BlackOnBlackNanoX
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; 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 BlackOnBlackNanoX is ERC721, ReentrancyGuard, AccessControl { // 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"); // We have role for multiple accounts in case a transaction of one burner will stack (because of gas price) bytes32 public constant BURNER_ROLE = keccak256("BURNER_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; // Modifier that gives the ability to DEFAULT_ADMIN_ROLE to call function modifier onlyOwner() virtual { if (!hasRole(DEFAULT_ADMIN_ROLE, msg.sender)) revert Errors.NotOwner(); _; } 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 super.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, 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 _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)) ) : ""; } function _burnLogic(uint256 id, address tokenOwner) private { address owner_ = ownerOf(id); if (tokenOwner != owner_) revert Errors.InvalidOwner(); _burn(id); } }
// 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(); }
// 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); } }
// 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; } }
// 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// 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; }
// 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// 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; } }
// 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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":"InvalidOwner","type":"error"},{"inputs":[],"name":"NotOwner","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":"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":[],"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"},{"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":[],"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":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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"}]
Contract Creation Code
60a060405260016006553480156200001657600080fd5b50604051620021a5380380620021a583398101604081905262000039916200023d565b8181600062000049838262000390565b50600162000058828262000390565b506200006a91506000905033620000c4565b620000967f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620000c4565b60808590526008620000a9858262000390565b506009620000b8848262000390565b5050505050506200045c565b620000d08282620000d4565b5050565b60008281526007602090815260408083206001600160a01b038516845290915290205460ff16620000d05760008281526007602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620001343390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001a057600080fd5b81516001600160401b0380821115620001bd57620001bd62000178565b604051601f8301601f19908116603f01168101908282118183101715620001e857620001e862000178565b816040528381526020925086838588010111156200020557600080fd5b600091505b838210156200022957858201830151818301840152908201906200020a565b600093810190920192909252949350505050565b600080600080600060a086880312156200025657600080fd5b855160208701519095506001600160401b03808211156200027657600080fd5b6200028489838a016200018e565b955060408801519150808211156200029b57600080fd5b620002a989838a016200018e565b94506060880151915080821115620002c057600080fd5b620002ce89838a016200018e565b93506080880151915080821115620002e557600080fd5b50620002f4888289016200018e565b9150509295509295909350565b600181811c908216806200031657607f821691505b6020821081036200033757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200038b57600081815260208120601f850160051c81016020861015620003665750805b601f850160051c820191505b81811015620003875782815560010162000372565b5050505b505050565b81516001600160401b03811115620003ac57620003ac62000178565b620003c481620003bd845462000301565b846200033d565b602080601f831160018114620003fc5760008415620003e35750858301515b600019600386901b1c1916600185901b17855562000387565b600085815260208120601f198616915b828110156200042d578886015182559484019460019091019084016200040c565b50858210156200044c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b608051611d266200047f600039600081816103fe0152610a9f0152611d266000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c806370a08231116100f9578063c87b56dd11610097578063d5abeb0111610071578063d5abeb01146103f9578063e8a3d48514610420578063e985e9c514610428578063fcd3533c1461045657600080fd5b8063c87b56dd146103ac578063d5391393146103bf578063d547741f146103e657600080fd5b806395d89b41116100d357806395d89b4114610376578063a217fddf1461037e578063a22cb46514610386578063b88d4fde1461039957600080fd5b806370a082311461033d57806391d1485414610350578063938e3d7b1461036357600080fd5b8063282c51f31161016657806342842e0e1161014057806342842e0e146102f157806355f804b3146103045780636352211e14610317578063706f69371461032a57600080fd5b8063282c51f3146102a45780632f2ff15d146102cb57806336568abe146102de57600080fd5b8063095ea7b3116101a2578063095ea7b31461024757806318160ddd1461025c57806323b872dd1461026e578063248a9ca31461028157600080fd5b806301ffc9a7146101c957806306fdde03146101f1578063081812fc14610206575b600080fd5b6101dc6101d7366004611575565b610469565b60405190151581526020015b60405180910390f35b6101f961047a565b6040516101e891906115b6565b61022f6102143660046115e9565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101e8565b61025a610255366004611619565b610508565b005b600a545b6040519081526020016101e8565b61025a61027c366004611643565b6105ef565b61026061028f3660046115e9565b60009081526007602052604090206001015490565b6102607f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b61025a6102d936600461167f565b6107b6565b61025a6102ec36600461167f565b6107e0565b61025a6102ff366004611643565b61085e565b61025a6103123660046116f4565b610951565b61022f6103253660046115e9565b6109a8565b61025a61033836600461180c565b6109ff565b61026061034b3660046118cc565b610b38565b6101dc61035e36600461167f565b610b9b565b61025a6103713660046116f4565b610bc6565b6101f9610c1c565b610260600081565b61025a6103943660046118e7565b610c29565b61025a6103a7366004611923565b610c95565b6101f96103ba3660046115e9565b610d7d565b6102607f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61025a6103f436600461167f565b610e0d565b6102607f000000000000000000000000000000000000000000000000000000000000000081565b6101f9610e32565b6101dc610436366004611992565b600560209081526000928352604080842090915290825290205460ff1681565b61025a61046436600461167f565b610ec4565b600061047482610ef8565b92915050565b60008054610487906119bc565b80601f01602080910402602001604051908101604052809291908181526020018280546104b3906119bc565b80156105005780601f106104d557610100808354040283529160200191610500565b820191906000526020600020905b8154815290600101906020018083116104e357829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061055157506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6105935760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600260205260409020546001600160a01b038481169116146106455760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b604482015260640161058a565b6001600160a01b03821661068f5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161058a565b336001600160a01b03841614806106c957506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b806106ea57506000818152600460205260409020546001600160a01b031633145b6107275760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b604482015260640161058a565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600760205260409020600101546107d181610f2d565b6107db8383610f3a565b505050565b6001600160a01b03811633146108505760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161058a565b61085a8282610fc0565b5050565b6108698383836105ef565b6001600160a01b0382163b15806109125750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af11580156108e2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090691906119f6565b6001600160e01b031916145b6107db5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b604482015260640161058a565b61095c600033610b9b565b610979576040516330cd747160e01b815260040160405180910390fd5b600081900361099b5760405163cc52148360e01b815260040160405180910390fd5b60086107db828483611a61565b6000818152600260205260409020546001600160a01b0316806109fa5760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b604482015260640161058a565b919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610a2981610f2d565b600654600003610a4c576040516337affdbf60e11b815260040160405180910390fd5b6000600655825182518114610a74576040516301c4ec3960e51b815260040160405180910390fd5b60005b81811015610b24576000848281518110610a9357610a93611b21565b602002602001015190507f0000000000000000000000000000000000000000000000000000000000000000811180610ac9575080155b15610ae7576040516303ca289960e51b815260040160405180910390fd5b6000868381518110610afb57610afb611b21565b60200260200101519050610b0f8183611027565b50508080610b1c90611b4d565b915050610a77565b50600a805490910190555050600160065550565b60006001600160a01b038216610b7f5760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b604482015260640161058a565b506001600160a01b031660009081526003602052604090205490565b60009182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b610bd1600033610b9b565b610bee576040516330cd747160e01b815260040160405180910390fd5b6000819003610c0f5760405162ea21bf60e21b815260040160405180910390fd5b60096107db828483611a61565b60018054610487906119bc565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610ca08585856105ef565b6001600160a01b0384163b1580610d375750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610ce89033908a90899089908990600401611b66565b6020604051808303816000875af1158015610d07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2b91906119f6565b6001600160e01b031916145b610d765760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b604482015260640161058a565b5050505050565b60606000610d8a836109a8565b6001600160a01b031603610db15760405163677510db60e11b815260040160405180910390fd5b6000610dbb611132565b90506000815111610ddb5760405180602001604052806000815250610e06565b80610de584611141565b604051602001610df6929190611bba565b6040516020818303038152906040525b9392505050565b600082815260076020526040902060010154610e2881610f2d565b6107db8383610fc0565b606060098054610e41906119bc565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6d906119bc565b8015610eba5780601f10610e8f57610100808354040283529160200191610eba565b820191906000526020600020905b815481529060010190602001808311610e9d57829003601f168201915b5050505050905090565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848610eee81610f2d565b6107db838361124a565b60006001600160e01b03198216637965db0b60e01b148061047457506301ffc9a760e01b6001600160e01b0319831614610474565b610f378133611292565b50565b610f448282610b9b565b61085a5760008281526007602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610f7c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610fca8282610b9b565b1561085a5760008281526007602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b0382166110715760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161058a565b6000818152600260205260409020546001600160a01b0316156110c75760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b604482015260640161058a565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606060088054610e41906119bc565b6060816000036111685750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611192578061117c81611b4d565b915061118b9050600a83611bff565b915061116c565b60008167ffffffffffffffff8111156111ad576111ad611736565b6040519080825280601f01601f1916602001820160405280156111d7576020820181803683370190505b5090505b8415611242576111ec600183611c13565b91506111f9600a86611c26565b611204906030611c3a565b60f81b81838151811061121957611219611b21565b60200101906001600160f81b031916908160001a90535061123b600a86611bff565b94506111db565b949350505050565b6000611255836109a8565b9050806001600160a01b0316826001600160a01b031614611289576040516349e27cff60e01b815260040160405180910390fd5b6107db836112f6565b61129c8282610b9b565b61085a576112b4816001600160a01b031660146113c3565b6112bf8360206113c3565b6040516020016112d0929190611c4d565b60408051601f198184030181529082905262461bcd60e51b825261058a916004016115b6565b6000818152600260205260409020546001600160a01b0316806113485760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b604482015260640161058a565b6001600160a01b038116600081815260036020908152604080832080546000190190558583526002825280832080546001600160a01b031990811690915560049092528083208054909216909155518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606060006113d2836002611cc2565b6113dd906002611c3a565b67ffffffffffffffff8111156113f5576113f5611736565b6040519080825280601f01601f19166020018201604052801561141f576020820181803683370190505b509050600360fc1b8160008151811061143a5761143a611b21565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061146957611469611b21565b60200101906001600160f81b031916908160001a905350600061148d846002611cc2565b611498906001611c3a565b90505b6001811115611510576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106114cc576114cc611b21565b1a60f81b8282815181106114e2576114e2611b21565b60200101906001600160f81b031916908160001a90535060049490941c9361150981611cd9565b905061149b565b508315610e065760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161058a565b6001600160e01b031981168114610f3757600080fd5b60006020828403121561158757600080fd5b8135610e068161155f565b60005b838110156115ad578181015183820152602001611595565b50506000910152565b60208152600082518060208401526115d5816040850160208701611592565b601f01601f19169190910160400192915050565b6000602082840312156115fb57600080fd5b5035919050565b80356001600160a01b03811681146109fa57600080fd5b6000806040838503121561162c57600080fd5b61163583611602565b946020939093013593505050565b60008060006060848603121561165857600080fd5b61166184611602565b925061166f60208501611602565b9150604084013590509250925092565b6000806040838503121561169257600080fd5b823591506116a260208401611602565b90509250929050565b60008083601f8401126116bd57600080fd5b50813567ffffffffffffffff8111156116d557600080fd5b6020830191508360208285010111156116ed57600080fd5b9250929050565b6000806020838503121561170757600080fd5b823567ffffffffffffffff81111561171e57600080fd5b61172a858286016116ab565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561177557611775611736565b604052919050565b600067ffffffffffffffff82111561179757611797611736565b5060051b60200190565b600082601f8301126117b257600080fd5b813560206117c76117c28361177d565b61174c565b82815260059290921b840181019181810190868411156117e657600080fd5b8286015b8481101561180157803583529183019183016117ea565b509695505050505050565b6000806040838503121561181f57600080fd5b823567ffffffffffffffff8082111561183757600080fd5b818501915085601f83011261184b57600080fd5b8135602061185b6117c28361177d565b82815260059290921b8401810191818101908984111561187a57600080fd5b948201945b8386101561189f5761189086611602565b8252948201949082019061187f565b965050860135925050808211156118b557600080fd5b506118c2858286016117a1565b9150509250929050565b6000602082840312156118de57600080fd5b610e0682611602565b600080604083850312156118fa57600080fd5b61190383611602565b91506020830135801515811461191857600080fd5b809150509250929050565b60008060008060006080868803121561193b57600080fd5b61194486611602565b945061195260208701611602565b935060408601359250606086013567ffffffffffffffff81111561197557600080fd5b611981888289016116ab565b969995985093965092949392505050565b600080604083850312156119a557600080fd5b6119ae83611602565b91506116a260208401611602565b600181811c908216806119d057607f821691505b6020821081036119f057634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611a0857600080fd5b8151610e068161155f565b601f8211156107db57600081815260208120601f850160051c81016020861015611a3a5750805b601f850160051c820191505b81811015611a5957828155600101611a46565b505050505050565b67ffffffffffffffff831115611a7957611a79611736565b611a8d83611a8783546119bc565b83611a13565b6000601f841160018114611ac15760008515611aa95750838201355b600019600387901b1c1916600186901b178355610d76565b600083815260209020601f19861690835b82811015611af25786850135825560209485019460019092019101611ad2565b5086821015611b0f5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611b5f57611b5f611b37565b5060010190565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008351611bcc818460208801611592565b835190830190611be0818360208801611592565b01949350505050565b634e487b7160e01b600052601260045260246000fd5b600082611c0e57611c0e611be9565b500490565b8181038181111561047457610474611b37565b600082611c3557611c35611be9565b500690565b8082018082111561047457610474611b37565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611c85816017850160208801611592565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611cb6816028840160208801611592565b01602801949350505050565b808202811582820484141761047457610474611b37565b600081611ce857611ce8611b37565b50600019019056fea26469706673582212204b8490fdfda6cda27fde06c2c1d817c084516078d9e25cc74242da45a26ab93d64736f6c63430008110033000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000004768747470733a2f2f6d657461646174612e6c65646765722e636f6d2f6c65646765722d6d61726b65742d626c61636b2d6f6e2d626c61636b2d6e616e6f2d782f746f6b656e732f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f6d657461646174612e6c65646765722e636f6d2f6c65646765722d6d61726b65742d626c61636b2d6f6e2d626c61636b2d6e616e6f2d782f636f6e74726163742d6d6574616461746100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000295b204c6564676572205d204d61726b6574202d20426c61636b2d6f6e2d426c61636b204e616e6f205800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005424f424e58000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c806370a08231116100f9578063c87b56dd11610097578063d5abeb0111610071578063d5abeb01146103f9578063e8a3d48514610420578063e985e9c514610428578063fcd3533c1461045657600080fd5b8063c87b56dd146103ac578063d5391393146103bf578063d547741f146103e657600080fd5b806395d89b41116100d357806395d89b4114610376578063a217fddf1461037e578063a22cb46514610386578063b88d4fde1461039957600080fd5b806370a082311461033d57806391d1485414610350578063938e3d7b1461036357600080fd5b8063282c51f31161016657806342842e0e1161014057806342842e0e146102f157806355f804b3146103045780636352211e14610317578063706f69371461032a57600080fd5b8063282c51f3146102a45780632f2ff15d146102cb57806336568abe146102de57600080fd5b8063095ea7b3116101a2578063095ea7b31461024757806318160ddd1461025c57806323b872dd1461026e578063248a9ca31461028157600080fd5b806301ffc9a7146101c957806306fdde03146101f1578063081812fc14610206575b600080fd5b6101dc6101d7366004611575565b610469565b60405190151581526020015b60405180910390f35b6101f961047a565b6040516101e891906115b6565b61022f6102143660046115e9565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101e8565b61025a610255366004611619565b610508565b005b600a545b6040519081526020016101e8565b61025a61027c366004611643565b6105ef565b61026061028f3660046115e9565b60009081526007602052604090206001015490565b6102607f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b61025a6102d936600461167f565b6107b6565b61025a6102ec36600461167f565b6107e0565b61025a6102ff366004611643565b61085e565b61025a6103123660046116f4565b610951565b61022f6103253660046115e9565b6109a8565b61025a61033836600461180c565b6109ff565b61026061034b3660046118cc565b610b38565b6101dc61035e36600461167f565b610b9b565b61025a6103713660046116f4565b610bc6565b6101f9610c1c565b610260600081565b61025a6103943660046118e7565b610c29565b61025a6103a7366004611923565b610c95565b6101f96103ba3660046115e9565b610d7d565b6102607f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61025a6103f436600461167f565b610e0d565b6102607f000000000000000000000000000000000000000000000000000000000000271081565b6101f9610e32565b6101dc610436366004611992565b600560209081526000928352604080842090915290825290205460ff1681565b61025a61046436600461167f565b610ec4565b600061047482610ef8565b92915050565b60008054610487906119bc565b80601f01602080910402602001604051908101604052809291908181526020018280546104b3906119bc565b80156105005780601f106104d557610100808354040283529160200191610500565b820191906000526020600020905b8154815290600101906020018083116104e357829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061055157506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6105935760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600260205260409020546001600160a01b038481169116146106455760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b604482015260640161058a565b6001600160a01b03821661068f5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161058a565b336001600160a01b03841614806106c957506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b806106ea57506000818152600460205260409020546001600160a01b031633145b6107275760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b604482015260640161058a565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000828152600760205260409020600101546107d181610f2d565b6107db8383610f3a565b505050565b6001600160a01b03811633146108505760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161058a565b61085a8282610fc0565b5050565b6108698383836105ef565b6001600160a01b0382163b15806109125750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af11580156108e2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090691906119f6565b6001600160e01b031916145b6107db5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b604482015260640161058a565b61095c600033610b9b565b610979576040516330cd747160e01b815260040160405180910390fd5b600081900361099b5760405163cc52148360e01b815260040160405180910390fd5b60086107db828483611a61565b6000818152600260205260409020546001600160a01b0316806109fa5760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b604482015260640161058a565b919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610a2981610f2d565b600654600003610a4c576040516337affdbf60e11b815260040160405180910390fd5b6000600655825182518114610a74576040516301c4ec3960e51b815260040160405180910390fd5b60005b81811015610b24576000848281518110610a9357610a93611b21565b602002602001015190507f0000000000000000000000000000000000000000000000000000000000002710811180610ac9575080155b15610ae7576040516303ca289960e51b815260040160405180910390fd5b6000868381518110610afb57610afb611b21565b60200260200101519050610b0f8183611027565b50508080610b1c90611b4d565b915050610a77565b50600a805490910190555050600160065550565b60006001600160a01b038216610b7f5760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b604482015260640161058a565b506001600160a01b031660009081526003602052604090205490565b60009182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b610bd1600033610b9b565b610bee576040516330cd747160e01b815260040160405180910390fd5b6000819003610c0f5760405162ea21bf60e21b815260040160405180910390fd5b60096107db828483611a61565b60018054610487906119bc565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610ca08585856105ef565b6001600160a01b0384163b1580610d375750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610ce89033908a90899089908990600401611b66565b6020604051808303816000875af1158015610d07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2b91906119f6565b6001600160e01b031916145b610d765760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b604482015260640161058a565b5050505050565b60606000610d8a836109a8565b6001600160a01b031603610db15760405163677510db60e11b815260040160405180910390fd5b6000610dbb611132565b90506000815111610ddb5760405180602001604052806000815250610e06565b80610de584611141565b604051602001610df6929190611bba565b6040516020818303038152906040525b9392505050565b600082815260076020526040902060010154610e2881610f2d565b6107db8383610fc0565b606060098054610e41906119bc565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6d906119bc565b8015610eba5780601f10610e8f57610100808354040283529160200191610eba565b820191906000526020600020905b815481529060010190602001808311610e9d57829003601f168201915b5050505050905090565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848610eee81610f2d565b6107db838361124a565b60006001600160e01b03198216637965db0b60e01b148061047457506301ffc9a760e01b6001600160e01b0319831614610474565b610f378133611292565b50565b610f448282610b9b565b61085a5760008281526007602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610f7c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610fca8282610b9b565b1561085a5760008281526007602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b0382166110715760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161058a565b6000818152600260205260409020546001600160a01b0316156110c75760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b604482015260640161058a565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606060088054610e41906119bc565b6060816000036111685750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611192578061117c81611b4d565b915061118b9050600a83611bff565b915061116c565b60008167ffffffffffffffff8111156111ad576111ad611736565b6040519080825280601f01601f1916602001820160405280156111d7576020820181803683370190505b5090505b8415611242576111ec600183611c13565b91506111f9600a86611c26565b611204906030611c3a565b60f81b81838151811061121957611219611b21565b60200101906001600160f81b031916908160001a90535061123b600a86611bff565b94506111db565b949350505050565b6000611255836109a8565b9050806001600160a01b0316826001600160a01b031614611289576040516349e27cff60e01b815260040160405180910390fd5b6107db836112f6565b61129c8282610b9b565b61085a576112b4816001600160a01b031660146113c3565b6112bf8360206113c3565b6040516020016112d0929190611c4d565b60408051601f198184030181529082905262461bcd60e51b825261058a916004016115b6565b6000818152600260205260409020546001600160a01b0316806113485760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b604482015260640161058a565b6001600160a01b038116600081815260036020908152604080832080546000190190558583526002825280832080546001600160a01b031990811690915560049092528083208054909216909155518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606060006113d2836002611cc2565b6113dd906002611c3a565b67ffffffffffffffff8111156113f5576113f5611736565b6040519080825280601f01601f19166020018201604052801561141f576020820181803683370190505b509050600360fc1b8160008151811061143a5761143a611b21565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061146957611469611b21565b60200101906001600160f81b031916908160001a905350600061148d846002611cc2565b611498906001611c3a565b90505b6001811115611510576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106114cc576114cc611b21565b1a60f81b8282815181106114e2576114e2611b21565b60200101906001600160f81b031916908160001a90535060049490941c9361150981611cd9565b905061149b565b508315610e065760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161058a565b6001600160e01b031981168114610f3757600080fd5b60006020828403121561158757600080fd5b8135610e068161155f565b60005b838110156115ad578181015183820152602001611595565b50506000910152565b60208152600082518060208401526115d5816040850160208701611592565b601f01601f19169190910160400192915050565b6000602082840312156115fb57600080fd5b5035919050565b80356001600160a01b03811681146109fa57600080fd5b6000806040838503121561162c57600080fd5b61163583611602565b946020939093013593505050565b60008060006060848603121561165857600080fd5b61166184611602565b925061166f60208501611602565b9150604084013590509250925092565b6000806040838503121561169257600080fd5b823591506116a260208401611602565b90509250929050565b60008083601f8401126116bd57600080fd5b50813567ffffffffffffffff8111156116d557600080fd5b6020830191508360208285010111156116ed57600080fd5b9250929050565b6000806020838503121561170757600080fd5b823567ffffffffffffffff81111561171e57600080fd5b61172a858286016116ab565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561177557611775611736565b604052919050565b600067ffffffffffffffff82111561179757611797611736565b5060051b60200190565b600082601f8301126117b257600080fd5b813560206117c76117c28361177d565b61174c565b82815260059290921b840181019181810190868411156117e657600080fd5b8286015b8481101561180157803583529183019183016117ea565b509695505050505050565b6000806040838503121561181f57600080fd5b823567ffffffffffffffff8082111561183757600080fd5b818501915085601f83011261184b57600080fd5b8135602061185b6117c28361177d565b82815260059290921b8401810191818101908984111561187a57600080fd5b948201945b8386101561189f5761189086611602565b8252948201949082019061187f565b965050860135925050808211156118b557600080fd5b506118c2858286016117a1565b9150509250929050565b6000602082840312156118de57600080fd5b610e0682611602565b600080604083850312156118fa57600080fd5b61190383611602565b91506020830135801515811461191857600080fd5b809150509250929050565b60008060008060006080868803121561193b57600080fd5b61194486611602565b945061195260208701611602565b935060408601359250606086013567ffffffffffffffff81111561197557600080fd5b611981888289016116ab565b969995985093965092949392505050565b600080604083850312156119a557600080fd5b6119ae83611602565b91506116a260208401611602565b600181811c908216806119d057607f821691505b6020821081036119f057634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611a0857600080fd5b8151610e068161155f565b601f8211156107db57600081815260208120601f850160051c81016020861015611a3a5750805b601f850160051c820191505b81811015611a5957828155600101611a46565b505050505050565b67ffffffffffffffff831115611a7957611a79611736565b611a8d83611a8783546119bc565b83611a13565b6000601f841160018114611ac15760008515611aa95750838201355b600019600387901b1c1916600186901b178355610d76565b600083815260209020601f19861690835b82811015611af25786850135825560209485019460019092019101611ad2565b5086821015611b0f5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201611b5f57611b5f611b37565b5060010190565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008351611bcc818460208801611592565b835190830190611be0818360208801611592565b01949350505050565b634e487b7160e01b600052601260045260246000fd5b600082611c0e57611c0e611be9565b500490565b8181038181111561047457610474611b37565b600082611c3557611c35611be9565b500690565b8082018082111561047457610474611b37565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611c85816017850160208801611592565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611cb6816028840160208801611592565b01602801949350505050565b808202811582820484141761047457610474611b37565b600081611ce857611ce8611b37565b50600019019056fea26469706673582212204b8490fdfda6cda27fde06c2c1d817c084516078d9e25cc74242da45a26ab93d64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000004768747470733a2f2f6d657461646174612e6c65646765722e636f6d2f6c65646765722d6d61726b65742d626c61636b2d6f6e2d626c61636b2d6e616e6f2d782f746f6b656e732f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f6d657461646174612e6c65646765722e636f6d2f6c65646765722d6d61726b65742d626c61636b2d6f6e2d626c61636b2d6e616e6f2d782f636f6e74726163742d6d6574616461746100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000295b204c6564676572205d204d61726b6574202d20426c61636b2d6f6e2d426c61636b204e616e6f205800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005424f424e58000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _maxSupply (uint256): 10000
Arg [1] : _baseTokenURI (string): https://metadata.ledger.com/ledger-market-black-on-black-nano-x/tokens/
Arg [2] : _baseContractURI (string): https://metadata.ledger.com/ledger-market-black-on-black-nano-x/contract-metadata
Arg [3] : _name (string): [ Ledger ] Market - Black-on-Black Nano X
Arg [4] : _symbol (string): BOBNX
-----Encoded View---------------
18 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000047
Arg [6] : 68747470733a2f2f6d657461646174612e6c65646765722e636f6d2f6c656467
Arg [7] : 65722d6d61726b65742d626c61636b2d6f6e2d626c61636b2d6e616e6f2d782f
Arg [8] : 746f6b656e732f00000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000051
Arg [10] : 68747470733a2f2f6d657461646174612e6c65646765722e636f6d2f6c656467
Arg [11] : 65722d6d61726b65742d626c61636b2d6f6e2d626c61636b2d6e616e6f2d782f
Arg [12] : 636f6e74726163742d6d65746164617461000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000029
Arg [14] : 5b204c6564676572205d204d61726b6574202d20426c61636b2d6f6e2d426c61
Arg [15] : 636b204e616e6f20580000000000000000000000000000000000000000000000
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [17] : 424f424e58000000000000000000000000000000000000000000000000000000
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.