ETH Price: $3,223.40 (+0.90%)

Token

z3rocollective (Z3RO)
 

Overview

Max Total Supply

465 Z3RO

Holders

140

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
9 Z3RO
0xd448905ef32b90c2d5bee343b5c56b13ccdd6873
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Z3roOwnership

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
No with 200 runs

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

pragma solidity 0.8.13;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "erc721a/contracts/ERC721A.sol";
import "erc721a/contracts/IERC721A.sol";

import "./Z3roIdentity.sol";

contract Z3roOwnership is Ownable, ERC721A, ReentrancyGuard {
    address private immutable multiSig;
    address public z3roIdentity;

    uint256 public mintCost;

    string private baseTokenURI;

    constructor(address identity, address _multiSig)
        ERC721A("z3rocollective", "Z3RO")
    {
        z3roIdentity = identity;
        transferOwnership(tx.origin);
        multiSig = _multiSig;
    }

    /* EVENTS & MODIFIERS*/
    event ownershipMinted(address to, uint256 qty);

    modifier isZ3ro() {
        require(
            _msgSenderERC721A() == z3roIdentity,
            "The caller is not Z3RO, must be Z3roIdentity contract"
        );
        _;
    }

    modifier isEligibleMint(uint256 batchQty) {
        require(
            IERC721A(z3roIdentity).balanceOf(tx.origin) > 0,
            "You need to own Z3RO's Identity."
        );
        _;
    }

    /* FUNCTIONS */

    /* external */
    function identifyZ3ro(uint256 qty)
        external
        payable
        nonReentrant
        isZ3ro
        isEligibleMint(qty)
    {
        //mint Ownership
        _safeMint(tx.origin, qty);
        emit ownershipMinted(tx.origin, qty);
    }

    function genesisMint(address receiver, uint256 qty) external isZ3ro {
        _safeMint(receiver, qty);
    }

    /* GETTERS AND SETTERS */
    function setBaseURI(string calldata baseURI) external onlyOwner {
        baseTokenURI = baseURI;
    }

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

    function withdrawFunds() external nonReentrant onlyOwner {
        (bool success, ) = payable(multiSig).call{
            value: address(this).balance
        }("");
        require(success, "Transfer failed.");
    }

    /* Sets the z3ro identity contract */
    function setZ3roIdentity(address identity) external onlyOwner {
        z3roIdentity = identity;
    }

}

File 2 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

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

File 3 of 11 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @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;

    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() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 4 of 11 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev ERC721 token receiver interface.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Mask of an entry in packed address data.
    uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant BITMASK_BURNED = 1 << 224;
    
    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The tokenId of the next token to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See `_packedOwnershipOf` implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * @dev Returns the starting token ID. 
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count. 
     * To get the total number of tokens minted, please see `_totalMinted`.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to `_startTokenId()`
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view returns (uint256) {
        return _burnCounter;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes of the XOR of
        // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165
        // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> BITPOS_AUX);
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        assembly { // Cast aux without masking.
            auxCasted := aux
        }
        packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an ownership that has an address and is not burned
                        // before an ownership that does not have an address and is not burned.
                        // Hence, curr will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP);
        ownership.burned = packed & BITMASK_BURNED != 0;
    }

    /**
     * Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

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

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

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

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

    /**
     * @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 overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    /**
     * @dev Casts the address to uint256 without masking.
     */
    function _addressToUint256(address value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev Casts the boolean to uint256 without branching.
     */
    function _boolToUint256(bool value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = address(uint160(_packedOwnershipOf(tokenId)));
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        if (operator == _msgSenderERC721A()) revert ApproveToCaller();

        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     *   {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (to.code.length != 0) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex < end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex < end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex < end);

            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
            isApprovedForAll(from, _msgSenderERC721A()) ||
            getApproved(tokenId) == _msgSenderERC721A());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        delete _tokenApprovals[tokenId];

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_NEXT_INITIALIZED;

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
                isApprovedForAll(from, _msgSenderERC721A()) ||
                getApproved(tokenId) == _msgSenderERC721A());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        delete _tokenApprovals[tokenId];

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] =
                _addressToUint256(from) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_BURNED | 
                BITMASK_NEXT_INITIALIZED;

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function _toString(uint256 value) internal pure returns (string memory ptr) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), 
            // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length, 
            // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

            // Cache the end of the memory to calculate the length later.
            let end := ptr

            // We write the string from the rightmost digit to the leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // Costs a bit more than early returning for the zero case,
            // but cheaper in terms of deployment and overall runtime costs.
            for { 
                // Initialize and perform the first pass without check.
                let temp := value
                // Move the pointer 1 byte leftwards to point to an empty character slot.
                ptr := sub(ptr, 1)
                // Write the character to the pointer. 48 is the ASCII index of '0'.
                mstore8(ptr, add(48, mod(temp, 10)))
                temp := div(temp, 10)
            } temp { 
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
            } { // Body of the for loop.
                ptr := sub(ptr, 1)
                mstore8(ptr, add(48, mod(temp, 10)))
            }
            
            let length := sub(end, ptr)
            // Move the pointer 32 bytes leftwards to make room for the length.
            ptr := sub(ptr, 32)
            // Store the length.
            mstore(ptr, length)
        }
    }
}

