ETH Price: $3,275.17 (+0.87%)

Contract

0xCF01626065609c102c6a8DD02F2b1220258E6987
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Presale Mint177462272023-07-22 4:16:47539 days ago1689999407IN
0xCF016260...0258E6987
0 ETH0.0004402914.89462057
Set Phase177416922023-07-21 13:04:23540 days ago1689944663IN
0xCF016260...0258E6987
0 ETH0.0012430242.84970672
Presale Mint177416372023-07-21 12:53:23540 days ago1689944003IN
0xCF016260...0258E6987
0 ETH0.0035938922.93298382
Presale Mint177416362023-07-21 12:52:59540 days ago1689943979IN
0xCF016260...0258E6987
0 ETH0.0029875322.58512544
Presale Mint177415962023-07-21 12:44:59540 days ago1689943499IN
0xCF016260...0258E6987
0 ETH0.0054283526.40277581
Presale Mint177415882023-07-21 12:43:23540 days ago1689943403IN
0xCF016260...0258E6987
0 ETH0.0097370729.7093084
Presale Mint177415422023-07-21 12:33:59540 days ago1689942839IN
0xCF016260...0258E6987
0 ETH0.0046698125.7751504
Presale Mint177415352023-07-21 12:32:35540 days ago1689942755IN
0xCF016260...0258E6987
0 ETH0.0037482223.91397059
Presale Mint177415072023-07-21 12:26:47540 days ago1689942407IN
0xCF016260...0258E6987
0 ETH0.0026843220.29306614
Presale Mint177414872023-07-21 12:22:47540 days ago1689942167IN
0xCF016260...0258E6987
0 ETH0.002723420.59054924
Presale Mint177414772023-07-21 12:20:47540 days ago1689942047IN
0xCF016260...0258E6987
0 ETH0.0034490222.0050231
Presale Mint177414212023-07-21 12:09:35540 days ago1689941375IN
0xCF016260...0258E6987
0 ETH0.0030685719.5824809
Presale Mint177413152023-07-21 11:47:47540 days ago1689940067IN
0xCF016260...0258E6987
0 ETH0.0038939921.49502608
Presale Mint177412792023-07-21 11:40:35540 days ago1689939635IN
0xCF016260...0258E6987
0 ETH0.0026535416.93252115
Presale Mint177412612023-07-21 11:36:59540 days ago1689939419IN
0xCF016260...0258E6987
0 ETH0.0027870117.78384011
Presale Mint177412462023-07-21 11:33:59540 days ago1689939239IN
0xCF016260...0258E6987
0 ETH0.0038437118.6944039
Presale Mint177412242023-07-21 11:29:35540 days ago1689938975IN
0xCF016260...0258E6987
0 ETH0.0026618520.11971064
Presale Mint177411132023-07-21 11:06:47540 days ago1689937607IN
0xCF016260...0258E6987
0 ETH0.0026845717.12769055
Presale Mint177410642023-07-21 10:56:59540 days ago1689937019IN
0xCF016260...0258E6987
0 ETH0.002463318.62215615
Presale Mint177409872023-07-21 10:41:35540 days ago1689936095IN
0xCF016260...0258E6987
0 ETH0.0030292719.32833743
Presale Mint177409672023-07-21 10:37:35540 days ago1689935855IN
0xCF016260...0258E6987
0 ETH0.0031775817.54019206
Presale Mint177408662023-07-21 10:17:23540 days ago1689934643IN
0xCF016260...0258E6987
0 ETH0.0031658620.19833355
Presale Mint177406302023-07-21 9:29:35540 days ago1689931775IN
0xCF016260...0258E6987
0 ETH0.0076856442.42814341
Presale Mint177405772023-07-21 9:18:59540 days ago1689931139IN
0xCF016260...0258E6987
0 ETH0.003209217.71505741
Presale Mint177405232023-07-21 9:08:11540 days ago1689930491IN
0xCF016260...0258E6987
0 ETH0.0065560617.40617006
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
170136152023-04-09 22:17:35642 days ago1681078655
0xCF016260...0258E6987
54.705 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ZuttoMamoStore

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : ZuttoMamoStore.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;
import { MerkleProof } from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { AccessControl } from "@openzeppelin/contracts/access/AccessControl.sol";
import { IZuttoMamo } from "./interface/IZuttoMamo.sol";

