ETH Price: $3,484.38 (+3.64%)
Gas: 3 Gwei

Token

ZokioVerseSBT (ZKSBT)
 

Overview

Max Total Supply

1,000 ZKSBT

Holders

253

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0x2ccefb7d96525fc67182cb1b934c97116bc3ae77
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:
ZokioVerseSBT

Compiler Version
v0.8.22+commit.4fc1097e

Optimization Enabled:
Yes with 3333 runs

Other Settings:
paris EvmVersion
File 1 of 4 : ERC1155P.sol
// SPDX-License-Identifier: MIT
// ERC1155P Contracts v1.1
// Creator: 0xjustadev/0xth0mas

pragma solidity ^0.8.20;

import "./IERC1155P.sol";

/**
 * @dev Interface of ERC1155 token receiver.
 */
interface ERC1155P__IERC1155Receiver {
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @dev Interface for IERC1155MetadataURI.
 */

interface ERC1155P__IERC1155MetadataURI {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

 /**
 * @title ERC1155P
 *
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155 including the Metadata extension.
 * Optimized for lower gas for users collecting multiple tokens.
 *
 * Assumptions:
 * - An owner cannot have more than 2**16 - 1 of a single token
 * - The maximum token ID cannot exceed 2**100 - 1
 */
abstract contract ERC1155P is IERC1155P, ERC1155P__IERC1155MetadataURI {

    /**
     * @dev MAX_ACCOUNT_TOKEN_BALANCE is 2^16-1 because token balances are
     *      are being packed into 16 bits within each bucket.
     */
    uint256 private constant MAX_ACCOUNT_TOKEN_BALANCE = 0xFFFF;

    uint256 private constant BALANCE_STORAGE_OFFSET =
        0xE000000000000000000000000000000000000000000000000000000000000000;

    uint256 private constant APPROVAL_STORAGE_OFFSET =
        0xD000000000000000000000000000000000000000000000000000000000000000;

    /**
     * @dev MAX_TOKEN_ID is derived from custom storage pointer location for 
     *      account/token balance data. Wallet address is shifted 92 bits left
     *      and leaves 92 bits for bucket #'s. Each bucket holds 8 token balances
     *      2^92*8-1 = MAX_TOKEN_ID
     */
    uint256 private constant MAX_TOKEN_ID = 0x07FFFFFFFFFFFFFFFFFFFFFFF;

    // The `TransferSingle` event signature is given by:
    // `keccak256(bytes("TransferSingle(address,address,address,uint256,uint256)"))`.
    bytes32 private constant _TRANSFER_SINGLE_EVENT_SIGNATURE =
        0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62;
    // The `TransferBatch` event signature is given by:
    // `keccak256(bytes("TransferBatch(address,address,address,uint256[],uint256[])"))`.
    bytes32 private constant _TRANSFER_BATCH_EVENT_SIGNATURE =
        0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb;
    // The `ApprovalForAll` event signature is given by:
    // `keccak256(bytes("ApprovalForAll(address,address,bool)"))`.
    bytes32 private constant _APPROVAL_FOR_ALL_EVENT_SIGNATURE =
        0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31;

    /// @dev Returns the name of the token.
    function name() public view virtual returns(string memory);

    /// @dev Returns the symbol of the token.
    function symbol() public view virtual returns(string memory);

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    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: [ERC165](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 == 0xd9b67a26 || // ERC165 interface ID for ERC1155.
            interfaceId == 0x0e89341c; // ERC165 interface ID for ERC1155MetadataURI.
    }

    /// @dev Returns the URI for token `id`.
    ///
    /// You can either return the same templated URI for all token IDs,
    /// (e.g. "https://example.com/api/{id}.json"),
    /// or return a unique URI for each `id`.
    ///
    /// See: https://eips.ethereum.org/EIPS/eip-1155#metadata
    function uri(uint256 id) public view virtual returns (string memory);

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        if(account == address(0)) { _revert(BalanceQueryForZeroAddress.selector); }
        return getBalance(account, id);
    }

    /**
     * @dev Gets the amount of tokens minted by an account for a given token id
     */
    function _numberMinted(address account, uint256 id) internal view returns (uint256) {
        if(account == address(0)) { _revert(BalanceQueryForZeroAddress.selector); }
        return getMinted(account, id);
    }

