ETH Price: $3,092.69 (+2.08%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Burn Items237884282025-11-13 6:14:595 days ago1763014499IN
0xDf719fb3...6E5952F3C
0 ETH0.000009050.0861744
Burn Items237628432025-11-09 16:18:119 days ago1762705091IN
0xDf719fb3...6E5952F3C
0 ETH0.000218912.08444191
Burn Items237627472025-11-09 15:58:599 days ago1762703939IN
0xDf719fb3...6E5952F3C
0 ETH0.000222282.1160521
Burn Items236716042025-10-27 21:57:5922 days ago1761602279IN
0xDf719fb3...6E5952F3C
0 ETH0.000225052.14292786
Burn Items236059412025-10-18 17:12:2331 days ago1760807543IN
0xDf719fb3...6E5952F3C
0 ETH0.000180231.71575456
Burn Items232565182025-08-30 21:02:5980 days ago1756587779IN
0xDf719fb3...6E5952F3C
0 ETH0.000118671.12991688
Burn Items232564672025-08-30 20:52:4780 days ago1756587167IN
0xDf719fb3...6E5952F3C
0 ETH0.000127211.15823185
Burn Items232239622025-08-26 8:02:1184 days ago1756195331IN
0xDf719fb3...6E5952F3C
0 ETH0.000153841.46489667
Burn Items232239582025-08-26 8:01:2384 days ago1756195283IN
0xDf719fb3...6E5952F3C
0 ETH0.000155071.47644512
Burn Items230694472025-08-04 18:19:47106 days ago1754331587IN
0xDf719fb3...6E5952F3C
0 ETH0.000053560.51
Burn Items230694422025-08-04 18:18:47106 days ago1754331527IN
0xDf719fb3...6E5952F3C
0 ETH0.000060910.58
Burn Items230694352025-08-04 18:17:23106 days ago1754331443IN
0xDf719fb3...6E5952F3C
0 ETH0.000059860.57
Burn Items230490262025-08-01 21:50:23109 days ago1754085023IN
0xDf719fb3...6E5952F3C
0 ETH0.000255442.32574274
Burn Items230439262025-08-01 4:45:11109 days ago1754023511IN
0xDf719fb3...6E5952F3C
0 ETH0.000244722.22818203
Burn Items230439212025-08-01 4:44:11109 days ago1754023451IN
0xDf719fb3...6E5952F3C
0 ETH0.000245252.23324295
Burn Items230439182025-08-01 4:43:35109 days ago1754023415IN
0xDf719fb3...6E5952F3C
0 ETH0.000244342.22471609
Burn Items230438882025-08-01 4:37:23109 days ago1754023043IN
0xDf719fb3...6E5952F3C
0 ETH0.000247032.24918888
Burn Items230438762025-08-01 4:34:59109 days ago1754022899IN
0xDf719fb3...6E5952F3C
0 ETH0.000246862.24767602
Burn Items230364922025-07-31 3:45:11110 days ago1753933511IN
0xDf719fb3...6E5952F3C
0 ETH0.000275722.62516106
Burn Items230364832025-07-31 3:43:23110 days ago1753933403IN
0xDf719fb3...6E5952F3C
0 ETH0.000266322.53563452
Burn Items230359422025-07-31 1:54:11110 days ago1753926851IN
0xDf719fb3...6E5952F3C
0 ETH0.000271032.58073069
Burn Items230359352025-07-31 1:52:47110 days ago1753926767IN
0xDf719fb3...6E5952F3C
0 ETH0.000266372.53608447
Burn Items230331562025-07-30 16:32:59111 days ago1753893179IN
0xDf719fb3...6E5952F3C
0 ETH0.000505224.81017104
Burn Items230331462025-07-30 16:30:59111 days ago1753893059IN
0xDf719fb3...6E5952F3C
0 ETH0.000511464.86953962
Burn Items230309762025-07-30 9:14:23111 days ago1753866863IN
0xDf719fb3...6E5952F3C
0 ETH0.000431894.11203842
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ChainZokuBurnItems

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./interfaces/IChainzokuItem.sol";
import "./libs/interfaces/IERC1155Proxy.sol";
import "./libs/Initialize.sol";
import "./libs/Pause.sol";
import "./libs/Signature.sol";

// @author: miinded.com

contract ChainZokuBurnItems is IChainzokuItem, Initialize, Signature, ReentrancyGuard, Pause {
    using BitMaps for BitMaps.BitMap;

    BitMaps.BitMap private internalIdFlagged;

    function init(
        address _signAddress
    ) public onlyOwner isNotInitialized {
        Signature.setSignAddress(_signAddress);
        Signature.setHashSign(784875);
    }

    function BurnItems(
        CollectionItems[] memory _collectionItems,
        uint256 _internalId,
        bytes memory _signature
    ) public notPaused signedUnique(_burnCollectionItemsValid(_collectionItems, _internalId), _internalId, _signature) nonReentrant {

        for (uint256 i = 0; i < _collectionItems.length; i++) {
            _burnItems(_collectionItems[i]);
        }
    }

    function _burnItems(CollectionItems memory _collectionItem) private {
        require(_collectionItem.action == Action.Burn, "ChainZokuBurnItems: action is not Burn");

        uint256 totalCount = 0;
        for (uint256 i = 0; i < _collectionItem.counts.length; i++) {
            totalCount += _collectionItem.counts[i];
        }
        require(_collectionItem.internalIds.length == totalCount, "ChainZokuBurnItems: internalIds length mismatch");

        for (uint256 i = 0; i < _collectionItem.internalIds.length; i++) {
            _flagInternalId(_collectionItem.internalIds[i]);
        }

        IERC1155Proxy(_collectionItem.collection).burnBatch(_msgSender(), _collectionItem.ids, _collectionItem.counts);

        emit FlagItems(_collectionItem.internalIds, uint8(_collectionItem.action), 0);
    }

    function _flagInternalId(uint256 _internalId) internal {
        require(internalIdFlagged.get(_internalId) == false, "ChainZokuBurnItems: internalId already flag");
        internalIdFlagged.set(_internalId);
    }

    function _burnCollectionItemsValid(CollectionItems[] memory _items, uint256 _internalId) private view returns (bytes32) {
        return keccak256(abi.encodePacked(_msgSender(), keccak256(abi.encode(_items)), _internalId, HASH_SIGN));
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @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 IERC1155 is IERC165 {
    /**
     * @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;
}

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

pragma solidity ^0.8.0;

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/BitMaps.sol)
pragma solidity ^0.8.0;

/**
 * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential.
 * Largely inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor].
 */
library BitMaps {
    struct BitMap {
        mapping(uint256 => uint256) _data;
    }

    /**
     * @dev Returns whether the bit at `index` is set.
     */
    function get(BitMap storage bitmap, uint256 index) internal view returns (bool) {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        return bitmap._data[bucket] & mask != 0;
    }

    /**
     * @dev Sets the bit at `index` to the boolean `value`.
     */
    function setTo(
        BitMap storage bitmap,
        uint256 index,
        bool value
    ) internal {
        if (value) {
            set(bitmap, index);
        } else {
            unset(bitmap, index);
        }
    }

    /**
     * @dev Sets the bit at `index`.
     */
    function set(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        bitmap._data[bucket] |= mask;
    }

    /**
     * @dev Unsets the bit at `index`.
     */
    function unset(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        bitmap._data[bucket] &= ~mask;
    }
}

File 11 of 16 : IChainzokuItem.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

// @author: miinded.com

interface IChainzokuItem {

    enum Action {Mint, Transfer, Burn}

    struct CollectionItems {
        address collection;
        Action action;
        uint256[] ids;
        uint256[] counts;
        uint256[] internalIds;
    }

    event FlagItems(uint256[] internalIds, uint8 action, uint256 zokuTokenId);

}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";

// @author: miinded.com

abstract contract Admins is Ownable{

    mapping(address => bool) private admins;

    /**
    @dev check if the address is admin or not
    **/
    function isAdmin(address _admin) public view returns(bool) {
        return admins[_admin];
    }

    /**
    @dev Set the wallet address who can pass the onlyAdmin modifier
    **/
    function setAdminAddress(address _admin, bool _active) public virtual onlyOwner {
        admins[_admin] = _active;
    }

    /**
    @notice Check if the sender is owner() or admin
    **/
    modifier onlyOwnerOrAdmins() {
        require(admins[_msgSender()] == true || owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

}

File 13 of 16 : Initialize.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

// @author: miinded.com

abstract contract Initialize {

    bool private _initialized = false;

    modifier isNotInitialized() {
        require(_initialized == false, "Already Initialized");
        _;
        _initialized = true;
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";

// @author: miinded.com

interface IERC1155Proxy is IERC1155{
    function mint(address _wallet, uint256 _id, uint256 _count) external;
    function mintBatch(address _wallet, uint256[] memory _ids, uint256[] memory _counts) external;
    function burn(address _wallet, uint256 _id, uint256 _count) external;
    function burnBatch(address _wallet, uint256[] memory _id, uint256[] memory _count) external;
}

File 15 of 16 : Pause.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./Admins.sol";

// @author: miinded.com

abstract contract Pause is Admins{

    bool public pause = false;

    modifier notPaused(){
        if(_msgSender() != owner()){
            require(pause == false, "Contract paused");
        }
        _;
    }

    function setPause(bool _pause) public onlyOwnerOrAdmins {
        pause = _pause;
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/structs/BitMaps.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "./Admins.sol";

// @author: miinded.com

abstract contract Signature is Admins{
    using BitMaps for BitMaps.BitMap;

    uint256 public HASH_SIGN;

    address public signAddress;
    BitMaps.BitMap private signatureIds;

    modifier signedNotUnique(bytes32 _hash, bytes memory _signature){
        require(checkSignature(_hash, _signature) == signAddress, "Signature error: bad result");
        _;
    }
    modifier signedUnique(bytes32 _hash, uint256 _signatureId, bytes memory _signature){
        require(signatureIds.get(_signatureId) == false, "Signature already used");
        require(checkSignature(_hash, _signature) == signAddress, "Signature error: bad result");
        signatureIds.set(_signatureId);
        _;
    }

    function setHashSign(uint256 _hash) public virtual onlyOwnerOrAdmins {
        HASH_SIGN = _hash;
    }

    function setSignAddress(address _signAddress) public virtual onlyOwnerOrAdmins {
        signAddress = _signAddress;
    }

    function checkSignature(bytes32 _hash, bytes memory _signature) public pure virtual returns (address) {
        return ECDSA.recover(keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", _hash)), _signature);
    }
}

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

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"internalIds","type":"uint256[]"},{"indexed":false,"internalType":"uint8","name":"action","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"zokuTokenId","type":"uint256"}],"name":"FlagItems","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"components":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"enum IChainzokuItem.Action","name":"action","type":"uint8"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"counts","type":"uint256[]"},{"internalType":"uint256[]","name":"internalIds","type":"uint256[]"}],"internalType":"struct IChainzokuItem.CollectionItems[]","name":"_collectionItems","type":"tuple[]"},{"internalType":"uint256","name":"_internalId","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"BurnItems","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"HASH_SIGN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"checkSignature","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_signAddress","type":"address"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"bool","name":"_active","type":"bool"}],"name":"setAdminAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_hash","type":"uint256"}],"name":"setHashSign","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signAddress","type":"address"}],"name":"setSignAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000805460ff1990811690915560068054909116905534801561002657600080fd5b506100303361003a565b6001600555610093565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b611557806100a26000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063715018a61161008c5780638da5cb5b116100665780638da5cb5b146101e8578063bedb86fb146101fe578063f079fcb614610211578063f2fde38b1461022457600080fd5b8063715018a6146101c0578063831c9e2e146101c85780638456cb59146101db57600080fd5b806319ab453c116100c857806319ab453c1461014757806324d7806c1461015a578063320d9cc1146101965780635bc63820146101ad57600080fd5b8063021d145b146100ef5780630682bdbc146101045780631513704514610134575b600080fd5b6101026100fd3660046110a0565b610237565b005b600354610117906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61010261014236600461121d565b610415565b61010261015536600461121d565b6104cf565b61018661016836600461121d565b6001600160a01b031660009081526001602052604090205460ff1690565b604051901515815260200161012b565b61019f60025481565b60405190815260200161012b565b6101026101bb366004611248565b61054f565b610102610582565b6101176101d636600461127b565b610596565b6006546101869060ff1681565b60005461010090046001600160a01b0316610117565b61010261020c3660046112c2565b6105f5565b61010261021f3660046112dd565b610688565b61010261023236600461121d565b61070d565b60005461010090046001600160a01b03166001600160a01b0316336001600160a01b0316146102b85760065460ff16156102b85760405162461bcd60e51b815260206004820152600f60248201527f436f6e747261637420706175736564000000000000000000000000000000000060448201526064015b60405180910390fd5b6102c2838361079d565b600883901c60009081526004602052604090205483908390600160ff84161b161561032f5760405162461bcd60e51b815260206004820152601660248201527f5369676e617475726520616c726561647920757365640000000000000000000060448201526064016102af565b6003546001600160a01b03166103458483610596565b6001600160a01b03161461039b5760405162461bcd60e51b815260206004820152601b60248201527f5369676e6174757265206572726f723a2062616420726573756c74000000000060448201526064016102af565b600882901c60009081526004602052604090208054600160ff85161b1790556103c2610839565b60005b8651811015610402576103f08782815181106103e3576103e36112f6565b6020026020010151610892565b806103fa81611322565b9150506103c5565b5061040d6001600555565b505050505050565b3360009081526001602081905260409091205460ff161515148061044957506000546001600160a01b036101009091041633145b6104955760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102af565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6104d7610af3565b60005460ff161561052a5760405162461bcd60e51b815260206004820152601360248201527f416c726561647920496e697469616c697a65640000000000000000000000000060448201526064016102af565b61053381610415565b61053f620bf9eb610688565b506000805460ff19166001179055565b610557610af3565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b61058a610af3565b6105946000610b53565b565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000906105ec90605c016040516020818303038152906040528051906020012083610bc3565b90505b92915050565b3360009081526001602081905260409091205460ff161515148061062957506000546001600160a01b036101009091041633145b6106755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102af565b6006805460ff1916911515919091179055565b3360009081526001602081905260409091205460ff16151514806106bc57506000546001600160a01b036101009091041633145b6107085760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102af565b600255565b610715610af3565b6001600160a01b0381166107915760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102af565b61079a81610b53565b50565b600033836040516020016107b191906113ab565b604051602081830303815290604052805190602001208360025460405160200161081b949392919060609490941b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016845260148401929092526034830152605482015260740190565b60405160208183030381529060405280519060200120905092915050565b60026005540361088b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102af565b6002600555565b6002816020015160028111156108aa576108aa61135a565b1461091d5760405162461bcd60e51b815260206004820152602660248201527f436861696e5a6f6b754275726e4974656d733a20616374696f6e206973206e6f60448201527f74204275726e000000000000000000000000000000000000000000000000000060648201526084016102af565b6000805b82606001515181101561096b5782606001518181518110610944576109446112f6565b60200260200101518261095791906114a8565b91508061096381611322565b915050610921565b5080826080015151146109e65760405162461bcd60e51b815260206004820152602f60248201527f436861696e5a6f6b754275726e4974656d733a20696e7465726e616c4964732060448201527f6c656e677468206d69736d61746368000000000000000000000000000000000060648201526084016102af565b60005b826080015151811015610a2e57610a1c83608001518281518110610a0f57610a0f6112f6565b6020026020010151610be7565b80610a2681611322565b9150506109e9565b5081516001600160a01b0316636b20c45433846040015185606001516040518463ffffffff1660e01b8152600401610a68939291906114bb565b600060405180830381600087803b158015610a8257600080fd5b505af1158015610a96573d6000803e3d6000fd5b505050507fa3466cbebcaadcf267007a364ffcd1081db515ec5d0b39c5e2758537bd1a1e88826080015183602001516002811115610ad657610ad661135a565b6000604051610ae7939291906114f9565b60405180910390a15050565b6000546001600160a01b036101009091041633146105945760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102af565b600080546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b6000806000610bd28585610c98565b91509150610bdf81610cdd565b509392505050565b600881901c600090815260076020526040902054600160ff83161b1615610c765760405162461bcd60e51b815260206004820152602b60248201527f436861696e5a6f6b754275726e4974656d733a20696e7465726e616c4964206160448201527f6c726561647920666c616700000000000000000000000000000000000000000060648201526084016102af565b600881901c60009081526007602052604090208054600160ff84161b17905550565b6000808251604103610cce5760208301516040840151606085015160001a610cc287828585610e42565b94509450505050610cd6565b506000905060025b9250929050565b6000816004811115610cf157610cf161135a565b03610cf95750565b6001816004811115610d0d57610d0d61135a565b03610d5a5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016102af565b6002816004811115610d6e57610d6e61135a565b03610dbb5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016102af565b6003816004811115610dcf57610dcf61135a565b0361079a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016102af565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610e795750600090506003610efd565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610ecd573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610ef657600060019250925050610efd565b9150600090505b94509492505050565b634e487b7160e01b600052604160045260246000fd5b60405160a0810167ffffffffffffffff81118282101715610f3f57610f3f610f06565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610f6e57610f6e610f06565b604052919050565b600067ffffffffffffffff821115610f9057610f90610f06565b5060051b60200190565b80356001600160a01b0381168114610fb157600080fd5b919050565b803560038110610fb157600080fd5b600082601f830112610fd657600080fd5b81356020610feb610fe683610f76565b610f45565b82815260059290921b8401810191818101908684111561100a57600080fd5b8286015b84811015611025578035835291830191830161100e565b509695505050505050565b600082601f83011261104157600080fd5b813567ffffffffffffffff81111561105b5761105b610f06565b61106e6020601f19601f84011601610f45565b81815284602083860101111561108357600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000606084860312156110b557600080fd5b833567ffffffffffffffff808211156110cd57600080fd5b818601915086601f8301126110e157600080fd5b813560206110f1610fe683610f76565b82815260059290921b8401810191818101908a84111561111057600080fd5b8286015b848110156111e85780358681111561112b57600080fd5b870160a0818e03601f1901121561114157600080fd5b611149610f1c565b611154868301610f9a565b815261116260408301610fb6565b8682015260608201358881111561117857600080fd5b6111868f8883860101610fc5565b60408301525060808201358881111561119f5760008081fd5b6111ad8f8883860101610fc5565b60608301525060a0820135888111156111c65760008081fd5b6111d48f8883860101610fc5565b608083015250845250918301918301611114565b50975050870135945050604086013591508082111561120657600080fd5b5061121386828701611030565b9150509250925092565b60006020828403121561122f57600080fd5b6105ec82610f9a565b80358015158114610fb157600080fd5b6000806040838503121561125b57600080fd5b61126483610f9a565b915061127260208401611238565b90509250929050565b6000806040838503121561128e57600080fd5b82359150602083013567ffffffffffffffff8111156112ac57600080fd5b6112b885828601611030565b9150509250929050565b6000602082840312156112d457600080fd5b6105ec82611238565b6000602082840312156112ef57600080fd5b5035919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036113535761135361130c565b5060010190565b634e487b7160e01b600052602160045260246000fd5b600081518084526020808501945080840160005b838110156113a057815187529582019590820190600101611384565b509495945050505050565b60006020808301818452808551808352604092508286019150828160051b8701018488016000805b84811015611499577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08a8503018652825160a06001600160a01b038251168652898201516003811061143357634e487b7160e01b85526021600452602485fd5b868b01528189015189870182905261144d82880182611370565b915050606080830151878303828901526114678382611370565b92505050608080830151925086820381880152506114858183611370565b978a019795505050918701916001016113d3565b50919998505050505050505050565b808201808211156105ef576105ef61130c565b6001600160a01b03841681526060602082015260006114dd6060830185611370565b82810360408401526114ef8185611370565b9695505050505050565b60608152600061150c6060830186611370565b60ff949094166020830152506040015291905056fea2646970667358221220aab77e3ec0c395309de725285869d261cb1c4716d00935e1338b6d6951c76c9464736f6c63430008110033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063715018a61161008c5780638da5cb5b116100665780638da5cb5b146101e8578063bedb86fb146101fe578063f079fcb614610211578063f2fde38b1461022457600080fd5b8063715018a6146101c0578063831c9e2e146101c85780638456cb59146101db57600080fd5b806319ab453c116100c857806319ab453c1461014757806324d7806c1461015a578063320d9cc1146101965780635bc63820146101ad57600080fd5b8063021d145b146100ef5780630682bdbc146101045780631513704514610134575b600080fd5b6101026100fd3660046110a0565b610237565b005b600354610117906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61010261014236600461121d565b610415565b61010261015536600461121d565b6104cf565b61018661016836600461121d565b6001600160a01b031660009081526001602052604090205460ff1690565b604051901515815260200161012b565b61019f60025481565b60405190815260200161012b565b6101026101bb366004611248565b61054f565b610102610582565b6101176101d636600461127b565b610596565b6006546101869060ff1681565b60005461010090046001600160a01b0316610117565b61010261020c3660046112c2565b6105f5565b61010261021f3660046112dd565b610688565b61010261023236600461121d565b61070d565b60005461010090046001600160a01b03166001600160a01b0316336001600160a01b0316146102b85760065460ff16156102b85760405162461bcd60e51b815260206004820152600f60248201527f436f6e747261637420706175736564000000000000000000000000000000000060448201526064015b60405180910390fd5b6102c2838361079d565b600883901c60009081526004602052604090205483908390600160ff84161b161561032f5760405162461bcd60e51b815260206004820152601660248201527f5369676e617475726520616c726561647920757365640000000000000000000060448201526064016102af565b6003546001600160a01b03166103458483610596565b6001600160a01b03161461039b5760405162461bcd60e51b815260206004820152601b60248201527f5369676e6174757265206572726f723a2062616420726573756c74000000000060448201526064016102af565b600882901c60009081526004602052604090208054600160ff85161b1790556103c2610839565b60005b8651811015610402576103f08782815181106103e3576103e36112f6565b6020026020010151610892565b806103fa81611322565b9150506103c5565b5061040d6001600555565b505050505050565b3360009081526001602081905260409091205460ff161515148061044957506000546001600160a01b036101009091041633145b6104955760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102af565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6104d7610af3565b60005460ff161561052a5760405162461bcd60e51b815260206004820152601360248201527f416c726561647920496e697469616c697a65640000000000000000000000000060448201526064016102af565b61053381610415565b61053f620bf9eb610688565b506000805460ff19166001179055565b610557610af3565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b61058a610af3565b6105946000610b53565b565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000906105ec90605c016040516020818303038152906040528051906020012083610bc3565b90505b92915050565b3360009081526001602081905260409091205460ff161515148061062957506000546001600160a01b036101009091041633145b6106755760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102af565b6006805460ff1916911515919091179055565b3360009081526001602081905260409091205460ff16151514806106bc57506000546001600160a01b036101009091041633145b6107085760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102af565b600255565b610715610af3565b6001600160a01b0381166107915760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102af565b61079a81610b53565b50565b600033836040516020016107b191906113ab565b604051602081830303815290604052805190602001208360025460405160200161081b949392919060609490941b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016845260148401929092526034830152605482015260740190565b60405160208183030381529060405280519060200120905092915050565b60026005540361088b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102af565b6002600555565b6002816020015160028111156108aa576108aa61135a565b1461091d5760405162461bcd60e51b815260206004820152602660248201527f436861696e5a6f6b754275726e4974656d733a20616374696f6e206973206e6f60448201527f74204275726e000000000000000000000000000000000000000000000000000060648201526084016102af565b6000805b82606001515181101561096b5782606001518181518110610944576109446112f6565b60200260200101518261095791906114a8565b91508061096381611322565b915050610921565b5080826080015151146109e65760405162461bcd60e51b815260206004820152602f60248201527f436861696e5a6f6b754275726e4974656d733a20696e7465726e616c4964732060448201527f6c656e677468206d69736d61746368000000000000000000000000000000000060648201526084016102af565b60005b826080015151811015610a2e57610a1c83608001518281518110610a0f57610a0f6112f6565b6020026020010151610be7565b80610a2681611322565b9150506109e9565b5081516001600160a01b0316636b20c45433846040015185606001516040518463ffffffff1660e01b8152600401610a68939291906114bb565b600060405180830381600087803b158015610a8257600080fd5b505af1158015610a96573d6000803e3d6000fd5b505050507fa3466cbebcaadcf267007a364ffcd1081db515ec5d0b39c5e2758537bd1a1e88826080015183602001516002811115610ad657610ad661135a565b6000604051610ae7939291906114f9565b60405180910390a15050565b6000546001600160a01b036101009091041633146105945760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102af565b600080546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b6000806000610bd28585610c98565b91509150610bdf81610cdd565b509392505050565b600881901c600090815260076020526040902054600160ff83161b1615610c765760405162461bcd60e51b815260206004820152602b60248201527f436861696e5a6f6b754275726e4974656d733a20696e7465726e616c4964206160448201527f6c726561647920666c616700000000000000000000000000000000000000000060648201526084016102af565b600881901c60009081526007602052604090208054600160ff84161b17905550565b6000808251604103610cce5760208301516040840151606085015160001a610cc287828585610e42565b94509450505050610cd6565b506000905060025b9250929050565b6000816004811115610cf157610cf161135a565b03610cf95750565b6001816004811115610d0d57610d0d61135a565b03610d5a5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016102af565b6002816004811115610d6e57610d6e61135a565b03610dbb5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016102af565b6003816004811115610dcf57610dcf61135a565b0361079a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016102af565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610e795750600090506003610efd565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610ecd573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610ef657600060019250925050610efd565b9150600090505b94509492505050565b634e487b7160e01b600052604160045260246000fd5b60405160a0810167ffffffffffffffff81118282101715610f3f57610f3f610f06565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610f6e57610f6e610f06565b604052919050565b600067ffffffffffffffff821115610f9057610f90610f06565b5060051b60200190565b80356001600160a01b0381168114610fb157600080fd5b919050565b803560038110610fb157600080fd5b600082601f830112610fd657600080fd5b81356020610feb610fe683610f76565b610f45565b82815260059290921b8401810191818101908684111561100a57600080fd5b8286015b84811015611025578035835291830191830161100e565b509695505050505050565b600082601f83011261104157600080fd5b813567ffffffffffffffff81111561105b5761105b610f06565b61106e6020601f19601f84011601610f45565b81815284602083860101111561108357600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000606084860312156110b557600080fd5b833567ffffffffffffffff808211156110cd57600080fd5b818601915086601f8301126110e157600080fd5b813560206110f1610fe683610f76565b82815260059290921b8401810191818101908a84111561111057600080fd5b8286015b848110156111e85780358681111561112b57600080fd5b870160a0818e03601f1901121561114157600080fd5b611149610f1c565b611154868301610f9a565b815261116260408301610fb6565b8682015260608201358881111561117857600080fd5b6111868f8883860101610fc5565b60408301525060808201358881111561119f5760008081fd5b6111ad8f8883860101610fc5565b60608301525060a0820135888111156111c65760008081fd5b6111d48f8883860101610fc5565b608083015250845250918301918301611114565b50975050870135945050604086013591508082111561120657600080fd5b5061121386828701611030565b9150509250925092565b60006020828403121561122f57600080fd5b6105ec82610f9a565b80358015158114610fb157600080fd5b6000806040838503121561125b57600080fd5b61126483610f9a565b915061127260208401611238565b90509250929050565b6000806040838503121561128e57600080fd5b82359150602083013567ffffffffffffffff8111156112ac57600080fd5b6112b885828601611030565b9150509250929050565b6000602082840312156112d457600080fd5b6105ec82611238565b6000602082840312156112ef57600080fd5b5035919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036113535761135361130c565b5060010190565b634e487b7160e01b600052602160045260246000fd5b600081518084526020808501945080840160005b838110156113a057815187529582019590820190600101611384565b509495945050505050565b60006020808301818452808551808352604092508286019150828160051b8701018488016000805b84811015611499577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08a8503018652825160a06001600160a01b038251168652898201516003811061143357634e487b7160e01b85526021600452602485fd5b868b01528189015189870182905261144d82880182611370565b915050606080830151878303828901526114678382611370565b92505050608080830151925086820381880152506114858183611370565b978a019795505050918701916001016113d3565b50919998505050505050505050565b808201808211156105ef576105ef61130c565b6001600160a01b03841681526060602082015260006114dd6060830185611370565b82810360408401526114ef8185611370565b9695505050505050565b60608152600061150c6060830186611370565b60ff949094166020830152506040015291905056fea2646970667358221220aab77e3ec0c395309de725285869d261cb1c4716d00935e1338b6d6951c76c9464736f6c63430008110033

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.