File 5 of 11 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of an ERC721A compliant contract.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     *
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);

    // ==============================
    //            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);

    // ==============================
    //            IERC721
    // ==============================

    /**
     * @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 be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

    // ==============================
    //        IERC721Metadata
    // ==============================

    /**
     * @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 6 of 11 : Z3roIdentity.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.13;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

import "./Z3roOwnership.sol";
import "./Z3roUtility.sol";

contract Z3roIdentity is Ownable, ERC721A, ReentrancyGuard {
    using ECDSA for bytes32;

    address public immutable genesisZ3ro;
    address private immutable multiSig;
    uint256 public STAGE_MAX_SUPPLY_1;
    uint256 public STAGE_MAX_SUPPLY_2;
    uint256 public STAGE_MAX_SUPPLY_3;

    uint256 public cteam_sets = 111;

    string private baseTokenURI;

    bytes32 public whitelist;
    bytes32 public freelist;

    bool public genesisCleared = false;
    bool public revealed = false;

    struct Configs {
        bool onlyWhitelist;
        bool allowFl;
        uint8 stage;
        uint8 max_wallet_sets;
        uint8 max_wallet_sets_2;
        uint8 max_wallet_sets_3;
        uint8 max_fl_sets;
        uint16 max_wl_supply;
        uint256 mint_cost;
    }

    Configs public configs;

    Z3roOwnership public z3roOwnership;
    Z3roUtility public z3roUtility;

    constructor(
        uint256 stageSupply,
        uint8 maxWalletSets,
        address _genesisZ3ro,
        address _multiSig
    ) ERC721A("z3rocollective", "Z3RO") {
        STAGE_MAX_SUPPLY_1 = stageSupply;

        genesisZ3ro = _genesisZ3ro;

        multiSig = _multiSig;

        z3roOwnership = new Z3roOwnership(address(this), multiSig);
        z3roUtility = new Z3roUtility(address(this), multiSig);

        configs = Configs(
            true, // onlyWhitelist
            true, // allowFl
            1, // stage
            maxWalletSets, // max_wallet_sets
            0, // max_wallet_sets_2
            0, // max_wallet_sets_3
            1, // max_fl_sets
            1111, // max_wl_supply
            0.03 ether // mint_cost
        );
    }

    /* EVENTS & MODIFIERS*/
    event minted(address to, uint256 qty);

    modifier isUser() {
        require(
            tx.origin == _msgSenderERC721A(),
            "The caller is another contract, must be user."
        );
        _;
    }

    function stage1Owned() internal view returns (uint256 counter) {
        for (uint256 i = 0; i < STAGE_MAX_SUPPLY_1; i++) {
            if (ownerOf(i) == _msgSenderERC721A()) {
                counter++;
            }
        }
    }

    function stage1and2Owned() internal view returns (uint256 counter) {
        for (uint256 i = 0; i < STAGE_MAX_SUPPLY_1 + STAGE_MAX_SUPPLY_2; i++) {
            if (ownerOf(i) == _msgSenderERC721A()) {
                counter++;
            }
        }
    }

    modifier isEligibleMint(uint256 batchQty, bool teamMint) {
        require(revealed, "Not revealed yet.");

        /* Configs sanity check */
        if (!teamMint) {
            require(configs.stage > 0, "Minting not started yet.");
            require(configs.mint_cost > 0, "Awkward...");
            require(
                configs.max_wallet_sets > 0,
                "Max wallet sets not defined."
            );
            require(
                configs.max_wl_supply > 0,
                "Max Whitelist supply not defined."
            );
        }

        if (configs.stage == 1) {
            // there is a limit to the supply
            require(
                _totalMinted() + batchQty <= STAGE_MAX_SUPPLY_1,
                "Stage 1 sold out"
            );
        } else if (configs.stage == 2) {
            require(
                _totalMinted() + batchQty <=
                    STAGE_MAX_SUPPLY_1 + STAGE_MAX_SUPPLY_2,
                "Stage 2 sold out"
            );
        } else if (configs.stage == 3) {
            require(
                _totalMinted() + batchQty <=
                    STAGE_MAX_SUPPLY_1 +
                        STAGE_MAX_SUPPLY_2 +
                        STAGE_MAX_SUPPLY_3,
                "Stage 3 sold out"
            );
        }
        _;
    }

    modifier isOnList(
        uint256 batchQty,
        bytes32[] calldata proof,
        bytes32 leaf,
        bool teamMint
    ) {
        if (!teamMint) {
            if (configs.onlyWhitelist) {
                require(whitelist != "", "wl root not set");
                require(
                    _totalMinted() + batchQty <= configs.max_wl_supply,
                    "You tried to mint more than the currently available supply."
                );

                require(
                    MerkleProof.verify(proof, whitelist, leaf),
                    "You are not on the whitelist"
                );
            } else {
                require(
                    _totalMinted() + batchQty <= configs.max_wl_supply,
                    "You tried to mint more than the currently available supply."
                );
            }
        } else {
            require(configs.allowFl, "Fl not allowed");
            require(freelist != "", "fl root not set");
            require(
                MerkleProof.verify(proof, freelist, leaf),
                "You are not on the fl"
            );
        }
        _;
    }

    modifier isUnderWalletLimit(uint256 batchQty) {
        if (configs.stage == 1) {
            // user cannot go over max mints per wallet
            require(
                batchQty + _numberMinted(_msgSenderERC721A()) <=
                    configs.max_wallet_sets,
                "Tried to mint more than permited per wallet"
            );
        } else if (configs.stage == 2) {
            // check amout of tokens between 0 <= STAGE_MAX_SUPPLY_1
            uint256 previousMints = stage1Owned();
            require(
                (batchQty + _numberMinted(_msgSenderERC721A())) -
                    previousMints <=
                    configs.max_wallet_sets_2,
                "Tried to mint more than permited per wallet"
            );
        } else if (configs.stage == 3) {
            // check amout of tokens between 0 <= STAGE_MAX_SUPPLY_1 + STAGE_MAX_SUPPLY_2
            uint256 previousMints = stage1and2Owned();
            require(
                (batchQty + _numberMinted(_msgSenderERC721A())) -
                    previousMints <=
                    configs.max_wallet_sets_3,
                "Tried to mint more than permited per wallet"
            );
        }
        _;
    }

    function isOnTeam(
        uint256 batchQty,
        bytes32[] calldata proof,
        bytes32 leaf
    ) private view returns (bool) {
        require(configs.allowFl, "Allow fl not set");
        require(freelist != "", "fl root not set");
        require(
            _numberMinted(_msgSenderERC721A()) + batchQty <=
                configs.max_fl_sets,
            "Cannot fl mint more than permited"
        );
        require(
            MerkleProof.verify(proof, freelist, leaf),
            "You are not on the fl"
        );

        return true;
    }

    /* FUNCTIONS */

    function Z3roGenesis(address[] calldata genesisAddresses)
        external
        onlyOwner
    {
        require(!genesisCleared, "Genesis fix is concluded");

        for (uint256 i = 0; i < genesisAddresses.length; i++) {
            uint256 mintsDone = IERC721A(genesisZ3ro).balanceOf(
                genesisAddresses[i]
            );
            if (mintsDone < 1) {
                continue;
            }

            uint256 airdropMints = (mintsDone * 2) + mintsDone;

            //mint Identity
            _safeMint(genesisAddresses[i], airdropMints);
            //mint Ownership
            Z3roOwnership(z3roOwnership).genesisMint(
                genesisAddresses[i],
                airdropMints
            );
            //mint Utility
            Z3roUtility(z3roUtility).genesisMint(
                genesisAddresses[i],
                airdropMints
            );
        }
    }

    /* external */
    function enterZ3ro(
        uint256 qty,
        bytes32[] calldata proof,
        bytes32 leaf,
        bool _teamMint
    )
        external
        payable
        nonReentrant
        isUser
        isEligibleMint(qty, false)
        isUnderWalletLimit(qty)
        isOnList(qty, proof, leaf, _teamMint)
    {
        if (_teamMint && isOnTeam(qty, proof, leaf)) {
            // continue
        } else {
            require(msg.value >= configs.mint_cost, "Not enough eth sent");
        }

        //mint Identity
        _safeMint(_msgSenderERC721A(), qty);
        //mint Ownership
        Z3roOwnership(z3roOwnership).identifyZ3ro(qty);
        //mint Utility
        Z3roUtility(z3roUtility).useZ3ro(qty);

        emit minted(_msgSenderERC721A(), qty);
    }

    function cteamMint(uint256 qty) external onlyOwner {
        require(_numberMinted(_msgSenderERC721A()) + qty <= cteam_sets);
        if (configs.stage == 1) {
            require(_totalMinted() + qty <= STAGE_MAX_SUPPLY_1);
        } else if (configs.stage == 2) {
            require(_totalMinted() + qty <= STAGE_MAX_SUPPLY_2);
        } else if (configs.stage == 3) {
            require(_totalMinted() + qty <= STAGE_MAX_SUPPLY_3);
        }

        //mint Identity
        _safeMint(_msgSenderERC721A(), qty);
        //mint Ownership
        Z3roOwnership(z3roOwnership).identifyZ3ro(qty);
        //mint Utility
        Z3roUtility(z3roUtility).useZ3ro(qty);

        emit minted(_msgSenderERC721A(), qty);
    }

    /* GETTERS AND SETTERS */

    function clearGenesis() external onlyOwner {
        genesisCleared = true;
    }

    function setBaseURI(string calldata baseURI) external onlyOwner {
        baseTokenURI = baseURI;
    }

    function setRevealed(bool isRevealed) external onlyOwner {
        revealed = isRevealed;
    }

    function setOnlyWhitelist(bool isOnlyWl) external onlyOwner {
        configs.onlyWhitelist = isOnlyWl;
    }

    function setStage(uint8 stage) external onlyOwner {
        configs.stage = stage;
    }

    function setStageSupply1(uint256 supply) external onlyOwner {
        require(configs.stage == 1);
        STAGE_MAX_SUPPLY_1 = supply;
    }

    function setStageSupply2(uint256 supply) external onlyOwner {
        require(configs.stage == 2);
        STAGE_MAX_SUPPLY_2 = supply;
    }

    function setStageSupply3(uint256 supply) external onlyOwner {
        require(configs.stage == 3);
        STAGE_MAX_SUPPLY_3 = supply;
    }

    function setMaxWalletSets(uint8 max) external onlyOwner {
        configs.max_wallet_sets = max;
    }

    function setMaxWalletSets2(uint8 max) external onlyOwner {
        configs.max_wallet_sets_2 = max;
    }

    function setMaxWalletSets3(uint8 max) external onlyOwner {
        configs.max_wallet_sets_3 = max;
    }

    function setMaxWlSupply(uint16 max) external onlyOwner {
        configs.max_wl_supply = max;
    }

    function setTeamSets(uint256 sets) external onlyOwner {
        cteam_sets = sets;
    }

    function setMintCost(uint256 cost) external onlyOwner {
        configs.mint_cost = cost;
    }

    function setWhitelistMerkleRoot(bytes32 root) external onlyOwner {
        whitelist = root;
    }

    function setFlMerkleRoot(bytes32 root) external onlyOwner {
        freelist = root;
    }

    function setAllowFl(bool allow) external onlyOwner {
        configs.allowFl = allow;
    }

    function withdrawFunds() external nonReentrant onlyOwner {
        (bool success, ) = payable(multiSig).call{value: address(this).balance}(
            ""
        );
        require(success, "Transfer failed.");
    }

    function getTotalMinted() external view returns (uint256) {
        return _totalMinted();
    }

    /* internal */
    function _baseURI() internal view virtual override returns (string memory) {
        return baseTokenURI;
    }
}

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

