Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
100 DECAL
Holders
99
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 DECALLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Manfredi_Decal
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-05-04 */ // File @openzeppelin/contracts/access/[email protected] // SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol) pragma solidity ^0.8.20; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev The `account` is missing a role. */ error AccessControlUnauthorizedAccount(address account, bytes32 neededRole); /** * @dev The caller of a function is not the expected one. * * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}. */ error AccessControlBadConfirmation(); /** * @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. */ 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 `callerConfirmation`. */ function renounceRole(bytes32 role, address callerConfirmation) external; } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } // File @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @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 @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; /** * @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); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol) pragma solidity ^0.8.20; /** * @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: * * ```solidity * 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}: * * ```solidity * 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. We recommend using {AccessControlDefaultAdminRules} * to enforce additional security measures for this role. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address account => bool) hasRole; bytes32 adminRole; } mapping(bytes32 role => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with an {AccessControlUnauthorizedAccount} error including the required role. */ 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 returns (bool) { return _roles[role].hasRole[account]; } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()` * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier. */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account` * is missing `role`. */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert AccessControlUnauthorizedAccount(account, role); } } /** * @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 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 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 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 `callerConfirmation`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address callerConfirmation) public virtual { if (callerConfirmation != _msgSender()) { revert AccessControlBadConfirmation(); } _revokeRole(role, callerConfirmation); } /** * @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 Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual returns (bool) { if (!hasRole(role, account)) { _roles[role].hasRole[account] = true; emit RoleGranted(role, account, _msgSender()); return true; } else { return false; } } /** * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual returns (bool) { if (hasRole(role, account)) { _roles[role].hasRole[account] = false; emit RoleRevoked(role, account, _msgSender()); return true; } else { return false; } } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; /** * @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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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 @openzeppelin/contracts/interfaces/[email protected] // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); } // File @openzeppelin/contracts/token/ERC721/[email protected] // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.20; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or * {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the address zero. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // File @openzeppelin/contracts/token/ERC721/extensions/[email protected] // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.20; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // File @openzeppelin/contracts/token/ERC721/[email protected] // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.20; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be * reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4); } // File @openzeppelin/contracts/utils/math/[email protected] // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @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 towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (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 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 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. uint256 twos = denominator & (0 - denominator); 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 (unsignedRoundsUp(rounding) && 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 * towards zero. * * 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 + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * 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 + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * 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 + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * 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 256, 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 + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } } // File @openzeppelin/contracts/utils/math/[email protected] // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol) pragma solidity ^0.8.20; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @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), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @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) { uint256 localValue = value; 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_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } 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); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } } // File @openzeppelin/contracts/token/ERC721/[email protected] // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.20; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors { using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; mapping(uint256 tokenId => address) private _owners; mapping(address owner => uint256) private _balances; mapping(uint256 tokenId => address) private _tokenApprovals; mapping(address owner => mapping(address operator => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual returns (uint256) { if (owner == address(0)) { revert ERC721InvalidOwner(address(0)); } return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual returns (address) { return _requireOwned(tokenId); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual returns (string memory) { _requireOwned(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string.concat(baseURI, tokenId.toString()) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual { _approve(to, tokenId, _msgSender()); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual returns (address) { _requireOwned(tokenId); return _getApproved(tokenId); } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here. address previousOwner = _update(to, tokenId, _msgSender()); if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual { transferFrom(from, to, tokenId); _checkOnERC721Received(from, to, tokenId, data); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist * * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the * core ERC721 logic MUST be matched with the use of {_increaseBalance} to keep balances * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`. */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted. */ function _getApproved(uint256 tokenId) internal view virtual returns (address) { return _tokenApprovals[tokenId]; } /** * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in * particular (ignoring whether it is owned by `owner`). * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) { return spender != address(0) && (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender); } /** * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner. * Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets * the `spender` for the specific `tokenId`. * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual { if (!_isAuthorized(owner, spender, tokenId)) { if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } else { revert ERC721InsufficientApproval(spender, tokenId); } } } /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that * a uint256 would ever overflow from increments when these increments are bounded to uint128 values. * * WARNING: Increasing an account's balance using this function tends to be paired with an override of the * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership * remain consistent with one another. */ function _increaseBalance(address account, uint128 value) internal virtual { unchecked { _balances[account] += value; } } /** * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update. * * The `auth` argument is optional. If the value passed is non 0, then this function will check that * `auth` is either the owner of the token, or approved to operate on the token (by the owner). * * Emits a {Transfer} event. * * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}. */ function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) { address from = _ownerOf(tokenId); // Perform (optional) operator check if (auth != address(0)) { _checkAuthorized(from, auth, tokenId); } // Execute the update if (from != address(0)) { // Clear approval. No need to re-authorize or emit the Approval event _approve(address(0), tokenId, address(0), false); unchecked { _balances[from] -= 1; } } if (to != address(0)) { unchecked { _balances[to] += 1; } } _owners[tokenId] = to; emit Transfer(from, to, tokenId); return from; } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner != address(0)) { revert ERC721InvalidSender(address(0)); } } /** * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual { _mint(to, tokenId); _checkOnERC721Received(address(0), to, tokenId, data); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal { address previousOwner = _update(address(0), tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(tokenId); } } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(tokenId); } else if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients * are aware of the ERC721 standard to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is like {safeTransferFrom} in the sense that it invokes * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `tokenId` token must exist and be owned by `from`. * - `to` cannot be the zero address. * - `from` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId) internal { _safeTransfer(from, to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual { _transfer(from, to, tokenId); _checkOnERC721Received(from, to, tokenId, data); } /** * @dev Approve `to` to operate on `tokenId` * * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is * either the owner of the token, or approved to operate on all tokens held by this owner. * * Emits an {Approval} event. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address to, uint256 tokenId, address auth) internal { _approve(to, tokenId, auth, true); } /** * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not * emitted in the context of transfers. */ function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual { // Avoid reading the owner unless necessary if (emitEvent || auth != address(0)) { address owner = _requireOwned(tokenId); // We do not use _isAuthorized because single-token approvals should not be able to call approve if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) { revert ERC721InvalidApprover(auth); } if (emitEvent) { emit Approval(owner, to, tokenId); } } _tokenApprovals[tokenId] = to; } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Requirements: * - operator can't be the address zero. * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { if (operator == address(0)) { revert ERC721InvalidOperator(operator); } _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned). * Returns the owner. * * Overrides to ownership logic should be done to {_ownerOf}. */ function _requireOwned(uint256 tokenId) internal view returns (address) { address owner = _ownerOf(tokenId); if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } return owner; } /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target address. This will revert if the * recipient doesn't accept the token transfer. The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory data) private { if (to.code.length > 0) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { if (retval != IERC721Receiver.onERC721Received.selector) { revert ERC721InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { revert ERC721InvalidReceiver(to); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } } } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success,) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget(address target, bool success, bytes memory returndata) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert FailedInnerCall(); } } } // File @openzeppelin/contracts/utils/cryptography/[email protected] // OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.20; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the Merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates Merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev The multiproof provided is not valid. */ error MerkleProofInvalidMultiproof(); /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} */ function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details. */ function multiProofVerify(bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details. */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). */ function processMultiProof(bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the Merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. if (leavesLen + proofLen != totalHashes + 1) { revert MerkleProofInvalidMultiproof(); } // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { if (proofPos != proofLen) { revert MerkleProofInvalidMultiproof(); } unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details. */ function processMultiProofCalldata(bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the Merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. if (leavesLen + proofLen != totalHashes + 1) { revert MerkleProofInvalidMultiproof(); } // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { if (proofPos != proofLen) { revert MerkleProofInvalidMultiproof(); } unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Sorts the pair (a, b) and hashes the result. */ function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } /** * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory. */ function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant NOT_ENTERED = 1; uint256 private constant ENTERED = 2; uint256 private _status; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); constructor() { _status = NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be NOT_ENTERED if (_status == ENTERED) { revert ReentrancyGuardReentrantCall(); } // Any calls to nonReentrant after this point will fail _status = ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == ENTERED; } } // File contracts/utils/Errors.sol pragma solidity ^0.8.17; error MaxSupplyReached(); error AlreadyMinted(); error NotOnAllowlist(); error NotArtist(); error NoArtist(); error MaxArtistSupplyReached(); error CannotMintZero(); error MaxPublicSupplyReached(); // File contracts/Manfredi_Decal.sol pragma solidity ^0.8.17; /// @author @0x__jj, @llio (Deca) contract Manfredi_Decal is ERC721, ReentrancyGuard, AccessControl, Ownable { using Address for address; using Strings for *; event ArtistMinted(uint256 numberOfTokens, uint256 remainingArtistSupply); mapping(address => bool) public minted; uint256 public totalSupply = 0; uint256 public constant MAX_SUPPLY = 100; bytes32 public merkleRoot; uint256 public artistMaxSupply; uint256 public artistSupply; address public artist; string public baseUri; constructor(string memory _baseUri, address[] memory _admins, uint256 _artistMaxSupply, address _artist) ERC721("Decal by Manfredi Caracciolo", "DECAL") Ownable(msg.sender) { if (_artistMaxSupply > MAX_SUPPLY) revert MaxSupplyReached(); _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); for (uint256 i = 0; i < _admins.length; i++) { _grantRole(DEFAULT_ADMIN_ROLE, _admins[i]); } baseUri = _baseUri; artistMaxSupply = _artistMaxSupply; artist = _artist; } function setArtist(address _artist) external onlyRole(DEFAULT_ADMIN_ROLE) { artist = _artist; } function setArtistMaxSupply(uint256 _artistMaxSupply) external onlyRole(DEFAULT_ADMIN_ROLE) { if ((_artistMaxSupply - artistSupply) > (MAX_SUPPLY - totalSupply)) { revert MaxArtistSupplyReached(); } artistMaxSupply = _artistMaxSupply; } function setMerkleRoot(bytes32 _merkleRoot) external onlyRole(DEFAULT_ADMIN_ROLE) { merkleRoot = _merkleRoot; } function setBaseUri(string memory _newBaseUri) external onlyRole(DEFAULT_ADMIN_ROLE) { baseUri = _newBaseUri; } function mint(bytes32[] calldata _merkleProof) external nonReentrant returns (uint256 tokenId) { if (minted[msg.sender]) revert AlreadyMinted(); if (totalSupply >= MAX_SUPPLY) revert MaxSupplyReached(); if (publicSupplyRemaining() < 1) revert MaxPublicSupplyReached(); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); if (!MerkleProof.verify(_merkleProof, merkleRoot, leaf)) { revert NotOnAllowlist(); } minted[msg.sender] = true; tokenId = totalSupply; totalSupply++; _safeMint(msg.sender, tokenId); } function artistMintForAdmin(uint256 _numberOfTokens) external nonReentrant onlyRole(DEFAULT_ADMIN_ROLE) { if (_numberOfTokens == 0) revert CannotMintZero(); if (artist == address(0)) revert NoArtist(); uint256 remaining = artistMaxSupply - artistSupply; if (remaining == 0) revert MaxArtistSupplyReached(); _numberOfTokens = uint256(Math.min(_numberOfTokens, remaining)); uint256 tokenId = totalSupply; for (uint256 i = 0; i < _numberOfTokens; i++) { _safeMint(artist, tokenId); tokenId++; } artistSupply += _numberOfTokens; totalSupply = tokenId; emit ArtistMinted(_numberOfTokens, remaining); } function artistMint(uint256 _numberOfTokens) external nonReentrant { if (_numberOfTokens == 0) revert CannotMintZero(); if (artist == address(0)) revert NoArtist(); if (msg.sender != artist) revert NotArtist(); uint256 remaining = artistMaxSupply - artistSupply; if (remaining == 0) revert MaxArtistSupplyReached(); _numberOfTokens = uint256(Math.min(_numberOfTokens, remaining)); uint256 tokenId = totalSupply; for (uint256 i = 0; i < _numberOfTokens; i++) { _safeMint(msg.sender, tokenId); tokenId++; } artistSupply += _numberOfTokens; totalSupply = tokenId; emit ArtistMinted(_numberOfTokens, remaining); } function publicSupplyRemaining() public view returns (uint256) { return MAX_SUPPLY - totalSupply - (artistMaxSupply - artistSupply); } function artistSupplyRemaining() external view returns (uint256) { return artistMaxSupply - artistSupply; } function tokenURI(uint256 _tokenId) public view override(ERC721) returns (string memory) { require(_ownerOf(_tokenId) != address(0), "DECAL: URI query for nonexistent token"); string memory baseURI = _baseURI(); require(bytes(baseURI).length > 0, "baseURI not set"); return string(abi.encodePacked(baseURI, _tokenId.toString())); } function getTokensOfOwner(address owner_) external view returns (uint256[] memory) { uint256 tokenCount = balanceOf(owner_); uint256[] memory tokenIds = new uint256[](tokenCount); uint256 seen = 0; for (uint256 i = 0; i < totalSupply; i++) { if (ownerOf(i) == owner_) { tokenIds[seen] = i; seen++; } if (seen == tokenCount) break; } return tokenIds; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } function _baseURI() internal view override(ERC721) returns (string memory) { return baseUri; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"address[]","name":"_admins","type":"address[]"},{"internalType":"uint256","name":"_artistMaxSupply","type":"uint256"},{"internalType":"address","name":"_artist","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[],"name":"AlreadyMinted","type":"error"},{"inputs":[],"name":"CannotMintZero","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[],"name":"MaxArtistSupplyReached","type":"error"},{"inputs":[],"name":"MaxPublicSupplyReached","type":"error"},{"inputs":[],"name":"MaxSupplyReached","type":"error"},{"inputs":[],"name":"NoArtist","type":"error"},{"inputs":[],"name":"NotArtist","type":"error"},{"inputs":[],"name":"NotOnAllowlist","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"remainingArtistSupply","type":"uint256"}],"name":"ArtistMinted","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":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"artistMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberOfTokens","type":"uint256"}],"name":"artistMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberOfTokens","type":"uint256"}],"name":"artistMintForAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artistSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"artistSupplyRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"}],"name":"getTokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSupplyRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","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":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_artist","type":"address"}],"name":"setArtist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_artistMaxSupply","type":"uint256"}],"name":"setArtistMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","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":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040525f600a5534801562000014575f80fd5b50604051620025023803806200250283398101604081905262000037916200039f565b336040518060400160405280601c81526020017f446563616c206279204d616e667265646920436172616363696f6c6f0000000081525060405180604001604052806005815260200164111150d05360da1b815250815f90816200009c91906200051a565b506001620000ab82826200051a565b50506001600655506001600160a01b038116620000e157604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b620000ec81620001ad565b506064821115620001105760405163d05cb60960e01b815260040160405180910390fd5b6200011c5f33620001fe565b505f5b83518110156200016f57620001595f801b858381518110620001455762000145620005e2565b6020026020010151620001fe60201b60201c565b50806200016681620005f6565b9150506200011f565b50600f6200017e85826200051a565b50600c91909155600e80546001600160a01b0319166001600160a01b03909216919091179055506200061b9050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f8281526007602090815260408083206001600160a01b038516845290915281205460ff16620002a5575f8381526007602090815260408083206001600160a01b03861684529091529020805460ff191660011790556200025c3390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001620002a8565b505f5b92915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f191681016001600160401b0381118282101715620002ed57620002ed620002ae565b604052919050565b80516001600160a01b03811681146200030c575f80fd5b919050565b5f82601f83011262000321575f80fd5b815160206001600160401b038211156200033f576200033f620002ae565b8160051b62000350828201620002c2565b92835284810182019282810190878511156200036a575f80fd5b83870192505b8483101562000394576200038483620002f5565b8252918301919083019062000370565b979650505050505050565b5f805f8060808587031215620003b3575f80fd5b84516001600160401b0380821115620003ca575f80fd5b818701915087601f830112620003de575f80fd5b815181811115620003f357620003f3620002ae565b602062000409601f8301601f19168201620002c2565b8281528a828487010111156200041d575f80fd5b5f5b838110156200043c5785810183015182820184015282016200041f565b505f9281018201929092528801519096509150808211156200045c575f80fd5b506200046b8782880162000311565b935050604085015191506200048360608601620002f5565b905092959194509250565b600181811c90821680620004a357607f821691505b602082108103620004c257634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111562000515575f81815260208120601f850160051c81016020861015620004f05750805b601f850160051c820191505b818110156200051157828155600101620004fc565b5050505b505050565b81516001600160401b03811115620005365762000536620002ae565b6200054e816200054784546200048e565b84620004c8565b602080601f83116001811462000584575f84156200056c5750858301515b5f19600386901b1c1916600185901b17855562000511565b5f85815260208120601f198616915b82811015620005b45788860151825594840194600190910190840162000593565b5085821015620005d257878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52603260045260245ffd5b5f600182016200061457634e487b7160e01b5f52601160045260245ffd5b5060010190565b611ed980620006295f395ff3fe608060405234801561000f575f80fd5b50600436106101d6575f3560e01c806301ffc9a7146101da57806306fdde03146102025780630798f69714610217578063081812fc1461022c578063095ea7b31461024c57806318160ddd1461025f5780631e7269c51461027657806323b872dd14610298578063248a9ca3146102ab5780632eb4a7ab146102be5780632f2ff15d146102c757806332cb6b0c146102da57806336568abe146102e257806342842e0e146102f557806343bc1612146103085780635de6dc551461031b5780636352211e1461033b57806370a082311461034e578063715018a61461036157806371a4c485146103695780637cb64759146103725780637e5b8106146103855780638da5cb5b1461038e57806391d148541461039657806395d89b41146103a95780639abc8320146103b15780639f3632fb146103b9578063a0bcfc7f146103cc578063a217fddf146103df578063a22cb465146103e6578063a96f38dd146103f9578063b77a147b14610401578063b88d4fde14610414578063bf113baf14610427578063c3ad8e981461043a578063c87b56dd14610442578063d4c9753314610455578063d547741f14610468578063e985e9c51461047b578063f2fde38b1461048e575b5f80fd5b6101ed6101e8366004611889565b6104a1565b60405190151581526020015b60405180910390f35b61020a6104b1565b6040516101f991906118f1565b61022a610225366004611903565b610540565b005b61023f61023a366004611903565b61058a565b6040516101f9919061191a565b61022a61025a366004611949565b61059e565b610268600a5481565b6040519081526020016101f9565b6101ed610284366004611971565b60096020525f908152604090205460ff1681565b61022a6102a636600461198a565b6105ad565b6102686102b9366004611903565b61063f565b610268600b5481565b61022a6102d53660046119c3565b610653565b610268606481565b61022a6102f03660046119c3565b61066f565b61022a61030336600461198a565b6106a7565b600e5461023f906001600160a01b031681565b61032e610329366004611971565b6106c1565b6040516101f991906119ed565b61023f610349366004611903565b610791565b61026861035c366004611971565b61079b565b61022a6107e0565b610268600c5481565b61022a610380366004611903565b6107f3565b610268600d5481565b61023f610803565b6101ed6103a43660046119c3565b610812565b61020a61083c565b61020a61084b565b61022a6103c7366004611903565b6108d7565b61022a6103da366004611ab6565b610a07565b6102685f81565b61022a6103f4366004611afa565b610a1d565b610268610a28565b61026861040f366004611b33565b610a56565b61022a610422366004611ba1565b610baf565b61022a610435366004611903565b610bc6565b610268610d07565b61020a610450366004611903565b610d18565b61022a610463366004611971565b610e08565b61022a6104763660046119c3565b610e35565b6101ed610489366004611c17565b610e51565b61022a61049c366004611971565b610e7e565b5f6104ab82610eb8565b92915050565b60605f80546104bf90611c3f565b80601f01602080910402602001604051908101604052809291908181526020018280546104eb90611c3f565b80156105365780601f1061050d57610100808354040283529160200191610536565b820191905f5260205f20905b81548152906001019060200180831161051957829003601f168201915b5050505050905090565b5f61054a81610edc565b600a54610558906064611c8b565b600d546105659084611c8b565b11156105845760405163d5c4417960e01b815260040160405180910390fd5b50600c55565b5f61059482610ee6565b506104ab82610f1d565b6105a9828233610f37565b5050565b6001600160a01b0382166105df575f604051633250574960e11b81526004016105d6919061191a565b60405180910390fd5b5f6105eb838333610f44565b9050836001600160a01b0316816001600160a01b031614610639576040516364283d7b60e01b81526001600160a01b03808616600483015260248201849052821660448201526064016105d6565b50505050565b5f9081526007602052604090206001015490565b61065c8261063f565b61066581610edc565b6106398383611031565b6001600160a01b03811633146106985760405163334bd91960e11b815260040160405180910390fd5b6106a282826110c2565b505050565b6106a283838360405180602001604052805f815250610baf565b60605f6106cd8361079b565b90505f816001600160401b038111156106e8576106e8611a30565b604051908082528060200260200182016040528015610711578160200160208202803683370190505b5090505f805b600a5481101561078757856001600160a01b031661073482610791565b6001600160a01b03160361076e578083838151811061075557610755611c9e565b60209081029190910101528161076a81611cb2565b9250505b818414610787578061077f81611cb2565b915050610717565b5090949350505050565b5f6104ab82610ee6565b5f6001600160a01b0382166107c5575f6040516322718ad960e21b81526004016105d6919061191a565b506001600160a01b03165f9081526003602052604090205490565b6107e861112d565b6107f15f61115f565b565b5f6107fd81610edc565b50600b55565b6008546001600160a01b031690565b5f9182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600180546104bf90611c3f565b600f805461085890611c3f565b80601f016020809104026020016040519081016040528092919081815260200182805461088490611c3f565b80156108cf5780601f106108a6576101008083540402835291602001916108cf565b820191905f5260205f20905b8154815290600101906020018083116108b257829003601f168201915b505050505081565b6108df6111b0565b5f6108e981610edc565b815f0361090957604051632a6ce29960e11b815260040160405180910390fd5b600e546001600160a01b0316610932576040516340f028e160e11b815260040160405180910390fd5b5f600d54600c546109439190611c8b565b9050805f036109655760405163d5c4417960e01b815260040160405180910390fd5b61096f83826111da565b600a549093505f5b848110156109b557600e54610995906001600160a01b0316836111f1565b8161099f81611cb2565b92505080806109ad90611cb2565b915050610977565b5083600d5f8282546109c79190611cca565b9091555050600a81905560408051858152602081018490525f80516020611e84833981519152910160405180910390a1505050610a046001600655565b50565b5f610a1181610edc565b600f6106a28382611d2a565b6105a933838361120a565b5f600d54600c54610a399190611c8b565b600a54610a47906064611c8b565b610a519190611c8b565b905090565b5f610a5f6111b0565b335f9081526009602052604090205460ff1615610a8f57604051631bbdf5c560e31b815260040160405180910390fd5b6064600a5410610ab25760405163d05cb60960e01b815260040160405180910390fd5b6001610abc610a28565b1015610adb576040516321bccf3f60e01b815260040160405180910390fd5b6040516001600160601b03193360601b1660208201525f90603401604051602081830303815290604052805190602001209050610b4e8484808060200260200160405190810160405280939291908181526020018383602002808284375f9201919091525050600b54915084905061129f565b610b6b5760405163231e418360e01b815260040160405180910390fd5b335f908152600960205260408120805460ff19166001179055600a805493508391610b9583611cb2565b9190505550610ba433836111f1565b506104ab6001600655565b610bba8484846105ad565b610639848484846112b4565b610bce6111b0565b805f03610bee57604051632a6ce29960e11b815260040160405180910390fd5b600e546001600160a01b0316610c17576040516340f028e160e11b815260040160405180910390fd5b600e546001600160a01b03163314610c4257604051636bebaa5360e01b815260040160405180910390fd5b5f600d54600c54610c539190611c8b565b9050805f03610c755760405163d5c4417960e01b815260040160405180910390fd5b610c7f82826111da565b600a549092505f5b83811015610cb957610c9933836111f1565b81610ca381611cb2565b9250508080610cb190611cb2565b915050610c87565b5082600d5f828254610ccb9190611cca565b9091555050600a81905560408051848152602081018490525f80516020611e84833981519152910160405180910390a15050610a046001600655565b5f600d54600c54610a519190611c8b565b60605f610d24836113c8565b6001600160a01b031603610d895760405162461bcd60e51b815260206004820152602660248201527f444543414c3a2055524920717565727920666f72206e6f6e6578697374656e74604482015265103a37b5b2b760d11b60648201526084016105d6565b5f610d926113e2565b90505f815111610dd65760405162461bcd60e51b815260206004820152600f60248201526e18985cd9555492481b9bdd081cd95d608a1b60448201526064016105d6565b80610de0846113f1565b604051602001610df1929190611de5565b604051602081830303815290604052915050919050565b5f610e1281610edc565b50600e80546001600160a01b0319166001600160a01b0392909216919091179055565b610e3e8261063f565b610e4781610edc565b61063983836110c2565b6001600160a01b039182165f90815260056020908152604080832093909416825291909152205460ff1690565b610e8661112d565b6001600160a01b038116610eaf575f604051631e4fbdf760e01b81526004016105d6919061191a565b610a048161115f565b5f6001600160e01b03198216637965db0b60e01b14806104ab57506104ab82611480565b610a0481336114cf565b5f80610ef1836113c8565b90506001600160a01b0381166104ab57604051637e27328960e01b8152600481018490526024016105d6565b5f908152600460205260409020546001600160a01b031690565b6106a283838360016114fa565b5f80610f4f846113c8565b90506001600160a01b03831615610f6b57610f6b8184866115f5565b6001600160a01b03811615610fa557610f865f855f806114fa565b6001600160a01b0381165f90815260036020526040902080545f190190555b6001600160a01b03851615610fd3576001600160a01b0385165f908152600360205260409020805460010190555b5f8481526002602052604080822080546001600160a01b0319166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b5f61103c8383610812565b6110bb575f8381526007602090815260408083206001600160a01b03861684529091529020805460ff191660011790556110733390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45060016104ab565b505f6104ab565b5f6110cd8383610812565b156110bb575f8381526007602090815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45060016104ab565b33611136610803565b6001600160a01b0316146107f1573360405163118cdaa760e01b81526004016105d6919061191a565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6002600654036111d357604051633ee5aeb560e01b815260040160405180910390fd5b6002600655565b5f8183106111e857816111ea565b825b9392505050565b6105a9828260405180602001604052805f81525061164b565b6001600160a01b0382166112335781604051630b61174360e31b81526004016105d6919061191a565b6001600160a01b038381165f81815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b5f826112ab8584611661565b14949350505050565b6001600160a01b0383163b1561063957604051630a85bd0160e11b81526001600160a01b0384169063150b7a02906112f6903390889087908790600401611e13565b6020604051808303815f875af1925050508015611330575060408051601f3d908101601f1916820190925261132d91810190611e4f565b60015b61138e573d80801561135d576040519150601f19603f3d011682016040523d82523d5f602084013e611362565b606091505b5080515f036113865783604051633250574960e11b81526004016105d6919061191a565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b146113c15783604051633250574960e11b81526004016105d6919061191a565b5050505050565b5f908152600260205260409020546001600160a01b031690565b6060600f80546104bf90611c3f565b60605f6113fd836116ad565b60010190505f816001600160401b0381111561141b5761141b611a30565b6040519080825280601f01601f191660200182016040528015611445576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461144f57509392505050565b5f6001600160e01b031982166380ac58cd60e01b14806114b057506001600160e01b03198216635b5e139f60e01b145b806104ab57506301ffc9a760e01b6001600160e01b03198316146104ab565b6114d98282610812565b6105a957808260405163e2517d3f60e01b81526004016105d6929190611e6a565b808061150e57506001600160a01b03821615155b156115c6575f61151d84610ee6565b90506001600160a01b038316158015906115495750826001600160a01b0316816001600160a01b031614155b801561155c575061155a8184610e51565b155b1561157c578260405163a9fbf51f60e01b81526004016105d6919061191a565b81156115c45783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b50505f90815260046020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b611600838383611782565b6106a2576001600160a01b03831661162e57604051637e27328960e01b8152600481018290526024016105d6565b818160405163177e802f60e01b81526004016105d6929190611e6a565b61165583836117e7565b6106a25f8484846112b4565b5f81815b84518110156116a5576116918286838151811061168457611684611c9e565b6020026020010151611848565b91508061169d81611cb2565b915050611665565b509392505050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106116eb5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6904ee2d6d415b85acef8160201b8310611715576904ee2d6d415b85acef8160201b830492506020015b662386f26fc10000831061173357662386f26fc10000830492506010015b6305f5e100831061174b576305f5e100830492506008015b612710831061175f57612710830492506004015b60648310611771576064830492506002015b600a83106104ab5760010192915050565b5f6001600160a01b038316158015906117df5750826001600160a01b0316846001600160a01b031614806117bb57506117bb8484610e51565b806117df5750826001600160a01b03166117d483610f1d565b6001600160a01b0316145b949350505050565b6001600160a01b038216611810575f604051633250574960e11b81526004016105d6919061191a565b5f61181c83835f610f44565b90506001600160a01b038116156106a2575f6040516339e3563760e11b81526004016105d6919061191a565b5f818310611862575f8281526020849052604090206111ea565b5f8381526020839052604090206111ea565b6001600160e01b031981168114610a04575f80fd5b5f60208284031215611899575f80fd5b81356111ea81611874565b5f5b838110156118be5781810151838201526020016118a6565b50505f910152565b5f81518084526118dd8160208601602086016118a4565b601f01601f19169290920160200192915050565b602081525f6111ea60208301846118c6565b5f60208284031215611913575f80fd5b5035919050565b6001600160a01b0391909116815260200190565b80356001600160a01b0381168114611944575f80fd5b919050565b5f806040838503121561195a575f80fd5b6119638361192e565b946020939093013593505050565b5f60208284031215611981575f80fd5b6111ea8261192e565b5f805f6060848603121561199c575f80fd5b6119a58461192e565b92506119b36020850161192e565b9150604084013590509250925092565b5f80604083850312156119d4575f80fd5b823591506119e46020840161192e565b90509250929050565b602080825282518282018190525f9190848201906040850190845b81811015611a2457835183529284019291840191600101611a08565b50909695505050505050565b634e487b7160e01b5f52604160045260245ffd5b5f6001600160401b0380841115611a5d57611a5d611a30565b604051601f8501601f19908116603f01168101908282118183101715611a8557611a85611a30565b81604052809350858152868686011115611a9d575f80fd5b858560208301375f602087830101525050509392505050565b5f60208284031215611ac6575f80fd5b81356001600160401b03811115611adb575f80fd5b8201601f81018413611aeb575f80fd5b6117df84823560208401611a44565b5f8060408385031215611b0b575f80fd5b611b148361192e565b915060208301358015158114611b28575f80fd5b809150509250929050565b5f8060208385031215611b44575f80fd5b82356001600160401b0380821115611b5a575f80fd5b818501915085601f830112611b6d575f80fd5b813581811115611b7b575f80fd5b8660208260051b8501011115611b8f575f80fd5b60209290920196919550909350505050565b5f805f8060808587031215611bb4575f80fd5b611bbd8561192e565b9350611bcb6020860161192e565b92506040850135915060608501356001600160401b03811115611bec575f80fd5b8501601f81018713611bfc575f80fd5b611c0b87823560208401611a44565b91505092959194509250565b5f8060408385031215611c28575f80fd5b611c318361192e565b91506119e46020840161192e565b600181811c90821680611c5357607f821691505b602082108103611c7157634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b818103818111156104ab576104ab611c77565b634e487b7160e01b5f52603260045260245ffd5b5f60018201611cc357611cc3611c77565b5060010190565b808201808211156104ab576104ab611c77565b601f8211156106a2575f81815260208120601f850160051c81016020861015611d035750805b601f850160051c820191505b81811015611d2257828155600101611d0f565b505050505050565b81516001600160401b03811115611d4357611d43611a30565b611d5781611d518454611c3f565b84611cdd565b602080601f831160018114611d8a575f8415611d735750858301515b5f19600386901b1c1916600185901b178555611d22565b5f85815260208120601f198616915b82811015611db857888601518255948401946001909101908401611d99565b5085821015611dd557878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f8351611df68184602088016118a4565b835190830190611e0a8183602088016118a4565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f90611e45908301846118c6565b9695505050505050565b5f60208284031215611e5f575f80fd5b81516111ea81611874565b6001600160a01b0392909216825260208201526040019056fe0b3544e12b031cb05a003a4e0cb691f6809a97e68d9f3d5d00387b0ee985acbaa2646970667358221220c927513547139cba6b0cada881a39427cc728ec11eb71fe898b819ed19acbfbd64736f6c63430008140033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000070000000000000000000000004c2f526cdaaeea289fb02fce54ac5cf9ffb5229b000000000000000000000000000000000000000000000000000000000000003268747470733a2f2f636c69656e742d6170692e646563612e73797374656d732f646563616c2f6d657461646174612f33352f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000a57ec3a618b6969a6b1fec2ef4bf54b2afc5ca30
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106101d6575f3560e01c806301ffc9a7146101da57806306fdde03146102025780630798f69714610217578063081812fc1461022c578063095ea7b31461024c57806318160ddd1461025f5780631e7269c51461027657806323b872dd14610298578063248a9ca3146102ab5780632eb4a7ab146102be5780632f2ff15d146102c757806332cb6b0c146102da57806336568abe146102e257806342842e0e146102f557806343bc1612146103085780635de6dc551461031b5780636352211e1461033b57806370a082311461034e578063715018a61461036157806371a4c485146103695780637cb64759146103725780637e5b8106146103855780638da5cb5b1461038e57806391d148541461039657806395d89b41146103a95780639abc8320146103b15780639f3632fb146103b9578063a0bcfc7f146103cc578063a217fddf146103df578063a22cb465146103e6578063a96f38dd146103f9578063b77a147b14610401578063b88d4fde14610414578063bf113baf14610427578063c3ad8e981461043a578063c87b56dd14610442578063d4c9753314610455578063d547741f14610468578063e985e9c51461047b578063f2fde38b1461048e575b5f80fd5b6101ed6101e8366004611889565b6104a1565b60405190151581526020015b60405180910390f35b61020a6104b1565b6040516101f991906118f1565b61022a610225366004611903565b610540565b005b61023f61023a366004611903565b61058a565b6040516101f9919061191a565b61022a61025a366004611949565b61059e565b610268600a5481565b6040519081526020016101f9565b6101ed610284366004611971565b60096020525f908152604090205460ff1681565b61022a6102a636600461198a565b6105ad565b6102686102b9366004611903565b61063f565b610268600b5481565b61022a6102d53660046119c3565b610653565b610268606481565b61022a6102f03660046119c3565b61066f565b61022a61030336600461198a565b6106a7565b600e5461023f906001600160a01b031681565b61032e610329366004611971565b6106c1565b6040516101f991906119ed565b61023f610349366004611903565b610791565b61026861035c366004611971565b61079b565b61022a6107e0565b610268600c5481565b61022a610380366004611903565b6107f3565b610268600d5481565b61023f610803565b6101ed6103a43660046119c3565b610812565b61020a61083c565b61020a61084b565b61022a6103c7366004611903565b6108d7565b61022a6103da366004611ab6565b610a07565b6102685f81565b61022a6103f4366004611afa565b610a1d565b610268610a28565b61026861040f366004611b33565b610a56565b61022a610422366004611ba1565b610baf565b61022a610435366004611903565b610bc6565b610268610d07565b61020a610450366004611903565b610d18565b61022a610463366004611971565b610e08565b61022a6104763660046119c3565b610e35565b6101ed610489366004611c17565b610e51565b61022a61049c366004611971565b610e7e565b5f6104ab82610eb8565b92915050565b60605f80546104bf90611c3f565b80601f01602080910402602001604051908101604052809291908181526020018280546104eb90611c3f565b80156105365780601f1061050d57610100808354040283529160200191610536565b820191905f5260205f20905b81548152906001019060200180831161051957829003601f168201915b5050505050905090565b5f61054a81610edc565b600a54610558906064611c8b565b600d546105659084611c8b565b11156105845760405163d5c4417960e01b815260040160405180910390fd5b50600c55565b5f61059482610ee6565b506104ab82610f1d565b6105a9828233610f37565b5050565b6001600160a01b0382166105df575f604051633250574960e11b81526004016105d6919061191a565b60405180910390fd5b5f6105eb838333610f44565b9050836001600160a01b0316816001600160a01b031614610639576040516364283d7b60e01b81526001600160a01b03808616600483015260248201849052821660448201526064016105d6565b50505050565b5f9081526007602052604090206001015490565b61065c8261063f565b61066581610edc565b6106398383611031565b6001600160a01b03811633146106985760405163334bd91960e11b815260040160405180910390fd5b6106a282826110c2565b505050565b6106a283838360405180602001604052805f815250610baf565b60605f6106cd8361079b565b90505f816001600160401b038111156106e8576106e8611a30565b604051908082528060200260200182016040528015610711578160200160208202803683370190505b5090505f805b600a5481101561078757856001600160a01b031661073482610791565b6001600160a01b03160361076e578083838151811061075557610755611c9e565b60209081029190910101528161076a81611cb2565b9250505b818414610787578061077f81611cb2565b915050610717565b5090949350505050565b5f6104ab82610ee6565b5f6001600160a01b0382166107c5575f6040516322718ad960e21b81526004016105d6919061191a565b506001600160a01b03165f9081526003602052604090205490565b6107e861112d565b6107f15f61115f565b565b5f6107fd81610edc565b50600b55565b6008546001600160a01b031690565b5f9182526007602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600180546104bf90611c3f565b600f805461085890611c3f565b80601f016020809104026020016040519081016040528092919081815260200182805461088490611c3f565b80156108cf5780601f106108a6576101008083540402835291602001916108cf565b820191905f5260205f20905b8154815290600101906020018083116108b257829003601f168201915b505050505081565b6108df6111b0565b5f6108e981610edc565b815f0361090957604051632a6ce29960e11b815260040160405180910390fd5b600e546001600160a01b0316610932576040516340f028e160e11b815260040160405180910390fd5b5f600d54600c546109439190611c8b565b9050805f036109655760405163d5c4417960e01b815260040160405180910390fd5b61096f83826111da565b600a549093505f5b848110156109b557600e54610995906001600160a01b0316836111f1565b8161099f81611cb2565b92505080806109ad90611cb2565b915050610977565b5083600d5f8282546109c79190611cca565b9091555050600a81905560408051858152602081018490525f80516020611e84833981519152910160405180910390a1505050610a046001600655565b50565b5f610a1181610edc565b600f6106a28382611d2a565b6105a933838361120a565b5f600d54600c54610a399190611c8b565b600a54610a47906064611c8b565b610a519190611c8b565b905090565b5f610a5f6111b0565b335f9081526009602052604090205460ff1615610a8f57604051631bbdf5c560e31b815260040160405180910390fd5b6064600a5410610ab25760405163d05cb60960e01b815260040160405180910390fd5b6001610abc610a28565b1015610adb576040516321bccf3f60e01b815260040160405180910390fd5b6040516001600160601b03193360601b1660208201525f90603401604051602081830303815290604052805190602001209050610b4e8484808060200260200160405190810160405280939291908181526020018383602002808284375f9201919091525050600b54915084905061129f565b610b6b5760405163231e418360e01b815260040160405180910390fd5b335f908152600960205260408120805460ff19166001179055600a805493508391610b9583611cb2565b9190505550610ba433836111f1565b506104ab6001600655565b610bba8484846105ad565b610639848484846112b4565b610bce6111b0565b805f03610bee57604051632a6ce29960e11b815260040160405180910390fd5b600e546001600160a01b0316610c17576040516340f028e160e11b815260040160405180910390fd5b600e546001600160a01b03163314610c4257604051636bebaa5360e01b815260040160405180910390fd5b5f600d54600c54610c539190611c8b565b9050805f03610c755760405163d5c4417960e01b815260040160405180910390fd5b610c7f82826111da565b600a549092505f5b83811015610cb957610c9933836111f1565b81610ca381611cb2565b9250508080610cb190611cb2565b915050610c87565b5082600d5f828254610ccb9190611cca565b9091555050600a81905560408051848152602081018490525f80516020611e84833981519152910160405180910390a15050610a046001600655565b5f600d54600c54610a519190611c8b565b60605f610d24836113c8565b6001600160a01b031603610d895760405162461bcd60e51b815260206004820152602660248201527f444543414c3a2055524920717565727920666f72206e6f6e6578697374656e74604482015265103a37b5b2b760d11b60648201526084016105d6565b5f610d926113e2565b90505f815111610dd65760405162461bcd60e51b815260206004820152600f60248201526e18985cd9555492481b9bdd081cd95d608a1b60448201526064016105d6565b80610de0846113f1565b604051602001610df1929190611de5565b604051602081830303815290604052915050919050565b5f610e1281610edc565b50600e80546001600160a01b0319166001600160a01b0392909216919091179055565b610e3e8261063f565b610e4781610edc565b61063983836110c2565b6001600160a01b039182165f90815260056020908152604080832093909416825291909152205460ff1690565b610e8661112d565b6001600160a01b038116610eaf575f604051631e4fbdf760e01b81526004016105d6919061191a565b610a048161115f565b5f6001600160e01b03198216637965db0b60e01b14806104ab57506104ab82611480565b610a0481336114cf565b5f80610ef1836113c8565b90506001600160a01b0381166104ab57604051637e27328960e01b8152600481018490526024016105d6565b5f908152600460205260409020546001600160a01b031690565b6106a283838360016114fa565b5f80610f4f846113c8565b90506001600160a01b03831615610f6b57610f6b8184866115f5565b6001600160a01b03811615610fa557610f865f855f806114fa565b6001600160a01b0381165f90815260036020526040902080545f190190555b6001600160a01b03851615610fd3576001600160a01b0385165f908152600360205260409020805460010190555b5f8481526002602052604080822080546001600160a01b0319166001600160a01b0389811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b5f61103c8383610812565b6110bb575f8381526007602090815260408083206001600160a01b03861684529091529020805460ff191660011790556110733390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45060016104ab565b505f6104ab565b5f6110cd8383610812565b156110bb575f8381526007602090815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45060016104ab565b33611136610803565b6001600160a01b0316146107f1573360405163118cdaa760e01b81526004016105d6919061191a565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6002600654036111d357604051633ee5aeb560e01b815260040160405180910390fd5b6002600655565b5f8183106111e857816111ea565b825b9392505050565b6105a9828260405180602001604052805f81525061164b565b6001600160a01b0382166112335781604051630b61174360e31b81526004016105d6919061191a565b6001600160a01b038381165f81815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b5f826112ab8584611661565b14949350505050565b6001600160a01b0383163b1561063957604051630a85bd0160e11b81526001600160a01b0384169063150b7a02906112f6903390889087908790600401611e13565b6020604051808303815f875af1925050508015611330575060408051601f3d908101601f1916820190925261132d91810190611e4f565b60015b61138e573d80801561135d576040519150601f19603f3d011682016040523d82523d5f602084013e611362565b606091505b5080515f036113865783604051633250574960e11b81526004016105d6919061191a565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b146113c15783604051633250574960e11b81526004016105d6919061191a565b5050505050565b5f908152600260205260409020546001600160a01b031690565b6060600f80546104bf90611c3f565b60605f6113fd836116ad565b60010190505f816001600160401b0381111561141b5761141b611a30565b6040519080825280601f01601f191660200182016040528015611445576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461144f57509392505050565b5f6001600160e01b031982166380ac58cd60e01b14806114b057506001600160e01b03198216635b5e139f60e01b145b806104ab57506301ffc9a760e01b6001600160e01b03198316146104ab565b6114d98282610812565b6105a957808260405163e2517d3f60e01b81526004016105d6929190611e6a565b808061150e57506001600160a01b03821615155b156115c6575f61151d84610ee6565b90506001600160a01b038316158015906115495750826001600160a01b0316816001600160a01b031614155b801561155c575061155a8184610e51565b155b1561157c578260405163a9fbf51f60e01b81526004016105d6919061191a565b81156115c45783856001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b50505f90815260046020526040902080546001600160a01b0319166001600160a01b0392909216919091179055565b611600838383611782565b6106a2576001600160a01b03831661162e57604051637e27328960e01b8152600481018290526024016105d6565b818160405163177e802f60e01b81526004016105d6929190611e6a565b61165583836117e7565b6106a25f8484846112b4565b5f81815b84518110156116a5576116918286838151811061168457611684611c9e565b6020026020010151611848565b91508061169d81611cb2565b915050611665565b509392505050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106116eb5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6904ee2d6d415b85acef8160201b8310611715576904ee2d6d415b85acef8160201b830492506020015b662386f26fc10000831061173357662386f26fc10000830492506010015b6305f5e100831061174b576305f5e100830492506008015b612710831061175f57612710830492506004015b60648310611771576064830492506002015b600a83106104ab5760010192915050565b5f6001600160a01b038316158015906117df5750826001600160a01b0316846001600160a01b031614806117bb57506117bb8484610e51565b806117df5750826001600160a01b03166117d483610f1d565b6001600160a01b0316145b949350505050565b6001600160a01b038216611810575f604051633250574960e11b81526004016105d6919061191a565b5f61181c83835f610f44565b90506001600160a01b038116156106a2575f6040516339e3563760e11b81526004016105d6919061191a565b5f818310611862575f8281526020849052604090206111ea565b5f8381526020839052604090206111ea565b6001600160e01b031981168114610a04575f80fd5b5f60208284031215611899575f80fd5b81356111ea81611874565b5f5b838110156118be5781810151838201526020016118a6565b50505f910152565b5f81518084526118dd8160208601602086016118a4565b601f01601f19169290920160200192915050565b602081525f6111ea60208301846118c6565b5f60208284031215611913575f80fd5b5035919050565b6001600160a01b0391909116815260200190565b80356001600160a01b0381168114611944575f80fd5b919050565b5f806040838503121561195a575f80fd5b6119638361192e565b946020939093013593505050565b5f60208284031215611981575f80fd5b6111ea8261192e565b5f805f6060848603121561199c575f80fd5b6119a58461192e565b92506119b36020850161192e565b9150604084013590509250925092565b5f80604083850312156119d4575f80fd5b823591506119e46020840161192e565b90509250929050565b602080825282518282018190525f9190848201906040850190845b81811015611a2457835183529284019291840191600101611a08565b50909695505050505050565b634e487b7160e01b5f52604160045260245ffd5b5f6001600160401b0380841115611a5d57611a5d611a30565b604051601f8501601f19908116603f01168101908282118183101715611a8557611a85611a30565b81604052809350858152868686011115611a9d575f80fd5b858560208301375f602087830101525050509392505050565b5f60208284031215611ac6575f80fd5b81356001600160401b03811115611adb575f80fd5b8201601f81018413611aeb575f80fd5b6117df84823560208401611a44565b5f8060408385031215611b0b575f80fd5b611b148361192e565b915060208301358015158114611b28575f80fd5b809150509250929050565b5f8060208385031215611b44575f80fd5b82356001600160401b0380821115611b5a575f80fd5b818501915085601f830112611b6d575f80fd5b813581811115611b7b575f80fd5b8660208260051b8501011115611b8f575f80fd5b60209290920196919550909350505050565b5f805f8060808587031215611bb4575f80fd5b611bbd8561192e565b9350611bcb6020860161192e565b92506040850135915060608501356001600160401b03811115611bec575f80fd5b8501601f81018713611bfc575f80fd5b611c0b87823560208401611a44565b91505092959194509250565b5f8060408385031215611c28575f80fd5b611c318361192e565b91506119e46020840161192e565b600181811c90821680611c5357607f821691505b602082108103611c7157634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b818103818111156104ab576104ab611c77565b634e487b7160e01b5f52603260045260245ffd5b5f60018201611cc357611cc3611c77565b5060010190565b808201808211156104ab576104ab611c77565b601f8211156106a2575f81815260208120601f850160051c81016020861015611d035750805b601f850160051c820191505b81811015611d2257828155600101611d0f565b505050505050565b81516001600160401b03811115611d4357611d43611a30565b611d5781611d518454611c3f565b84611cdd565b602080601f831160018114611d8a575f8415611d735750858301515b5f19600386901b1c1916600185901b178555611d22565b5f85815260208120601f198616915b82811015611db857888601518255948401946001909101908401611d99565b5085821015611dd557878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f8351611df68184602088016118a4565b835190830190611e0a8183602088016118a4565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f90611e45908301846118c6565b9695505050505050565b5f60208284031215611e5f575f80fd5b81516111ea81611874565b6001600160a01b0392909216825260208201526040019056fe0b3544e12b031cb05a003a4e0cb691f6809a97e68d9f3d5d00387b0ee985acbaa2646970667358221220c927513547139cba6b0cada881a39427cc728ec11eb71fe898b819ed19acbfbd64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000070000000000000000000000004c2f526cdaaeea289fb02fce54ac5cf9ffb5229b000000000000000000000000000000000000000000000000000000000000003268747470733a2f2f636c69656e742d6170692e646563612e73797374656d732f646563616c2f6d657461646174612f33352f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000a57ec3a618b6969a6b1fec2ef4bf54b2afc5ca30
-----Decoded View---------------
Arg [0] : _baseUri (string): https://client-api.deca.systems/decal/metadata/35/
Arg [1] : _admins (address[]): 0xA57ec3a618b6969a6B1fEc2eF4BF54B2AfC5ca30
Arg [2] : _artistMaxSupply (uint256): 7
Arg [3] : _artist (address): 0x4c2F526CDAAEeA289FB02fce54aC5CF9ffB5229b
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [3] : 0000000000000000000000004c2f526cdaaeea289fb02fce54ac5cf9ffb5229b
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [5] : 68747470733a2f2f636c69656e742d6170692e646563612e73797374656d732f
Arg [6] : 646563616c2f6d657461646174612f33352f0000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [8] : 000000000000000000000000a57ec3a618b6969a6b1fec2ef4bf54b2afc5ca30
Deployed Bytecode Sourcemap
88267:5391:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;93363:176;;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;93363:176:0;;;;;;;;52355:91;;;:::i;:::-;;;;;;;:::i;89473:281::-;;;;;;:::i;:::-;;:::i;:::-;;53527:158;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;53346:115::-;;;;;;:::i;:::-;;:::i;88538:30::-;;;;;;;;;2324:25:1;;;2312:2;2297:18;88538:30:0;2178:177:1;88491:38:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;54196:588;;;;;;:::i;:::-;;:::i;10109:122::-;;;;;;:::i;:::-;;:::i;88626:25::-;;;;;;10541:138;;;;;;:::i;:::-;;:::i;88577:40::-;;88614:3;88577:40;;11678:251;;;;;;:::i;:::-;;:::i;54855:134::-;;;;;;:::i;:::-;;:::i;88735:21::-;;;;;-1:-1:-1;;;;;88735:21:0;;;92808:483;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;52168:120::-;;;;;;:::i;:::-;;:::i;51893:213::-;;;;;;:::i;:::-;;:::i;15802:103::-;;;:::i;88660:30::-;;;;;;89762:125;;;;;;:::i;:::-;;:::i;88699:27::-;;;;;;15127:87;;;:::i;9125:138::-;;;;;;:::i;:::-;;:::i;52515:95::-;;;:::i;88765:21::-;;;:::i;90653:726::-;;;;;;:::i;:::-;;:::i;89895:125::-;;;;;;:::i;:::-;;:::i;8437:49::-;;8482:4;8437:49;;53757:146;;;;;;:::i;:::-;;:::i;92143:148::-;;;:::i;90028:617::-;;;;;;:::i;:::-;;:::i;55060:211::-;;;;;;:::i;:::-;;:::i;91387:748::-;;;;;;:::i;:::-;;:::i;92299:121::-;;;:::i;92428:372::-;;;;;;:::i;:::-;;:::i;89356:109::-;;;;;;:::i;:::-;;:::i;10972:140::-;;;;;;:::i;:::-;;:::i;53974:155::-;;;;;;:::i;:::-;;:::i;16060:220::-;;;;;;:::i;:::-;;:::i;93363:176::-;93471:4;93495:36;93519:11;93495:23;:36::i;:::-;93488:43;93363:176;-1:-1:-1;;93363:176:0:o;52355:91::-;52400:13;52433:5;52426:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52355:91;:::o;89473:281::-;8482:4;8721:16;8482:4;8721:10;:16::i;:::-;89630:11:::1;::::0;89617:24:::1;::::0;88614:3:::1;89617:24;:::i;:::-;89600:12;::::0;89581:31:::1;::::0;:16;:31:::1;:::i;:::-;89580:62;89576:126;;;89666:24;;-1:-1:-1::0;;;89666:24:0::1;;;;;;;;;;;89576:126;-1:-1:-1::0;89712:15:0::1;:34:::0;89473:281::o;53527:158::-;53594:7;53614:22;53628:7;53614:13;:22::i;:::-;;53656:21;53669:7;53656:12;:21::i;53346:115::-;53418:35;53427:2;53431:7;4206:10;53418:8;:35::i;:::-;53346:115;;:::o;54196:588::-;-1:-1:-1;;;;;54291:16:0;;54287:89;;54361:1;54331:33;;-1:-1:-1;;;54331:33:0;;;;;;;;:::i;:::-;;;;;;;;54287:89;54597:21;54621:34;54629:2;54633:7;4206:10;54621:7;:34::i;:::-;54597:58;;54687:4;-1:-1:-1;;;;;54670:21:0;:13;-1:-1:-1;;;;;54670:21:0;;54666:111;;54715:50;;-1:-1:-1;;;54715:50:0;;-1:-1:-1;;;;;8189:15:1;;;54715:50:0;;;8171:34:1;8221:18;;;8214:34;;;8284:15;;8264:18;;;8257:43;8106:18;;54715:50:0;7931:375:1;54666:111:0;54276:508;54196:588;;;:::o;10109:122::-;10174:7;10201:12;;;:6;:12;;;;;:22;;;;10109:122::o;10541:138::-;10615:18;10628:4;10615:12;:18::i;:::-;8721:16;8732:4;8721:10;:16::i;:::-;10646:25:::1;10657:4;10663:7;10646:10;:25::i;11678:251::-:0;-1:-1:-1;;;;;11772:34:0;;4206:10;11772:34;11768:104;;11830:30;;-1:-1:-1;;;11830:30:0;;;;;;;;;;;11768:104;11884:37;11896:4;11902:18;11884:11;:37::i;:::-;;11678:251;;:::o;54855:134::-;54942:39;54959:4;54965:2;54969:7;54942:39;;;;;;;;;;;;:16;:39::i;92808:483::-;92873:16;92902:18;92923:17;92933:6;92923:9;:17::i;:::-;92902:38;;92951:25;92993:10;-1:-1:-1;;;;;92979:25:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;92979:25:0;;92951:53;;93015:12;93047:9;93042:216;93066:11;;93062:1;:15;93042:216;;;93117:6;-1:-1:-1;;;;;93103:20:0;:10;93111:1;93103:7;:10::i;:::-;-1:-1:-1;;;;;93103:20:0;;93099:104;;93161:1;93144:8;93153:4;93144:14;;;;;;;;:::i;:::-;;;;;;;;;;:18;93181:6;;;;:::i;:::-;;;;93099:104;93217:29;;;93241:5;93217:29;93079:3;;;;:::i;:::-;;;;93042:216;;;-1:-1:-1;93275:8:0;;92808:483;-1:-1:-1;;;;92808:483:0:o;52168:120::-;52231:7;52258:22;52272:7;52258:13;:22::i;51893:213::-;51956:7;-1:-1:-1;;;;;51980:19:0;;51976:89;;52050:1;52023:30;;-1:-1:-1;;;52023:30:0;;;;;;;;:::i;51976:89::-;-1:-1:-1;;;;;;52082:16:0;;;;;:9;:16;;;;;;;51893:213::o;15802:103::-;15013:13;:11;:13::i;:::-;15867:30:::1;15894:1;15867:18;:30::i;:::-;15802:103::o:0;89762:125::-;8482:4;8721:16;8482:4;8721:10;:16::i;:::-;-1:-1:-1;89855:10:0::1;:24:::0;89762:125::o;15127:87::-;15200:6;;-1:-1:-1;;;;;15200:6:0;;15127:87::o;9125:138::-;9202:4;9226:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;9226:29:0;;;;;;;;;;;;;;;9125:138::o;52515:95::-;52562:13;52595:7;52588:14;;;;;:::i;88765:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;90653:726::-;86975:21;:19;:21::i;:::-;8482:4:::1;8721:16;8482:4:::0;8721:10:::1;:16::i;:::-;90772:15:::2;90791:1;90772:20:::0;90768:49:::2;;90801:16;;-1:-1:-1::0;;;90801:16:0::2;;;;;;;;;;;90768:49;90832:6;::::0;-1:-1:-1;;;;;90832:6:0::2;90828:43;;90861:10;;-1:-1:-1::0;;;90861:10:0::2;;;;;;;;;;;90828:43;90882:17;90920:12;;90902:15;;:30;;;;:::i;:::-;90882:50;;90947:9;90960:1;90947:14:::0;90943:51:::2;;90970:24;;-1:-1:-1::0;;;90970:24:0::2;;;;;;;;;;;90943:51;91031:36;91040:15;91057:9;91031:8;:36::i;:::-;91097:11;::::0;91005:63;;-1:-1:-1;91079:15:0::2;91119:123;91143:15;91139:1;:19;91119:123;;;91190:6;::::0;91180:26:::2;::::0;-1:-1:-1;;;;;91190:6:0::2;91198:7:::0;91180:9:::2;:26::i;:::-;91221:9:::0;::::2;::::0;::::2;:::i;:::-;;;;91160:3;;;;;:::i;:::-;;;;91119:123;;;;91268:15;91252:12;;:31;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;91294:11:0::2;:21:::0;;;91331:40:::2;::::0;;8887:25:1;;;8943:2;8928:18;;8921:34;;;-1:-1:-1;;;;;;;;;;;91331:40:0;8860:18:1;91331:40:0::2;;;;;;;90757:622;;87007:1:::1;87019:20:::0;86310:1;87561:7;:21;87378:212;87019:20;90653:726;:::o;89895:125::-;8482:4;8721:16;8482:4;8721:10;:16::i;:::-;89991:7:::1;:21;90001:11:::0;89991:7;:21:::1;:::i;53757:146::-:0;53843:52;4206:10;53876:8;53886;53843:18;:52::i;92143:148::-;92197:7;92270:12;;92252:15;;:30;;;;:::i;:::-;92237:11;;92224:24;;88614:3;92224:24;:::i;:::-;:59;;;;:::i;:::-;92217:66;;92143:148;:::o;90028:617::-;90106:15;86975:21;:19;:21::i;:::-;90145:10:::1;90138:18;::::0;;;:6:::1;:18;::::0;;;;;::::1;;90134:46;;;90165:15;;-1:-1:-1::0;;;90165:15:0::1;;;;;;;;;;;90134:46;88614:3;90195:11;;:25;90191:56;;90229:18;;-1:-1:-1::0;;;90229:18:0::1;;;;;;;;;;;90191:56;90288:1;90262:23;:21;:23::i;:::-;:27;90258:64;;;90298:24;;-1:-1:-1::0;;;90298:24:0::1;;;;;;;;;;;90258:64;90358:28;::::0;-1:-1:-1;;;;;;90375:10:0::1;11344:2:1::0;11315:15;11311:45;90358:28:0::1;::::0;::::1;11299:58:1::0;90333:12:0::1;::::0;11373::1;;90358:28:0::1;;;;;;;;;;;;90348:39;;;;;;90333:54;;90403:50;90422:12;;90403:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;;90436:10:0::1;::::0;;-1:-1:-1;90448:4:0;;-1:-1:-1;90403:18:0::1;:50::i;:::-;90398:107;;90477:16;;-1:-1:-1::0;;;90477:16:0::1;;;;;;;;;;;90398:107;90522:10;90515:18;::::0;;;:6:::1;:18;::::0;;;;:25;;-1:-1:-1;;90515:25:0::1;90536:4;90515:25;::::0;;90561:11:::1;::::0;;;-1:-1:-1;90561:11:0;;90583:13:::1;90561:11:::0;90583:13:::1;:::i;:::-;;;;;;90607:30;90617:10;90629:7;90607:9;:30::i;:::-;90123:522;87019:20:::0;86310:1;87561:7;:21;87378:212;55060:211;55174:31;55187:4;55193:2;55197:7;55174:12;:31::i;:::-;55216:47;55239:4;55245:2;55249:7;55258:4;55216:22;:47::i;91387:748::-;86975:21;:19;:21::i;:::-;91469:15:::1;91488:1;91469:20:::0;91465:49:::1;;91498:16;;-1:-1:-1::0;;;91498:16:0::1;;;;;;;;;;;91465:49;91529:6;::::0;-1:-1:-1;;;;;91529:6:0::1;91525:43;;91558:10;;-1:-1:-1::0;;;91558:10:0::1;;;;;;;;;;;91525:43;91597:6;::::0;-1:-1:-1;;;;;91597:6:0::1;91583:10;:20;91579:44;;91612:11;;-1:-1:-1::0;;;91612:11:0::1;;;;;;;;;;;91579:44;91634:17;91672:12;;91654:15;;:30;;;;:::i;:::-;91634:50;;91699:9;91712:1;91699:14:::0;91695:51:::1;;91722:24;;-1:-1:-1::0;;;91722:24:0::1;;;;;;;;;;;91695:51;91783:36;91792:15;91809:9;91783:8;:36::i;:::-;91849:11;::::0;91757:63;;-1:-1:-1;91831:15:0::1;91871:127;91895:15;91891:1;:19;91871:127;;;91932:30;91942:10;91954:7;91932:9;:30::i;:::-;91977:9:::0;::::1;::::0;::::1;:::i;:::-;;;;91912:3;;;;;:::i;:::-;;;;91871:127;;;;92024:15;92008:12;;:31;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;92050:11:0::1;:21:::0;;;92087:40:::1;::::0;;8887:25:1;;;8943:2;8928:18;;8921:34;;;-1:-1:-1;;;;;;;;;;;92087:40:0;8860:18:1;92087:40:0::1;;;;;;;91454:681;;87019:20:::0;86310:1;87561:7;:21;87378:212;92299:121;92355:7;92400:12;;92382:15;;:30;;;;:::i;92428:372::-;92502:13;92566:1;92536:18;92545:8;92536;:18::i;:::-;-1:-1:-1;;;;;92536:32:0;;92528:83;;;;-1:-1:-1;;;92528:83:0;;11598:2:1;92528:83:0;;;11580:21:1;11637:2;11617:18;;;11610:30;11676:34;11656:18;;;11649:62;-1:-1:-1;;;11727:18:1;;;11720:36;11773:19;;92528:83:0;11396:402:1;92528:83:0;92622:21;92646:10;:8;:10::i;:::-;92622:34;;92699:1;92681:7;92675:21;:25;92667:53;;;;-1:-1:-1;;;92667:53:0;;12005:2:1;92667:53:0;;;11987:21:1;12044:2;12024:18;;;12017:30;-1:-1:-1;;;12063:18:1;;;12056:45;12118:18;;92667:53:0;11803:339:1;92667:53:0;92762:7;92771:19;:8;:17;:19::i;:::-;92745:46;;;;;;;;;:::i;:::-;;;;;;;;;;;;;92731:61;;;92428:372;;;:::o;89356:109::-;8482:4;8721:16;8482:4;8721:10;:16::i;:::-;-1:-1:-1;89441:6:0::1;:16:::0;;-1:-1:-1;;;;;;89441:16:0::1;-1:-1:-1::0;;;;;89441:16:0;;;::::1;::::0;;;::::1;::::0;;89356:109::o;10972:140::-;11047:18;11060:4;11047:12;:18::i;:::-;8721:16;8732:4;8721:10;:16::i;:::-;11078:26:::1;11090:4;11096:7;11078:11;:26::i;53974:155::-:0;-1:-1:-1;;;;;54086:25:0;;;54062:4;54086:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;53974:155::o;16060:220::-;15013:13;:11;:13::i;:::-;-1:-1:-1;;;;;16145:22:0;::::1;16141:93;;16219:1;16191:31;;-1:-1:-1::0;;;16191:31:0::1;;;;;;;;:::i;16141:93::-;16244:28;16263:8;16244:18;:28::i;8829:204::-:0;8914:4;-1:-1:-1;;;;;;8938:47:0;;-1:-1:-1;;;8938:47:0;;:87;;;8989:36;9013:11;8989:23;:36::i;9478:105::-;9545:30;9556:4;4206:10;9545;:30::i;66489:247::-;66552:7;66572:13;66588:17;66597:7;66588:8;:17::i;:::-;66572:33;-1:-1:-1;;;;;;66620:19:0;;66616:90;;66663:31;;-1:-1:-1;;;66663:31:0;;;;;2324:25:1;;;2297:18;;66663:31:0;2178:177:1;56033:129:0;56103:7;56130:24;;;:15;:24;;;;;;-1:-1:-1;;;;;56130:24:0;;56033:129::o;64721:122::-;64802:33;64811:2;64815:7;64824:4;64830;64802:8;:33::i;58982:824::-;59068:7;59088:12;59103:17;59112:7;59103:8;:17::i;:::-;59088:32;-1:-1:-1;;;;;;59183:18:0;;;59179:88;;59218:37;59235:4;59241;59247:7;59218:16;:37::i;:::-;-1:-1:-1;;;;;59314:18:0;;;59310:263;;59432:48;59449:1;59453:7;59470:1;59474:5;59432:8;:48::i;:::-;-1:-1:-1;;;;;59526:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;59526:20:0;;;59310:263;-1:-1:-1;;;;;59589:16:0;;;59585:111;;-1:-1:-1;;;;;59651:13:0;;;;;;:9;:13;;;;;:18;;59668:1;59651:18;;;59585:111;59708:16;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;59708:21:0;-1:-1:-1;;;;;59708:21:0;;;;;;;;;59747:27;;59708:16;;59747:27;;;;;;;59794:4;58982:824;-1:-1:-1;;;;58982:824:0:o;12555:324::-;12632:4;12654:22;12662:4;12668:7;12654;:22::i;:::-;12649:223;;12693:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;12693:29:0;;;;;;;;;:36;;-1:-1:-1;;12693:36:0;12725:4;12693:36;;;12776:12;4206:10;;4126:98;12776:12;-1:-1:-1;;;;;12749:40:0;12767:7;-1:-1:-1;;;;;12749:40:0;12761:4;12749:40;;;;;;;;;;-1:-1:-1;12811:4:0;12804:11;;12649:223;-1:-1:-1;12855:5:0;12848:12;;13123:325;13201:4;13222:22;13230:4;13236:7;13222;:22::i;:::-;13218:223;;;13293:5;13261:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;13261:29:0;;;;;;;;;;:37;;-1:-1:-1;;13261:37:0;;;13318:40;4206:10;;13261:12;;13318:40;;13293:5;13318:40;-1:-1:-1;13380:4:0;13373:11;;15292:166;4206:10;15352:7;:5;:7::i;:::-;-1:-1:-1;;;;;15352:23:0;;15348:103;;4206:10;15399:40;;-1:-1:-1;;;15399:40:0;;;;;;;;:::i;16440:191::-;16533:6;;;-1:-1:-1;;;;;16550:17:0;;;-1:-1:-1;;;;;;16550:17:0;;;;;;;16583:40;;16533:6;;;16550:17;16533:6;;16583:40;;16514:16;;16583:40;16503:128;16440:191;:::o;87055:315::-;86353:1;87184:7;;:18;87180:88;;87226:30;;-1:-1:-1;;;87226:30:0;;;;;;;;;;;87180:88;86353:1;87345:7;:17;87055:315::o;32949:106::-;33007:7;33038:1;33034;:5;:13;;33046:1;33034:13;;;33042:1;33034:13;33027:20;32949:106;-1:-1:-1;;;32949:106:0:o;60840:102::-;60908:26;60918:2;60922:7;60908:26;;;;;;;;;;;;:9;:26::i;65928:318::-;-1:-1:-1;;;;;66036:22:0;;66032:93;;66104:8;66082:31;;-1:-1:-1;;;66082:31:0;;;;;;;;:::i;66032:93::-;-1:-1:-1;;;;;66135:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;66135:46:0;;;;;;;;;;66197:41;;540::1;;;66197::0;;513:18:1;66197:41:0;;;;;;;65928:318;;;:::o;75880:156::-;75971:4;76024;75995:25;76008:5;76015:4;75995:12;:25::i;:::-;:33;;75880:156;-1:-1:-1;;;;75880:156:0:o;67286:799::-;-1:-1:-1;;;;;67403:14:0;;;:18;67399:679;;67442:71;;-1:-1:-1;;;67442:71:0;;-1:-1:-1;;;;;67442:36:0;;;;;:71;;4206:10;;67493:4;;67499:7;;67508:4;;67442:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;67442:71:0;;;;;;;;-1:-1:-1;;67442:71:0;;;;;;;;;;;;:::i;:::-;;;67438:629;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67756:6;:13;67773:1;67756:18;67752:300;;67828:2;67806:25;;-1:-1:-1;;;67806:25:0;;;;;;;;:::i;67752:300::-;68002:6;67996:13;67987:6;67983:2;67979:15;67972:38;67438:629;-1:-1:-1;;;;;;67561:51:0;;-1:-1:-1;;;67561:51:0;67557:132;;67666:2;67644:25;;-1:-1:-1;;;67644:25:0;;;;;;;;:::i;67557:132::-;67514:190;67286:799;;;;:::o;55795:117::-;55861:7;55888:16;;;:7;:16;;;;;;-1:-1:-1;;;;;55888:16:0;;55795:117::o;93547:108::-;93607:13;93640:7;93633:14;;;;;:::i;47779:718::-;47835:13;47886:14;47903:17;47914:5;47903:10;:17::i;:::-;47923:1;47903:21;47886:38;;47939:20;47973:6;-1:-1:-1;;;;;47962:18:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47962:18:0;-1:-1:-1;47939:41:0;-1:-1:-1;48104:28:0;;;48120:2;48104:28;48161:290;-1:-1:-1;;48193:5:0;-1:-1:-1;;;48330:2:0;48319:14;;48314:32;48193:5;48301:46;48393:2;48384:11;;;-1:-1:-1;48414:21:0;48161:290;48414:21;-1:-1:-1;48472:6:0;47779:718;-1:-1:-1;;;47779:718:0:o;51550:279::-;51652:4;-1:-1:-1;;;;;;51676:40:0;;-1:-1:-1;;;51676:40:0;;:92;;-1:-1:-1;;;;;;;51720:48:0;;-1:-1:-1;;;51720:48:0;51676:92;:145;;;-1:-1:-1;;;;;;;;;;6267:40:0;;;51785:36;6167:148;9719:201;9808:22;9816:4;9822:7;9808;:22::i;:::-;9803:110;;9887:7;9896:4;9854:47;;-1:-1:-1;;;9854:47:0;;;;;;;;;:::i;65031:678::-;65193:9;:31;;;-1:-1:-1;;;;;;65206:18:0;;;;65193:31;65189:471;;;65241:13;65257:22;65271:7;65257:13;:22::i;:::-;65241:38;-1:-1:-1;;;;;;65410:18:0;;;;;;:35;;;65441:4;-1:-1:-1;;;;;65432:13:0;:5;-1:-1:-1;;;;;65432:13:0;;;65410:35;:69;;;;;65450:29;65467:5;65474:4;65450:16;:29::i;:::-;65449:30;65410:69;65406:144;;;65529:4;65507:27;;-1:-1:-1;;;65507:27:0;;;;;;;;:::i;65406:144::-;65570:9;65566:83;;;65625:7;65621:2;-1:-1:-1;;;;;65605:28:0;65614:5;-1:-1:-1;;;;;65605:28:0;;;;;;;;;;;65566:83;65226:434;65189:471;-1:-1:-1;;65672:24:0;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;65672:29:0;-1:-1:-1;;;;;65672:29:0;;;;;;;;;;65031:678::o;57189:376::-;57302:38;57316:5;57323:7;57332;57302:13;:38::i;:::-;57297:261;;-1:-1:-1;;;;;57361:19:0;;57357:190;;57408:31;;-1:-1:-1;;;57408:31:0;;;;;2324:25:1;;;2297:18;;57408:31:0;2178:177:1;57357:190:0;57514:7;57523;57487:44;;-1:-1:-1;;;57487:44:0;;;;;;;;;:::i;61169:185::-;61264:18;61270:2;61274:7;61264:5;:18::i;:::-;61293:53;61324:1;61328:2;61332:7;61341:4;61293:22;:53::i;76599:296::-;76682:7;76725:4;76682:7;76740:118;76764:5;:12;76760:1;:16;76740:118;;;76813:33;76823:12;76837:5;76843:1;76837:8;;;;;;;;:::i;:::-;;;;;;;76813:9;:33::i;:::-;76798:48;-1:-1:-1;76778:3:0;;;;:::i;:::-;;;;76740:118;;;-1:-1:-1;76875:12:0;76599:296;-1:-1:-1;;;76599:296:0:o;42839:948::-;42892:7;;-1:-1:-1;;;42970:17:0;;42966:106;;-1:-1:-1;;;43008:17:0;;;-1:-1:-1;43054:2:0;43044:12;42966:106;-1:-1:-1;;;43090:5:0;:17;43086:106;;-1:-1:-1;;;43128:17:0;;;-1:-1:-1;43174:2:0;43164:12;43086:106;43219:8;43210:5;:17;43206:106;;43257:8;43248:17;;;-1:-1:-1;43294:2:0;43284:12;43206:106;43339:7;43330:5;:16;43326:103;;43376:7;43367:16;;;-1:-1:-1;43412:1:0;43402:11;43326:103;43456:7;43447:5;:16;43443:103;;43493:7;43484:16;;;-1:-1:-1;43529:1:0;43519:11;43443:103;43573:7;43564:5;:16;43560:103;;43610:7;43601:16;;;-1:-1:-1;43646:1:0;43636:11;43560:103;43690:7;43681:5;:16;43677:68;;43728:1;43718:11;43773:6;42839:948;-1:-1:-1;;42839:948:0:o;56482:263::-;56585:4;-1:-1:-1;;;;;56609:21:0;;;;;;:128;;;56657:7;-1:-1:-1;;;;;56648:16:0;:5;-1:-1:-1;;;;;56648:16:0;;:52;;;;56668:32;56685:5;56692:7;56668:16;:32::i;:::-;56648:88;;;;56729:7;-1:-1:-1;;;;;56704:32:0;:21;56717:7;56704:12;:21::i;:::-;-1:-1:-1;;;;;56704:32:0;;56648:88;56602:135;56482:263;-1:-1:-1;;;;56482:263:0:o;60142:335::-;-1:-1:-1;;;;;60210:16:0;;60206:89;;60280:1;60250:33;;-1:-1:-1;;;60250:33:0;;;;;;;;:::i;60206:89::-;60305:21;60329:32;60337:2;60341:7;60358:1;60329:7;:32::i;:::-;60305:56;-1:-1:-1;;;;;;60376:27:0;;;60372:98;;60455:1;60427:31;;-1:-1:-1;;;60427:31:0;;;;;;;;:::i;83980:149::-;84043:7;84074:1;84070;:5;:51;;84322:13;84416:15;;;84452:4;84445:15;;;84499:4;84483:21;;84070:51;;;84322:13;84416:15;;;84452:4;84445:15;;;84499:4;84483:21;;84078:20;84254:268;14:131:1;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1533:203::-;-1:-1:-1;;;;;1697:32:1;;;;1679:51;;1667:2;1652:18;;1533:203::o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2360:186::-;2419:6;2472:2;2460:9;2451:7;2447:23;2443:32;2440:52;;;2488:1;2485;2478:12;2440:52;2511:29;2530:9;2511:29;:::i;2551:328::-;2628:6;2636;2644;2697:2;2685:9;2676:7;2672:23;2668:32;2665:52;;;2713:1;2710;2703:12;2665:52;2736:29;2755:9;2736:29;:::i;:::-;2726:39;;2784:38;2818:2;2807:9;2803:18;2784:38;:::i;:::-;2774:48;;2869:2;2858:9;2854:18;2841:32;2831:42;;2551:328;;;;;:::o;3251:254::-;3319:6;3327;3380:2;3368:9;3359:7;3355:23;3351:32;3348:52;;;3396:1;3393;3386:12;3348:52;3432:9;3419:23;3409:33;;3461:38;3495:2;3484:9;3480:18;3461:38;:::i;:::-;3451:48;;3251:254;;;;;:::o;3510:632::-;3681:2;3733:21;;;3803:13;;3706:18;;;3825:22;;;3652:4;;3681:2;3904:15;;;;3878:2;3863:18;;;3652:4;3947:169;3961:6;3958:1;3955:13;3947:169;;;4022:13;;4010:26;;4091:15;;;;4056:12;;;;3983:1;3976:9;3947:169;;;-1:-1:-1;4133:3:1;;3510:632;-1:-1:-1;;;;;;3510:632:1:o;4147:127::-;4208:10;4203:3;4199:20;4196:1;4189:31;4239:4;4236:1;4229:15;4263:4;4260:1;4253:15;4279:632;4344:5;-1:-1:-1;;;;;4404:14:1;;;4401:40;;;4421:18;;:::i;:::-;4496:2;4490:9;4464:2;4550:15;;-1:-1:-1;;4546:24:1;;;4572:2;4542:33;4538:42;4526:55;;;4596:18;;;4616:22;;;4593:46;4590:72;;;4642:18;;:::i;:::-;4682:10;4678:2;4671:22;4711:6;4702:15;;4741:6;4733;4726:22;4781:3;4772:6;4767:3;4763:16;4760:25;4757:45;;;4798:1;4795;4788:12;4757:45;4848:6;4843:3;4836:4;4828:6;4824:17;4811:44;4903:1;4896:4;4887:6;4879;4875:19;4871:30;4864:41;;;;4279:632;;;;;:::o;4916:451::-;4985:6;5038:2;5026:9;5017:7;5013:23;5009:32;5006:52;;;5054:1;5051;5044:12;5006:52;5081:23;;-1:-1:-1;;;;;5116:30:1;;5113:50;;;5159:1;5156;5149:12;5113:50;5182:22;;5235:4;5227:13;;5223:27;-1:-1:-1;5213:55:1;;5264:1;5261;5254:12;5213:55;5287:74;5353:7;5348:2;5335:16;5330:2;5326;5322:11;5287:74;:::i;5372:347::-;5437:6;5445;5498:2;5486:9;5477:7;5473:23;5469:32;5466:52;;;5514:1;5511;5504:12;5466:52;5537:29;5556:9;5537:29;:::i;:::-;5527:39;;5616:2;5605:9;5601:18;5588:32;5663:5;5656:13;5649:21;5642:5;5639:32;5629:60;;5685:1;5682;5675:12;5629:60;5708:5;5698:15;;;5372:347;;;;;:::o;5724:615::-;5810:6;5818;5871:2;5859:9;5850:7;5846:23;5842:32;5839:52;;;5887:1;5884;5877:12;5839:52;5914:23;;-1:-1:-1;;;;;5986:14:1;;;5983:34;;;6013:1;6010;6003:12;5983:34;6051:6;6040:9;6036:22;6026:32;;6096:7;6089:4;6085:2;6081:13;6077:27;6067:55;;6118:1;6115;6108:12;6067:55;6158:2;6145:16;6184:2;6176:6;6173:14;6170:34;;;6200:1;6197;6190:12;6170:34;6253:7;6248:2;6238:6;6235:1;6231:14;6227:2;6223:23;6219:32;6216:45;6213:65;;;6274:1;6271;6264:12;6213:65;6305:2;6297:11;;;;;6327:6;;-1:-1:-1;5724:615:1;;-1:-1:-1;;;;5724:615:1:o;6344:667::-;6439:6;6447;6455;6463;6516:3;6504:9;6495:7;6491:23;6487:33;6484:53;;;6533:1;6530;6523:12;6484:53;6556:29;6575:9;6556:29;:::i;:::-;6546:39;;6604:38;6638:2;6627:9;6623:18;6604:38;:::i;:::-;6594:48;-1:-1:-1;6689:2:1;6674:18;;6661:32;;-1:-1:-1;6744:2:1;6729:18;;6716:32;-1:-1:-1;;;;;6760:30:1;;6757:50;;;6803:1;6800;6793:12;6757:50;6826:22;;6879:4;6871:13;;6867:27;-1:-1:-1;6857:55:1;;6908:1;6905;6898:12;6857:55;6931:74;6997:7;6992:2;6979:16;6974:2;6970;6966:11;6931:74;:::i;:::-;6921:84;;;6344:667;;;;;;;:::o;7016:260::-;7084:6;7092;7145:2;7133:9;7124:7;7120:23;7116:32;7113:52;;;7161:1;7158;7151:12;7113:52;7184:29;7203:9;7184:29;:::i;:::-;7174:39;;7232:38;7266:2;7255:9;7251:18;7232:38;:::i;7281:380::-;7360:1;7356:12;;;;7403;;;7424:61;;7478:4;7470:6;7466:17;7456:27;;7424:61;7531:2;7523:6;7520:14;7500:18;7497:38;7494:161;;7577:10;7572:3;7568:20;7565:1;7558:31;7612:4;7609:1;7602:15;7640:4;7637:1;7630:15;7494:161;;7281:380;;;:::o;7666:127::-;7727:10;7722:3;7718:20;7715:1;7708:31;7758:4;7755:1;7748:15;7782:4;7779:1;7772:15;7798:128;7865:9;;;7886:11;;;7883:37;;;7900:18;;:::i;8311:127::-;8372:10;8367:3;8363:20;8360:1;8353:31;8403:4;8400:1;8393:15;8427:4;8424:1;8417:15;8443:135;8482:3;8503:17;;;8500:43;;8523:18;;:::i;:::-;-1:-1:-1;8570:1:1;8559:13;;8443:135::o;8583:125::-;8648:9;;;8669:10;;;8666:36;;;8682:18;;:::i;9092:545::-;9194:2;9189:3;9186:11;9183:448;;;9230:1;9255:5;9251:2;9244:17;9300:4;9296:2;9286:19;9370:2;9358:10;9354:19;9351:1;9347:27;9341:4;9337:38;9406:4;9394:10;9391:20;9388:47;;;-1:-1:-1;9429:4:1;9388:47;9484:2;9479:3;9475:12;9472:1;9468:20;9462:4;9458:31;9448:41;;9539:82;9557:2;9550:5;9547:13;9539:82;;;9602:17;;;9583:1;9572:13;9539:82;;;9543:3;;;9092:545;;;:::o;9813:1352::-;9933:10;;-1:-1:-1;;;;;9955:30:1;;9952:56;;;9988:18;;:::i;:::-;10017:97;10107:6;10067:38;10099:4;10093:11;10067:38;:::i;:::-;10061:4;10017:97;:::i;:::-;10169:4;;10233:2;10222:14;;10250:1;10245:663;;;;10952:1;10969:6;10966:89;;;-1:-1:-1;11021:19:1;;;11015:26;10966:89;-1:-1:-1;;9770:1:1;9766:11;;;9762:24;9758:29;9748:40;9794:1;9790:11;;;9745:57;11068:81;;10215:944;;10245:663;9039:1;9032:14;;;9076:4;9063:18;;-1:-1:-1;;10281:20:1;;;10399:236;10413:7;10410:1;10407:14;10399:236;;;10502:19;;;10496:26;10481:42;;10594:27;;;;10562:1;10550:14;;;;10429:19;;10399:236;;;10403:3;10663:6;10654:7;10651:19;10648:201;;;10724:19;;;10718:26;-1:-1:-1;;10807:1:1;10803:14;;;10819:3;10799:24;10795:37;10791:42;10776:58;10761:74;;10648:201;-1:-1:-1;;;;;10895:1:1;10879:14;;;10875:22;10862:36;;-1:-1:-1;9813:1352:1:o;12147:496::-;12326:3;12364:6;12358:13;12380:66;12439:6;12434:3;12427:4;12419:6;12415:17;12380:66;:::i;:::-;12509:13;;12468:16;;;;12531:70;12509:13;12468:16;12578:4;12566:17;;12531:70;:::i;:::-;12617:20;;12147:496;-1:-1:-1;;;;12147:496:1:o;12648:489::-;-1:-1:-1;;;;;12917:15:1;;;12899:34;;12969:15;;12964:2;12949:18;;12942:43;13016:2;13001:18;;12994:34;;;13064:3;13059:2;13044:18;;13037:31;;;12842:4;;13085:46;;13111:19;;13103:6;13085:46;:::i;:::-;13077:54;12648:489;-1:-1:-1;;;;;;12648:489:1:o;13142:249::-;13211:6;13264:2;13252:9;13243:7;13239:23;13235:32;13232:52;;;13280:1;13277;13270:12;13232:52;13312:9;13306:16;13331:30;13355:5;13331:30;:::i;13528:274::-;-1:-1:-1;;;;;13720:32:1;;;;13702:51;;13784:2;13769:18;;13762:34;13690:2;13675:18;;13528:274::o
Swarm Source
ipfs://c927513547139cba6b0cada881a39427cc728ec11eb71fe898b819ed19acbfbd
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.