    /**
     * @dev Gets the balance of an account's token id from packed token data
     *
     */
    function getBalance(address account, uint256 id) private view returns (uint256 _balance) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, or(BALANCE_STORAGE_OFFSET, or(shr(4, shl(96, account)), shr(3, id))))
            _balance := shr(shl(5, and(id, 0x07)), and(sload(keccak256(0x00, 0x20)), shl(shl(5, and(id, 0x07)), 0x0000FFFF)))
        }
    }

    /**
     * @dev Sets the balance of an account's token id in packed token data
     *
     */
    function setBalance(address account, uint256 id, uint256 amount) private {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, or(BALANCE_STORAGE_OFFSET, or(shr(4, shl(96, account)), shr(3, id))))
            mstore(0x00, keccak256(0x00, 0x20))
            sstore(mload(0x00), or(and(not(shl(shl(5, and(id, 0x07)), 0x0000FFFF)), sload(mload(0x00))), shl(shl(5, and(id, 0x07)), amount)))
        }
    }

    /**
     * @dev Gets the number minted of an account's token id from packed token data
     *
     */
    function getMinted(address account, uint256 id) private view returns (uint256 _minted) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, or(BALANCE_STORAGE_OFFSET, or(shr(4, shl(96, account)), shr(3, id))))
            _minted := shr(16, shr(shl(5, and(id, 0x07)), and(sload(keccak256(0x00, 0x20)), shl(shl(5, and(id, 0x07)), 0xFFFF0000))))
        }
    }

    /**
     * @dev Sets the number minted of an account's token id in packed token data
     *
     */
    function setMinted(address account, uint256 id, uint256 amount) private {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, or(BALANCE_STORAGE_OFFSET, or(shr(4, shl(96, account)), shr(3, id))))
            mstore(0x00, keccak256(0x00, 0x20))
            sstore(mload(0x00), or(and(not(shl(shl(5, and(id, 0x07)), 0xFFFF0000)), sload(mload(0x00))), shl(shl(5, and(id, 0x07)), shl(16, amount))))
        }
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(
        address[] calldata accounts,
        uint256[] calldata ids
    ) public view virtual override returns (uint256[] memory) {
        if(accounts.length != ids.length) { _revert(ArrayLengthMismatch.selector); }

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for(uint256 i = 0; i < accounts.length;) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
            unchecked {
                ++i;
            }
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-isApprovedForAll}.
     */
    function isApprovedForAll(address account, address operator) public view virtual override returns (bool _approved) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, shr(96, shl(96, account)))
            mstore(0x20, or(APPROVAL_STORAGE_OFFSET, shr(96, shl(96, operator))))
            mstore(0x00, keccak256(0x00, 0x40))
            _approved := sload(mload(0x00))
        }
        return _approved; 
    }

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes memory data
    ) public virtual override {
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        if(id > MAX_TOKEN_ID) { _revert(ExceedsMaximumTokenId.selector); }
        if(to == address(0)) { _revert(TransferToZeroAddress.selector); }
        
        if(from != _msgSenderERC1155P())
            if (!isApprovedForAll(from, _msgSenderERC1155P())) _revert(TransferCallerNotOwnerNorApproved.selector);

        address operator = _msgSenderERC1155P();

        _beforeTokenTransfer(operator, from, to, id, amount, data);

        uint256 fromBalance = getBalance(from, id);
        if(amount > fromBalance) { _revert(TransferExceedsBalance.selector); }

        if(from != to) {
            uint256 toBalance = getBalance(to, id);
            unchecked {
                fromBalance -= amount;
                toBalance += amount;
            }
            if(toBalance > MAX_ACCOUNT_TOKEN_BALANCE) { _revert(ExceedsMaximumBalance.selector); }
            setBalance(from, id, fromBalance);
            setBalance(to, id, toBalance);   
        }

        /// @solidity memory-safe-assembly
        assembly {
            // Emit the `TransferSingle` event.
            let memOffset := mload(0x40)
            mstore(memOffset, id)
            mstore(add(memOffset, 0x20), amount)
            log4(
                memOffset, // Start of data .
                0x40, // Length of data.
                _TRANSFER_SINGLE_EVENT_SIGNATURE, // Signature.
                operator, // `operator`.
                from, // `from`.
                to // `to`.
            )
        }

        _afterTokenTransfer(operator, from, to, id, amount, data);

        if(to.code.length != 0)
            if(!_checkContractOnERC1155Received(from, to, id, amount, data))  {
                _revert(TransferToNonERC1155ReceiverImplementer.selector);
            }
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes memory data
    ) internal virtual {
        if(to == address(0)) { _revert(TransferToZeroAddress.selector); }
        if(ids.length != amounts.length) { _revert(ArrayLengthMismatch.selector); }

        if(from != _msgSenderERC1155P())
            if (!isApprovedForAll(from, _msgSenderERC1155P())) _revert(TransferCallerNotOwnerNorApproved.selector);

        address operator = _msgSenderERC1155P();

        _beforeBatchTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length;) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];
            if(id > MAX_TOKEN_ID) { _revert(ExceedsMaximumTokenId.selector); }

            uint256 fromBalance = getBalance(from, id);
            if(amount > fromBalance) { _revert(TransferExceedsBalance.selector); }

            if(from != to) {
                uint256 toBalance = getBalance(to, id);
                unchecked {
                    fromBalance -= amount;
                    toBalance += amount;
                }
                if(toBalance > MAX_ACCOUNT_TOKEN_BALANCE) { _revert(ExceedsMaximumBalance.selector); }
                setBalance(from, id, fromBalance);
                setBalance(to, id, toBalance);
            }

            unchecked {
                ++i;
            }
        }

        /// @solidity memory-safe-assembly
        assembly {
            let memOffset := mload(0x40)
            mstore(memOffset, 0x40)
            mstore(add(memOffset,0x20), add(0x60, mul(0x20,ids.length)))
            mstore(add(memOffset,0x40), ids.length)
            calldatacopy(add(memOffset,0x60), ids.offset, mul(0x20,ids.length))
            mstore(add(add(memOffset,0x60),mul(0x20,ids.length)), amounts.length)
            calldatacopy(add(add(memOffset,0x80),mul(0x20,ids.length)), amounts.offset, mul(0x20,amounts.length))
            log4(
                memOffset, 
                add(0x80,mul(0x40,amounts.length)),
                _TRANSFER_BATCH_EVENT_SIGNATURE, // Signature.
                operator, // `operator`.
                from, // `from`.
                to // `to`.
            )
        }

        _afterBatchTokenTransfer(operator, from, to, ids, amounts, data);


        if(to.code.length != 0)
            if(!_checkContractOnERC1155BatchReceived(from, to, ids, amounts, data))  {
                _revert(TransferToNonERC1155ReceiverImplementer.selector);
            }
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(address to, uint256 id, uint256 amount, bytes memory data) internal virtual {
        if(id > MAX_TOKEN_ID) { _revert(ExceedsMaximumTokenId.selector); }
        if(to == address(0)) { _revert(MintToZeroAddress.selector); }
        if(amount == 0) { _revert(MintZeroQuantity.selector); }

        address operator = _msgSenderERC1155P();

        _beforeTokenTransfer(operator, address(0), to, id, amount, data);

        uint256 toBalanceBefore = getBalance(to, id);
        uint256 toBalanceAfter;
        unchecked {
            toBalanceAfter = toBalanceBefore + amount;
        }
        if(toBalanceAfter > MAX_ACCOUNT_TOKEN_BALANCE) { _revert(ExceedsMaximumBalance.selector); }
        if(toBalanceAfter < toBalanceBefore) { _revert(ExceedsMaximumBalance.selector); } // catches overflow
        setBalance(to, id, toBalanceAfter);

        uint256 toMintedBefore = getMinted(to, id);
        uint256 toMintedAfter;
        unchecked {
            toMintedAfter = toMintedBefore + amount;
        }
        if(toMintedAfter > MAX_ACCOUNT_TOKEN_BALANCE) { _revert(ExceedsMaximumBalance.selector); }
        if(toMintedAfter < toMintedBefore) { _revert(ExceedsMaximumBalance.selector); } // catches overflow
        setMinted(to, id, toMintedAfter);

        /// @solidity memory-safe-assembly
        assembly {
            // Emit the `TransferSingle` event.
            let memOffset := mload(0x40)
            mstore(memOffset, id)
            mstore(add(memOffset, 0x20), amount)
            log4(
                memOffset, // Start of data .
                0x40, // Length of data.
                _TRANSFER_SINGLE_EVENT_SIGNATURE, // Signature.
                operator, // `operator`.
                0, // `from`.
                to // `to`.
            )
        }

        _afterTokenTransfer(operator, address(0), to, id, amount, data);

        if(to.code.length != 0)
            if(!_checkContractOnERC1155Received(address(0), to, id, amount, data))  {
                _revert(TransferToNonERC1155ReceiverImplementer.selector);
            }
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes memory data
    ) internal virtual {
        if(to == address(0)) { _revert(MintToZeroAddress.selector); }
        if(ids.length != amounts.length) { _revert(ArrayLengthMismatch.selector); }

        address operator = _msgSenderERC1155P();

        _beforeBatchTokenTransfer(operator, address(0), to, ids, amounts, data);

        uint256 id;
        uint256 amount;
        for (uint256 i = 0; i < ids.length;) {
            id = ids[i];
            amount = amounts[i];
            if(id > MAX_TOKEN_ID) { _revert(ExceedsMaximumTokenId.selector); }
            if(amount == 0) { _revert(MintZeroQuantity.selector); }

            uint256 toBalanceBefore = getBalance(to, id);
            uint256 toBalanceAfter;
            unchecked {
                toBalanceAfter = toBalanceBefore + amount;
            }
            if(toBalanceAfter > MAX_ACCOUNT_TOKEN_BALANCE) { _revert(ExceedsMaximumBalance.selector); }
            if(toBalanceAfter < toBalanceBefore) { _revert(ExceedsMaximumBalance.selector); } // catches overflow
            setBalance(to, id, toBalanceAfter);

            uint256 toMintedBefore = getMinted(to, id);
            uint256 toMintedAfter;
            unchecked {
                toMintedAfter = toMintedBefore + amount;
            }
            if(toMintedAfter > MAX_ACCOUNT_TOKEN_BALANCE) { _revert(ExceedsMaximumBalance.selector); }
            if(toMintedAfter < toMintedBefore) { _revert(ExceedsMaximumBalance.selector); } // catches overflow
            setMinted(to, id, toMintedAfter);

            unchecked {
                ++i;
            }
        }

        /// @solidity memory-safe-assembly
        assembly {
            let memOffset := mload(0x40)
            mstore(memOffset, 0x40)
            mstore(add(memOffset,0x20), add(0x60, mul(0x20,ids.length)))
            mstore(add(memOffset,0x40), ids.length)
            calldatacopy(add(memOffset,0x60), ids.offset, mul(0x20,ids.length))
            mstore(add(add(memOffset,0x60),mul(0x20,ids.length)), amounts.length)
            calldatacopy(add(add(memOffset,0x80),mul(0x20,ids.length)), amounts.offset, mul(0x20,amounts.length))
            log4(
                memOffset, 
                add(0x80,mul(0x40,amounts.length)),
                _TRANSFER_BATCH_EVENT_SIGNATURE, // Signature.
                operator, // `operator`.
                0, // `from`.
                to // `to`.
            )
        }

        _afterBatchTokenTransfer(operator, address(0), to, ids, amounts, data);

        if(to.code.length != 0)
            if(!_checkContractOnERC1155BatchReceived(address(0), to, ids, amounts, data))  {
                _revert(TransferToNonERC1155ReceiverImplementer.selector);
            }
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(address from, uint256 id, uint256 amount) internal virtual {
        if(id > MAX_TOKEN_ID) { _revert(ExceedsMaximumTokenId.selector); }
        if(from == address(0)) { _revert(BurnFromZeroAddress.selector); }

        address operator = _msgSenderERC1155P();

        _beforeTokenTransfer(operator, from, address(0), id, amount, "");

        uint256 fromBalance = getBalance(from, id);
        if(amount > fromBalance) { _revert(BurnExceedsBalance.selector); }
        unchecked {
            fromBalance -= amount;
        }
        setBalance(from, id, fromBalance);

        /// @solidity memory-safe-assembly
        assembly {
            // Emit the `TransferSingle` event.
            let memOffset := mload(0x40)
            mstore(memOffset, id)
            mstore(add(memOffset, 0x20), amount)
            log4(
                memOffset, // Start of data.
                0x40, // Length of data.
                _TRANSFER_SINGLE_EVENT_SIGNATURE, // Signature.
                operator, // `operator`.
                from, // `from`.
                0 // `to`.
            )
        }

        _afterTokenTransfer(operator, from, address(0), id, amount, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(address from, uint256[] calldata ids, uint256[] calldata amounts) internal virtual {
        if(from == address(0)) { _revert(BurnFromZeroAddress.selector); }
        if(ids.length != amounts.length) { _revert(ArrayLengthMismatch.selector); }

        address operator = _msgSenderERC1155P();

        _beforeBatchTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length;) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];
            if(id > MAX_TOKEN_ID) { _revert(ExceedsMaximumTokenId.selector); }

            uint256 fromBalance = getBalance(from, id);
            if(amount > fromBalance) { _revert(BurnExceedsBalance.selector); }
            unchecked {
                fromBalance -= amount;
            }
            setBalance(from, id, fromBalance);
            unchecked {
                ++i;
            }
        }

        /// @solidity memory-safe-assembly
        assembly {
            let memOffset := mload(0x40)
            mstore(memOffset, 0x40)
            mstore(add(memOffset,0x20), add(0x60, mul(0x20,ids.length)))
            mstore(add(memOffset,0x40), ids.length)
            calldatacopy(add(memOffset,0x60), ids.offset, mul(0x20,ids.length))
            mstore(add(add(memOffset,0x60),mul(0x20,ids.length)), amounts.length)
            calldatacopy(add(add(memOffset,0x80),mul(0x20,ids.length)), amounts.offset, mul(0x20,amounts.length))
            log4(
                memOffset, 
                add(0x80,mul(0x40,amounts.length)),
                _TRANSFER_BATCH_EVENT_SIGNATURE, // Signature.
                operator, // `operator`.
                from, // `from`.
                0 // `to`.
            )
        }

        _afterBatchTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom}
     * for any token owned by the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, caller())
            mstore(0x20, or(APPROVAL_STORAGE_OFFSET, shr(96, shl(96, operator))))
            mstore(0x00, keccak256(0x00, 0x40))
            mstore(0x20, approved)
            sstore(mload(0x00), mload(0x20))
            log3(
                0x20,
                0x20,
                _APPROVAL_FOR_ALL_EVENT_SIGNATURE,
                caller(),
                shr(96, shl(96, operator))
            )
        }
    }

    /**
     * @dev Hook that is called before any single token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {}

    

    /**
     * @dev Hook that is called before any batch token transfer. This includes minting
     * and burning.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    
    function _beforeBatchTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes memory data
    ) internal virtual {}

    /**
     * @dev Hook that is called after any single token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {}

    /**
     * @dev Hook that is called after any batch token transfer. This includes minting
     * and burning.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    
    function _afterBatchTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes memory data
    ) internal virtual {}

    /**
     * @dev Private function to invoke {IERC1155Receiver-onERC155Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `id` - Token ID to be transferred.
     * `amount` - Balance of token to be transferred
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC1155Received(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory _data
    ) private returns (bool) {
        try ERC1155P__IERC1155Receiver(to).onERC1155Received(_msgSenderERC1155P(), from, id, amount, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC1155P__IERC1155Receiver(to).onERC1155Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                _revert(TransferToNonERC1155ReceiverImplementer.selector);
            }
            /// @solidity memory-safe-assembly
            assembly {
                revert(add(32, reason), mload(reason))
            }
        }
    }

    /**
     * @dev Private function to invoke {IERC1155Receiver-onERC155Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `id` - Token ID to be transferred.
     * `amount` - Balance of token to be transferred
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC1155BatchReceived(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes memory _data
    ) private returns (bool) {
        try ERC1155P__IERC1155Receiver(to).onERC1155BatchReceived(_msgSenderERC1155P(), from, ids, amounts, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC1155P__IERC1155Receiver(to).onERC1155BatchReceived.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                _revert(TransferToNonERC1155ReceiverImplementer.selector);
            }
            /// @solidity memory-safe-assembly
            assembly {
                revert(add(32, reason), mload(reason))
            }
        }
    }
    
    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC1155P() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        /// @solidity memory-safe-assembly
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

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

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }

    /**
     * @dev For more efficient reverts.
     */
    function _revert(bytes4 errorSelector) internal pure {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, errorSelector)
            revert(0x00, 0x04)
        }
    }
}