pragma solidity ^0.8.0;

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

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

File 8 of 11 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 9 of 11 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * 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.
 */
library MerkleProof {
    /**
     * @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 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.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 10 of 11 : Z3roUtility.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.13;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "erc721a/contracts/ERC721A.sol";
import "erc721a/contracts/IERC721A.sol";

import "./Z3roIdentity.sol";

contract Z3roUtility is Ownable, ERC721A, ReentrancyGuard {
    address private immutable multiSig;
    address public z3roIdentity;

    uint256 public mintCost;

    string private baseTokenURI;

    constructor(address identity, address _multiSig)
        ERC721A("z3rocollective", "Z3RO")
    {
        z3roIdentity = identity;
        transferOwnership(tx.origin);
        multiSig = _multiSig;
    }

    /* EVENTS & MODIFIERS*/
    event utilityMinted(address to, uint256 qty);

    modifier isZ3ro() {
        require(
            _msgSenderERC721A() == z3roIdentity,
            "The caller is not Z3RO, must be Z3roIdentity contract"
        );
        _;
    }

    modifier isEligibleMint(uint256 batchQty) {
        require(
            IERC721A(z3roIdentity).balanceOf(tx.origin) > 0,
            "You need to own Z3RO's Identity."
        );
        _;
    }

    /* FUNCTIONS */

    /* external */
    function useZ3ro(uint256 qty)
        external
        payable
        nonReentrant
        isZ3ro
        isEligibleMint(qty)
    {
        //mint Utility
        _safeMint(tx.origin, qty);
        emit utilityMinted(tx.origin, qty);
    }

    function genesisMint(address receiver, uint256 qty) external isZ3ro {
        _safeMint(receiver, qty);
    }

    /* GETTERS AND SETTERS */
    function setBaseURI(string calldata baseURI) external onlyOwner {
        baseTokenURI = baseURI;
    }

    /* internal */
    function _baseURI() internal view virtual override returns (string memory) {
        return baseTokenURI;
    }

    function withdrawFunds() external nonReentrant onlyOwner {
        (bool success, ) = payable(multiSig).call{
            value: address(this).balance
        }("");
        require(success, "Transfer failed.");
    }

    /* Sets the z3ro identity contract */
    function setZ3roIdentity(address identity) external onlyOwner {
        z3roIdentity = identity;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"identity","type":"address"},{"internalType":"address","name":"_multiSig","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","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":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":"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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"qty","type":"uint256"}],"name":"ownershipMinted","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"genesisMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"identifyZ3ro","outputs":[],"stateMutability":"payable","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":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"identity","type":"address"}],"name":"setZ3roIdentity","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"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"z3roIdentity","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60a06040523480156200001157600080fd5b50604051620032f5380380620032f58339818101604052810190620000379190620004cc565b6040518060400160405280600e81526020017f7a33726f636f6c6c6563746976650000000000000000000000000000000000008152506040518060400160405280600481526020017f5a33524f00000000000000000000000000000000000000000000000000000000815250620000c3620000b7620001a360201b60201c565b620001ab60201b60201c565b8160039080519060200190620000db929190620003b2565b508060049080519060200190620000f4929190620003b2565b50620001056200026f60201b60201c565b6001819055505050600160098190555081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000167326200027460201b60201c565b8073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050505062000692565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600090565b62000284620001a360201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002aa6200038960201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000303576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002fa9062000574565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160362000375576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200036c906200060c565b60405180910390fd5b6200038681620001ab60201b60201c565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620003c0906200065d565b90600052602060002090601f016020900481019282620003e4576000855562000430565b82601f10620003ff57805160ff191683800117855562000430565b8280016001018555821562000430579182015b828111156200042f57825182559160200191906001019062000412565b5b5090506200043f919062000443565b5090565b5b808211156200045e57600081600090555060010162000444565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004948262000467565b9050919050565b620004a68162000487565b8114620004b257600080fd5b50565b600081519050620004c6816200049b565b92915050565b60008060408385031215620004e657620004e562000462565b5b6000620004f685828601620004b5565b92505060206200050985828601620004b5565b9150509250929050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006200055c60208362000513565b9150620005698262000524565b602082019050919050565b600060208201905081810360008301526200058f816200054d565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000620005f460268362000513565b9150620006018262000596565b604082019050919050565b600060208201905081810360008301526200062781620005e5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200067657607f821691505b6020821081036200068c576200068b6200062e565b5b50919050565b608051612c47620006ae6000396000610a5a0152612c476000f3fe60806040526004361061014b5760003560e01c80636352211e116100b6578063a22cb4651161006f578063a22cb4651461045b578063b88d4fde14610484578063bdb4b848146104ad578063c87b56dd146104d8578063e985e9c514610515578063f2fde38b146105525761014b565b80636352211e1461034b57806370a0823114610388578063715018a6146103c55780638d9301b7146103dc5780638da5cb5b1461040557806395d89b41146104305761014b565b806323b872dd1161010857806323b872dd1461027257806324600fc31461029b5780633d0bc5af146102b257806342842e0e146102ce57806355f804b3146102f7578063594d2a57146103205761014b565b806301ffc9a71461015057806306fdde031461018d578063081812fc146101b8578063095ea7b3146101f5578063176e25e91461021e57806318160ddd14610247575b600080fd5b34801561015c57600080fd5b50610177600480360381019061017291906120e5565b61057b565b604051610184919061212d565b60405180910390f35b34801561019957600080fd5b506101a261060d565b6040516101af91906121e1565b60405180910390f35b3480156101c457600080fd5b506101df60048036038101906101da9190612239565b61069f565b6040516101ec91906122a7565b60405180910390f35b34801561020157600080fd5b5061021c600480360381019061021791906122ee565b61071b565b005b34801561022a57600080fd5b50610245600480360381019061024091906122ee565b6108c1565b005b34801561025357600080fd5b5061025c610966565b604051610269919061233d565b60405180910390f35b34801561027e57600080fd5b5061029960048036038101906102949190612358565b61097d565b005b3480156102a757600080fd5b506102b061098d565b005b6102cc60048036038101906102c79190612239565b610b2d565b005b3480156102da57600080fd5b506102f560048036038101906102f09190612358565b610d3f565b005b34801561030357600080fd5b5061031e60048036038101906103199190612410565b610d5f565b005b34801561032c57600080fd5b50610335610df1565b60405161034291906122a7565b60405180910390f35b34801561035757600080fd5b50610372600480360381019061036d9190612239565b610e17565b60405161037f91906122a7565b60405180910390f35b34801561039457600080fd5b506103af60048036038101906103aa919061245d565b610e29565b6040516103bc919061233d565b60405180910390f35b3480156103d157600080fd5b506103da610ee1565b005b3480156103e857600080fd5b5061040360048036038101906103fe919061245d565b610f69565b005b34801561041157600080fd5b5061041a611029565b60405161042791906122a7565b60405180910390f35b34801561043c57600080fd5b50610445611052565b60405161045291906121e1565b60405180910390f35b34801561046757600080fd5b50610482600480360381019061047d91906124b6565b6110e4565b005b34801561049057600080fd5b506104ab60048036038101906104a69190612626565b61125b565b005b3480156104b957600080fd5b506104c26112ce565b6040516104cf919061233d565b60405180910390f35b3480156104e457600080fd5b506104ff60048036038101906104fa9190612239565b6112d4565b60405161050c91906121e1565b60405180910390f35b34801561052157600080fd5b5061053c600480360381019061053791906126a9565b611372565b604051610549919061212d565b60405180910390f35b34801561055e57600080fd5b506105796004803603810190610574919061245d565b611406565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105d657506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106065750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606003805461061c90612718565b80601f016020809104026020016040519081016040528092919081815260200182805461064890612718565b80156106955780601f1061066a57610100808354040283529160200191610695565b820191906000526020600020905b81548152906001019060200180831161067857829003601f168201915b5050505050905090565b60006106aa826114fd565b6106e0576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006107268261155c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361078d576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166107ac611628565b73ffffffffffffffffffffffffffffffffffffffff161461080f576107d8816107d3611628565b611372565b61080e576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826007600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610902611628565b73ffffffffffffffffffffffffffffffffffffffff1614610958576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094f906127bb565b60405180910390fd5b6109628282611630565b5050565b600061097061164e565b6002546001540303905090565b610988838383611653565b505050565b6002600954036109d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c990612827565b60405180910390fd5b60026009819055506109e26119fa565b73ffffffffffffffffffffffffffffffffffffffff16610a00611029565b73ffffffffffffffffffffffffffffffffffffffff1614610a56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4d90612893565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1647604051610a9c906128e4565b60006040518083038185875af1925050503d8060008114610ad9576040519150601f19603f3d011682016040523d82523d6000602084013e610ade565b606091505b5050905080610b22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1990612945565b60405180910390fd5b506001600981905550565b600260095403610b72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6990612827565b60405180910390fd5b6002600981905550600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610bbb611628565b73ffffffffffffffffffffffffffffffffffffffff1614610c11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c08906127bb565b60405180910390fd5b806000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231326040518263ffffffff1660e01b8152600401610c6f91906122a7565b602060405180830381865afa158015610c8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb0919061297a565b11610cf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce7906129f3565b60405180910390fd5b610cfa3283611630565b7f59ecd92cf8c91bb75e60d208dc5f746563ffc81bbb233d451fa5eb9408241e3e3283604051610d2b929190612a13565b60405180910390a150600160098190555050565b610d5a8383836040518060200160405280600081525061125b565b505050565b610d676119fa565b73ffffffffffffffffffffffffffffffffffffffff16610d85611029565b73ffffffffffffffffffffffffffffffffffffffff1614610ddb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd290612893565b60405180910390fd5b8181600c9190610dec929190611fd6565b505050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610e228261155c565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e90576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b610ee96119fa565b73ffffffffffffffffffffffffffffffffffffffff16610f07611029565b73ffffffffffffffffffffffffffffffffffffffff1614610f5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5490612893565b60405180910390fd5b610f676000611a02565b565b610f716119fa565b73ffffffffffffffffffffffffffffffffffffffff16610f8f611029565b73ffffffffffffffffffffffffffffffffffffffff1614610fe5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdc90612893565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461106190612718565b80601f016020809104026020016040519081016040528092919081815260200182805461108d90612718565b80156110da5780601f106110af576101008083540402835291602001916110da565b820191906000526020600020905b8154815290600101906020018083116110bd57829003601f168201915b5050505050905090565b6110ec611628565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611150576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806008600061115d611628565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661120a611628565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161124f919061212d565b60405180910390a35050565b611266848484611653565b60008373ffffffffffffffffffffffffffffffffffffffff163b146112c85761129184848484611ac6565b6112c7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600b5481565b60606112df826114fd565b611315576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061131f611c16565b9050600081510361133f576040518060200160405280600081525061136a565b8061134984611ca8565b60405160200161135a929190612a78565b6040516020818303038152906040525b915050919050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61140e6119fa565b73ffffffffffffffffffffffffffffffffffffffff1661142c611029565b73ffffffffffffffffffffffffffffffffffffffff1614611482576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147990612893565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036114f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e890612b0e565b60405180910390fd5b6114fa81611a02565b50565b60008161150861164e565b11158015611517575060015482105b8015611555575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b6000808290508061156b61164e565b116115f1576001548110156115f05760006005600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036115ee575b600081036115e45760056000836001900393508381526020019081526020016000205490506115ba565b8092505050611623565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600033905090565b61164a828260405180602001604052806000815250611d02565b5050565b600090565b600061165e8261155c565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146116c5576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166116e6611628565b73ffffffffffffffffffffffffffffffffffffffff16148061171557506117148561170f611628565b611372565b5b8061175a5750611723611628565b73ffffffffffffffffffffffffffffffffffffffff166117428461069f565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611793576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036117f9576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6118068585856001611fb6565b6007600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055507c020000000000000000000000000000000000000000000000000000000060a042901b61190386611fbc565b1717600560008581526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000083160361198b5760006001840190506000600560008381526020019081526020016000205403611989576001548114611988578260056000838152602001908152602001600020819055505b5b505b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46119f38585856001611fc6565b5050505050565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611aec611628565b8786866040518563ffffffff1660e01b8152600401611b0e9493929190612b83565b6020604051808303816000875af1925050508015611b4a57506040513d601f19601f82011682018060405250810190611b479190612be4565b60015b611bc3573d8060008114611b7a576040519150601f19603f3d011682016040523d82523d6000602084013e611b7f565b606091505b506000815103611bbb576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600c8054611c2590612718565b80601f0160208091040260200160405190810160405280929190818152602001828054611c5190612718565b8015611c9e5780601f10611c7357610100808354040283529160200191611c9e565b820191906000526020600020905b815481529060010190602001808311611c8157829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b8015611cee57600183039250600a81066030018353600a81049050611cce565b508181036020830392508083525050919050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611d6f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008303611da9576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611db66000858386611fb6565b600160406001901b178302600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060e1611e1b60018514611fcc565b901b60a042901b611e2b86611fbc565b1717600560008381526020019081526020016000208190555060008190506000848201905060008673ffffffffffffffffffffffffffffffffffffffff163b14611f2f575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611edf6000878480600101955087611ac6565b611f15576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808210611e70578260015414611f2a57600080fd5b611f9a565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210611f30575b816001819055505050611fb06000858386611fc6565b50505050565b50505050565b6000819050919050565b50505050565b6000819050919050565b828054611fe290612718565b90600052602060002090601f016020900481019282612004576000855561204b565b82601f1061201d57803560ff191683800117855561204b565b8280016001018555821561204b579182015b8281111561204a57823582559160200191906001019061202f565b5b509050612058919061205c565b5090565b5b8082111561207557600081600090555060010161205d565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6120c28161208d565b81146120cd57600080fd5b50565b6000813590506120df816120b9565b92915050565b6000602082840312156120fb576120fa612083565b5b6000612109848285016120d0565b91505092915050565b60008115159050919050565b61212781612112565b82525050565b6000602082019050612142600083018461211e565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612182578082015181840152602081019050612167565b83811115612191576000848401525b50505050565b6000601f19601f8301169050919050565b60006121b382612148565b6121bd8185612153565b93506121cd818560208601612164565b6121d681612197565b840191505092915050565b600060208201905081810360008301526121fb81846121a8565b905092915050565b6000819050919050565b61221681612203565b811461222157600080fd5b50565b6000813590506122338161220d565b92915050565b60006020828403121561224f5761224e612083565b5b600061225d84828501612224565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061229182612266565b9050919050565b6122a181612286565b82525050565b60006020820190506122bc6000830184612298565b92915050565b6122cb81612286565b81146122d657600080fd5b50565b6000813590506122e8816122c2565b92915050565b6000806040838503121561230557612304612083565b5b6000612313858286016122d9565b925050602061232485828601612224565b9150509250929050565b61233781612203565b82525050565b6000602082019050612352600083018461232e565b92915050565b60008060006060848603121561237157612370612083565b5b600061237f868287016122d9565b9350506020612390868287016122d9565b92505060406123a186828701612224565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f8401126123d0576123cf6123ab565b5b8235905067ffffffffffffffff8111156123ed576123ec6123b0565b5b602083019150836001820283011115612409576124086123b5565b5b9250929050565b6000806020838503121561242757612426612083565b5b600083013567ffffffffffffffff81111561244557612444612088565b5b612451858286016123ba565b92509250509250929050565b60006020828403121561247357612472612083565b5b6000612481848285016122d9565b91505092915050565b61249381612112565b811461249e57600080fd5b50565b6000813590506124b08161248a565b92915050565b600080604083850312156124cd576124cc612083565b5b60006124db858286016122d9565b92505060206124ec858286016124a1565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61253382612197565b810181811067ffffffffffffffff82111715612552576125516124fb565b5b80604052505050565b6000612565612079565b9050612571828261252a565b919050565b600067ffffffffffffffff821115612591576125906124fb565b5b61259a82612197565b9050602081019050919050565b82818337600083830152505050565b60006125c96125c484612576565b61255b565b9050828152602081018484840111156125e5576125e46124f6565b5b6125f08482856125a7565b509392505050565b600082601f83011261260d5761260c6123ab565b5b813561261d8482602086016125b6565b91505092915050565b600080600080608085870312156126405761263f612083565b5b600061264e878288016122d9565b945050602061265f878288016122d9565b935050604061267087828801612224565b925050606085013567ffffffffffffffff81111561269157612690612088565b5b61269d878288016125f8565b91505092959194509250565b600080604083850312156126c0576126bf612083565b5b60006126ce858286016122d9565b92505060206126df858286016122d9565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061273057607f821691505b602082108103612743576127426126e9565b5b50919050565b7f5468652063616c6c6572206973206e6f74205a33524f2c206d7573742062652060008201527f5a33726f4964656e7469747920636f6e74726163740000000000000000000000602082015250565b60006127a5603583612153565b91506127b082612749565b604082019050919050565b600060208201905081810360008301526127d481612798565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612811601f83612153565b915061281c826127db565b602082019050919050565b6000602082019050818103600083015261284081612804565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061287d602083612153565b915061288882612847565b602082019050919050565b600060208201905081810360008301526128ac81612870565b9050919050565b600081905092915050565b50565b60006128ce6000836128b3565b91506128d9826128be565b600082019050919050565b60006128ef826128c1565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b600061292f601083612153565b915061293a826128f9565b602082019050919050565b6000602082019050818103600083015261295e81612922565b9050919050565b6000815190506129748161220d565b92915050565b6000602082840312156129905761298f612083565b5b600061299e84828501612965565b91505092915050565b7f596f75206e65656420746f206f776e205a33524f2773204964656e746974792e600082015250565b60006129dd602083612153565b91506129e8826129a7565b602082019050919050565b60006020820190508181036000830152612a0c816129d0565b9050919050565b6000604082019050612a286000830185612298565b612a35602083018461232e565b9392505050565b600081905092915050565b6000612a5282612148565b612a5c8185612a3c565b9350612a6c818560208601612164565b80840191505092915050565b6000612a848285612a47565b9150612a908284612a47565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612af8602683612153565b9150612b0382612a9c565b604082019050919050565b60006020820190508181036000830152612b2781612aeb565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000612b5582612b2e565b612b5f8185612b39565b9350612b6f818560208601612164565b612b7881612197565b840191505092915050565b6000608082019050612b986000830187612298565b612ba56020830186612298565b612bb2604083018561232e565b8181036060830152612bc48184612b4a565b905095945050505050565b600081519050612bde816120b9565b92915050565b600060208284031215612bfa57612bf9612083565b5b6000612c0884828501612bcf565b9150509291505056fea264697066735822122040f5aeed43d603a5779844d0a60025f6221759c94057d679ebb714a1d887aac664736f6c634300080d0033000000000000000000000000f4f91e17e86486087eec955cc7d4e9fb2cb19faa000000000000000000000000467c7099a0f6c52d923aa24d1c5fabd403913693