abstract contract ZuttoMamoStoreConfig {
	struct PresaleMintStruct {
		bool isDone;
		mapping(address => uint256) numberOfPresaleMintByAddress;
	}

	// =============================================================
	//   ENUM
	// =============================================================

	enum SalePhase {
		Locked,
		Presale
	}

	// =============================================================
	//   EXTERNAL CONTRACT
	// =============================================================

	IZuttoMamo public zuttoMamo;

	// =============================================================
	//   CONSTANTS
	// =============================================================

	bytes32 public constant ADMIN_ROLE = keccak256("ADMIN");

	// =============================================================
	//   STORAGE
	// =============================================================

	SalePhase public phase = SalePhase.Locked;

	bytes32 public merkleRoot;

	uint256 public mintCost = 0.021 ether;

	uint256 public presaleMintIndex;

	uint256 public additionalSaleLimit = 3;

	address public withdrawAddress = 0x853dac8E9115E30220857C8bDb4486e34Ba93fEa;

	bool public additionalSale = false;

	// wallet address => mint count
	mapping(address => uint256) public additionalSaleCount;

	// The presale mint struct (index => PresaleMintStruct)
	mapping(uint256 => PresaleMintStruct) public presaleMintStructs;
}

abstract contract ZuttoMamoStoreAdmin is ZuttoMamoStoreConfig, Ownable, AccessControl {
	// =============================================================
	//   ACCESS CONTROL
	// =============================================================

	function grantRole(bytes32 _role, address _account) public override onlyOwner {
		_grantRole(_role, _account);
	}

	function revokeRole(bytes32 _role, address _account) public override onlyOwner {
		_revokeRole(_role, _account);
	}

	// =============================================================
	//   EXTERNAL CONTRACT
	// =============================================================

	function setZuttoMamo(IZuttoMamo _zuttomamo) external onlyRole(ADMIN_ROLE) {
		zuttoMamo = _zuttomamo;
	}

	// =============================================================
	//   OTHER FUNCTION
	// =============================================================

	function withdraw() external onlyRole(ADMIN_ROLE) {
		(bool sent, ) = withdrawAddress.call{ value: address(this).balance }("");
		require(sent, "failed to move fund to withdrawAddress contract");
	}

	function setWithdrawAddress(address _ownerAddress) external onlyRole(ADMIN_ROLE) {
		require(_ownerAddress != address(0), "withdrawAddress shouldn't be 0");
		withdrawAddress = _ownerAddress;
	}

	function setPhase(SalePhase _phase) external onlyRole(ADMIN_ROLE) {
		phase = _phase;
	}

	function setMerkleRoot(bytes32 _merkleRoot) external onlyRole(ADMIN_ROLE) {
		merkleRoot = _merkleRoot;
	}

	function setPresaleMintIndex(uint256 _index) external onlyRole(ADMIN_ROLE) {
		require(presaleMintStructs[_index].isDone != true, "this index has already been used");
		bool done = !presaleMintStructs[presaleMintIndex].isDone;
		presaleMintStructs[presaleMintIndex].isDone = done;
		presaleMintIndex = _index;
	}

	function setAdditionalSale(bool _value) external onlyRole(ADMIN_ROLE) {
		additionalSale = _value;
	}

	function setAdditionalSaleLimit(uint256 _value) external onlyRole(ADMIN_ROLE) {
		additionalSaleLimit = _value;
	}

	function setMintCost(uint256 _cost) external onlyRole(ADMIN_ROLE) {
		mintCost = _cost;
	}
}

contract ZuttoMamoStore is ZuttoMamoStoreAdmin {
	// =============================================================
	//   CONSTRUCTOR
	// =============================================================

	constructor() {
		_grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
		_grantRole(ADMIN_ROLE, msg.sender);
	}

	// =============================================================
	//   MINT FUNCTION
	// =============================================================

	function presaleMint(uint256 _quantity, uint256 _allotted, bytes32[] calldata _proof) external payable {
		require(phase == SalePhase.Presale, "presale event is not active");
		require(tx.origin == msg.sender, "the caller is another controler");
		require(_quantity != 0, "the quantity is zero");
		require(mintCost * _quantity <= msg.value, "not enough eth");
		require(isValid(msg.sender, _allotted, _proof), "you don't have a whitelist");

		if (additionalSale) {
			require(additionalSaleCount[msg.sender] + _quantity <= additionalSaleLimit, "exceeds number of earned tokens");
			additionalSaleCount[msg.sender] += _quantity;
		} else {
			require(
				presaleMintStructs[presaleMintIndex].numberOfPresaleMintByAddress[msg.sender] + _quantity <= _allotted,
				"exceeds number of earned tokens"
			);
			presaleMintStructs[presaleMintIndex].numberOfPresaleMintByAddress[msg.sender] += _quantity;
		}

		zuttoMamo.birth(msg.sender, _quantity);
	}

	// =============================================================
	//   MERKLE TREE
	// =============================================================

	function _leaf(address _address, uint256 _allotted) private pure returns (bytes32) {
		return keccak256(abi.encodePacked(_address, _allotted));
	}

	function isValid(address _address, uint256 _allotted, bytes32[] calldata _proof) public view returns (bool) {
		return MerkleProof.verifyCalldata(_proof, merkleRoot, _leaf(_address, _allotted));
	}

	// =============================================================
	//   GET FUNCTION
	// =============================================================
	function getPresaleMintIsdone(uint256 _presaleMintIndex) external view returns (bool) {
		return presaleMintStructs[_presaleMintIndex].isDone;
	}

	function getPresaleMintCount(address _address) external view returns (uint256) {
		return presaleMintStructs[presaleMintIndex].numberOfPresaleMintByAddress[_address];
	}
}