File 2 of 4 : IERC1155P.sol
// SPDX-License-Identifier: MIT
// ERC721P Contracts v1.1

pragma solidity ^0.8.20;

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155P {

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

    /**
     * Arrays cannot be different lengths.
     */
    error ArrayLengthMismatch();

    /**
     * Cannot burn from the zero address.
     */
    error BurnFromZeroAddress();

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

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

    /**
     * The quantity of tokens being burned is greater than account balance.
     */
    error BurnExceedsBalance();

    /**
     * The quantity of tokens being transferred is greater than account balance.
     */
    error TransferExceedsBalance();

    /**
     * The resulting token balance exceeds the maximum storable by ERC1155P
     */
    error ExceedsMaximumBalance();

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

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

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

    /**
     * Exceeds max token ID
     */
    error ExceedsMaximumTokenId();
    
    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(
        address[] calldata accounts,
        uint256[] calldata ids
    ) external view returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 3 of 4 : ZokioVerseSBT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;

import {Ownable} from "solady/src/auth/Ownable.sol";
import {ERC1155P} from "./ERC1155P.sol";

contract ZokioVerseSBT is ERC1155P, Ownable {
    error ExceedMaxPerWallet();
    error WrongValueSent();
    error FailedToWithdraw();
    error NotLive();
    error ExceedMaxSupply();
    error CannotApprove();
    error CannotTransfer();

    event Soulbound(uint256 indexed id, bool bounded);

    /// @notice Token id
    uint256 public constant ZOKIO_SBT_ID = 1;

    /// @notice Token base uri
    string internal _uri;

    /// @notice Mint start time
    uint256 public startsAt = 1703116800;

    /// @notice Mint end time
    uint256 public endsAt = 1703203200;

    /// @notice Max mints per wallet
    uint256 public maxPerWallet = 5;

    /// @notice Token unit price
    uint256 public price = 0.04 ether;

    /// @notice Max supply of token
    uint256 public maxSupply = 1000;

    /// @notice Total minted supply of token
    uint256 public totalMinted = 0;

    /// @notice Total burned tokens
    uint256 public numBurned = 0;

    /// @notice Soulbound token associations
    mapping(uint256 => bool) private soulbounds;

    constructor(string memory zokioUri) ERC1155P() {
        _initializeOwner(msg.sender);
        _uri = zokioUri;
        setSoulbound(ZOKIO_SBT_ID, true);
    }

    /// @dev Returns the name of the token.
    function name() public view virtual override returns(string memory){
        return "ZokioVerseSBT";
    }

    /// @dev Returns the symbol of the token.
    function symbol() public view virtual override returns(string memory){
        return "ZKSBT";
    }

    /**
    * @notice Public mint
    * @param amount The amount of nfs to send
    */
    function mint(uint256 amount) external payable {
        if (block.timestamp < startsAt || block.timestamp > endsAt) revert NotLive();
        if (amount + _numberMinted(msg.sender, ZOKIO_SBT_ID) > maxPerWallet) revert ExceedMaxPerWallet();
        if (msg.value != price * amount) revert WrongValueSent();
        if (amount + totalMinted > maxSupply) revert ExceedMaxSupply();
        totalMinted += amount;
        _mint(msg.sender, ZOKIO_SBT_ID, amount, "");
    }

    /**
    * @notice Burn token
    * @param amount The amount of nfs to burn
    */
    function burn(uint256 amount) external payable {
        numBurned += amount;
        _burn(msg.sender, ZOKIO_SBT_ID, amount);
    }

    /**
    * @dev This just ignores the token id
    * @notice Returns the total supply of a token id
    * @param tokenId The token id to consider for supply
    */
    function totalSupply(uint256 tokenId) external view returns (uint256) {
        return totalMinted - numBurned;
    }

    /**
    * @notice Owner mint
    * @param to Address to send to
    * @param amount The amount of nfs to send
    */
    function ownerMint(address to, uint256 amount) external onlyOwner {
        if (amount + totalMinted > maxSupply) revert ExceedMaxSupply();
        totalMinted += amount;
        _mint(to, ZOKIO_SBT_ID, amount, "");
    }

    /// @dev Just return a single templated string
    function uri(uint256 id) public view override returns (string memory){
        return _uri;
    }

    /**
    * @notice Set new uri
    * @param uri_ A templated uri string
    */
    function setBaseUri(string calldata uri_) external onlyOwner {
        _uri = uri_;
    }

    /**
    * @notice Set a mint configuration window
    * @param _startsAt The mint start time
    * @param _endsAt The mint end time
    * @param _price The mint price
    * @param _maxSupply The mint max supply
    * @param _maxPerWallet The mint max per wallet
    */
    function setMintConfig(uint256 _startsAt, uint256 _endsAt, uint256 _price, uint256 _maxSupply, uint256 _maxPerWallet) external onlyOwner {
        startsAt = _startsAt;
        endsAt = _endsAt;
        price = _price;
        maxSupply = _maxSupply;
        maxPerWallet = _maxPerWallet;
    }

    /// @notice Withdraw the eths
    function withdraw() external onlyOwner {
        (bool success, ) = payable(msg.sender).call{value: address(this).balance}("");
        if (!success) revert FailedToWithdraw();
    }

    /// @dev Returns true if a token type `id` is soulbound.
    function isSoulbound(uint256 id) public view virtual returns (bool) {
        return soulbounds[id];
    }

    /**
    * @notice Set whether a token is soulbound or not
    * @param id The token id to bound
    * @param soulbound Is it soulbound?
    */
    function setSoulbound(uint256 id, bool soulbound) public onlyOwner {
        soulbounds[id] = soulbound;
        emit Soulbound(id, soulbound);
    }

    /// @dev Prevent any listings
    function setApprovalForAll(address operator, bool approved) public override {
        revert CannotApprove();
    }

    /// @dev Prevent transfers to addresses outside of zero addy
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, id, amount, data);
        if (isSoulbound(id) && from != address(0) && to != address(0)) {
            revert CannotTransfer();
        }
    }

    /// @dev Prevent transfers to addresses outside of zero addy
    function _beforeBatchTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeBatchTokenTransfer(operator, from, to, ids, amounts, data);
        for (uint256 i = 0; i < ids.length; ++i) {
            if (isSoulbound(ids[i]) && from != address(0) && to != address(0)) {
                revert CannotTransfer();
            }
        }
    }
}

