ETH Price: $3,296.37 (-1.71%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mint Items211950052024-11-15 18:52:5954 days ago1731696779IN
0x0a973CBe...6FDDe9129
0 ETH0.0026656320.95858918
Mint Items211089772024-11-03 18:42:5966 days ago1730659379IN
0x0a973CBe...6FDDe9129
0 ETH0.000988577.77117154
Mint Items211021102024-11-02 19:41:3567 days ago1730576495IN
0x0a973CBe...6FDDe9129
0 ETH0.006647116.30338492
Mint Items210738482024-10-29 21:01:3571 days ago1730235695IN
0x0a973CBe...6FDDe9129
0 ETH0.0051968511.1078558
Mint Items208321832024-09-26 3:45:35105 days ago1727322335IN
0x0a973CBe...6FDDe9129
0 ETH0.0034156910.22404176
Mint Items208285692024-09-25 15:39:35105 days ago1727278775IN
0x0a973CBe...6FDDe9129
0 ETH0.0065705232.78003688
Mint Items207974652024-09-21 7:29:23110 days ago1726903763IN
0x0a973CBe...6FDDe9129
0 ETH0.0017088113.43428939
Mint Items207715732024-09-17 16:38:47113 days ago1726591127IN
0x0a973CBe...6FDDe9129
0 ETH0.0038403330.1889542
Mint Items206027782024-08-25 2:58:35137 days ago1724554715IN
0x0a973CBe...6FDDe9129
0 ETH0.000168241.32285755
Mint Items205641562024-08-19 17:27:11142 days ago1724088431IN
0x0a973CBe...6FDDe9129
0 ETH0.000332152.61104111
Mint Items204701522024-08-06 14:33:23155 days ago1722954803IN
0x0a973CBe...6FDDe9129
0 ETH0.0024782819.48366422
Mint Items202637232024-07-08 18:57:47184 days ago1720465067IN
0x0a973CBe...6FDDe9129
0 ETH0.000523194.11362875
Mint Items201487432024-06-22 17:30:11200 days ago1719077411IN
0x0a973CBe...6FDDe9129
0 ETH0.000683283.06375304
Mint Items201308812024-06-20 5:33:47203 days ago1718861627IN
0x0a973CBe...6FDDe9129
0 ETH0.003741167.29299774
Mint Items200705732024-06-11 19:07:23211 days ago1718132843IN
0x0a973CBe...6FDDe9129
0 ETH0.0016705413.13463481
Mint Items200595302024-06-10 6:06:11213 days ago1717999571IN
0x0a973CBe...6FDDe9129
0 ETH0.001824874.836422
Mint Items200565602024-06-09 20:09:11213 days ago1717963751IN
0x0a973CBe...6FDDe9129
0 ETH0.000818366.43442314
Mint Items200556962024-06-09 17:15:47213 days ago1717953347IN
0x0a973CBe...6FDDe9129
0 ETH0.001394710.96588581
Mint Items200349002024-06-06 19:33:47216 days ago1717702427IN
0x0a973CBe...6FDDe9129
0 ETH0.0200694950.87749519
Mint Items200348922024-06-06 19:32:11216 days ago1717702331IN
0x0a973CBe...6FDDe9129
0 ETH0.0065579651.56197665
Mint Items200195742024-06-04 16:12:59218 days ago1717517579IN
0x0a973CBe...6FDDe9129
0 ETH0.0032984924.69558406
Mint Items200148272024-06-04 0:18:59219 days ago1717460339IN
0x0a973CBe...6FDDe9129
0 ETH0.000821686.15244591
Mint Items200147652024-06-04 0:06:35219 days ago1717459595IN
0x0a973CBe...6FDDe9129
0 ETH0.002261649.25271123
Mint Items200116042024-06-03 13:30:23219 days ago1717421423IN
0x0a973CBe...6FDDe9129
0 ETH0.0017464713.73034503
Mint Items200112862024-06-03 12:26:23219 days ago1717417583IN
0x0a973CBe...6FDDe9129
0 ETH0.001172969.22153832
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ChainZokuCartManager

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 17 : ChainZokuCartManager.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

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

// @author: miinded.com

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

    BitMaps.BitMap private internalIdFlagged;
    address public storedNftContract;

    function init(
        address _storedNftContract,
        address _signAddress
    ) public onlyOwner isNotInitialized {
        storedNftContract = _storedNftContract;
        Signature.setSignAddress(_signAddress);
        Signature.setHashSign(3345547);
    }

    function MintItems(
        CollectionItems[] memory _collectionItems,
        uint256 _internalId,
        bytes memory _signature
    )
    public notPaused signedUnique(_mintCollectionItemsValid(_collectionItems, _internalId), _internalId, _signature) nonReentrant {
        for (uint256 i = 0; i < _collectionItems.length; i++) {
            _mintItems(_collectionItems[i]);
        }
    }

    function _mintItems(CollectionItems memory _collectionItem) internal {
        require(_collectionItem.ids.length == _collectionItem.counts.length, "ChainZokuCartManager: ids,counts length mismatch");

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

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

        if (_collectionItem.action == Action.Mint) {
            IERC1155Proxy(_collectionItem.collection).mintBatch(_msgSender(), _collectionItem.ids, _collectionItem.counts);
        }

        if (_collectionItem.action == Action.Transfer) {
            IStoreNFT(storedNftContract).TransferBatchExternal(_msgSender(), _collectionItem.collection, _collectionItem.ids, _collectionItem.counts);
        }

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

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

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

    function setStoredNftContract(address _storedNftContract) public onlyOwnerOrAdmins {
        storedNftContract = _storedNftContract;
    }
}

File 2 of 17 : ReentrancyGuard.sol
// 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;
    }
}