File 2 of 16 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(account),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 16 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 4 of 16 : 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 5 of 16 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 6 of 16 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 7 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 8 of 16 : 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 9 of 16 : 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 10 of 16 : 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 11 of 16 : IERC721Lockable.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;

/**
 * @title IERC721Lockable
 * @dev トークンのtransfer抑止機能付きコントラクトのインターフェース
 * @author Lavulite
 */
interface IERC721Lockable {
	enum LockStatus {
		UnSet,
		UnLock,
		Lock
	}

	/**
	 * @dev 個別ロックが指定された場合のイベント
	 */
	// event TokenLock(address indexed holder, address indexed operator, LockStatus lockStatus, uint256 indexed tokenId);
	event TokenLock(address indexed holder, uint256 indexed tokenId, LockStatus indexed lockStatus, uint256 timestamp);

	/**
	 * @dev ウォレットロックが指定された場合のイベント
	 */
	event WalletLock(address indexed holder, address indexed operator, LockStatus lockStatus);

	/**
	 * @dev 該当トークンIDのロックステータスを変更する。
	 */
	function setTokenLock(uint256[] calldata tokenIds, LockStatus lockStatus) external;

	/**
	 * @dev 該当ウォレットのロックステータスを変更する。
	 */
	function setWalletLock(address to, LockStatus lockStatus) external;

	/**
	 * @dev コントラクトのロックステータスを変更する。
	 */
	function setContractLock(LockStatus lockStatus) external;

	/**
	 * @dev 該当トークンIDがロックされているかを返す
	 */
	function isLocked(uint256 tokenId) external view returns (bool);

	/**
	 * @dev ウォレットロックを行っているかを返す
	 */
	function isLocked(address holder) external view returns (bool);

	/**
	 * @dev 転送が拒否されているトークンを全て返す
	 */
	function getTokensUnderLock() external view returns (uint256[] memory);

	/**
	 * @dev 転送が拒否されているstartからstopまでのトークンIDを返す
	 */
	function getTokensUnderLock(uint256 start, uint256 end) external view returns (uint256[] memory);
}

File 12 of 16 : IERC5192PLTop.sol
// SPDX-License-Identifier: CC0-1.0
pragma solidity >=0.7.0 <0.9.0;

/**
 * @title IERC5192PLTop
 * @dev Interface to be implemented in the parent NFT.
 */
interface IERC5192PLTop {
	/**
	 * @dev Returns the owner address of the NFT associated with the parent。
	 */
	function ownerOfParentLinkSbt(
		address _parentLinkSbtContract,
		uint256 _parentLinkSbtTokenId
	) external view returns (address parentTokenOwner);
}

File 13 of 16 : IZuttoMamo.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;

import { IERC721A } from "erc721a/contracts/interfaces/IERC721A.sol";
import { IERC5192PLTop } from "./IERC5192PLTop.sol";
import { IERC721Lockable } from "../base/ERC721AntiScam/lockable/IERC721Lockable.sol";

import { DataType } from "../lib/type/DataType.sol";

interface IZuttoMamo is IERC721A, IERC721Lockable, IERC5192PLTop {
	function getTokenLocation(uint256 _tokenId) external view returns (DataType.TokenLocation);

	function refreshMetadata(uint256 _tokenId) external;

	function refreshMetadata(uint256 _fromTokenId, uint256 _toTokenId) external;

	function birth(address _to, uint256 _amount) external;

	function birthWithSleeping(address _to, uint256 _amount) external;
}

File 14 of 16 : DataType.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;

library DataType {
	enum TokenLocation {
		Operator,
		Other
	}

	enum LockStatus {
		UnLock,
		Lock
	}

	struct AfterParentTokenTransferParams {
		address from;
		address to;
		uint256 tokenId;
		uint256 totalAmountParentLinkSbtContracts;
	}

	struct CreateParentLinkSbtParams {
		string name;
		string symbol;
		string baseUri;
		address ownerAddress;
		address parentContractAddress;
	}
	struct ConnectParentLinkSbtParams {
		uint256 tokenId;
		address parentLinkSbtContract;
		uint256 parentLinkSbtTokenId;
	}

	struct AllStageParams {
		uint256 highSchooler;
		uint256 workingAdult;
		uint256 marriage;
		uint256 family;
		uint256 oldAge;
		uint256 tomb;
	}
}