File 4 of 4 : Ownable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @notice Simple single owner authorization mixin.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/auth/Ownable.sol)
///
/// @dev Note:
/// This implementation does NOT auto-initialize the owner to `msg.sender`.
/// You MUST call the `_initializeOwner` in the constructor / initializer.
///
/// While the ownable portion follows
/// [EIP-173](https://eips.ethereum.org/EIPS/eip-173) for compatibility,
/// the nomenclature for the 2-step ownership handover may be unique to this codebase.
abstract contract Ownable {
    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                       CUSTOM ERRORS                        */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The caller is not authorized to call the function.
    error Unauthorized();

    /// @dev The `newOwner` cannot be the zero address.
    error NewOwnerIsZeroAddress();

    /// @dev The `pendingOwner` does not have a valid handover request.
    error NoHandoverRequest();

    /// @dev Cannot double-initialize.
    error AlreadyInitialized();

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                           EVENTS                           */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The ownership is transferred from `oldOwner` to `newOwner`.
    /// This event is intentionally kept the same as OpenZeppelin's Ownable to be
    /// compatible with indexers and [EIP-173](https://eips.ethereum.org/EIPS/eip-173),
    /// despite it not being as lightweight as a single argument event.
    event OwnershipTransferred(address indexed oldOwner, address indexed newOwner);

    /// @dev An ownership handover to `pendingOwner` has been requested.
    event OwnershipHandoverRequested(address indexed pendingOwner);

    /// @dev The ownership handover to `pendingOwner` has been canceled.
    event OwnershipHandoverCanceled(address indexed pendingOwner);

    /// @dev `keccak256(bytes("OwnershipTransferred(address,address)"))`.
    uint256 private constant _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE =
        0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0;

    /// @dev `keccak256(bytes("OwnershipHandoverRequested(address)"))`.
    uint256 private constant _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE =
        0xdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d;

    /// @dev `keccak256(bytes("OwnershipHandoverCanceled(address)"))`.
    uint256 private constant _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE =
        0xfa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92;

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                          STORAGE                           */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev The owner slot is given by:
    /// `bytes32(~uint256(uint32(bytes4(keccak256("_OWNER_SLOT_NOT")))))`.
    /// It is intentionally chosen to be a high value
    /// to avoid collision with lower slots.
    /// The choice of manual storage layout is to enable compatibility
    /// with both regular and upgradeable contracts.
    bytes32 internal constant _OWNER_SLOT =
        0xffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927;

    /// The ownership handover slot of `newOwner` is given by:
    /// ```
    ///     mstore(0x00, or(shl(96, user), _HANDOVER_SLOT_SEED))
    ///     let handoverSlot := keccak256(0x00, 0x20)
    /// ```
    /// It stores the expiry timestamp of the two-step ownership handover.
    uint256 private constant _HANDOVER_SLOT_SEED = 0x389a75e1;

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                     INTERNAL FUNCTIONS                     */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Override to return true to make `_initializeOwner` prevent double-initialization.
    function _guardInitializeOwner() internal pure virtual returns (bool guard) {}

    /// @dev Initializes the owner directly without authorization guard.
    /// This function must be called upon initialization,
    /// regardless of whether the contract is upgradeable or not.
    /// This is to enable generalization to both regular and upgradeable contracts,
    /// and to save gas in case the initial owner is not the caller.
    /// For performance reasons, this function will not check if there
    /// is an existing owner.
    function _initializeOwner(address newOwner) internal virtual {
        if (_guardInitializeOwner()) {
            /// @solidity memory-safe-assembly
            assembly {
                let ownerSlot := _OWNER_SLOT
                if sload(ownerSlot) {
                    mstore(0x00, 0x0dc149f0) // `AlreadyInitialized()`.
                    revert(0x1c, 0x04)
                }
                // Clean the upper 96 bits.
                newOwner := shr(96, shl(96, newOwner))
                // Store the new value.
                sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))
                // Emit the {OwnershipTransferred} event.
                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)
            }
        } else {
            /// @solidity memory-safe-assembly
            assembly {
                // Clean the upper 96 bits.
                newOwner := shr(96, shl(96, newOwner))
                // Store the new value.
                sstore(_OWNER_SLOT, newOwner)
                // Emit the {OwnershipTransferred} event.
                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, 0, newOwner)
            }
        }
    }

    /// @dev Sets the owner directly without authorization guard.
    function _setOwner(address newOwner) internal virtual {
        if (_guardInitializeOwner()) {
            /// @solidity memory-safe-assembly
            assembly {
                let ownerSlot := _OWNER_SLOT
                // Clean the upper 96 bits.
                newOwner := shr(96, shl(96, newOwner))
                // Emit the {OwnershipTransferred} event.
                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)
                // Store the new value.
                sstore(ownerSlot, or(newOwner, shl(255, iszero(newOwner))))
            }
        } else {
            /// @solidity memory-safe-assembly
            assembly {
                let ownerSlot := _OWNER_SLOT
                // Clean the upper 96 bits.
                newOwner := shr(96, shl(96, newOwner))
                // Emit the {OwnershipTransferred} event.
                log3(0, 0, _OWNERSHIP_TRANSFERRED_EVENT_SIGNATURE, sload(ownerSlot), newOwner)
                // Store the new value.
                sstore(ownerSlot, newOwner)
            }
        }
    }

    /// @dev Throws if the sender is not the owner.
    function _checkOwner() internal view virtual {
        /// @solidity memory-safe-assembly
        assembly {
            // If the caller is not the stored owner, revert.
            if iszero(eq(caller(), sload(_OWNER_SLOT))) {
                mstore(0x00, 0x82b42900) // `Unauthorized()`.
                revert(0x1c, 0x04)
            }
        }
    }

    /// @dev Returns how long a two-step ownership handover is valid for in seconds.
    /// Override to return a different value if needed.
    /// Made internal to conserve bytecode. Wrap it in a public function if needed.
    function _ownershipHandoverValidFor() internal view virtual returns (uint64) {
        return 48 * 3600;
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                  PUBLIC UPDATE FUNCTIONS                   */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Allows the owner to transfer the ownership to `newOwner`.
    function transferOwnership(address newOwner) public payable virtual onlyOwner {
        /// @solidity memory-safe-assembly
        assembly {
            if iszero(shl(96, newOwner)) {
                mstore(0x00, 0x7448fbae) // `NewOwnerIsZeroAddress()`.
                revert(0x1c, 0x04)
            }
        }
        _setOwner(newOwner);
    }

    /// @dev Allows the owner to renounce their ownership.
    function renounceOwnership() public payable virtual onlyOwner {
        _setOwner(address(0));
    }

    /// @dev Request a two-step ownership handover to the caller.
    /// The request will automatically expire in 48 hours (172800 seconds) by default.
    function requestOwnershipHandover() public payable virtual {
        unchecked {
            uint256 expires = block.timestamp + _ownershipHandoverValidFor();
            /// @solidity memory-safe-assembly
            assembly {
                // Compute and set the handover slot to `expires`.
                mstore(0x0c, _HANDOVER_SLOT_SEED)
                mstore(0x00, caller())
                sstore(keccak256(0x0c, 0x20), expires)
                // Emit the {OwnershipHandoverRequested} event.
                log2(0, 0, _OWNERSHIP_HANDOVER_REQUESTED_EVENT_SIGNATURE, caller())
            }
        }
    }

    /// @dev Cancels the two-step ownership handover to the caller, if any.
    function cancelOwnershipHandover() public payable virtual {
        /// @solidity memory-safe-assembly
        assembly {
            // Compute and set the handover slot to 0.
            mstore(0x0c, _HANDOVER_SLOT_SEED)
            mstore(0x00, caller())
            sstore(keccak256(0x0c, 0x20), 0)
            // Emit the {OwnershipHandoverCanceled} event.
            log2(0, 0, _OWNERSHIP_HANDOVER_CANCELED_EVENT_SIGNATURE, caller())
        }
    }

    /// @dev Allows the owner to complete the two-step ownership handover to `pendingOwner`.
    /// Reverts if there is no existing ownership handover requested by `pendingOwner`.
    function completeOwnershipHandover(address pendingOwner) public payable virtual onlyOwner {
        /// @solidity memory-safe-assembly
        assembly {
            // Compute and set the handover slot to 0.
            mstore(0x0c, _HANDOVER_SLOT_SEED)
            mstore(0x00, pendingOwner)
            let handoverSlot := keccak256(0x0c, 0x20)
            // If the handover does not exist, or has expired.
            if gt(timestamp(), sload(handoverSlot)) {
                mstore(0x00, 0x6f5e8818) // `NoHandoverRequest()`.
                revert(0x1c, 0x04)
            }
            // Set the handover slot to 0.
            sstore(handoverSlot, 0)
        }
        _setOwner(pendingOwner);
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                   PUBLIC READ FUNCTIONS                    */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Returns the owner of the contract.
    function owner() public view virtual returns (address result) {
        /// @solidity memory-safe-assembly
        assembly {
            result := sload(_OWNER_SLOT)
        }
    }

    /// @dev Returns the expiry timestamp for the two-step ownership handover to `pendingOwner`.
    function ownershipHandoverExpiresAt(address pendingOwner)
        public
        view
        virtual
        returns (uint256 result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            // Compute the handover slot.
            mstore(0x0c, _HANDOVER_SLOT_SEED)
            mstore(0x00, pendingOwner)
            // Load the handover slot.
            result := sload(keccak256(0x0c, 0x20))
        }
    }

    /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
    /*                         MODIFIERS                          */
    /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

    /// @dev Marks a function as only callable by the owner.
    modifier onlyOwner() virtual {
        _checkOwner();
        _;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"zokioUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyInitialized","type":"error"},{"inputs":[],"name":"ArrayLengthMismatch","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"BurnExceedsBalance","type":"error"},{"inputs":[],"name":"BurnFromZeroAddress","type":"error"},{"inputs":[],"name":"CannotApprove","type":"error"},{"inputs":[],"name":"CannotTransfer","type":"error"},{"inputs":[],"name":"ExceedMaxPerWallet","type":"error"},{"inputs":[],"name":"ExceedMaxSupply","type":"error"},{"inputs":[],"name":"ExceedsMaximumBalance","type":"error"},{"inputs":[],"name":"ExceedsMaximumTokenId","type":"error"},{"inputs":[],"name":"FailedToWithdraw","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NewOwnerIsZeroAddress","type":"error"},{"inputs":[],"name":"NoHandoverRequest","type":"error"},{"inputs":[],"name":"NotLive","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferExceedsBalance","type":"error"},{"inputs":[],"name":"TransferToNonERC1155ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"WrongValueSent","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":"pendingOwner","type":"address"}],"name":"OwnershipHandoverCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner","type":"address"}],"name":"OwnershipHandoverRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"bool","name":"bounded","type":"bool"}],"name":"Soulbound","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"ZOKIO_SBT_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"cancelOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address"}],"name":"completeOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"endsAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"_approved","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"isSoulbound","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"result","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pendingOwner","type":"address"}],"name":"ownershipHandoverExpiresAt","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"requestOwnershipHandover","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","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":"uri_","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startsAt","type":"uint256"},{"internalType":"uint256","name":"_endsAt","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"}],"name":"setMintConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bool","name":"soulbound","type":"bool"}],"name":"setSoulbound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startsAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526365838000600155636584d1806002556005600355668e1bc9bf0400006004556103e8600555600060065560006007553480156200004157600080fd5b50604051620028ab380380620028ab833981016040819052620000649162000163565b6200006f3362000092565b60006200007d8282620002c9565b506200008b600180620000ce565b5062000395565b6001600160a01b0316638b78c6d8198190558060007f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b620000d86200012f565b600082815260086020908152604091829020805460ff1916841515908117909155915191825283917fe0abe9435049152fa612635eac4022235b6f5c156ecf799bdac41b11b9fa2211910160405180910390a25050565b638b78c6d8195433146200014b576382b429006000526004601cfd5b565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200017757600080fd5b82516001600160401b03808211156200018f57600080fd5b818501915085601f830112620001a457600080fd5b815181811115620001b957620001b96200014d565b604051601f8201601f19908116603f01168101908382118183101715620001e457620001e46200014d565b816040528281528886848701011115620001fd57600080fd5b600093505b8284101562000221578484018601518185018701529285019262000202565b600086848301015280965050505050505092915050565b600181811c908216806200024d57607f821691505b6020821081036200026e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002c4576000816000526020600020601f850160051c810160208610156200029f5750805b601f850160051c820191505b81811015620002c057828155600101620002ab565b5050505b505050565b81516001600160401b03811115620002e557620002e56200014d565b620002fd81620002f6845462000238565b8462000274565b602080601f8311600181146200033557600084156200031c5750858301515b600019600386901b1c1916600185901b178555620002c0565b600085815260208120601f198616915b82811015620003665788860151825594840194600190910190840162000345565b5085821015620003855787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61250680620003a56000396000f3fe6080604052600436106102185760003560e01c8063911ec4701161011d578063af468682116100b0578063e985e9c51161007f578063f242432a11610064578063f242432a14610613578063f2fde38b14610633578063fee81cf41461064657600080fd5b8063e985e9c5146105a2578063f04e283e1461060057600080fd5b8063af46868214610541578063b9796e2914610557578063bd85b0391461056c578063d5abeb011461058c57600080fd5b8063a0712d68116100ec578063a0712d68146104d8578063a0bcfc7f146104eb578063a22cb4651461050b578063a2309ff81461052b57600080fd5b8063911ec4701461042c57806395d89b411461045c578063966d964b146104a2578063a035b1fe146104c257600080fd5b80633ccfd60b116101b05780634e1273f41161017f578063715018a611610164578063715018a6146103d85780638da5cb5b146103e05780638f00b02b1461040c57600080fd5b80634e1273f4146103a357806354d1f13d146103d057600080fd5b80633ccfd60b1461034557806342966c681461035a578063453c23101461036d578063484b973c1461038357600080fd5b80630e89341c116101ec5780630e89341c146102e557806311a040ac14610305578063256929621461031b5780632eb2c2d61461032557600080fd5b8062fdd58e1461021d57806301ffc9a71461025057806306fdde03146102805780630a09284a146102cf575b600080fd5b34801561022957600080fd5b5061023d610238366004611d17565b610679565b6040519081526020015b60405180910390f35b34801561025c57600080fd5b5061027061026b366004611d6f565b61070c565b6040519015158152602001610247565b34801561028c57600080fd5b5060408051808201909152600d81527f5a6f6b696f56657273655342540000000000000000000000000000000000000060208201525b6040516102479190611dd9565b3480156102db57600080fd5b5061023d60025481565b3480156102f157600080fd5b506102c2610300366004611dec565b6107ed565b34801561031157600080fd5b5061023d60075481565b610323610881565b005b34801561033157600080fd5b50610323610340366004611ef4565b6108d1565b34801561035157600080fd5b506103236108e9565b610323610368366004611dec565b610976565b34801561037957600080fd5b5061023d60035481565b34801561038f57600080fd5b5061032361039e366004611d17565b61099a565b3480156103af57600080fd5b506103c36103be366004611fa9565b610a23565b6040516102479190612015565b610323610b1e565b610323610b5a565b3480156103ec57600080fd5b50638b78c6d819546040516001600160a01b039091168152602001610247565b34801561041857600080fd5b50610323610427366004612059565b610b6e565b34801561043857600080fd5b50610270610447366004611dec565b60009081526008602052604090205460ff1690565b34801561046857600080fd5b5060408051808201909152600581527f5a4b53425400000000000000000000000000000000000000000000000000000060208201526102c2565b3480156104ae57600080fd5b506103236104bd3660046120a4565b610b8d565b3480156104ce57600080fd5b5061023d60045481565b6103236104e6366004611dec565b610c0a565b3480156104f757600080fd5b506103236105063660046120d0565b610d65565b34801561051757600080fd5b50610323610526366004612142565b610d7f565b34801561053757600080fd5b5061023d60065481565b34801561054d57600080fd5b5061023d60015481565b34801561056357600080fd5b5061023d600181565b34801561057857600080fd5b5061023d610587366004611dec565b610db1565b34801561059857600080fd5b5061023d60055481565b3480156105ae57600080fd5b506102706105bd36600461216c565b6001600160a01b03918216600090815291167fd0000000000000000000000000000000000000000000000000000000000000001760205260408120908190525490565b61032361060e366004612196565b610dc3565b34801561061f57600080fd5b5061032361062e3660046121b1565b610e00565b610323610641366004612196565b610e14565b34801561065257600080fd5b5061023d610661366004612196565b63389a75e1600c908152600091909152602090205490565b60006001600160a01b0383166106b2576106b27f8f4eb60400000000000000000000000000000000000000000000000000000000610e3b565b600382901c605c84901b7f0ffffffffffffffffffffffffffffffffffffffff000000000000000000000001617600760fd1b176000908152602090205461ffff600584901b60e01690811b909116901c5b90505b92915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316148061079f57507fd9b67a26000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b806107065750507fffffffff00000000000000000000000000000000000000000000000000000000167f0e89341c000000000000000000000000000000000000000000000000000000001490565b6060600080546107fc90612223565b80601f016020809104026020016040519081016040528092919081815260200182805461082890612223565b80156108755780601f1061084a57610100808354040283529160200191610875565b820191906000526020600020905b81548152906001019060200180831161085857829003601f168201915b50505050509050919050565b60006202a30067ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b6108e087878787878787610e45565b50505050505050565b6108f16111be565b604051600090339047908381818185875af1925050503d8060008114610933576040519150601f19603f3d011682016040523d82523d6000602084013e610938565b606091505b5050905080610973576040517f2684a07900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b80600760008282546109889190612273565b909155506109739050336001836111d9565b6109a26111be565b6005546006546109b29083612273565b11156109ea576040517f1e186f7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600660008282546109fc9190612273565b92505081905550610a1f826001836040518060200160405280600081525061136c565b5050565b6060838214610a5557610a557fa24a13a600000000000000000000000000000000000000000000000000000000610e3b565b60008467ffffffffffffffff811115610a7057610a70611e51565b604051908082528060200260200182016040528015610a99578160200160208202803683370190505b50905060005b85811015610b1457610aef878783818110610abc57610abc612286565b9050602002016020810190610ad19190612196565b868684818110610ae357610ae3612286565b90506020020135610679565b828281518110610b0157610b01612286565b6020908102919091010152600101610a9f565b5095945050505050565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b610b626111be565b610b6c600061161f565b565b610b766111be565b600194909455600292909255600455600555600355565b610b956111be565b60008281526008602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016841515908117909155915191825283917fe0abe9435049152fa612635eac4022235b6f5c156ecf799bdac41b11b9fa2211910160405180910390a25050565b600154421080610c1b575060025442115b15610c52576040517fbaf13b3f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600354610c6033600161165d565b610c6a9083612273565b1115610ca2576040517fd900aa8a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600454610cb0919061229c565b3414610ce8576040517f2f4613eb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600554600654610cf89083612273565b1115610d30576040517f1e186f7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060066000828254610d429190612273565b92505081905550610973336001836040518060200160405280600081525061136c565b610d6d6111be565b6000610d7a8284836122fb565b505050565b6040517f4ba84e0d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060075460065461070691906123bb565b610dcb6111be565b63389a75e1600c52806000526020600c208054421115610df357636f5e88186000526004601cfd5b600090556109738161161f565b610e0d85858585856116f0565b5050505050565b610e1c6111be565b8060601b610e3257637448fbae6000526004601cfd5b6109738161161f565b8060005260046000fd5b6001600160a01b038616610e7c57610e7c7fea553b3400000000000000000000000000000000000000000000000000000000610e3b565b838214610eac57610eac7fa24a13a600000000000000000000000000000000000000000000000000000000610e3b565b6001600160a01b0387163314610ef357610ec687336105bd565b610ef357610ef37f59c896be00000000000000000000000000000000000000000000000000000000610e3b565b33610f0481898989898989896119a1565b60005b85811015611115576000878783818110610f2357610f23612286565b9050602002013590506000868684818110610f4057610f40612286565b9050602002013590506b7fffffffffffffffffffffff821115610f6d57610f6d63467777f160e11b610e3b565b600760fd1b7f0ffffffffffffffffffffffffffffffffffffffff00000000000000000000000605c8d901b16600384901c17176000908152602090205461ffff60e0600585901b1690811b909116901c80821115610fee57610fee7f169b037b00000000000000000000000000000000000000000000000000000000610e3b565b8a6001600160a01b03168c6001600160a01b03161461110757600760fd1b7f0ffffffffffffffffffffffffffffffffffffffff00000000000000000000000605c8d901b16600385901c171760009081526020902054908290039061ffff60e0600586901b1681811b90921690911c83019081111561107757611077630b6cdf5d60e41b610e3b565b6110be8d85848160031c8360601b60041c17600760fd1b176000526020600020600052806007831660051b1b6000515461ffff6007851660051b1b19161760005155505050565b6111058c85838160031c8360601b60041c17600760fd1b176000526020600020600052806007831660051b1b6000515461ffff6007851660051b1b19161760005155505050565b505b836001019350505050610f07565b50604051604081528560200260600160208201528560408201528560200287606083013783866020026060830101528360200285876020026080840101378789837f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8760400260800185a4506001600160a01b0387163b156111b4576111a088888888888888611a44565b6111b4576111b4639c05499b60e01b610e3b565b5050505050505050565b638b78c6d819543314610b6c576382b429006000526004601cfd5b6b7fffffffffffffffffffffff8211156111fd576111fd63467777f160e11b610e3b565b6001600160a01b038316611234576112347fb817eee700000000000000000000000000000000000000000000000000000000610e3b565b600033905061125781856000868660405180602001604052806000815250611b7a565b600760fd1b7f0ffffffffffffffffffffffffffffffffffffffff00000000000000000000000605c86901b16600385901c17176000908152602090205461ffff60e0600586901b1690811b909116901c808311156112d8576112d87f588569f700000000000000000000000000000000000000000000000000000000610e3b565b8290036113228585838160031c8360601b60041c17600760fd1b176000526020600020600052806007831660051b1b6000515461ffff6007851660051b1b19161760005155505050565b604051848152836020820152600086847fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62604085a450604080516020810190915260009052610e0d565b6b7fffffffffffffffffffffff8311156113905761139063467777f160e11b610e3b565b6001600160a01b0384166113c7576113c77f2e07630000000000000000000000000000000000000000000000000000000000610e3b565b816000036113f8576113f87fb562e8dd00000000000000000000000000000000000000000000000000000000610e3b565b3361140881600087878787611b7a565b600384901c605c86901b7f0ffffffffffffffffffffffffffffffffffffffff000000000000000000000001617600760fd1b176000908152602081205461ffff600587901b60e01690811b909116901c905083810161ffff81111561147757611477630b6cdf5d60e41b610e3b565b8181101561148f5761148f630b6cdf5d60e41b610e3b565b6114d68787838160031c8360601b60041c17600760fd1b176000526020600020600052806007831660051b1b6000515461ffff6007851660051b1b19161760005155505050565b600760fd1b7f0ffffffffffffffffffffffffffffffffffffffff00000000000000000000000605c89901b16600388901c17176000908152602090205463ffff000060e0600589901b1690811b909116901c60101c85810161ffff81111561154857611548630b6cdf5d60e41b610e3b565b8181101561156057611560630b6cdf5d60e41b610e3b565b6115ac8989838160031c8360601b60041c17600760fd1b1760005260206000206000528060101b6007831660051b1b6000515463ffff00006007851660051b1b19161760005155505050565b604051888152876020820152896000877fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62604085a4506001600160a01b0389163b156116145761160060008a8a8a8a611bf3565b61161457611614639c05499b60e01b610e3b565b505050505050505050565b638b78c6d81980546001600160a01b039092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a355565b60006001600160a01b038316611696576116967f8f4eb60400000000000000000000000000000000000000000000000000000000610e3b565b600382901c605c84901b7f0ffffffffffffffffffffffffffffffffffffffff000000000000000000000001617600760fd1b176000908152602090205463ffff0000600584901b60e01690811b909116901c60101c610703565b6b7fffffffffffffffffffffff8311156117145761171463467777f160e11b610e3b565b6001600160a01b03841661174b5761174b7fea553b3400000000000000000000000000000000000000000000000000000000610e3b565b6001600160a01b03851633146117925761176585336105bd565b611792576117927f59c896be00000000000000000000000000000000000000000000000000000000610e3b565b336117a1818787878787611b7a565b600760fd1b7f0ffffffffffffffffffffffffffffffffffffffff00000000000000000000000605c88901b16600386901c17176000908152602090205461ffff60e0600587901b1690811b909116901c80841115611822576118227f169b037b00000000000000000000000000000000000000000000000000000000610e3b565b856001600160a01b0316876001600160a01b03161461193b57600760fd1b7f0ffffffffffffffffffffffffffffffffffffffff00000000000000000000000605c88901b16600387901c171760009081526020902054908490039061ffff60e0600588901b1681811b90921690911c8501908111156118ab576118ab630b6cdf5d60e41b610e3b565b6118f28887848160031c8360601b60041c17600760fd1b176000526020600020600052806007831660051b1b6000515461ffff6007851660051b1b19161760005155505050565b6119398787838160031c8360601b60041c17600760fd1b176000526020600020600052806007831660051b1b6000515461ffff6007851660051b1b19161760005155505050565b505b6040518581528460208201528688847fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62604085a4506001600160a01b0386163b156108e05761198d8787878787611bf3565b6108e0576108e0639c05499b60e01b610e3b565b60005b84811015611614576119dd8686838181106119c1576119c1612286565b9050602002013560009081526008602052604090205460ff1690565b80156119f157506001600160a01b03881615155b8015611a0557506001600160a01b03871615155b15611a3c576040517fcc7744d500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001016119a4565b6040517fbc197c810000000000000000000000000000000000000000000000000000000081526000906001600160a01b0388169063bc197c8190611a989033908c908b908b908b908b908b90600401612419565b6020604051808303816000875af1925050508015611ad3575060408051601f3d908101601f19168201909252611ad09181019061247b565b60015b611b28573d808015611b01576040519150601f19603f3d011682016040523d82523d6000602084013e611b06565b606091505b508051600003611b2057611b20639c05499b60e01b610e3b565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167fbc197c81000000000000000000000000000000000000000000000000000000001490505b979650505050505050565b60008381526008602052604090205460ff168015611ba057506001600160a01b03851615155b8015611bb457506001600160a01b03841615155b15611beb576040517fcc7744d500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050505050565b6040517ff23a6e610000000000000000000000000000000000000000000000000000000081526000906001600160a01b0386169063f23a6e6190611c439033908a90899089908990600401612498565b6020604051808303816000875af1925050508015611c7e575060408051601f3d908101601f19168201909252611c7b9181019061247b565b60015b611cac573d808015611b01576040519150601f19603f3d011682016040523d82523d6000602084013e611b06565b7fffffffff00000000000000000000000000000000000000000000000000000000167ff23a6e610000000000000000000000000000000000000000000000000000000014905095945050505050565b80356001600160a01b0381168114611d1257600080fd5b919050565b60008060408385031215611d2a57600080fd5b611d3383611cfb565b946020939093013593505050565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461097357600080fd5b600060208284031215611d8157600080fd5b8135611d8c81611d41565b9392505050565b6000815180845260005b81811015611db957602081850181015186830182015201611d9d565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006107036020830184611d93565b600060208284031215611dfe57600080fd5b5035919050565b60008083601f840112611e1757600080fd5b50813567ffffffffffffffff811115611e2f57600080fd5b6020830191508360208260051b8501011115611e4a57600080fd5b9250929050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112611e7857600080fd5b813567ffffffffffffffff80821115611e9357611e93611e51565b604051601f8301601f19908116603f01168101908282118183101715611ebb57611ebb611e51565b81604052838152866020858801011115611ed457600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600080600060a0888a031215611f0f57600080fd5b611f1888611cfb565b9650611f2660208901611cfb565b9550604088013567ffffffffffffffff80821115611f4357600080fd5b611f4f8b838c01611e05565b909750955060608a0135915080821115611f6857600080fd5b611f748b838c01611e05565b909550935060808a0135915080821115611f8d57600080fd5b50611f9a8a828b01611e67565b91505092959891949750929550565b60008060008060408587031215611fbf57600080fd5b843567ffffffffffffffff80821115611fd757600080fd5b611fe388838901611e05565b90965094506020870135915080821115611ffc57600080fd5b5061200987828801611e05565b95989497509550505050565b6020808252825182820181905260009190848201906040850190845b8181101561204d57835183529284019291840191600101612031565b50909695505050505050565b600080600080600060a0868803121561207157600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b80358015158114611d1257600080fd5b600080604083850312156120b757600080fd5b823591506120c760208401612094565b90509250929050565b600080602083850312156120e357600080fd5b823567ffffffffffffffff808211156120fb57600080fd5b818501915085601f83011261210f57600080fd5b81358181111561211e57600080fd5b86602082850101111561213057600080fd5b60209290920196919550909350505050565b6000806040838503121561215557600080fd5b61215e83611cfb565b91506120c760208401612094565b6000806040838503121561217f57600080fd5b61218883611cfb565b91506120c760208401611cfb565b6000602082840312156121a857600080fd5b61070382611cfb565b600080600080600060a086880312156121c957600080fd5b6121d286611cfb565b94506121e060208701611cfb565b93506040860135925060608601359150608086013567ffffffffffffffff81111561220a57600080fd5b61221688828901611e67565b9150509295509295909350565b600181811c9082168061223757607f821691505b60208210810361225757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156107065761070661225d565b634e487b7160e01b600052603260045260246000fd5b80820281158282048414176107065761070661225d565b601f821115610d7a576000816000526020600020601f850160051c810160208610156122dc5750805b601f850160051c820191505b81811015611beb578281556001016122e8565b67ffffffffffffffff83111561231357612313611e51565b612327836123218354612223565b836122b3565b6000601f84116001811461235b57600085156123435750838201355b600019600387901b1c1916600186901b178355610e0d565b600083815260209020601f19861690835b8281101561238c578685013582556020948501946001909201910161236c565b50868210156123a95760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b818103818111156107065761070661225d565b81835260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83111561240057600080fd5b8260051b80836020870137939093016020019392505050565b60006001600160a01b03808a16835280891660208401525060a0604083015261244660a0830187896123ce565b82810360608401526124598186886123ce565b9050828103608084015261246d8185611d93565b9a9950505050505050505050565b60006020828403121561248d57600080fd5b8151611d8c81611d41565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152611b6f60a0830184611d9356fea264697066735822122041f469182cf807e126f02159ce8e038920961f48cf1ad1bde05c4215bdd9e18264736f6c634300081600330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004c697066733a2f2f626166796265696663337a7a756a6c6634616862757032657a7179366f71797168373533736474786f6c67657634797774743369776174776c76752f7b69647d2e6a736f6e0000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102185760003560e01c8063911ec4701161011d578063af468682116100b0578063e985e9c51161007f578063f242432a11610064578063f242432a14610613578063f2fde38b14610633578063fee81cf41461064657600080fd5b8063e985e9c5146105a2578063f04e283e1461060057600080fd5b8063af46868214610541578063b9796e2914610557578063bd85b0391461056c578063d5abeb011461058c57600080fd5b8063a0712d68116100ec578063a0712d68146104d8578063a0bcfc7f146104eb578063a22cb4651461050b578063a2309ff81461052b57600080fd5b8063911ec4701461042c57806395d89b411461045c578063966d964b146104a2578063a035b1fe146104c257600080fd5b80633ccfd60b116101b05780634e1273f41161017f578063715018a611610164578063715018a6146103d85780638da5cb5b146103e05780638f00b02b1461040c57600080fd5b80634e1273f4146103a357806354d1f13d146103d057600080fd5b80633ccfd60b1461034557806342966c681461035a578063453c23101461036d578063484b973c1461038357600080fd5b80630e89341c116101ec5780630e89341c146102e557806311a040ac14610305578063256929621461031b5780632eb2c2d61461032557600080fd5b8062fdd58e1461021d57806301ffc9a71461025057806306fdde03146102805780630a09284a146102cf575b600080fd5b34801561022957600080fd5b5061023d610238366004611d17565b610679565b6040519081526020015b60405180910390f35b34801561025c57600080fd5b5061027061026b366004611d6f565b61070c565b6040519015158152602001610247565b34801561028c57600080fd5b5060408051808201909152600d81527f5a6f6b696f56657273655342540000000000000000000000000000000000000060208201525b6040516102479190611dd9565b3480156102db57600080fd5b5061023d60025481565b3480156102f157600080fd5b506102c2610300366004611dec565b6107ed565b34801561031157600080fd5b5061023d60075481565b610323610881565b005b34801561033157600080fd5b50610323610340366004611ef4565b6108d1565b34801561035157600080fd5b506103236108e9565b610323610368366004611dec565b610976565b34801561037957600080fd5b5061023d60035481565b34801561038f57600080fd5b5061032361039e366004611d17565b61099a565b3480156103af57600080fd5b506103c36103be366004611fa9565b610a23565b6040516102479190612015565b610323610b1e565b610323610b5a565b3480156103ec57600080fd5b50638b78c6d819546040516001600160a01b039091168152602001610247565b34801561041857600080fd5b50610323610427366004612059565b610b6e565b34801561043857600080fd5b50610270610447366004611dec565b60009081526008602052604090205460ff1690565b34801561046857600080fd5b5060408051808201909152600581527f5a4b53425400000000000000000000000000000000000000000000000000000060208201526102c2565b3480156104ae57600080fd5b506103236104bd3660046120a4565b610b8d565b3480156104ce57600080fd5b5061023d60045481565b6103236104e6366004611dec565b610c0a565b3480156104f757600080fd5b506103236105063660046120d0565b610d65565b34801561051757600080fd5b50610323610526366004612142565b610d7f565b34801561053757600080fd5b5061023d60065481565b34801561054d57600080fd5b5061023d60015481565b34801561056357600080fd5b5061023d600181565b34801561057857600080fd5b5061023d610587366004611dec565b610db1565b34801561059857600080fd5b5061023d60055481565b3480156105ae57600080fd5b506102706105bd36600461216c565b6001600160a01b03918216600090815291167fd0000000000000000000000000000000000000000000000000000000000000001760205260408120908190525490565b61032361060e366004612196565b610dc3565b34801561061f57600080fd5b5061032361062e3660046121b1565b610e00565b610323610641366004612196565b610e14565b34801561065257600080fd5b5061023d610661366004612196565b63389a75e1600c908152600091909152602090205490565b60006001600160a01b0383166106b2576106b27f8f4eb60400000000000000000000000000000000000000000000000000000000610e3b565b600382901c605c84901b7f0ffffffffffffffffffffffffffffffffffffffff000000000000000000000001617600760fd1b176000908152602090205461ffff600584901b60e01690811b909116901c5b90505b92915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316148061079f57507fd9b67a26000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b806107065750507fffffffff00000000000000000000000000000000000000000000000000000000167f0e89341c000000000000000000000000000000000000000000000000000000001490565b6060600080546107fc90612223565b80601f016020809104026020016040519081016040528092919081815260200182805461082890612223565b80156108755780601f1061084a57610100808354040283529160200191610875565b820191906000526020600020905b81548152906001019060200180831161085857829003601f168201915b50505050509050919050565b60006202a30067ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b6108e087878787878787610e45565b50505050505050565b6108f16111be565b604051600090339047908381818185875af1925050503d8060008114610933576040519150601f19603f3d011682016040523d82523d6000602084013e610938565b606091505b5050905080610973576040517f2684a07900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b80600760008282546109889190612273565b909155506109739050336001836111d9565b6109a26111be565b6005546006546109b29083612273565b11156109ea576040517f1e186f7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600660008282546109fc9190612273565b92505081905550610a1f826001836040518060200160405280600081525061136c565b5050565b6060838214610a5557610a557fa24a13a600000000000000000000000000000000000000000000000000000000610e3b565b60008467ffffffffffffffff811115610a7057610a70611e51565b604051908082528060200260200182016040528015610a99578160200160208202803683370190505b50905060005b85811015610b1457610aef878783818110610abc57610abc612286565b9050602002016020810190610ad19190612196565b868684818110610ae357610ae3612286565b90506020020135610679565b828281518110610b0157610b01612286565b6020908102919091010152600101610a9f565b5095945050505050565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b610b626111be565b610b6c600061161f565b565b610b766111be565b600194909455600292909255600455600555600355565b610b956111be565b60008281526008602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016841515908117909155915191825283917fe0abe9435049152fa612635eac4022235b6f5c156ecf799bdac41b11b9fa2211910160405180910390a25050565b600154421080610c1b575060025442115b15610c52576040517fbaf13b3f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600354610c6033600161165d565b610c6a9083612273565b1115610ca2576040517fd900aa8a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600454610cb0919061229c565b3414610ce8576040517f2f4613eb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600554600654610cf89083612273565b1115610d30576040517f1e186f7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060066000828254610d429190612273565b92505081905550610973336001836040518060200160405280600081525061136c565b610d6d6111be565b6000610d7a8284836122fb565b505050565b6040517f4ba84e0d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060075460065461070691906123bb565b610dcb6111be565b63389a75e1600c52806000526020600c208054421115610df357636f5e88186000526004601cfd5b600090556109738161161f565b610e0d85858585856116f0565b5050505050565b610e1c6111be565b8060601b610e3257637448fbae6000526004601cfd5b6109738161161f565b8060005260046000fd5b6001600160a01b038616610e7c57610e7c7fea553b3400000000000000000000000000000000000000000000000000000000610e3b565b838214610eac57610eac7fa24a13a600000000000000000000000000000000000000000000000000000000610e3b565b6001600160a01b0387163314610ef357610ec687336105bd565b610ef357610ef37f59c896be00000000000000000000000000000000000000000000000000000000610e3b565b33610f0481898989898989896119a1565b60005b85811015611115576000878783818110610f2357610f23612286565b9050602002013590506000868684818110610f4057610f40612286565b9050602002013590506b7fffffffffffffffffffffff821115610f6d57610f6d63467777f160e11b610e3b565b600760fd1b7f0ffffffffffffffffffffffffffffffffffffffff00000000000000000000000605c8d901b16600384901c17176000908152602090205461ffff60e0600585901b1690811b909116901c80821115610fee57610fee7f169b037b00000000000000000000000000000000000000000000000000000000610e3b565b8a6001600160a01b03168c6001600160a01b03161461110757600760fd1b7f0ffffffffffffffffffffffffffffffffffffffff00000000000000000000000605c8d901b16600385901c171760009081526020902054908290039061ffff60e0600586901b1681811b90921690911c83019081111561107757611077630b6cdf5d60e41b610e3b565b6110be8d85848160031c8360601b60041c17600760fd1b176000526020600020600052806007831660051b1b6000515461ffff6007851660051b1b19161760005155505050565b6111058c85838160031c8360601b60041c17600760fd1b176000526020600020600052806007831660051b1b6000515461ffff6007851660051b1b19161760005155505050565b505b836001019350505050610f07565b50604051604081528560200260600160208201528560408201528560200287606083013783866020026060830101528360200285876020026080840101378789837f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8760400260800185a4506001600160a01b0387163b156111b4576111a088888888888888611a44565b6111b4576111b4639c05499b60e01b610e3b565b5050505050505050565b638b78c6d819543314610b6c576382b429006000526004601cfd5b6b7fffffffffffffffffffffff8211156111fd576111fd63467777f160e11b610e3b565b6001600160a01b038316611234576112347fb817eee700000000000000000000000000000000000000000000000000000000610e3b565b600033905061125781856000868660405180602001604052806000815250611b7a565b600760fd1b7f0ffffffffffffffffffffffffffffffffffffffff00000000000000000000000605c86901b16600385901c17176000908152602090205461ffff60e0600586901b1690811b909116901c808311156112d8576112d87f588569f700000000000000000000000000000000000000000000000000000000610e3b565b8290036113228585838160031c8360601b60041c17600760fd1b176000526020600020600052806007831660051b1b6000515461ffff6007851660051b1b19161760005155505050565b604051848152836020820152600086847fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62604085a450604080516020810190915260009052610e0d565b6b7fffffffffffffffffffffff8311156113905761139063467777f160e11b610e3b565b6001600160a01b0384166113c7576113c77f2e07630000000000000000000000000000000000000000000000000000000000610e3b565b816000036113f8576113f87fb562e8dd00000000000000000000000000000000000000000000000000000000610e3b565b3361140881600087878787611b7a565b600384901c605c86901b7f0ffffffffffffffffffffffffffffffffffffffff000000000000000000000001617600760fd1b176000908152602081205461ffff600587901b60e01690811b909116901c905083810161ffff81111561147757611477630b6cdf5d60e41b610e3b565b8181101561148f5761148f630b6cdf5d60e41b610e3b565b6114d68787838160031c8360601b60041c17600760fd1b176000526020600020600052806007831660051b1b6000515461ffff6007851660051b1b19161760005155505050565b600760fd1b7f0ffffffffffffffffffffffffffffffffffffffff00000000000000000000000605c89901b16600388901c17176000908152602090205463ffff000060e0600589901b1690811b909116901c60101c85810161ffff81111561154857611548630b6cdf5d60e41b610e3b565b8181101561156057611560630b6cdf5d60e41b610e3b565b6115ac8989838160031c8360601b60041c17600760fd1b1760005260206000206000528060101b6007831660051b1b6000515463ffff00006007851660051b1b19161760005155505050565b604051888152876020820152896000877fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62604085a4506001600160a01b0389163b156116145761160060008a8a8a8a611bf3565b61161457611614639c05499b60e01b610e3b565b505050505050505050565b638b78c6d81980546001600160a01b039092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a355565b60006001600160a01b038316611696576116967f8f4eb60400000000000000000000000000000000000000000000000000000000610e3b565b600382901c605c84901b7f0ffffffffffffffffffffffffffffffffffffffff000000000000000000000001617600760fd1b176000908152602090205463ffff0000600584901b60e01690811b909116901c60101c610703565b6b7fffffffffffffffffffffff8311156117145761171463467777f160e11b610e3b565b6001600160a01b03841661174b5761174b7fea553b3400000000000000000000000000000000000000000000000000000000610e3b565b6001600160a01b03851633146117925761176585336105bd565b611792576117927f59c896be00000000000000000000000000000000000000000000000000000000610e3b565b336117a1818787878787611b7a565b600760fd1b7f0ffffffffffffffffffffffffffffffffffffffff00000000000000000000000605c88901b16600386901c17176000908152602090205461ffff60e0600587901b1690811b909116901c80841115611822576118227f169b037b00000000000000000000000000000000000000000000000000000000610e3b565b856001600160a01b0316876001600160a01b03161461193b57600760fd1b7f0ffffffffffffffffffffffffffffffffffffffff00000000000000000000000605c88901b16600387901c171760009081526020902054908490039061ffff60e0600588901b1681811b90921690911c8501908111156118ab576118ab630b6cdf5d60e41b610e3b565b6118f28887848160031c8360601b60041c17600760fd1b176000526020600020600052806007831660051b1b6000515461ffff6007851660051b1b19161760005155505050565b6119398787838160031c8360601b60041c17600760fd1b176000526020600020600052806007831660051b1b6000515461ffff6007851660051b1b19161760005155505050565b505b6040518581528460208201528688847fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62604085a4506001600160a01b0386163b156108e05761198d8787878787611bf3565b6108e0576108e0639c05499b60e01b610e3b565b60005b84811015611614576119dd8686838181106119c1576119c1612286565b9050602002013560009081526008602052604090205460ff1690565b80156119f157506001600160a01b03881615155b8015611a0557506001600160a01b03871615155b15611a3c576040517fcc7744d500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001016119a4565b6040517fbc197c810000000000000000000000000000000000000000000000000000000081526000906001600160a01b0388169063bc197c8190611a989033908c908b908b908b908b908b90600401612419565b6020604051808303816000875af1925050508015611ad3575060408051601f3d908101601f19168201909252611ad09181019061247b565b60015b611b28573d808015611b01576040519150601f19603f3d011682016040523d82523d6000602084013e611b06565b606091505b508051600003611b2057611b20639c05499b60e01b610e3b565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167fbc197c81000000000000000000000000000000000000000000000000000000001490505b979650505050505050565b60008381526008602052604090205460ff168015611ba057506001600160a01b03851615155b8015611bb457506001600160a01b03841615155b15611beb576040517fcc7744d500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050505050565b6040517ff23a6e610000000000000000000000000000000000000000000000000000000081526000906001600160a01b0386169063f23a6e6190611c439033908a90899089908990600401612498565b6020604051808303816000875af1925050508015611c7e575060408051601f3d908101601f19168201909252611c7b9181019061247b565b60015b611cac573d808015611b01576040519150601f19603f3d011682016040523d82523d6000602084013e611b06565b7fffffffff00000000000000000000000000000000000000000000000000000000167ff23a6e610000000000000000000000000000000000000000000000000000000014905095945050505050565b80356001600160a01b0381168114611d1257600080fd5b919050565b60008060408385031215611d2a57600080fd5b611d3383611cfb565b946020939093013593505050565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461097357600080fd5b600060208284031215611d8157600080fd5b8135611d8c81611d41565b9392505050565b6000815180845260005b81811015611db957602081850181015186830182015201611d9d565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006107036020830184611d93565b600060208284031215611dfe57600080fd5b5035919050565b60008083601f840112611e1757600080fd5b50813567ffffffffffffffff811115611e2f57600080fd5b6020830191508360208260051b8501011115611e4a57600080fd5b9250929050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112611e7857600080fd5b813567ffffffffffffffff80821115611e9357611e93611e51565b604051601f8301601f19908116603f01168101908282118183101715611ebb57611ebb611e51565b81604052838152866020858801011115611ed457600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600080600060a0888a031215611f0f57600080fd5b611f1888611cfb565b9650611f2660208901611cfb565b9550604088013567ffffffffffffffff80821115611f4357600080fd5b611f4f8b838c01611e05565b909750955060608a0135915080821115611f6857600080fd5b611f748b838c01611e05565b909550935060808a0135915080821115611f8d57600080fd5b50611f9a8a828b01611e67565b91505092959891949750929550565b60008060008060408587031215611fbf57600080fd5b843567ffffffffffffffff80821115611fd757600080fd5b611fe388838901611e05565b90965094506020870135915080821115611ffc57600080fd5b5061200987828801611e05565b95989497509550505050565b6020808252825182820181905260009190848201906040850190845b8181101561204d57835183529284019291840191600101612031565b50909695505050505050565b600080600080600060a0868803121561207157600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b80358015158114611d1257600080fd5b600080604083850312156120b757600080fd5b823591506120c760208401612094565b90509250929050565b600080602083850312156120e357600080fd5b823567ffffffffffffffff808211156120fb57600080fd5b818501915085601f83011261210f57600080fd5b81358181111561211e57600080fd5b86602082850101111561213057600080fd5b60209290920196919550909350505050565b6000806040838503121561215557600080fd5b61215e83611cfb565b91506120c760208401612094565b6000806040838503121561217f57600080fd5b61218883611cfb565b91506120c760208401611cfb565b6000602082840312156121a857600080fd5b61070382611cfb565b600080600080600060a086880312156121c957600080fd5b6121d286611cfb565b94506121e060208701611cfb565b93506040860135925060608601359150608086013567ffffffffffffffff81111561220a57600080fd5b61221688828901611e67565b9150509295509295909350565b600181811c9082168061223757607f821691505b60208210810361225757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156107065761070661225d565b634e487b7160e01b600052603260045260246000fd5b80820281158282048414176107065761070661225d565b601f821115610d7a576000816000526020600020601f850160051c810160208610156122dc5750805b601f850160051c820191505b81811015611beb578281556001016122e8565b67ffffffffffffffff83111561231357612313611e51565b612327836123218354612223565b836122b3565b6000601f84116001811461235b57600085156123435750838201355b600019600387901b1c1916600186901b178355610e0d565b600083815260209020601f19861690835b8281101561238c578685013582556020948501946001909201910161236c565b50868210156123a95760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b818103818111156107065761070661225d565b81835260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83111561240057600080fd5b8260051b80836020870137939093016020019392505050565b60006001600160a01b03808a16835280891660208401525060a0604083015261244660a0830187896123ce565b82810360608401526124598186886123ce565b9050828103608084015261246d8185611d93565b9a9950505050505050505050565b60006020828403121561248d57600080fd5b8151611d8c81611d41565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152611b6f60a0830184611d9356fea264697066735822122041f469182cf807e126f02159ce8e038920961f48cf1ad1bde05c4215bdd9e18264736f6c63430008160033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004c697066733a2f2f626166796265696663337a7a756a6c6634616862757032657a7179366f71797168373533736474786f6c67657634797774743369776174776c76752f7b69647d2e6a736f6e0000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : zokioUri (string): ipfs://bafybeifc3zzujlf4ahbup2ezqy6oqyqh753sdtxolgev4ywtt3iwatwlvu/{id}.json

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000004c
Arg [2] : 697066733a2f2f626166796265696663337a7a756a6c6634616862757032657a
Arg [3] : 7179366f71797168373533736474786f6c67657634797774743369776174776c
Arg [4] : 76752f7b69647d2e6a736f6e0000000000000000000000000000000000000000


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.