File 3 of 17 : 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);

}

File 4 of 17 : IStoreNFT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

// @author: miinded.com

interface IStoreNFT {
    function TransferExternal(address _to, address _partnerAddress, uint256 _id, uint256 _count) external;
    function TransferBatchExternal(address _to, address _partnerAddress, uint256[] calldata _ids, uint256[] calldata _counts) external;
    function balanceOf(address _partnerAddress) external returns(uint256);
    function balanceOf(address _partnerAddress, uint256 _id) external returns(uint256);
}

File 5 of 17 : IERC1155Proxy.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

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

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 6 of 17 : Signature.sol
// 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);
    }
}

File 7 of 17 : 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;
    }
}

File 8 of 17 : 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;
    }
}

File 9 of 17 : IERC1155.sol
// 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;
}

File 10 of 17 : IERC165.sol
// 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);
}

File 11 of 17 : BitMaps.sol
// 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 12 of 17 : ECDSA.sol
// 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));
    }
}

File 13 of 17 : Admins.sol
// 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 14 of 17 : Strings.sol
// 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);
    }
}

File 15 of 17 : Math.sol
// 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);
        }
    }
}

File 16 of 17 : Ownable.sol
// 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);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"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":[],"name":"HASH_SIGN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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":"MintItems","outputs":[],"stateMutability":"nonpayable","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":"_storedNftContract","type":"address"},{"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":[{"internalType":"address","name":"_storedNftContract","type":"address"}],"name":"setStoredNftContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"storedNftContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000805460ff1990811690915560068054909116905534801561002657600080fd5b506100303361003a565b6001600555610093565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b61178c806100a26000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c8063831c9e2e11610097578063bedb86fb11610066578063bedb86fb14610227578063f079fcb61461023a578063f09a40161461024d578063f2fde38b1461026057600080fd5b8063831c9e2e146101de5780638456cb59146101f15780638d36a776146101fe5780638da5cb5b1461021157600080fd5b8063320d9cc1116100d3578063320d9cc1146101995780635bc63820146101b0578063715018a6146101c35780637912c33b146101cb57600080fd5b80630682bdbc14610105578063151370451461013557806324d7806c1461014a57806329bf5f8b14610186575b600080fd5b600354610118906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6101486101433660046110e4565b610273565b005b6101766101583660046110e4565b6001600160a01b031660009081526001602052604090205460ff1690565b604051901515815260200161012c565b600854610118906001600160a01b031681565b6101a260025481565b60405190815260200161012c565b6101486101be36600461110f565b610327565b61014861035a565b6101486101d93660046112c0565b61036e565b6101186101ec36600461143d565b610547565b6006546101769060ff1681565b61014861020c3660046110e4565b6105a6565b60005461010090046001600160a01b0316610118565b610148610235366004611484565b610655565b61014861024836600461149f565b6106e8565b61014861025b3660046114b8565b61076d565b61014861026e3660046110e4565b610816565b3360009081526001602081905260409091205460ff16151514806102a757506000546001600160a01b036101009091041633145b6102f85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6003805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b61032f6108a6565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b6103626108a6565b61036c6000610906565b565b60005461010090046001600160a01b03166001600160a01b0316336001600160a01b0316146103ea5760065460ff16156103ea5760405162461bcd60e51b815260206004820152600f60248201527f436f6e747261637420706175736564000000000000000000000000000000000060448201526064016102ef565b6103f48383610976565b600883901c60009081526004602052604090205483908390600160ff84161b16156104615760405162461bcd60e51b815260206004820152601660248201527f5369676e617475726520616c726561647920757365640000000000000000000060448201526064016102ef565b6003546001600160a01b03166104778483610547565b6001600160a01b0316146104cd5760405162461bcd60e51b815260206004820152601c60248201527f5369676e6174757265206572726f72203a2062616420726573756c740000000060448201526064016102ef565b600882901c60009081526004602052604090208054600160ff85161b1790556104f4610a12565b60005b865181101561053457610522878281518110610515576105156114e2565b6020026020010151610a6b565b8061052c8161150e565b9150506104f7565b5061053f6001600555565b505050505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c810183905260009061059d90605c016040516020818303038152906040528051906020012083610d85565b90505b92915050565b3360009081526001602081905260409091205460ff16151514806105da57506000546001600160a01b036101009091041633145b6106265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102ef565b6008805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b3360009081526001602081905260409091205460ff161515148061068957506000546001600160a01b036101009091041633145b6106d55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102ef565b6006805460ff1916911515919091179055565b3360009081526001602081905260409091205460ff161515148061071c57506000546001600160a01b036101009091041633145b6107685760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102ef565b600255565b6107756108a6565b60005460ff16156107c85760405162461bcd60e51b815260206004820152601360248201527f416c726561647920496e697469616c697a65640000000000000000000000000060448201526064016102ef565b6008805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384161790556107f981610273565b61080562330c8b6106e8565b50506000805460ff19166001179055565b61081e6108a6565b6001600160a01b03811661089a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102ef565b6108a381610906565b50565b6000546001600160a01b0361010090910416331461036c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102ef565b600080546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b6000338360405160200161098a9190611597565b60405160208183030381529060405280519060200120836002546040516020016109f4949392919060609490941b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016845260148401929092526034830152605482015260740190565b60405160208183030381529060405280519060200120905092915050565b600260055403610a645760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102ef565b6002600555565b80606001515181604001515114610aea5760405162461bcd60e51b815260206004820152603060248201527f436861696e5a6f6b75436172744d616e616765723a206964732c636f756e747360448201527f206c656e677468206d69736d617463680000000000000000000000000000000060648201526084016102ef565b6000805b826060015151811015610b385782606001518181518110610b1157610b116114e2565b602002602001015182610b249190611694565b915080610b308161150e565b915050610aee565b508082608001515114610bb35760405162461bcd60e51b815260206004820152603160248201527f436861696e5a6f6b75436172744d616e616765723a20696e7465726e616c496460448201527f73206c656e677468206d69736d6174636800000000000000000000000000000060648201526084016102ef565b60005b826080015151811015610bfb57610be983608001518281518110610bdc57610bdc6114e2565b6020026020010151610da9565b80610bf38161150e565b915050610bb6565b50600082602001516002811115610c1457610c14611546565b03610c855781516001600160a01b031663d81d0a1533846040015185606001516040518463ffffffff1660e01b8152600401610c52939291906116a7565b600060405180830381600087803b158015610c6c57600080fd5b505af1158015610c80573d6000803e3d6000fd5b505050505b600182602001516002811115610c9d57610c9d611546565b03610d2c576008548251604080850151606086015191517f98c6ed1e0000000000000000000000000000000000000000000000000000000081526001600160a01b03909416936398c6ed1e93610cf993339391926004016116e5565b600060405180830381600087803b158015610d1357600080fd5b505af1158015610d27573d6000803e3d6000fd5b505050505b7fa3466cbebcaadcf267007a364ffcd1081db515ec5d0b39c5e2758537bd1a1e88826080015183602001516002811115610d6857610d68611546565b6000604051610d799392919061172e565b60405180910390a15050565b6000806000610d948585610e5a565b91509150610da181610e9f565b509392505050565b600881901c600090815260076020526040902054600160ff83161b1615610e385760405162461bcd60e51b815260206004820152602d60248201527f436861696e5a6f6b75436172744d616e616765723a20696e7465726e616c496460448201527f20616c726561647920666c61670000000000000000000000000000000000000060648201526084016102ef565b600881901c60009081526007602052604090208054600160ff84161b17905550565b6000808251604103610e905760208301516040840151606085015160001a610e8487828585611004565b94509450505050610e98565b506000905060025b9250929050565b6000816004811115610eb357610eb3611546565b03610ebb5750565b6001816004811115610ecf57610ecf611546565b03610f1c5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016102ef565b6002816004811115610f3057610f30611546565b03610f7d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016102ef565b6003816004811115610f9157610f91611546565b036108a35760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016102ef565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561103b57506000905060036110bf565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561108f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166110b8576000600192509250506110bf565b9150600090505b94509492505050565b80356001600160a01b03811681146110df57600080fd5b919050565b6000602082840312156110f657600080fd5b61059d826110c8565b803580151581146110df57600080fd5b6000806040838503121561112257600080fd5b61112b836110c8565b9150611139602084016110ff565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b60405160a0810167ffffffffffffffff8111828210171561117b5761117b611142565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156111aa576111aa611142565b604052919050565b600067ffffffffffffffff8211156111cc576111cc611142565b5060051b60200190565b8035600381106110df57600080fd5b600082601f8301126111f657600080fd5b8135602061120b611206836111b2565b611181565b82815260059290921b8401810191818101908684111561122a57600080fd5b8286015b84811015611245578035835291830191830161122e565b509695505050505050565b600082601f83011261126157600080fd5b813567ffffffffffffffff81111561127b5761127b611142565b61128e6020601f19601f84011601611181565b8181528460208386010111156112a357600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000606084860312156112d557600080fd5b833567ffffffffffffffff808211156112ed57600080fd5b818601915086601f83011261130157600080fd5b81356020611311611206836111b2565b82815260059290921b8401810191818101908a84111561133057600080fd5b8286015b848110156114085780358681111561134b57600080fd5b870160a0818e03601f1901121561136157600080fd5b611369611158565b6113748683016110c8565b8152611382604083016111d6565b8682015260608201358881111561139857600080fd5b6113a68f88838601016111e5565b6040830152506080820135888111156113bf5760008081fd5b6113cd8f88838601016111e5565b60608301525060a0820135888111156113e65760008081fd5b6113f48f88838601016111e5565b608083015250845250918301918301611334565b50975050870135945050604086013591508082111561142657600080fd5b5061143386828701611250565b9150509250925092565b6000806040838503121561145057600080fd5b82359150602083013567ffffffffffffffff81111561146e57600080fd5b61147a85828601611250565b9150509250929050565b60006020828403121561149657600080fd5b61059d826110ff565b6000602082840312156114b157600080fd5b5035919050565b600080604083850312156114cb57600080fd5b6114d4836110c8565b9150611139602084016110c8565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361153f5761153f6114f8565b5060010190565b634e487b7160e01b600052602160045260246000fd5b600081518084526020808501945080840160005b8381101561158c57815187529582019590820190600101611570565b509495945050505050565b60006020808301818452808551808352604092508286019150828160051b8701018488016000805b84811015611685577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08a8503018652825160a06001600160a01b038251168652898201516003811061161f57634e487b7160e01b85526021600452602485fd5b868b0152818901518987018290526116398288018261155c565b91505060608083015187830382890152611653838261155c565b9250505060808083015192508682038188015250611671818361155c565b978a019795505050918701916001016115bf565b50919998505050505050505050565b808201808211156105a0576105a06114f8565b6001600160a01b03841681526060602082015260006116c9606083018561155c565b82810360408401526116db818561155c565b9695505050505050565b60006001600160a01b03808716835280861660208401525060806040830152611711608083018561155c565b8281036060840152611723818561155c565b979650505050505050565b606081526000611741606083018661155c565b60ff949094166020830152506040015291905056fea26469706673582212208a43de5e8a8aad04a5a51a46d63f633f8457b1634e8b5e7ac7e44f17541e5d3164736f6c63430008110033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101005760003560e01c8063831c9e2e11610097578063bedb86fb11610066578063bedb86fb14610227578063f079fcb61461023a578063f09a40161461024d578063f2fde38b1461026057600080fd5b8063831c9e2e146101de5780638456cb59146101f15780638d36a776146101fe5780638da5cb5b1461021157600080fd5b8063320d9cc1116100d3578063320d9cc1146101995780635bc63820146101b0578063715018a6146101c35780637912c33b146101cb57600080fd5b80630682bdbc14610105578063151370451461013557806324d7806c1461014a57806329bf5f8b14610186575b600080fd5b600354610118906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6101486101433660046110e4565b610273565b005b6101766101583660046110e4565b6001600160a01b031660009081526001602052604090205460ff1690565b604051901515815260200161012c565b600854610118906001600160a01b031681565b6101a260025481565b60405190815260200161012c565b6101486101be36600461110f565b610327565b61014861035a565b6101486101d93660046112c0565b61036e565b6101186101ec36600461143d565b610547565b6006546101769060ff1681565b61014861020c3660046110e4565b6105a6565b60005461010090046001600160a01b0316610118565b610148610235366004611484565b610655565b61014861024836600461149f565b6106e8565b61014861025b3660046114b8565b61076d565b61014861026e3660046110e4565b610816565b3360009081526001602081905260409091205460ff16151514806102a757506000546001600160a01b036101009091041633145b6102f85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6003805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b61032f6108a6565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b6103626108a6565b61036c6000610906565b565b60005461010090046001600160a01b03166001600160a01b0316336001600160a01b0316146103ea5760065460ff16156103ea5760405162461bcd60e51b815260206004820152600f60248201527f436f6e747261637420706175736564000000000000000000000000000000000060448201526064016102ef565b6103f48383610976565b600883901c60009081526004602052604090205483908390600160ff84161b16156104615760405162461bcd60e51b815260206004820152601660248201527f5369676e617475726520616c726561647920757365640000000000000000000060448201526064016102ef565b6003546001600160a01b03166104778483610547565b6001600160a01b0316146104cd5760405162461bcd60e51b815260206004820152601c60248201527f5369676e6174757265206572726f72203a2062616420726573756c740000000060448201526064016102ef565b600882901c60009081526004602052604090208054600160ff85161b1790556104f4610a12565b60005b865181101561053457610522878281518110610515576105156114e2565b6020026020010151610a6b565b8061052c8161150e565b9150506104f7565b5061053f6001600555565b505050505050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c810183905260009061059d90605c016040516020818303038152906040528051906020012083610d85565b90505b92915050565b3360009081526001602081905260409091205460ff16151514806105da57506000546001600160a01b036101009091041633145b6106265760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102ef565b6008805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b3360009081526001602081905260409091205460ff161515148061068957506000546001600160a01b036101009091041633145b6106d55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102ef565b6006805460ff1916911515919091179055565b3360009081526001602081905260409091205460ff161515148061071c57506000546001600160a01b036101009091041633145b6107685760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102ef565b600255565b6107756108a6565b60005460ff16156107c85760405162461bcd60e51b815260206004820152601360248201527f416c726561647920496e697469616c697a65640000000000000000000000000060448201526064016102ef565b6008805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384161790556107f981610273565b61080562330c8b6106e8565b50506000805460ff19166001179055565b61081e6108a6565b6001600160a01b03811661089a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016102ef565b6108a381610906565b50565b6000546001600160a01b0361010090910416331461036c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102ef565b600080546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b6000338360405160200161098a9190611597565b60405160208183030381529060405280519060200120836002546040516020016109f4949392919060609490941b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016845260148401929092526034830152605482015260740190565b60405160208183030381529060405280519060200120905092915050565b600260055403610a645760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102ef565b6002600555565b80606001515181604001515114610aea5760405162461bcd60e51b815260206004820152603060248201527f436861696e5a6f6b75436172744d616e616765723a206964732c636f756e747360448201527f206c656e677468206d69736d617463680000000000000000000000000000000060648201526084016102ef565b6000805b826060015151811015610b385782606001518181518110610b1157610b116114e2565b602002602001015182610b249190611694565b915080610b308161150e565b915050610aee565b508082608001515114610bb35760405162461bcd60e51b815260206004820152603160248201527f436861696e5a6f6b75436172744d616e616765723a20696e7465726e616c496460448201527f73206c656e677468206d69736d6174636800000000000000000000000000000060648201526084016102ef565b60005b826080015151811015610bfb57610be983608001518281518110610bdc57610bdc6114e2565b6020026020010151610da9565b80610bf38161150e565b915050610bb6565b50600082602001516002811115610c1457610c14611546565b03610c855781516001600160a01b031663d81d0a1533846040015185606001516040518463ffffffff1660e01b8152600401610c52939291906116a7565b600060405180830381600087803b158015610c6c57600080fd5b505af1158015610c80573d6000803e3d6000fd5b505050505b600182602001516002811115610c9d57610c9d611546565b03610d2c576008548251604080850151606086015191517f98c6ed1e0000000000000000000000000000000000000000000000000000000081526001600160a01b03909416936398c6ed1e93610cf993339391926004016116e5565b600060405180830381600087803b158015610d1357600080fd5b505af1158015610d27573d6000803e3d6000fd5b505050505b7fa3466cbebcaadcf267007a364ffcd1081db515ec5d0b39c5e2758537bd1a1e88826080015183602001516002811115610d6857610d68611546565b6000604051610d799392919061172e565b60405180910390a15050565b6000806000610d948585610e5a565b91509150610da181610e9f565b509392505050565b600881901c600090815260076020526040902054600160ff83161b1615610e385760405162461bcd60e51b815260206004820152602d60248201527f436861696e5a6f6b75436172744d616e616765723a20696e7465726e616c496460448201527f20616c726561647920666c61670000000000000000000000000000000000000060648201526084016102ef565b600881901c60009081526007602052604090208054600160ff84161b17905550565b6000808251604103610e905760208301516040840151606085015160001a610e8487828585611004565b94509450505050610e98565b506000905060025b9250929050565b6000816004811115610eb357610eb3611546565b03610ebb5750565b6001816004811115610ecf57610ecf611546565b03610f1c5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016102ef565b6002816004811115610f3057610f30611546565b03610f7d5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016102ef565b6003816004811115610f9157610f91611546565b036108a35760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016102ef565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561103b57506000905060036110bf565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561108f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166110b8576000600192509250506110bf565b9150600090505b94509492505050565b80356001600160a01b03811681146110df57600080fd5b919050565b6000602082840312156110f657600080fd5b61059d826110c8565b803580151581146110df57600080fd5b6000806040838503121561112257600080fd5b61112b836110c8565b9150611139602084016110ff565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b60405160a0810167ffffffffffffffff8111828210171561117b5761117b611142565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156111aa576111aa611142565b604052919050565b600067ffffffffffffffff8211156111cc576111cc611142565b5060051b60200190565b8035600381106110df57600080fd5b600082601f8301126111f657600080fd5b8135602061120b611206836111b2565b611181565b82815260059290921b8401810191818101908684111561122a57600080fd5b8286015b84811015611245578035835291830191830161122e565b509695505050505050565b600082601f83011261126157600080fd5b813567ffffffffffffffff81111561127b5761127b611142565b61128e6020601f19601f84011601611181565b8181528460208386010111156112a357600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000606084860312156112d557600080fd5b833567ffffffffffffffff808211156112ed57600080fd5b818601915086601f83011261130157600080fd5b81356020611311611206836111b2565b82815260059290921b8401810191818101908a84111561133057600080fd5b8286015b848110156114085780358681111561134b57600080fd5b870160a0818e03601f1901121561136157600080fd5b611369611158565b6113748683016110c8565b8152611382604083016111d6565b8682015260608201358881111561139857600080fd5b6113a68f88838601016111e5565b6040830152506080820135888111156113bf5760008081fd5b6113cd8f88838601016111e5565b60608301525060a0820135888111156113e65760008081fd5b6113f48f88838601016111e5565b608083015250845250918301918301611334565b50975050870135945050604086013591508082111561142657600080fd5b5061143386828701611250565b9150509250925092565b6000806040838503121561145057600080fd5b82359150602083013567ffffffffffffffff81111561146e57600080fd5b61147a85828601611250565b9150509250929050565b60006020828403121561149657600080fd5b61059d826110ff565b6000602082840312156114b157600080fd5b5035919050565b600080604083850312156114cb57600080fd5b6114d4836110c8565b9150611139602084016110c8565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361153f5761153f6114f8565b5060010190565b634e487b7160e01b600052602160045260246000fd5b600081518084526020808501945080840160005b8381101561158c57815187529582019590820190600101611570565b509495945050505050565b60006020808301818452808551808352604092508286019150828160051b8701018488016000805b84811015611685577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08a8503018652825160a06001600160a01b038251168652898201516003811061161f57634e487b7160e01b85526021600452602485fd5b868b0152818901518987018290526116398288018261155c565b91505060608083015187830382890152611653838261155c565b9250505060808083015192508682038188015250611671818361155c565b978a019795505050918701916001016115bf565b50919998505050505050505050565b808201808211156105a0576105a06114f8565b6001600160a01b03841681526060602082015260006116c9606083018561155c565b82810360408401526116db818561155c565b9695505050505050565b60006001600160a01b03808716835280861660208401525060806040830152611711608083018561155c565b8281036060840152611723818561155c565b979650505050505050565b606081526000611741606083018661155c565b60ff949094166020830152506040015291905056fea26469706673582212208a43de5e8a8aad04a5a51a46d63f633f8457b1634e8b5e7ac7e44f17541e5d3164736f6c63430008110033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.