File 15 of 16 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

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

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

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables
     * (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`,
     * checking first that contract recipients are aware of the ERC721 protocol
     * to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move
     * this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external payable;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

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

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

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

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

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

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

    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 16 of 16 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"additionalSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"additionalSaleCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"additionalSaleLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getPresaleMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_presaleMintIndex","type":"uint256"}],"name":"getPresaleMintIsdone","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_role","type":"bytes32"},{"internalType":"address","name":"_account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_allotted","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"isValid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phase","outputs":[{"internalType":"enum ZuttoMamoStoreConfig.SalePhase","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"uint256","name":"_allotted","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleMintIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"presaleMintStructs","outputs":[{"internalType":"bool","name":"isDone","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_role","type":"bytes32"},{"internalType":"address","name":"_account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_value","type":"bool"}],"name":"setAdditionalSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setAdditionalSaleLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum ZuttoMamoStoreConfig.SalePhase","name":"_phase","type":"uint8"}],"name":"setPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"setPresaleMintIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_ownerAddress","type":"address"}],"name":"setWithdrawAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IZuttoMamo","name":"_zuttomamo","type":"address"}],"name":"setZuttoMamo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"zuttoMamo","outputs":[{"internalType":"contract IZuttoMamo","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040526000805460ff60a01b19169055664a9b63844880006002556003600455600580546001600160a81b03191673853dac8e9115e30220857c8bdb4486e34ba93fea17905534801561005357600080fd5b5061005d33610097565b6100686000336100e9565b6100927fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42336100e9565b61018c565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008281526009602090815260408083206001600160a01b038516845290915290205460ff166101885760008281526009602090815260408083206001600160a01b03851684529091529020805460ff191660011790556101473390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611716806200019c6000396000f3fe6080604052600436106101f95760003560e01c80637cb647591161010d578063bdb4b848116100a0578063d547741f1161006f578063d547741f146105e8578063de6d4c3414610608578063e71542ca14610629578063f2fde38b14610659578063f995d8551461067957600080fd5b8063bdb4b84814610565578063c03afb591461057b578063c116a7ca1461059b578063c36dcd85146105c857600080fd5b806391d14854116100dc57806391d14854146104e25780639bbb8ec314610502578063a217fddf14610522578063b1c9fe6e1461053757600080fd5b80637cb64759146104645780638545f4ea146104845780638da5cb5b146104a457806390865420146104c257600080fd5b8063388e84c91161019057806365093f831161015f57806365093f83146103c75780636d1e1342146103dd578063715018a61461040d57806375b238fc146104225780637c0c8f011461044457600080fd5b8063388e84c91461035c5780633ab1a494146103725780633ccfd60b1461039257806358fcb8ca146103a757600080fd5b8063248a9ca3116101cc578063248a9ca3146102d65780632eb4a7ab146103065780632f2ff15d1461031c57806336568abe1461033c57600080fd5b806301ffc9a7146101fe578063025ef838146102335780631581b600146102895780631b59169d146102c1575b600080fd5b34801561020a57600080fd5b5061021e61021936600461134f565b610699565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b5061027b61024e36600461138e565b60035460009081526007602090815260408083206001600160a01b03909416835260019093019052205490565b60405190815260200161022a565b34801561029557600080fd5b506005546102a9906001600160a01b031681565b6040516001600160a01b03909116815260200161022a565b6102d46102cf3660046113f7565b6106d0565b005b3480156102e257600080fd5b5061027b6102f136600461144a565b60009081526009602052604090206001015490565b34801561031257600080fd5b5061027b60015481565b34801561032857600080fd5b506102d4610337366004611463565b610a40565b34801561034857600080fd5b506102d4610357366004611463565b610a56565b34801561036857600080fd5b5061027b60045481565b34801561037e57600080fd5b506102d461038d36600461138e565b610ad0565b34801561039e57600080fd5b506102d4610b61565b3480156103b357600080fd5b5061021e6103c2366004611493565b610c34565b3480156103d357600080fd5b5061027b60035481565b3480156103e957600080fd5b5061021e6103f836600461144a565b60076020526000908152604090205460ff1681565b34801561041957600080fd5b506102d4610c98565b34801561042e57600080fd5b5061027b6000805160206116c183398151915281565b34801561045057600080fd5b506102d461045f3660046114d7565b610cac565b34801561047057600080fd5b506102d461047f36600461144a565b610ce3565b34801561049057600080fd5b506102d461049f36600461144a565b610d01565b3480156104b057600080fd5b506008546001600160a01b03166102a9565b3480156104ce57600080fd5b506102d46104dd36600461144a565b610d1f565b3480156104ee57600080fd5b5061021e6104fd366004611463565b610d3d565b34801561050e57600080fd5b506102d461051d36600461144a565b610d68565b34801561052e57600080fd5b5061027b600081565b34801561054357600080fd5b5060005461055890600160a01b900460ff1681565b60405161022a919061150f565b34801561057157600080fd5b5061027b60025481565b34801561058757600080fd5b506102d4610596366004611537565b610e09565b3480156105a757600080fd5b5061027b6105b636600461138e565b60066020526000908152604090205481565b3480156105d457600080fd5b506102d46105e336600461138e565b610e4f565b3480156105f457600080fd5b506102d4610603366004611463565b610e8a565b34801561061457600080fd5b5060055461021e90600160a01b900460ff1681565b34801561063557600080fd5b5061021e61064436600461144a565b60009081526007602052604090205460ff1690565b34801561066557600080fd5b506102d461067436600461138e565b610e92565b34801561068557600080fd5b506000546102a9906001600160a01b031681565b60006001600160e01b03198216637965db0b60e01b14806106ca57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6001600054600160a01b900460ff1660018111156106f0576106f06114f9565b146107425760405162461bcd60e51b815260206004820152601b60248201527f70726573616c65206576656e74206973206e6f7420616374697665000000000060448201526064015b60405180910390fd5b3233146107915760405162461bcd60e51b815260206004820152601f60248201527f7468652063616c6c657220697320616e6f7468657220636f6e74726f6c6572006044820152606401610739565b836000036107d85760405162461bcd60e51b8152602060048201526014602482015273746865207175616e74697479206973207a65726f60601b6044820152606401610739565b34846002546107e7919061156e565b11156108265760405162461bcd60e51b815260206004820152600e60248201526d0dcdee840cadcdeeaced040cae8d60931b6044820152606401610739565b61083233848484610c34565b61087e5760405162461bcd60e51b815260206004820152601a60248201527f796f7520646f6e2774206861766520612077686974656c6973740000000000006044820152606401610739565b600554600160a01b900460ff161561092657600454336000908152600660205260409020546108ae908690611585565b11156108fc5760405162461bcd60e51b815260206004820152601f60248201527f65786365656473206e756d626572206f66206561726e656420746f6b656e73006044820152606401610739565b336000908152600660205260408120805486929061091b908490611585565b909155506109d69050565b60035460009081526007602090815260408083203384526001019091529020548390610953908690611585565b11156109a15760405162461bcd60e51b815260206004820152601f60248201527f65786365656473206e756d626572206f66206561726e656420746f6b656e73006044820152606401610739565b6003546000908152600760209081526040808320338452600101909152812080548692906109d0908490611585565b90915550505b60005460405163f444ee5560e01b8152336004820152602481018690526001600160a01b039091169063f444ee5590604401600060405180830381600087803b158015610a2257600080fd5b505af1158015610a36573d6000803e3d6000fd5b5050505050505050565b610a48610f0b565b610a528282610f65565b5050565b6001600160a01b0381163314610ac65760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610739565b610a528282610feb565b6000805160206116c1833981519152610ae881611052565b6001600160a01b038216610b3e5760405162461bcd60e51b815260206004820152601e60248201527f7769746864726177416464726573732073686f756c646e2774206265203000006044820152606401610739565b50600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000805160206116c1833981519152610b7981611052565b6005546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610bc6576040519150601f19603f3d011682016040523d82523d6000602084013e610bcb565b606091505b5050905080610a525760405162461bcd60e51b815260206004820152602f60248201527f6661696c656420746f206d6f76652066756e6420746f2077697468647261774160448201526e19191c995cdcc818dbdb9d1c9858dd608a1b6064820152608401610739565b6000610c8f8383600154610c8a89896040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b61105c565b95945050505050565b610ca0610f0b565b610caa6000611074565b565b6000805160206116c1833981519152610cc481611052565b5060058054911515600160a01b0260ff60a01b19909216919091179055565b6000805160206116c1833981519152610cfb81611052565b50600155565b6000805160206116c1833981519152610d1981611052565b50600255565b6000805160206116c1833981519152610d3781611052565b50600455565b60009182526009602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000805160206116c1833981519152610d8081611052565b60008281526007602052604090205460ff161515600103610de35760405162461bcd60e51b815260206004820181905260248201527f7468697320696e6465782068617320616c7265616479206265656e20757365646044820152606401610739565b50600380546000908152600760205260409020805460ff19811660ff9091161517905555565b6000805160206116c1833981519152610e2181611052565b6000805483919060ff60a01b1916600160a01b836001811115610e4657610e466114f9565b02179055505050565b6000805160206116c1833981519152610e6781611052565b50600080546001600160a01b0319166001600160a01b0392909216919091179055565b610ac6610f0b565b610e9a610f0b565b6001600160a01b038116610eff5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610739565b610f0881611074565b50565b6008546001600160a01b03163314610caa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610739565b610f6f8282610d3d565b610a525760008281526009602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610fa73390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610ff58282610d3d565b15610a525760008281526009602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610f0881336110c6565b60008261106a86868561111f565b1495945050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6110d08282610d3d565b610a52576110dd8161116b565b6110e883602061117d565b6040516020016110f99291906115bc565b60408051601f198184030181529082905262461bcd60e51b825261073991600401611631565b600081815b848110156111625761114e8287878481811061114257611142611664565b90506020020135611320565b91508061115a8161167a565b915050611124565b50949350505050565b60606106ca6001600160a01b03831660145b6060600061118c83600261156e565b611197906002611585565b67ffffffffffffffff8111156111af576111af611693565b6040519080825280601f01601f1916602001820160405280156111d9576020820181803683370190505b509050600360fc1b816000815181106111f4576111f4611664565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061122357611223611664565b60200101906001600160f81b031916908160001a905350600061124784600261156e565b611252906001611585565b90505b60018111156112ca576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061128657611286611664565b1a60f81b82828151811061129c5761129c611664565b60200101906001600160f81b031916908160001a90535060049490941c936112c3816116a9565b9050611255565b5083156113195760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610739565b9392505050565b600081831061133c576000828152602084905260409020611319565b6000838152602083905260409020611319565b60006020828403121561136157600080fd5b81356001600160e01b03198116811461131957600080fd5b6001600160a01b0381168114610f0857600080fd5b6000602082840312156113a057600080fd5b813561131981611379565b60008083601f8401126113bd57600080fd5b50813567ffffffffffffffff8111156113d557600080fd5b6020830191508360208260051b85010111156113f057600080fd5b9250929050565b6000806000806060858703121561140d57600080fd5b8435935060208501359250604085013567ffffffffffffffff81111561143257600080fd5b61143e878288016113ab565b95989497509550505050565b60006020828403121561145c57600080fd5b5035919050565b6000806040838503121561147657600080fd5b82359150602083013561148881611379565b809150509250929050565b600080600080606085870312156114a957600080fd5b84356114b481611379565b935060208501359250604085013567ffffffffffffffff81111561143257600080fd5b6000602082840312156114e957600080fd5b8135801515811461131957600080fd5b634e487b7160e01b600052602160045260246000fd5b602081016002831061153157634e487b7160e01b600052602160045260246000fd5b91905290565b60006020828403121561154957600080fd5b81356002811061131957600080fd5b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176106ca576106ca611558565b808201808211156106ca576106ca611558565b60005b838110156115b357818101518382015260200161159b565b50506000910152565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516115f4816017850160208801611598565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611625816028840160208801611598565b01602801949350505050565b6020815260008251806020840152611650816040850160208701611598565b601f01601f19169190910160400192915050565b634e487b7160e01b600052603260045260246000fd5b60006001820161168c5761168c611558565b5060010190565b634e487b7160e01b600052604160045260246000fd5b6000816116b8576116b8611558565b50600019019056fedf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42a2646970667358221220e3d83a5514c7be78d810d078f13f712191c2b1a022123afd3d1d34bf26a9ebc264736f6c63430008130033

Deployed Bytecode

0x6080604052600436106101f95760003560e01c80637cb647591161010d578063bdb4b848116100a0578063d547741f1161006f578063d547741f146105e8578063de6d4c3414610608578063e71542ca14610629578063f2fde38b14610659578063f995d8551461067957600080fd5b8063bdb4b84814610565578063c03afb591461057b578063c116a7ca1461059b578063c36dcd85146105c857600080fd5b806391d14854116100dc57806391d14854146104e25780639bbb8ec314610502578063a217fddf14610522578063b1c9fe6e1461053757600080fd5b80637cb64759146104645780638545f4ea146104845780638da5cb5b146104a457806390865420146104c257600080fd5b8063388e84c91161019057806365093f831161015f57806365093f83146103c75780636d1e1342146103dd578063715018a61461040d57806375b238fc146104225780637c0c8f011461044457600080fd5b8063388e84c91461035c5780633ab1a494146103725780633ccfd60b1461039257806358fcb8ca146103a757600080fd5b8063248a9ca3116101cc578063248a9ca3146102d65780632eb4a7ab146103065780632f2ff15d1461031c57806336568abe1461033c57600080fd5b806301ffc9a7146101fe578063025ef838146102335780631581b600146102895780631b59169d146102c1575b600080fd5b34801561020a57600080fd5b5061021e61021936600461134f565b610699565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b5061027b61024e36600461138e565b60035460009081526007602090815260408083206001600160a01b03909416835260019093019052205490565b60405190815260200161022a565b34801561029557600080fd5b506005546102a9906001600160a01b031681565b6040516001600160a01b03909116815260200161022a565b6102d46102cf3660046113f7565b6106d0565b005b3480156102e257600080fd5b5061027b6102f136600461144a565b60009081526009602052604090206001015490565b34801561031257600080fd5b5061027b60015481565b34801561032857600080fd5b506102d4610337366004611463565b610a40565b34801561034857600080fd5b506102d4610357366004611463565b610a56565b34801561036857600080fd5b5061027b60045481565b34801561037e57600080fd5b506102d461038d36600461138e565b610ad0565b34801561039e57600080fd5b506102d4610b61565b3480156103b357600080fd5b5061021e6103c2366004611493565b610c34565b3480156103d357600080fd5b5061027b60035481565b3480156103e957600080fd5b5061021e6103f836600461144a565b60076020526000908152604090205460ff1681565b34801561041957600080fd5b506102d4610c98565b34801561042e57600080fd5b5061027b6000805160206116c183398151915281565b34801561045057600080fd5b506102d461045f3660046114d7565b610cac565b34801561047057600080fd5b506102d461047f36600461144a565b610ce3565b34801561049057600080fd5b506102d461049f36600461144a565b610d01565b3480156104b057600080fd5b506008546001600160a01b03166102a9565b3480156104ce57600080fd5b506102d46104dd36600461144a565b610d1f565b3480156104ee57600080fd5b5061021e6104fd366004611463565b610d3d565b34801561050e57600080fd5b506102d461051d36600461144a565b610d68565b34801561052e57600080fd5b5061027b600081565b34801561054357600080fd5b5060005461055890600160a01b900460ff1681565b60405161022a919061150f565b34801561057157600080fd5b5061027b60025481565b34801561058757600080fd5b506102d4610596366004611537565b610e09565b3480156105a757600080fd5b5061027b6105b636600461138e565b60066020526000908152604090205481565b3480156105d457600080fd5b506102d46105e336600461138e565b610e4f565b3480156105f457600080fd5b506102d4610603366004611463565b610e8a565b34801561061457600080fd5b5060055461021e90600160a01b900460ff1681565b34801561063557600080fd5b5061021e61064436600461144a565b60009081526007602052604090205460ff1690565b34801561066557600080fd5b506102d461067436600461138e565b610e92565b34801561068557600080fd5b506000546102a9906001600160a01b031681565b60006001600160e01b03198216637965db0b60e01b14806106ca57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6001600054600160a01b900460ff1660018111156106f0576106f06114f9565b146107425760405162461bcd60e51b815260206004820152601b60248201527f70726573616c65206576656e74206973206e6f7420616374697665000000000060448201526064015b60405180910390fd5b3233146107915760405162461bcd60e51b815260206004820152601f60248201527f7468652063616c6c657220697320616e6f7468657220636f6e74726f6c6572006044820152606401610739565b836000036107d85760405162461bcd60e51b8152602060048201526014602482015273746865207175616e74697479206973207a65726f60601b6044820152606401610739565b34846002546107e7919061156e565b11156108265760405162461bcd60e51b815260206004820152600e60248201526d0dcdee840cadcdeeaced040cae8d60931b6044820152606401610739565b61083233848484610c34565b61087e5760405162461bcd60e51b815260206004820152601a60248201527f796f7520646f6e2774206861766520612077686974656c6973740000000000006044820152606401610739565b600554600160a01b900460ff161561092657600454336000908152600660205260409020546108ae908690611585565b11156108fc5760405162461bcd60e51b815260206004820152601f60248201527f65786365656473206e756d626572206f66206561726e656420746f6b656e73006044820152606401610739565b336000908152600660205260408120805486929061091b908490611585565b909155506109d69050565b60035460009081526007602090815260408083203384526001019091529020548390610953908690611585565b11156109a15760405162461bcd60e51b815260206004820152601f60248201527f65786365656473206e756d626572206f66206561726e656420746f6b656e73006044820152606401610739565b6003546000908152600760209081526040808320338452600101909152812080548692906109d0908490611585565b90915550505b60005460405163f444ee5560e01b8152336004820152602481018690526001600160a01b039091169063f444ee5590604401600060405180830381600087803b158015610a2257600080fd5b505af1158015610a36573d6000803e3d6000fd5b5050505050505050565b610a48610f0b565b610a528282610f65565b5050565b6001600160a01b0381163314610ac65760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610739565b610a528282610feb565b6000805160206116c1833981519152610ae881611052565b6001600160a01b038216610b3e5760405162461bcd60e51b815260206004820152601e60248201527f7769746864726177416464726573732073686f756c646e2774206265203000006044820152606401610739565b50600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000805160206116c1833981519152610b7981611052565b6005546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610bc6576040519150601f19603f3d011682016040523d82523d6000602084013e610bcb565b606091505b5050905080610a525760405162461bcd60e51b815260206004820152602f60248201527f6661696c656420746f206d6f76652066756e6420746f2077697468647261774160448201526e19191c995cdcc818dbdb9d1c9858dd608a1b6064820152608401610739565b6000610c8f8383600154610c8a89896040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b61105c565b95945050505050565b610ca0610f0b565b610caa6000611074565b565b6000805160206116c1833981519152610cc481611052565b5060058054911515600160a01b0260ff60a01b19909216919091179055565b6000805160206116c1833981519152610cfb81611052565b50600155565b6000805160206116c1833981519152610d1981611052565b50600255565b6000805160206116c1833981519152610d3781611052565b50600455565b60009182526009602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000805160206116c1833981519152610d8081611052565b60008281526007602052604090205460ff161515600103610de35760405162461bcd60e51b815260206004820181905260248201527f7468697320696e6465782068617320616c7265616479206265656e20757365646044820152606401610739565b50600380546000908152600760205260409020805460ff19811660ff9091161517905555565b6000805160206116c1833981519152610e2181611052565b6000805483919060ff60a01b1916600160a01b836001811115610e4657610e466114f9565b02179055505050565b6000805160206116c1833981519152610e6781611052565b50600080546001600160a01b0319166001600160a01b0392909216919091179055565b610ac6610f0b565b610e9a610f0b565b6001600160a01b038116610eff5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610739565b610f0881611074565b50565b6008546001600160a01b03163314610caa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610739565b610f6f8282610d3d565b610a525760008281526009602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610fa73390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b610ff58282610d3d565b15610a525760008281526009602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610f0881336110c6565b60008261106a86868561111f565b1495945050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6110d08282610d3d565b610a52576110dd8161116b565b6110e883602061117d565b6040516020016110f99291906115bc565b60408051601f198184030181529082905262461bcd60e51b825261073991600401611631565b600081815b848110156111625761114e8287878481811061114257611142611664565b90506020020135611320565b91508061115a8161167a565b915050611124565b50949350505050565b60606106ca6001600160a01b03831660145b6060600061118c83600261156e565b611197906002611585565b67ffffffffffffffff8111156111af576111af611693565b6040519080825280601f01601f1916602001820160405280156111d9576020820181803683370190505b509050600360fc1b816000815181106111f4576111f4611664565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061122357611223611664565b60200101906001600160f81b031916908160001a905350600061124784600261156e565b611252906001611585565b90505b60018111156112ca576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061128657611286611664565b1a60f81b82828151811061129c5761129c611664565b60200101906001600160f81b031916908160001a90535060049490941c936112c3816116a9565b9050611255565b5083156113195760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610739565b9392505050565b600081831061133c576000828152602084905260409020611319565b6000838152602083905260409020611319565b60006020828403121561136157600080fd5b81356001600160e01b03198116811461131957600080fd5b6001600160a01b0381168114610f0857600080fd5b6000602082840312156113a057600080fd5b813561131981611379565b60008083601f8401126113bd57600080fd5b50813567ffffffffffffffff8111156113d557600080fd5b6020830191508360208260051b85010111156113f057600080fd5b9250929050565b6000806000806060858703121561140d57600080fd5b8435935060208501359250604085013567ffffffffffffffff81111561143257600080fd5b61143e878288016113ab565b95989497509550505050565b60006020828403121561145c57600080fd5b5035919050565b6000806040838503121561147657600080fd5b82359150602083013561148881611379565b809150509250929050565b600080600080606085870312156114a957600080fd5b84356114b481611379565b935060208501359250604085013567ffffffffffffffff81111561143257600080fd5b6000602082840312156114e957600080fd5b8135801515811461131957600080fd5b634e487b7160e01b600052602160045260246000fd5b602081016002831061153157634e487b7160e01b600052602160045260246000fd5b91905290565b60006020828403121561154957600080fd5b81356002811061131957600080fd5b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176106ca576106ca611558565b808201808211156106ca576106ca611558565b60005b838110156115b357818101518382015260200161159b565b50506000910152565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516115f4816017850160208801611598565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611625816028840160208801611598565b01602801949350505050565b6020815260008251806020840152611650816040850160208701611598565b601f01601f19169190910160400192915050565b634e487b7160e01b600052603260045260246000fd5b60006001820161168c5761168c611558565b5060010190565b634e487b7160e01b600052604160045260246000fd5b6000816116b8576116b8611558565b50600019019056fedf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42a2646970667358221220e3d83a5514c7be78d810d078f13f712191c2b1a022123afd3d1d34bf26a9ebc264736f6c63430008130033

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  ]
[ 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.