Deployed Bytecode

0x60806040526004361061014b5760003560e01c80636352211e116100b6578063a22cb4651161006f578063a22cb4651461045b578063b88d4fde14610484578063bdb4b848146104ad578063c87b56dd146104d8578063e985e9c514610515578063f2fde38b146105525761014b565b80636352211e1461034b57806370a0823114610388578063715018a6146103c55780638d9301b7146103dc5780638da5cb5b1461040557806395d89b41146104305761014b565b806323b872dd1161010857806323b872dd1461027257806324600fc31461029b5780633d0bc5af146102b257806342842e0e146102ce57806355f804b3146102f7578063594d2a57146103205761014b565b806301ffc9a71461015057806306fdde031461018d578063081812fc146101b8578063095ea7b3146101f5578063176e25e91461021e57806318160ddd14610247575b600080fd5b34801561015c57600080fd5b50610177600480360381019061017291906120e5565b61057b565b604051610184919061212d565b60405180910390f35b34801561019957600080fd5b506101a261060d565b6040516101af91906121e1565b60405180910390f35b3480156101c457600080fd5b506101df60048036038101906101da9190612239565b61069f565b6040516101ec91906122a7565b60405180910390f35b34801561020157600080fd5b5061021c600480360381019061021791906122ee565b61071b565b005b34801561022a57600080fd5b50610245600480360381019061024091906122ee565b6108c1565b005b34801561025357600080fd5b5061025c610966565b604051610269919061233d565b60405180910390f35b34801561027e57600080fd5b5061029960048036038101906102949190612358565b61097d565b005b3480156102a757600080fd5b506102b061098d565b005b6102cc60048036038101906102c79190612239565b610b2d565b005b3480156102da57600080fd5b506102f560048036038101906102f09190612358565b610d3f565b005b34801561030357600080fd5b5061031e60048036038101906103199190612410565b610d5f565b005b34801561032c57600080fd5b50610335610df1565b60405161034291906122a7565b60405180910390f35b34801561035757600080fd5b50610372600480360381019061036d9190612239565b610e17565b60405161037f91906122a7565b60405180910390f35b34801561039457600080fd5b506103af60048036038101906103aa919061245d565b610e29565b6040516103bc919061233d565b60405180910390f35b3480156103d157600080fd5b506103da610ee1565b005b3480156103e857600080fd5b5061040360048036038101906103fe919061245d565b610f69565b005b34801561041157600080fd5b5061041a611029565b60405161042791906122a7565b60405180910390f35b34801561043c57600080fd5b50610445611052565b60405161045291906121e1565b60405180910390f35b34801561046757600080fd5b50610482600480360381019061047d91906124b6565b6110e4565b005b34801561049057600080fd5b506104ab60048036038101906104a69190612626565b61125b565b005b3480156104b957600080fd5b506104c26112ce565b6040516104cf919061233d565b60405180910390f35b3480156104e457600080fd5b506104ff60048036038101906104fa9190612239565b6112d4565b60405161050c91906121e1565b60405180910390f35b34801561052157600080fd5b5061053c600480360381019061053791906126a9565b611372565b604051610549919061212d565b60405180910390f35b34801561055e57600080fd5b506105796004803603810190610574919061245d565b611406565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105d657506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106065750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60606003805461061c90612718565b80601f016020809104026020016040519081016040528092919081815260200182805461064890612718565b80156106955780601f1061066a57610100808354040283529160200191610695565b820191906000526020600020905b81548152906001019060200180831161067857829003601f168201915b5050505050905090565b60006106aa826114fd565b6106e0576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006107268261155c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361078d576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166107ac611628565b73ffffffffffffffffffffffffffffffffffffffff161461080f576107d8816107d3611628565b611372565b61080e576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826007600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610902611628565b73ffffffffffffffffffffffffffffffffffffffff1614610958576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094f906127bb565b60405180910390fd5b6109628282611630565b5050565b600061097061164e565b6002546001540303905090565b610988838383611653565b505050565b6002600954036109d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c990612827565b60405180910390fd5b60026009819055506109e26119fa565b73ffffffffffffffffffffffffffffffffffffffff16610a00611029565b73ffffffffffffffffffffffffffffffffffffffff1614610a56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4d90612893565b60405180910390fd5b60007f000000000000000000000000467c7099a0f6c52d923aa24d1c5fabd40391369373ffffffffffffffffffffffffffffffffffffffff1647604051610a9c906128e4565b60006040518083038185875af1925050503d8060008114610ad9576040519150601f19603f3d011682016040523d82523d6000602084013e610ade565b606091505b5050905080610b22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1990612945565b60405180910390fd5b506001600981905550565b600260095403610b72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6990612827565b60405180910390fd5b6002600981905550600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610bbb611628565b73ffffffffffffffffffffffffffffffffffffffff1614610c11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c08906127bb565b60405180910390fd5b806000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231326040518263ffffffff1660e01b8152600401610c6f91906122a7565b602060405180830381865afa158015610c8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb0919061297a565b11610cf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce7906129f3565b60405180910390fd5b610cfa3283611630565b7f59ecd92cf8c91bb75e60d208dc5f746563ffc81bbb233d451fa5eb9408241e3e3283604051610d2b929190612a13565b60405180910390a150600160098190555050565b610d5a8383836040518060200160405280600081525061125b565b505050565b610d676119fa565b73ffffffffffffffffffffffffffffffffffffffff16610d85611029565b73ffffffffffffffffffffffffffffffffffffffff1614610ddb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd290612893565b60405180910390fd5b8181600c9190610dec929190611fd6565b505050565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610e228261155c565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e90576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b610ee96119fa565b73ffffffffffffffffffffffffffffffffffffffff16610f07611029565b73ffffffffffffffffffffffffffffffffffffffff1614610f5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5490612893565b60405180910390fd5b610f676000611a02565b565b610f716119fa565b73ffffffffffffffffffffffffffffffffffffffff16610f8f611029565b73ffffffffffffffffffffffffffffffffffffffff1614610fe5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdc90612893565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606004805461106190612718565b80601f016020809104026020016040519081016040528092919081815260200182805461108d90612718565b80156110da5780601f106110af576101008083540402835291602001916110da565b820191906000526020600020905b8154815290600101906020018083116110bd57829003601f168201915b5050505050905090565b6110ec611628565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611150576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806008600061115d611628565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661120a611628565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161124f919061212d565b60405180910390a35050565b611266848484611653565b60008373ffffffffffffffffffffffffffffffffffffffff163b146112c85761129184848484611ac6565b6112c7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600b5481565b60606112df826114fd565b611315576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061131f611c16565b9050600081510361133f576040518060200160405280600081525061136a565b8061134984611ca8565b60405160200161135a929190612a78565b6040516020818303038152906040525b915050919050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61140e6119fa565b73ffffffffffffffffffffffffffffffffffffffff1661142c611029565b73ffffffffffffffffffffffffffffffffffffffff1614611482576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147990612893565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036114f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e890612b0e565b60405180910390fd5b6114fa81611a02565b50565b60008161150861164e565b11158015611517575060015482105b8015611555575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b6000808290508061156b61164e565b116115f1576001548110156115f05760006005600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036115ee575b600081036115e45760056000836001900393508381526020019081526020016000205490506115ba565b8092505050611623565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600033905090565b61164a828260405180602001604052806000815250611d02565b5050565b600090565b600061165e8261155c565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146116c5576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166116e6611628565b73ffffffffffffffffffffffffffffffffffffffff16148061171557506117148561170f611628565b611372565b5b8061175a5750611723611628565b73ffffffffffffffffffffffffffffffffffffffff166117428461069f565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611793576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036117f9576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6118068585856001611fb6565b6007600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055507c020000000000000000000000000000000000000000000000000000000060a042901b61190386611fbc565b1717600560008581526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000083160361198b5760006001840190506000600560008381526020019081526020016000205403611989576001548114611988578260056000838152602001908152602001600020819055505b5b505b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46119f38585856001611fc6565b5050505050565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611aec611628565b8786866040518563ffffffff1660e01b8152600401611b0e9493929190612b83565b6020604051808303816000875af1925050508015611b4a57506040513d601f19601f82011682018060405250810190611b479190612be4565b60015b611bc3573d8060008114611b7a576040519150601f19603f3d011682016040523d82523d6000602084013e611b7f565b606091505b506000815103611bbb576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600c8054611c2590612718565b80601f0160208091040260200160405190810160405280929190818152602001828054611c5190612718565b8015611c9e5780601f10611c7357610100808354040283529160200191611c9e565b820191906000526020600020905b815481529060010190602001808311611c8157829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b8015611cee57600183039250600a81066030018353600a81049050611cce565b508181036020830392508083525050919050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611d6f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008303611da9576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611db66000858386611fb6565b600160406001901b178302600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060e1611e1b60018514611fcc565b901b60a042901b611e2b86611fbc565b1717600560008381526020019081526020016000208190555060008190506000848201905060008673ffffffffffffffffffffffffffffffffffffffff163b14611f2f575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611edf6000878480600101955087611ac6565b611f15576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808210611e70578260015414611f2a57600080fd5b611f9a565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210611f30575b816001819055505050611fb06000858386611fc6565b50505050565b50505050565b6000819050919050565b50505050565b6000819050919050565b828054611fe290612718565b90600052602060002090601f016020900481019282612004576000855561204b565b82601f1061201d57803560ff191683800117855561204b565b8280016001018555821561204b579182015b8281111561204a57823582559160200191906001019061202f565b5b509050612058919061205c565b5090565b5b8082111561207557600081600090555060010161205d565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6120c28161208d565b81146120cd57600080fd5b50565b6000813590506120df816120b9565b92915050565b6000602082840312156120fb576120fa612083565b5b6000612109848285016120d0565b91505092915050565b60008115159050919050565b61212781612112565b82525050565b6000602082019050612142600083018461211e565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612182578082015181840152602081019050612167565b83811115612191576000848401525b50505050565b6000601f19601f8301169050919050565b60006121b382612148565b6121bd8185612153565b93506121cd818560208601612164565b6121d681612197565b840191505092915050565b600060208201905081810360008301526121fb81846121a8565b905092915050565b6000819050919050565b61221681612203565b811461222157600080fd5b50565b6000813590506122338161220d565b92915050565b60006020828403121561224f5761224e612083565b5b600061225d84828501612224565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061229182612266565b9050919050565b6122a181612286565b82525050565b60006020820190506122bc6000830184612298565b92915050565b6122cb81612286565b81146122d657600080fd5b50565b6000813590506122e8816122c2565b92915050565b6000806040838503121561230557612304612083565b5b6000612313858286016122d9565b925050602061232485828601612224565b9150509250929050565b61233781612203565b82525050565b6000602082019050612352600083018461232e565b92915050565b60008060006060848603121561237157612370612083565b5b600061237f868287016122d9565b9350506020612390868287016122d9565b92505060406123a186828701612224565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f8401126123d0576123cf6123ab565b5b8235905067ffffffffffffffff8111156123ed576123ec6123b0565b5b602083019150836001820283011115612409576124086123b5565b5b9250929050565b6000806020838503121561242757612426612083565b5b600083013567ffffffffffffffff81111561244557612444612088565b5b612451858286016123ba565b92509250509250929050565b60006020828403121561247357612472612083565b5b6000612481848285016122d9565b91505092915050565b61249381612112565b811461249e57600080fd5b50565b6000813590506124b08161248a565b92915050565b600080604083850312156124cd576124cc612083565b5b60006124db858286016122d9565b92505060206124ec858286016124a1565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61253382612197565b810181811067ffffffffffffffff82111715612552576125516124fb565b5b80604052505050565b6000612565612079565b9050612571828261252a565b919050565b600067ffffffffffffffff821115612591576125906124fb565b5b61259a82612197565b9050602081019050919050565b82818337600083830152505050565b60006125c96125c484612576565b61255b565b9050828152602081018484840111156125e5576125e46124f6565b5b6125f08482856125a7565b509392505050565b600082601f83011261260d5761260c6123ab565b5b813561261d8482602086016125b6565b91505092915050565b600080600080608085870312156126405761263f612083565b5b600061264e878288016122d9565b945050602061265f878288016122d9565b935050604061267087828801612224565b925050606085013567ffffffffffffffff81111561269157612690612088565b5b61269d878288016125f8565b91505092959194509250565b600080604083850312156126c0576126bf612083565b5b60006126ce858286016122d9565b92505060206126df858286016122d9565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061273057607f821691505b602082108103612743576127426126e9565b5b50919050565b7f5468652063616c6c6572206973206e6f74205a33524f2c206d7573742062652060008201527f5a33726f4964656e7469747920636f6e74726163740000000000000000000000602082015250565b60006127a5603583612153565b91506127b082612749565b604082019050919050565b600060208201905081810360008301526127d481612798565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612811601f83612153565b915061281c826127db565b602082019050919050565b6000602082019050818103600083015261284081612804565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061287d602083612153565b915061288882612847565b602082019050919050565b600060208201905081810360008301526128ac81612870565b9050919050565b600081905092915050565b50565b60006128ce6000836128b3565b91506128d9826128be565b600082019050919050565b60006128ef826128c1565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b600061292f601083612153565b915061293a826128f9565b602082019050919050565b6000602082019050818103600083015261295e81612922565b9050919050565b6000815190506129748161220d565b92915050565b6000602082840312156129905761298f612083565b5b600061299e84828501612965565b91505092915050565b7f596f75206e65656420746f206f776e205a33524f2773204964656e746974792e600082015250565b60006129dd602083612153565b91506129e8826129a7565b602082019050919050565b60006020820190508181036000830152612a0c816129d0565b9050919050565b6000604082019050612a286000830185612298565b612a35602083018461232e565b9392505050565b600081905092915050565b6000612a5282612148565b612a5c8185612a3c565b9350612a6c818560208601612164565b80840191505092915050565b6000612a848285612a47565b9150612a908284612a47565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612af8602683612153565b9150612b0382612a9c565b604082019050919050565b60006020820190508181036000830152612b2781612aeb565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000612b5582612b2e565b612b5f8185612b39565b9350612b6f818560208601612164565b612b7881612197565b840191505092915050565b6000608082019050612b986000830187612298565b612ba56020830186612298565b612bb2604083018561232e565b8181036060830152612bc48184612b4a565b905095945050505050565b600081519050612bde816120b9565b92915050565b600060208284031215612bfa57612bf9612083565b5b6000612c0884828501612bcf565b9150509291505056fea264697066735822122040f5aeed43d603a5779844d0a60025f6221759c94057d679ebb714a1d887aac664736f6c634300080d0033

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

000000000000000000000000f4f91e17e86486087eec955cc7d4e9fb2cb19faa000000000000000000000000467c7099a0f6c52d923aa24d1c5fabd403913693

-----Decoded View---------------
Arg [0] : identity (address): 0xF4f91E17E86486087EEC955cC7D4E9fB2CB19Faa
Arg [1] : _multiSig (address): 0x467C7099A0f6C52D923aa24D1C5FaBD403913693

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000f4f91e17e86486087eec955cc7d4e9fb2cb19faa
Arg [1] : 000000000000000000000000467c7099a0f6c52d923aa24d1c5fabd403913693


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.