ETH Price: $3,386.03 (-1.50%)
Gas: 2 Gwei

Contract

0x47576Ed34311C955BBcCC1f1792b38b0d12Dc92f
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
0x60806040181397532023-09-15 6:10:11288 days ago1694758211IN
 Create: SevenArtBase1155Slim
0 ETH0.0334645110.48270623

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SevenArtBase1155Slim

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 13 : SevenArtBase1155Slim.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "@openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC1155/extensions/ERC1155SupplyUpgradeable.sol";

contract SevenArtBase1155Slim is ERC1155SupplyUpgradeable, OwnableUpgradeable {
    uint256 public curatedDropAmount;
    address public sevenArt;
    uint256 public constant FEE = 770000000000000;
    uint256[] public createdArray;

    struct TokenProps {
        bool saleIsActive;
        bool allowlistActive;
        string uri;
        uint256 price;
        uint256 startDate;
        uint256 endDate;
        uint256 maxPerWallet;
        uint256 maxSupply;
        bytes32 merkleRoot;
    }

    mapping(uint256 => TokenProps) public tokenProperties;
    mapping(address => uint256) public tokensMintedByUser;
    mapping(uint256 => bool) public tokenAlreadyExists;

    function initialize(address _sevenArt) public initializer {
        sevenArt = _sevenArt;
        __ERC1155Supply_init();
        __Ownable_init();
    }

    modifier tokenExists(uint256 _id) {
        require(tokenAlreadyExists[_id], "Initialize token first");
        _;
    }

    function getCreatedArray() public view returns (uint256[] memory) {
        return createdArray;
    }

    function setSaleIsActive(
        bool _saleIsActive,
        uint256 _id
    ) public onlyOwner tokenExists(_id) {
        tokenProperties[_id].saleIsActive = _saleIsActive;
    }

    function setAllowlistActive(
        bool _allowlistActive,
        uint256 _id
    ) public onlyOwner tokenExists(_id) {
        tokenProperties[_id].allowlistActive = _allowlistActive;
    }

    function setURI(
        string memory _uri,
        uint256 _id
    ) public onlyOwner tokenExists(_id) {
        tokenProperties[_id].uri = _uri;
    }

    function setPrice(
        uint256 _price,
        uint256 _id
    ) public onlyOwner tokenExists(_id) {
        tokenProperties[_id].price = _price;
    }

    function setStartDate(
        uint256 _startDate,
        uint256 _id
    ) public onlyOwner tokenExists(_id) {
        tokenProperties[_id].startDate = _startDate;
    }

    function setEndDate(
        uint256 _endDate,
        uint256 _id
    ) public onlyOwner tokenExists(_id) {
        tokenProperties[_id].endDate = _endDate;
    }

    function setMaxPerWallet(
        uint256 _maxPerWallet,
        uint256 _id
    ) public onlyOwner tokenExists(_id) {
        tokenProperties[_id].maxPerWallet = _maxPerWallet;
    }

    function setMaxSupply(
        uint256 _maxSupply,
        uint256 _id
    ) public onlyOwner tokenExists(_id) {
        tokenProperties[_id].maxSupply = _maxSupply;
    }

    function setMerkleRoot(
        bytes32 _merkleRoot,
        uint256 _id
    ) public onlyOwner tokenExists(_id) {
        tokenProperties[_id].merkleRoot = _merkleRoot;
    }

    function setCuratedDropAmount(uint256 _percent) public {
        require(msg.sender == sevenArt, "only sevenart can set this");
        require(_percent <= 50, "only 1-50 allowed");
        {
            curatedDropAmount = _percent;
        }
    }

    function mint(
        uint256 _id,
        uint256 _amount,
        uint256 _allowed,
        bytes32[] calldata _proof
    ) public payable {
        require(tokenProperties[_id].saleIsActive, "Sale is not active");
        require(checkSaleSchedule(_id), "Not at this time");
        require(
            tokenProperties[_id].maxSupply == 0 ||
                totalSupply(_id) + _amount <= tokenProperties[_id].maxSupply,
            "Sold out"
        );
        require(
            tokenProperties[_id].maxPerWallet == 0 ||
                tokensMintedByUser[msg.sender] + _amount <=
                tokenProperties[_id].maxPerWallet,
            "Reached wallet limit"
        );
        if (tokenProperties[_id].allowlistActive) {
            require(
                tokensMintedByUser[msg.sender] + _amount <= _allowed,
                "Can't mint more"
            );
            require(
                isWhitelisted(msg.sender, _allowed, _id, _proof),
                "Not whitelisted"
            );
        }

        require(
            (_amount * tokenProperties[_id].price) + FEE <= msg.value,
            "Not enough ETH"
        );
        (bool os, ) = payable(sevenArt).call{value: FEE}("");
        require(os);
        tokensMintedByUser[msg.sender] += _amount;
        _mint(msg.sender, _id, _amount, "");
    }

    function setAllTokenProps(
        TokenProps memory _props,
        uint256 _id
    ) public onlyOwner {
        tokenProperties[_id] = _props;
        if (!tokenAlreadyExists[_id]) {
            createdArray.push(_id);
        }
        tokenAlreadyExists[_id] = true;
    }

    function withdraw() public {
        require(
            msg.sender == sevenArt || msg.sender == owner(),
            "caller is not the owner / sevenart"
        );
        uint256 curatedDropSplit = (address(this).balance * curatedDropAmount) /
            100;
        (bool os, ) = payable(sevenArt).call{value: curatedDropSplit}("");
        require(os);

        (os, ) = payable(owner()).call{value: address(this).balance}("");
        require(os);
    }

    function checkSaleSchedule(uint256 _id) internal view returns (bool) {
        if (
            (tokenProperties[_id].startDate == 0 ||
                tokenProperties[_id].startDate <= block.timestamp) &&
            (tokenProperties[_id].endDate == 0 ||
                tokenProperties[_id].endDate >= block.timestamp)
        ) {
            return true;
        }
        return false;
    }

    function isWhitelisted(
        address _address,
        uint256 _allowed,
        uint256 _id,
        bytes32[] calldata _merkleProof
    ) public view returns (bool) {
        bytes32 leaf = keccak256(abi.encode(_address, _allowed));
        return
            MerkleProof.verify(
                _merkleProof,
                tokenProperties[_id].merkleRoot,
                leaf
            );
    }

    function airdropManyTokens(
        address[] calldata wallets,
        uint256[] calldata tokenIds,
        uint256[] calldata amount
    ) public onlyOwner {
        require(
            wallets.length == tokenIds.length &&
                wallets.length == amount.length &&
                tokenIds.length == amount.length,
            "Inputs must be the same length"
        );
        for (uint256 i = 0; i < tokenIds.length; i++) {
            require(tokenAlreadyExists[tokenIds[i]], "Initialize token first");
            _mint(wallets[i], tokenIds[i], amount[i], "");
        }
    }

    function uri(
        uint256 tokenId
    )
        public
        view
        virtual
        override
        tokenExists(tokenId)
        returns (string memory)
    {
        return tokenProperties[tokenId].uri;
    }
}

File 2 of 13 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal onlyInitializing {
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _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. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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);
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 3 of 13 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```solidity
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 *
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts.
     *
     * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
     * constructor.
     *
     * Emits an {Initialized} event.
     */
    modifier initializer() {
        bool isTopLevelCall = !_initializing;
        require(
            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
            "Initializable: contract is already initialized"
        );
        _initialized = 1;
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * A reinitializer may be used after the original initialization step. This is essential to configure modules that
     * are added through upgrades and that require initialization.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     *
     * WARNING: setting the version to 255 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    modifier reinitializer(uint8 version) {
        require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
        _initialized = version;
        _initializing = true;
        _;
        _initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        require(!_initializing, "Initializable: contract is initializing");
        if (_initialized != type(uint8).max) {
            _initialized = type(uint8).max;
            emit Initialized(type(uint8).max);
        }
    }

    /**
     * @dev Returns the highest version that has been initialized. See {reinitializer}.
     */
    function _getInitializedVersion() internal view returns (uint8) {
        return _initialized;
    }

    /**
     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
     */
    function _isInitializing() internal view returns (bool) {
        return _initializing;
    }
}

File 4 of 13 : ERC1155Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155Upgradeable.sol";
import "./IERC1155ReceiverUpgradeable.sol";
import "./extensions/IERC1155MetadataURIUpgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/ContextUpgradeable.sol";
import "../../utils/introspection/ERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC1155Upgradeable, IERC1155MetadataURIUpgradeable {
    using AddressUpgradeable for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    function __ERC1155_init(string memory uri_) internal onlyInitializing {
        __ERC1155_init_unchained(uri_);
    }

    function __ERC1155_init_unchained(string memory uri_) internal onlyInitializing {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: address zero is not a valid owner");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(
        address[] memory accounts,
        uint256[] memory ids
    ) public view virtual override returns (uint256[] memory) {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

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

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

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

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

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

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

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

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

        address operator = _msgSender();

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

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

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

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

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

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

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

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

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

        address operator = _msgSender();

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

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

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

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(address from, uint256 id, uint256 amount) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);

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

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(address from, uint256[] memory ids, uint256[] memory amounts) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

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

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

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

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155ReceiverUpgradeable(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155ReceiverUpgradeable.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non-ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155ReceiverUpgradeable(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155ReceiverUpgradeable.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non-ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[47] private __gap;
}

File 5 of 13 : ERC1155SupplyUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155Upgradeable.sol";
import "../../../proxy/utils/Initializable.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155SupplyUpgradeable is Initializable, ERC1155Upgradeable {
    function __ERC1155Supply_init() internal onlyInitializing {
    }

    function __ERC1155Supply_init_unchained() internal onlyInitializing {
    }
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155SupplyUpgradeable.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                uint256 id = ids[i];
                uint256 amount = amounts[i];
                uint256 supply = _totalSupply[id];
                require(supply >= amount, "ERC1155: burn amount exceeds totalSupply");
                unchecked {
                    _totalSupply[id] = supply - amount;
                }
            }
        }
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 6 of 13 : IERC1155MetadataURIUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155Upgradeable.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURIUpgradeable is IERC1155Upgradeable {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 7 of 13 : IERC1155ReceiverUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155ReceiverUpgradeable is IERC165Upgradeable {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 8 of 13 : IERC1155Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155Upgradeable is IERC165Upgradeable {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

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

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

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

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

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

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

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

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

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

File 9 of 13 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

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

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable {
    function __ERC165_init() internal onlyInitializing {
    }

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 12 of 13 : IERC165Upgradeable.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 IERC165Upgradeable {
    /**
     * @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 13 of 13 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.2) (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 rebuilds 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 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proofLen - 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 from 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) {
            require(proofPos == proofLen, "MerkleProof: invalid multiproof");
            unchecked {
                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 rebuilds 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 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proofLen - 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 from 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) {
            require(proofPos == proofLen, "MerkleProof: invalid multiproof");
            unchecked {
                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)
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"wallets","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"airdropManyTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"createdArray","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curatedDropAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCreatedArray","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_sevenArt","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_allowed","type":"uint256"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_allowed","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bool","name":"saleIsActive","type":"bool"},{"internalType":"bool","name":"allowlistActive","type":"bool"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"startDate","type":"uint256"},{"internalType":"uint256","name":"endDate","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"internalType":"struct SevenArtBase1155Slim.TokenProps","name":"_props","type":"tuple"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"setAllTokenProps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_allowlistActive","type":"bool"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"setAllowlistActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_percent","type":"uint256"}],"name":"setCuratedDropAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_endDate","type":"uint256"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"setEndDate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_saleIsActive","type":"bool"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"setSaleIsActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startDate","type":"uint256"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"setStartDate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sevenArt","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenAlreadyExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenProperties","outputs":[{"internalType":"bool","name":"saleIsActive","type":"bool"},{"internalType":"bool","name":"allowlistActive","type":"bool"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"startDate","type":"uint256"},{"internalType":"uint256","name":"endDate","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokensMintedByUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506138fc806100206000396000f3fe6080604052600436106102695760003560e01c806382fdc19611610153578063c4d66de8116100cb578063f1e9770b1161007f578063f2fde38b11610064578063f2fde38b1461073a578063f7667bcf1461075a578063f7d975771461077a57600080fd5b8063f1e9770b146106fa578063f242432a1461071a57600080fd5b8063dab4e1c9116100b0578063dab4e1c914610671578063e535157714610691578063e985e9c5146106b157600080fd5b8063c4d66de814610636578063c57981b51461065657600080fd5b8063a22cb46511610122578063b48b433111610107578063b48b4331146105d6578063bd85b039146105f6578063c0035b2a1461062357600080fd5b8063a22cb46514610589578063a94df4f4146105a957600080fd5b806382fdc196146105025780638da5cb5b14610522578063989228fd146105545780639afe19ba1461057457600080fd5b806343eb6eae116101e657806367db3b8f116101b5578063715018a61161019a578063715018a6146104ad578063751e8942146104c25780637c382d0b146104e257600080fd5b806367db3b8f146104775780636e6fdbc81461049757600080fd5b806343eb6eae146103db5780634e1273f4146103fb5780634f558e791461042857806356ad15f61461045757600080fd5b806334110a4d1161023d5780633bc1d4c6116102225780633bc1d4c6146103755780633ccfd60b146103955780633d68b276146103aa57600080fd5b806334110a4d1461032057806337da577c1461035557600080fd5b8062fdd58e1461026e57806301ffc9a7146102a15780630e89341c146102d15780632eb2c2d6146102fe575b600080fd5b34801561027a57600080fd5b5061028e610289366004612cfa565b61079a565b6040519081526020015b60405180910390f35b3480156102ad57600080fd5b506102c16102bc366004612d52565b610848565b6040519015158152602001610298565b3480156102dd57600080fd5b506102f16102ec366004612d6f565b61092b565b6040516102989190612dce565b34801561030a57600080fd5b5061031e610319366004612f57565b610a2b565b005b34801561032c57600080fd5b5061034061033b366004612d6f565b610acd565b60405161029899989796959493929190613001565b34801561036157600080fd5b5061031e61037036600461305a565b610ba3565b34801561038157600080fd5b5061031e61039036600461308c565b610c1a565b3480156103a157600080fd5b5061031e610ca3565b3480156103b657600080fd5b506102c16103c5366004612d6f565b6101006020526000908152604090205460ff1681565b3480156103e757600080fd5b5061031e6103f63660046130f4565b610e1f565b34801561040757600080fd5b5061041b61041636600461318e565b610f9c565b6040516102989190613294565b34801561043457600080fd5b506102c1610443366004612d6f565b600090815260976020526040902054151590565b34801561046357600080fd5b5061031e61047236600461305a565b6110da565b34801561048357600080fd5b5061031e6104923660046132a7565b611151565b3480156104a357600080fd5b5061028e60fb5481565b3480156104b957600080fd5b5061031e6111d4565b3480156104ce57600080fd5b5061031e6104dd36600461305a565b6111e8565b3480156104ee57600080fd5b5061031e6104fd36600461305a565b61125f565b34801561050e57600080fd5b5061031e61051d3660046132ec565b6112d6565b34801561052e57600080fd5b5060c9546001600160a01b03165b6040516001600160a01b039091168152602001610298565b34801561056057600080fd5b5061031e61056f36600461308c565b6113f5565b34801561058057600080fd5b5061041b611477565b34801561059557600080fd5b5061031e6105a43660046133c7565b6114cf565b3480156105b557600080fd5b5061028e6105c43660046133fa565b60ff6020526000908152604090205481565b3480156105e257600080fd5b5061028e6105f1366004612d6f565b6114da565b34801561060257600080fd5b5061028e610611366004612d6f565b60009081526097602052604090205490565b61031e610631366004613415565b6114fb565b34801561064257600080fd5b5061031e6106513660046133fa565b6118e2565b34801561066257600080fd5b5061028e6602bc4f987a200081565b34801561067d57600080fd5b5061031e61068c36600461305a565b611a3d565b34801561069d57600080fd5b5061031e6106ac366004612d6f565b611ab4565b3480156106bd57600080fd5b506102c16106cc366004613476565b6001600160a01b03918216600090815260666020908152604080832093909416825291909152205460ff1690565b34801561070657600080fd5b506102c16107153660046134a0565b611b64565b34801561072657600080fd5b5061031e6107353660046134eb565b611bf6565b34801561074657600080fd5b5061031e6107553660046133fa565b611c91565b34801561076657600080fd5b5060fc5461053c906001600160a01b031681565b34801561078657600080fd5b5061031e61079536600461305a565b611d21565b60006001600160a01b03831661081d5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201527f616c6964206f776e65720000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060008181526065602090815260408083206001600160a01b03861684529091529020545b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a260000000000000000000000000000000000000000000000000000000014806108db57507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061084257507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610842565b60008181526101006020526040902054606090829060ff166109885760405162461bcd60e51b8152602060048201526016602482015275125b9a5d1a585b1a5e99481d1bdad95b88199a5c9cdd60521b6044820152606401610814565b600083815260fe6020526040902060010180546109a490613550565b80601f01602080910402602001604051908101604052809291908181526020018280546109d090613550565b8015610a1d5780601f106109f257610100808354040283529160200191610a1d565b820191906000526020600020905b815481529060010190602001808311610a0057829003601f168201915b505050505091505b50919050565b6001600160a01b038516331480610a475750610a4785336106cc565b610ab95760405162461bcd60e51b815260206004820152602e60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206f7220617070726f7665640000000000000000000000000000000000006064820152608401610814565b610ac68585858585611d98565b5050505050565b60fe602052600090815260409020805460018201805460ff8084169461010090940416929190610afc90613550565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2890613550565b8015610b755780601f10610b4a57610100808354040283529160200191610b75565b820191906000526020600020905b815481529060010190602001808311610b5857829003601f168201915b5050505050908060020154908060030154908060040154908060050154908060060154908060070154905089565b610bab61203f565b60008181526101006020526040902054819060ff16610c055760405162461bcd60e51b8152602060048201526016602482015275125b9a5d1a585b1a5e99481d1bdad95b88199a5c9cdd60521b6044820152606401610814565b50600090815260fe6020526040902060060155565b610c2261203f565b60008181526101006020526040902054819060ff16610c7c5760405162461bcd60e51b8152602060048201526016602482015275125b9a5d1a585b1a5e99481d1bdad95b88199a5c9cdd60521b6044820152606401610814565b50600090815260fe6020526040902080549115156101000261ff0019909216919091179055565b60fc546001600160a01b0316331480610cc6575060c9546001600160a01b031633145b610d385760405162461bcd60e51b815260206004820152602260248201527f63616c6c6572206973206e6f7420746865206f776e6572202f20736576656e6160448201527f72740000000000000000000000000000000000000000000000000000000000006064820152608401610814565b6000606460fb5447610d4a919061359a565b610d5491906135b1565b60fc546040519192506000916001600160a01b039091169083908381818185875af1925050503d8060008114610da6576040519150601f19603f3d011682016040523d82523d6000602084013e610dab565b606091505b5050905080610db957600080fd5b60c9546040516001600160a01b03909116904790600081818185875af1925050503d8060008114610e06576040519150601f19603f3d011682016040523d82523d6000602084013e610e0b565b606091505b50508091505080610e1b57600080fd5b5050565b610e2761203f565b8483148015610e3557508481145b8015610e4057508281145b610e8c5760405162461bcd60e51b815260206004820152601e60248201527f496e70757473206d757374206265207468652073616d65206c656e67746800006044820152606401610814565b60005b83811015610f93576101006000868684818110610eae57610eae6135d3565b602090810292909201358352508101919091526040016000205460ff16610f105760405162461bcd60e51b8152602060048201526016602482015275125b9a5d1a585b1a5e99481d1bdad95b88199a5c9cdd60521b6044820152606401610814565b610f81878783818110610f2557610f256135d3565b9050602002016020810190610f3a91906133fa565b868684818110610f4c57610f4c6135d3565b90506020020135858585818110610f6557610f656135d3565b9050602002013560405180602001604052806000815250612099565b80610f8b816135e9565b915050610e8f565b50505050505050565b606081518351146110155760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608401610814565b6000835167ffffffffffffffff81111561103157611031612de1565b60405190808252806020026020018201604052801561105a578160200160208202803683370190505b50905060005b84518110156110d2576110a585828151811061107e5761107e6135d3565b6020026020010151858381518110611098576110986135d3565b602002602001015161079a565b8282815181106110b7576110b76135d3565b60209081029190910101526110cb816135e9565b9050611060565b509392505050565b6110e261203f565b60008181526101006020526040902054819060ff1661113c5760405162461bcd60e51b8152602060048201526016602482015275125b9a5d1a585b1a5e99481d1bdad95b88199a5c9cdd60521b6044820152606401610814565b50600090815260fe6020526040902060050155565b61115961203f565b60008181526101006020526040902054819060ff166111b35760405162461bcd60e51b8152602060048201526016602482015275125b9a5d1a585b1a5e99481d1bdad95b88199a5c9cdd60521b6044820152606401610814565b600082815260fe602052604090206001016111ce848261364e565b50505050565b6111dc61203f565b6111e660006121d1565b565b6111f061203f565b60008181526101006020526040902054819060ff1661124a5760405162461bcd60e51b8152602060048201526016602482015275125b9a5d1a585b1a5e99481d1bdad95b88199a5c9cdd60521b6044820152606401610814565b50600090815260fe6020526040902060040155565b61126761203f565b60008181526101006020526040902054819060ff166112c15760405162461bcd60e51b8152602060048201526016602482015275125b9a5d1a585b1a5e99481d1bdad95b88199a5c9cdd60521b6044820152606401610814565b50600090815260fe6020526040902060070155565b6112de61203f565b600081815260fe602090815260409182902084518154928601517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000090931690151561ff001916176101009215159290920291909117815590830151839190600182019061134b908261364e565b50606082015160028201556080820151600382015560a0820151600482015560c0820151600582015560e08201516006820155610100918201516007909101556000828152602091909152604090205460ff166113d85760fd80546001810182556000919091527f9346ac6dd7de6b96975fec380d4d994c4c12e6a8897544f22915316cc6cca280018190555b600090815261010060205260409020805460ff1916600117905550565b6113fd61203f565b60008181526101006020526040902054819060ff166114575760405162461bcd60e51b8152602060048201526016602482015275125b9a5d1a585b1a5e99481d1bdad95b88199a5c9cdd60521b6044820152606401610814565b50600090815260fe60205260409020805460ff1916911515919091179055565b606060fd8054806020026020016040519081016040528092919081815260200182805480156114c557602002820191906000526020600020905b8154815260200190600101908083116114b1575b5050505050905090565b610e1b33838361223b565b60fd81815481106114ea57600080fd5b600091825260209091200154905081565b600085815260fe602052604090205460ff166115595760405162461bcd60e51b815260206004820152601260248201527f53616c65206973206e6f742061637469766500000000000000000000000000006044820152606401610814565b6115628561232f565b6115ae5760405162461bcd60e51b815260206004820152601060248201527f4e6f7420617420746869732074696d65000000000000000000000000000000006044820152606401610814565b600085815260fe602052604090206006015415806115f35750600085815260fe60209081526040808320600601546097909252909120546115f090869061370e565b11155b61163f5760405162461bcd60e51b815260206004820152600860248201527f536f6c64206f75740000000000000000000000000000000000000000000000006044820152606401610814565b600085815260fe602052604090206005015415806116875750600085815260fe602090815260408083206005015433845260ff9092529091205461168490869061370e565b11155b6116d35760405162461bcd60e51b815260206004820152601460248201527f526561636865642077616c6c6574206c696d69740000000000000000000000006044820152606401610814565b600085815260fe6020526040902054610100900460ff16156117b35733600090815260ff6020526040902054839061170c90869061370e565b111561175a5760405162461bcd60e51b815260206004820152600f60248201527f43616e2774206d696e74206d6f726500000000000000000000000000000000006044820152606401610814565b6117673384878585611b64565b6117b35760405162461bcd60e51b815260206004820152600f60248201527f4e6f742077686974656c697374656400000000000000000000000000000000006044820152606401610814565b600085815260fe602052604090206002015434906602bc4f987a2000906117da908761359a565b6117e4919061370e565b11156118325760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420656e6f756768204554480000000000000000000000000000000000006044820152606401610814565b60fc546040516000916001600160a01b0316906602bc4f987a2000908381818185875af1925050503d8060008114611886576040519150601f19603f3d011682016040523d82523d6000602084013e61188b565b606091505b505090508061189957600080fd5b33600090815260ff6020526040812080548792906118b890849061370e565b925050819055506118da33878760405180602001604052806000815250612099565b505050505050565b600054610100900460ff16158080156119025750600054600160ff909116105b8061191c5750303b15801561191c575060005460ff166001145b61198e5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610814565b6000805460ff1916600117905580156119b1576000805461ff0019166101001790555b60fc80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384161790556119ec6123a9565b6119f4612426565b8015610e1b576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b611a4561203f565b60008181526101006020526040902054819060ff16611a9f5760405162461bcd60e51b8152602060048201526016602482015275125b9a5d1a585b1a5e99481d1bdad95b88199a5c9cdd60521b6044820152606401610814565b50600090815260fe6020526040902060030155565b60fc546001600160a01b03163314611b0e5760405162461bcd60e51b815260206004820152601a60248201527f6f6e6c7920736576656e6172742063616e2073657420746869730000000000006044820152606401610814565b6032811115611b5f5760405162461bcd60e51b815260206004820152601160248201527f6f6e6c7920312d353020616c6c6f7765640000000000000000000000000000006044820152606401610814565b60fb55565b604080516001600160a01b03871660208201529081018590526000908190606001604051602081830303815290604052805190602001209050611beb84848080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508a815260fe602052604090206007015492508591506124ab9050565b979650505050505050565b6001600160a01b038516331480611c125750611c1285336106cc565b611c845760405162461bcd60e51b815260206004820152602e60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206f7220617070726f7665640000000000000000000000000000000000006064820152608401610814565b610ac685858585856124c1565b611c9961203f565b6001600160a01b038116611d155760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610814565b611d1e816121d1565b50565b611d2961203f565b60008181526101006020526040902054819060ff16611d835760405162461bcd60e51b8152602060048201526016602482015275125b9a5d1a585b1a5e99481d1bdad95b88199a5c9cdd60521b6044820152606401610814565b50600090815260fe6020526040902060020155565b8151835114611e0f5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152608401610814565b6001600160a01b038416611e8b5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610814565b33611e9a8187878787876126a9565b60005b8451811015611fd9576000858281518110611eba57611eba6135d3565b602002602001015190506000858381518110611ed857611ed86135d3565b60209081029190910181015160008481526065835260408082206001600160a01b038e168352909352919091205490915081811015611f7f5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608401610814565b60008381526065602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611fbe90849061370e565b9250508190555050505080611fd2906135e9565b9050611e9d565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612029929190613721565b60405180910390a46118da818787878787612837565b60c9546001600160a01b031633146111e65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610814565b6001600160a01b0384166121155760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610814565b33600061212185612a3b565b9050600061212e85612a3b565b905061213f836000898585896126a9565b60008681526065602090815260408083206001600160a01b038b1684529091528120805487929061217190849061370e565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610f9383600089898989612a86565b60c980546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036122c25760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610814565b6001600160a01b03838116600081815260666020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600081815260fe6020526040812060030154158061235e5750600082815260fe60205260409020600301544210155b80156123945750600082815260fe602052604090206004015415806123945750600082815260fe60205260409020600401544211155b156123a157506001919050565b506000919050565b600054610100900460ff166111e65760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610814565b600054610100900460ff166124a35760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610814565b6111e6612be1565b6000826124b88584612c67565b14949350505050565b6001600160a01b03841661253d5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610814565b33600061254985612a3b565b9050600061255685612a3b565b90506125668389898585896126a9565b60008681526065602090815260408083206001600160a01b038c168452909152902054858110156125ff5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608401610814565b60008781526065602090815260408083206001600160a01b038d8116855292528083208985039055908a1682528120805488929061263e90849061370e565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461269e848a8a8a8a8a612a86565b505050505050505050565b6001600160a01b0385166127305760005b835181101561272e578281815181106126d5576126d56135d3565b6020026020010151609760008684815181106126f3576126f36135d3565b602002602001015181526020019081526020016000206000828254612718919061370e565b909155506127279050816135e9565b90506126ba565b505b6001600160a01b0384166118da5760005b8351811015610f9357600084828151811061275e5761275e6135d3565b60200260200101519050600084838151811061277c5761277c6135d3565b60200260200101519050600060976000848152602001908152602001600020549050818110156128145760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f7460448201527f616c537570706c790000000000000000000000000000000000000000000000006064820152608401610814565b60009283526097602052604090922091039055612830816135e9565b9050612741565b6001600160a01b0384163b156118da576040517fbc197c810000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063bc197c8190612894908990899088908890889060040161374f565b6020604051808303816000875af19250505080156128cf575060408051601f3d908101601f191682019092526128cc918101906137ad565b60015b612984576128db6137ca565b806308c379a00361291457506128ef6137e6565b806128fa5750612916565b8060405162461bcd60e51b81526004016108149190612dce565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610814565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c810000000000000000000000000000000000000000000000000000000014610f935760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608401610814565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612a7557612a756135d3565b602090810291909101015292915050565b6001600160a01b0384163b156118da576040517ff23a6e610000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063f23a6e6190612ae3908990899088908890889060040161388e565b6020604051808303816000875af1925050508015612b1e575060408051601f3d908101601f19168201909252612b1b918101906137ad565b60015b612b2a576128db6137ca565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e610000000000000000000000000000000000000000000000000000000014610f935760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608401610814565b600054610100900460ff16612c5e5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610814565b6111e6336121d1565b600081815b84518110156110d257612c9882868381518110612c8b57612c8b6135d3565b6020026020010151612cac565b915080612ca4816135e9565b915050612c6c565b6000818310612cc8576000828152602084905260409020612cd7565b60008381526020839052604090205b9392505050565b80356001600160a01b0381168114612cf557600080fd5b919050565b60008060408385031215612d0d57600080fd5b612d1683612cde565b946020939093013593505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611d1e57600080fd5b600060208284031215612d6457600080fd5b8135612cd781612d24565b600060208284031215612d8157600080fd5b5035919050565b6000815180845260005b81811015612dae57602081850181015186830182015201612d92565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000612cd76020830184612d88565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715612e1d57612e1d612de1565b6040525050565b604051610120810167ffffffffffffffff81118282101715612e4857612e48612de1565b60405290565b600067ffffffffffffffff821115612e6857612e68612de1565b5060051b60200190565b600082601f830112612e8357600080fd5b81356020612e9082612e4e565b604051612e9d8282612df7565b83815260059390931b8501820192828101915086841115612ebd57600080fd5b8286015b84811015612ed85780358352918301918301612ec1565b509695505050505050565b600082601f830112612ef457600080fd5b813567ffffffffffffffff811115612f0e57612f0e612de1565b604051612f256020601f19601f8501160182612df7565b818152846020838601011115612f3a57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215612f6f57600080fd5b612f7886612cde565b9450612f8660208701612cde565b9350604086013567ffffffffffffffff80821115612fa357600080fd5b612faf89838a01612e72565b94506060880135915080821115612fc557600080fd5b612fd189838a01612e72565b93506080880135915080821115612fe757600080fd5b50612ff488828901612ee3565b9150509295509295909350565b60006101208b151583528a151560208401528060408401526130258184018b612d88565b60608401999099525050608081019590955260a085019390935260c084019190915260e0830152610100909101529392505050565b6000806040838503121561306d57600080fd5b50508035926020909101359150565b80358015158114612cf557600080fd5b6000806040838503121561309f57600080fd5b612d168361307c565b60008083601f8401126130ba57600080fd5b50813567ffffffffffffffff8111156130d257600080fd5b6020830191508360208260051b85010111156130ed57600080fd5b9250929050565b6000806000806000806060878903121561310d57600080fd5b863567ffffffffffffffff8082111561312557600080fd5b6131318a838b016130a8565b9098509650602089013591508082111561314a57600080fd5b6131568a838b016130a8565b9096509450604089013591508082111561316f57600080fd5b5061317c89828a016130a8565b979a9699509497509295939492505050565b600080604083850312156131a157600080fd5b823567ffffffffffffffff808211156131b957600080fd5b818501915085601f8301126131cd57600080fd5b813560206131da82612e4e565b6040516131e78282612df7565b83815260059390931b850182019282810191508984111561320757600080fd5b948201945b8386101561322c5761321d86612cde565b8252948201949082019061320c565b9650508601359250508082111561324257600080fd5b5061324f85828601612e72565b9150509250929050565b600081518084526020808501945080840160005b838110156132895781518752958201959082019060010161326d565b509495945050505050565b602081526000612cd76020830184613259565b600080604083850312156132ba57600080fd5b823567ffffffffffffffff8111156132d157600080fd5b6132dd85828601612ee3565b95602094909401359450505050565b600080604083850312156132ff57600080fd5b823567ffffffffffffffff8082111561331757600080fd5b90840190610120828703121561332c57600080fd5b613334612e24565b61333d8361307c565b815261334b6020840161307c565b602082015260408301358281111561336257600080fd5b61336e88828601612ee3565b604083015250606083013560608201526080830135608082015260a083013560a082015260c083013560c082015260e083013560e082015261010091508183013582820152809450505050602083013590509250929050565b600080604083850312156133da57600080fd5b6133e383612cde565b91506133f16020840161307c565b90509250929050565b60006020828403121561340c57600080fd5b612cd782612cde565b60008060008060006080868803121561342d57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561345957600080fd5b613465888289016130a8565b969995985093965092949392505050565b6000806040838503121561348957600080fd5b61349283612cde565b91506133f160208401612cde565b6000806000806000608086880312156134b857600080fd5b6134c186612cde565b94506020860135935060408601359250606086013567ffffffffffffffff81111561345957600080fd5b600080600080600060a0868803121561350357600080fd5b61350c86612cde565b945061351a60208701612cde565b93506040860135925060608601359150608086013567ffffffffffffffff81111561354457600080fd5b612ff488828901612ee3565b600181811c9082168061356457607f821691505b602082108103610a2557634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761084257610842613584565b6000826135ce57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600060001982036135fc576135fc613584565b5060010190565b601f82111561364957600081815260208120601f850160051c8101602086101561362a5750805b601f850160051c820191505b818110156118da57828155600101613636565b505050565b815167ffffffffffffffff81111561366857613668612de1565b61367c816136768454613550565b84613603565b602080601f8311600181146136b157600084156136995750858301515b600019600386901b1c1916600185901b1785556118da565b600085815260208120601f198616915b828110156136e0578886015182559484019460019091019084016136c1565b50858210156136fe5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8082018082111561084257610842613584565b6040815260006137346040830185613259565b82810360208401526137468185613259565b95945050505050565b60006001600160a01b03808816835280871660208401525060a0604083015261377b60a0830186613259565b828103606084015261378d8186613259565b905082810360808401526137a18185612d88565b98975050505050505050565b6000602082840312156137bf57600080fd5b8151612cd781612d24565b600060033d11156137e35760046000803e5060005160e01c5b90565b600060443d10156137f45790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff816024840111818411171561384257505050505090565b828501915081518181111561385a5750505050505090565b843d87010160208285010111156138745750505050505090565b61388360208286010187612df7565b509095945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152611beb60a0830184612d8856fea264697066735822122063ef1e27a6bbf7dd48695988017f2aeaa3a1574a843b4b54e28392d22d99ef9664736f6c63430008120033

Deployed Bytecode

0x6080604052600436106102695760003560e01c806382fdc19611610153578063c4d66de8116100cb578063f1e9770b1161007f578063f2fde38b11610064578063f2fde38b1461073a578063f7667bcf1461075a578063f7d975771461077a57600080fd5b8063f1e9770b146106fa578063f242432a1461071a57600080fd5b8063dab4e1c9116100b0578063dab4e1c914610671578063e535157714610691578063e985e9c5146106b157600080fd5b8063c4d66de814610636578063c57981b51461065657600080fd5b8063a22cb46511610122578063b48b433111610107578063b48b4331146105d6578063bd85b039146105f6578063c0035b2a1461062357600080fd5b8063a22cb46514610589578063a94df4f4146105a957600080fd5b806382fdc196146105025780638da5cb5b14610522578063989228fd146105545780639afe19ba1461057457600080fd5b806343eb6eae116101e657806367db3b8f116101b5578063715018a61161019a578063715018a6146104ad578063751e8942146104c25780637c382d0b146104e257600080fd5b806367db3b8f146104775780636e6fdbc81461049757600080fd5b806343eb6eae146103db5780634e1273f4146103fb5780634f558e791461042857806356ad15f61461045757600080fd5b806334110a4d1161023d5780633bc1d4c6116102225780633bc1d4c6146103755780633ccfd60b146103955780633d68b276146103aa57600080fd5b806334110a4d1461032057806337da577c1461035557600080fd5b8062fdd58e1461026e57806301ffc9a7146102a15780630e89341c146102d15780632eb2c2d6146102fe575b600080fd5b34801561027a57600080fd5b5061028e610289366004612cfa565b61079a565b6040519081526020015b60405180910390f35b3480156102ad57600080fd5b506102c16102bc366004612d52565b610848565b6040519015158152602001610298565b3480156102dd57600080fd5b506102f16102ec366004612d6f565b61092b565b6040516102989190612dce565b34801561030a57600080fd5b5061031e610319366004612f57565b610a2b565b005b34801561032c57600080fd5b5061034061033b366004612d6f565b610acd565b60405161029899989796959493929190613001565b34801561036157600080fd5b5061031e61037036600461305a565b610ba3565b34801561038157600080fd5b5061031e61039036600461308c565b610c1a565b3480156103a157600080fd5b5061031e610ca3565b3480156103b657600080fd5b506102c16103c5366004612d6f565b6101006020526000908152604090205460ff1681565b3480156103e757600080fd5b5061031e6103f63660046130f4565b610e1f565b34801561040757600080fd5b5061041b61041636600461318e565b610f9c565b6040516102989190613294565b34801561043457600080fd5b506102c1610443366004612d6f565b600090815260976020526040902054151590565b34801561046357600080fd5b5061031e61047236600461305a565b6110da565b34801561048357600080fd5b5061031e6104923660046132a7565b611151565b3480156104a357600080fd5b5061028e60fb5481565b3480156104b957600080fd5b5061031e6111d4565b3480156104ce57600080fd5b5061031e6104dd36600461305a565b6111e8565b3480156104ee57600080fd5b5061031e6104fd36600461305a565b61125f565b34801561050e57600080fd5b5061031e61051d3660046132ec565b6112d6565b34801561052e57600080fd5b5060c9546001600160a01b03165b6040516001600160a01b039091168152602001610298565b34801561056057600080fd5b5061031e61056f36600461308c565b6113f5565b34801561058057600080fd5b5061041b611477565b34801561059557600080fd5b5061031e6105a43660046133c7565b6114cf565b3480156105b557600080fd5b5061028e6105c43660046133fa565b60ff6020526000908152604090205481565b3480156105e257600080fd5b5061028e6105f1366004612d6f565b6114da565b34801561060257600080fd5b5061028e610611366004612d6f565b60009081526097602052604090205490565b61031e610631366004613415565b6114fb565b34801561064257600080fd5b5061031e6106513660046133fa565b6118e2565b34801561066257600080fd5b5061028e6602bc4f987a200081565b34801561067d57600080fd5b5061031e61068c36600461305a565b611a3d565b34801561069d57600080fd5b5061031e6106ac366004612d6f565b611ab4565b3480156106bd57600080fd5b506102c16106cc366004613476565b6001600160a01b03918216600090815260666020908152604080832093909416825291909152205460ff1690565b34801561070657600080fd5b506102c16107153660046134a0565b611b64565b34801561072657600080fd5b5061031e6107353660046134eb565b611bf6565b34801561074657600080fd5b5061031e6107553660046133fa565b611c91565b34801561076657600080fd5b5060fc5461053c906001600160a01b031681565b34801561078657600080fd5b5061031e61079536600461305a565b611d21565b60006001600160a01b03831661081d5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201527f616c6964206f776e65720000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060008181526065602090815260408083206001600160a01b03861684529091529020545b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a260000000000000000000000000000000000000000000000000000000014806108db57507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061084257507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610842565b60008181526101006020526040902054606090829060ff166109885760405162461bcd60e51b8152602060048201526016602482015275125b9a5d1a585b1a5e99481d1bdad95b88199a5c9cdd60521b6044820152606401610814565b600083815260fe6020526040902060010180546109a490613550565b80601f01602080910402602001604051908101604052809291908181526020018280546109d090613550565b8015610a1d5780601f106109f257610100808354040283529160200191610a1d565b820191906000526020600020905b815481529060010190602001808311610a0057829003601f168201915b505050505091505b50919050565b6001600160a01b038516331480610a475750610a4785336106cc565b610ab95760405162461bcd60e51b815260206004820152602e60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206f7220617070726f7665640000000000000000000000000000000000006064820152608401610814565b610ac68585858585611d98565b5050505050565b60fe602052600090815260409020805460018201805460ff8084169461010090940416929190610afc90613550565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2890613550565b8015610b755780601f10610b4a57610100808354040283529160200191610b75565b820191906000526020600020905b815481529060010190602001808311610b5857829003601f168201915b5050505050908060020154908060030154908060040154908060050154908060060154908060070154905089565b610bab61203f565b60008181526101006020526040902054819060ff16610c055760405162461bcd60e51b8152602060048201526016602482015275125b9a5d1a585b1a5e99481d1bdad95b88199a5c9cdd60521b6044820152606401610814565b50600090815260fe6020526040902060060155565b610c2261203f565b60008181526101006020526040902054819060ff16610c7c5760405162461bcd60e51b8152602060048201526016602482015275125b9a5d1a585b1a5e99481d1bdad95b88199a5c9cdd60521b6044820152606401610814565b50600090815260fe6020526040902080549115156101000261ff0019909216919091179055565b60fc546001600160a01b0316331480610cc6575060c9546001600160a01b031633145b610d385760405162461bcd60e51b815260206004820152602260248201527f63616c6c6572206973206e6f7420746865206f776e6572202f20736576656e6160448201527f72740000000000000000000000000000000000000000000000000000000000006064820152608401610814565b6000606460fb5447610d4a919061359a565b610d5491906135b1565b60fc546040519192506000916001600160a01b039091169083908381818185875af1925050503d8060008114610da6576040519150601f19603f3d011682016040523d82523d6000602084013e610dab565b606091505b5050905080610db957600080fd5b60c9546040516001600160a01b03909116904790600081818185875af1925050503d8060008114610e06576040519150601f19603f3d011682016040523d82523d6000602084013e610e0b565b606091505b50508091505080610e1b57600080fd5b5050565b610e2761203f565b8483148015610e3557508481145b8015610e4057508281145b610e8c5760405162461bcd60e51b815260206004820152601e60248201527f496e70757473206d757374206265207468652073616d65206c656e67746800006044820152606401610814565b60005b83811015610f93576101006000868684818110610eae57610eae6135d3565b602090810292909201358352508101919091526040016000205460ff16610f105760405162461bcd60e51b8152602060048201526016602482015275125b9a5d1a585b1a5e99481d1bdad95b88199a5c9cdd60521b6044820152606401610814565b610f81878783818110610f2557610f256135d3565b9050602002016020810190610f3a91906133fa565b868684818110610f4c57610f4c6135d3565b90506020020135858585818110610f6557610f656135d3565b9050602002013560405180602001604052806000815250612099565b80610f8b816135e9565b915050610e8f565b50505050505050565b606081518351146110155760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608401610814565b6000835167ffffffffffffffff81111561103157611031612de1565b60405190808252806020026020018201604052801561105a578160200160208202803683370190505b50905060005b84518110156110d2576110a585828151811061107e5761107e6135d3565b6020026020010151858381518110611098576110986135d3565b602002602001015161079a565b8282815181106110b7576110b76135d3565b60209081029190910101526110cb816135e9565b9050611060565b509392505050565b6110e261203f565b60008181526101006020526040902054819060ff1661113c5760405162461bcd60e51b8152602060048201526016602482015275125b9a5d1a585b1a5e99481d1bdad95b88199a5c9cdd60521b6044820152606401610814565b50600090815260fe6020526040902060050155565b61115961203f565b60008181526101006020526040902054819060ff166111b35760405162461bcd60e51b8152602060048201526016602482015275125b9a5d1a585b1a5e99481d1bdad95b88199a5c9cdd60521b6044820152606401610814565b600082815260fe602052604090206001016111ce848261364e565b50505050565b6111dc61203f565b6111e660006121d1565b565b6111f061203f565b60008181526101006020526040902054819060ff1661124a5760405162461bcd60e51b8152602060048201526016602482015275125b9a5d1a585b1a5e99481d1bdad95b88199a5c9cdd60521b6044820152606401610814565b50600090815260fe6020526040902060040155565b61126761203f565b60008181526101006020526040902054819060ff166112c15760405162461bcd60e51b8152602060048201526016602482015275125b9a5d1a585b1a5e99481d1bdad95b88199a5c9cdd60521b6044820152606401610814565b50600090815260fe6020526040902060070155565b6112de61203f565b600081815260fe602090815260409182902084518154928601517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000090931690151561ff001916176101009215159290920291909117815590830151839190600182019061134b908261364e565b50606082015160028201556080820151600382015560a0820151600482015560c0820151600582015560e08201516006820155610100918201516007909101556000828152602091909152604090205460ff166113d85760fd80546001810182556000919091527f9346ac6dd7de6b96975fec380d4d994c4c12e6a8897544f22915316cc6cca280018190555b600090815261010060205260409020805460ff1916600117905550565b6113fd61203f565b60008181526101006020526040902054819060ff166114575760405162461bcd60e51b8152602060048201526016602482015275125b9a5d1a585b1a5e99481d1bdad95b88199a5c9cdd60521b6044820152606401610814565b50600090815260fe60205260409020805460ff1916911515919091179055565b606060fd8054806020026020016040519081016040528092919081815260200182805480156114c557602002820191906000526020600020905b8154815260200190600101908083116114b1575b5050505050905090565b610e1b33838361223b565b60fd81815481106114ea57600080fd5b600091825260209091200154905081565b600085815260fe602052604090205460ff166115595760405162461bcd60e51b815260206004820152601260248201527f53616c65206973206e6f742061637469766500000000000000000000000000006044820152606401610814565b6115628561232f565b6115ae5760405162461bcd60e51b815260206004820152601060248201527f4e6f7420617420746869732074696d65000000000000000000000000000000006044820152606401610814565b600085815260fe602052604090206006015415806115f35750600085815260fe60209081526040808320600601546097909252909120546115f090869061370e565b11155b61163f5760405162461bcd60e51b815260206004820152600860248201527f536f6c64206f75740000000000000000000000000000000000000000000000006044820152606401610814565b600085815260fe602052604090206005015415806116875750600085815260fe602090815260408083206005015433845260ff9092529091205461168490869061370e565b11155b6116d35760405162461bcd60e51b815260206004820152601460248201527f526561636865642077616c6c6574206c696d69740000000000000000000000006044820152606401610814565b600085815260fe6020526040902054610100900460ff16156117b35733600090815260ff6020526040902054839061170c90869061370e565b111561175a5760405162461bcd60e51b815260206004820152600f60248201527f43616e2774206d696e74206d6f726500000000000000000000000000000000006044820152606401610814565b6117673384878585611b64565b6117b35760405162461bcd60e51b815260206004820152600f60248201527f4e6f742077686974656c697374656400000000000000000000000000000000006044820152606401610814565b600085815260fe602052604090206002015434906602bc4f987a2000906117da908761359a565b6117e4919061370e565b11156118325760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420656e6f756768204554480000000000000000000000000000000000006044820152606401610814565b60fc546040516000916001600160a01b0316906602bc4f987a2000908381818185875af1925050503d8060008114611886576040519150601f19603f3d011682016040523d82523d6000602084013e61188b565b606091505b505090508061189957600080fd5b33600090815260ff6020526040812080548792906118b890849061370e565b925050819055506118da33878760405180602001604052806000815250612099565b505050505050565b600054610100900460ff16158080156119025750600054600160ff909116105b8061191c5750303b15801561191c575060005460ff166001145b61198e5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610814565b6000805460ff1916600117905580156119b1576000805461ff0019166101001790555b60fc80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384161790556119ec6123a9565b6119f4612426565b8015610e1b576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b611a4561203f565b60008181526101006020526040902054819060ff16611a9f5760405162461bcd60e51b8152602060048201526016602482015275125b9a5d1a585b1a5e99481d1bdad95b88199a5c9cdd60521b6044820152606401610814565b50600090815260fe6020526040902060030155565b60fc546001600160a01b03163314611b0e5760405162461bcd60e51b815260206004820152601a60248201527f6f6e6c7920736576656e6172742063616e2073657420746869730000000000006044820152606401610814565b6032811115611b5f5760405162461bcd60e51b815260206004820152601160248201527f6f6e6c7920312d353020616c6c6f7765640000000000000000000000000000006044820152606401610814565b60fb55565b604080516001600160a01b03871660208201529081018590526000908190606001604051602081830303815290604052805190602001209050611beb84848080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508a815260fe602052604090206007015492508591506124ab9050565b979650505050505050565b6001600160a01b038516331480611c125750611c1285336106cc565b611c845760405162461bcd60e51b815260206004820152602e60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206f7220617070726f7665640000000000000000000000000000000000006064820152608401610814565b610ac685858585856124c1565b611c9961203f565b6001600160a01b038116611d155760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610814565b611d1e816121d1565b50565b611d2961203f565b60008181526101006020526040902054819060ff16611d835760405162461bcd60e51b8152602060048201526016602482015275125b9a5d1a585b1a5e99481d1bdad95b88199a5c9cdd60521b6044820152606401610814565b50600090815260fe6020526040902060020155565b8151835114611e0f5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152608401610814565b6001600160a01b038416611e8b5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610814565b33611e9a8187878787876126a9565b60005b8451811015611fd9576000858281518110611eba57611eba6135d3565b602002602001015190506000858381518110611ed857611ed86135d3565b60209081029190910181015160008481526065835260408082206001600160a01b038e168352909352919091205490915081811015611f7f5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608401610814565b60008381526065602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611fbe90849061370e565b9250508190555050505080611fd2906135e9565b9050611e9d565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612029929190613721565b60405180910390a46118da818787878787612837565b60c9546001600160a01b031633146111e65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610814565b6001600160a01b0384166121155760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610814565b33600061212185612a3b565b9050600061212e85612a3b565b905061213f836000898585896126a9565b60008681526065602090815260408083206001600160a01b038b1684529091528120805487929061217190849061370e565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610f9383600089898989612a86565b60c980546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036122c25760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610814565b6001600160a01b03838116600081815260666020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600081815260fe6020526040812060030154158061235e5750600082815260fe60205260409020600301544210155b80156123945750600082815260fe602052604090206004015415806123945750600082815260fe60205260409020600401544211155b156123a157506001919050565b506000919050565b600054610100900460ff166111e65760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610814565b600054610100900460ff166124a35760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610814565b6111e6612be1565b6000826124b88584612c67565b14949350505050565b6001600160a01b03841661253d5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610814565b33600061254985612a3b565b9050600061255685612a3b565b90506125668389898585896126a9565b60008681526065602090815260408083206001600160a01b038c168452909152902054858110156125ff5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608401610814565b60008781526065602090815260408083206001600160a01b038d8116855292528083208985039055908a1682528120805488929061263e90849061370e565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461269e848a8a8a8a8a612a86565b505050505050505050565b6001600160a01b0385166127305760005b835181101561272e578281815181106126d5576126d56135d3565b6020026020010151609760008684815181106126f3576126f36135d3565b602002602001015181526020019081526020016000206000828254612718919061370e565b909155506127279050816135e9565b90506126ba565b505b6001600160a01b0384166118da5760005b8351811015610f9357600084828151811061275e5761275e6135d3565b60200260200101519050600084838151811061277c5761277c6135d3565b60200260200101519050600060976000848152602001908152602001600020549050818110156128145760405162461bcd60e51b815260206004820152602860248201527f455243313135353a206275726e20616d6f756e74206578636565647320746f7460448201527f616c537570706c790000000000000000000000000000000000000000000000006064820152608401610814565b60009283526097602052604090922091039055612830816135e9565b9050612741565b6001600160a01b0384163b156118da576040517fbc197c810000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063bc197c8190612894908990899088908890889060040161374f565b6020604051808303816000875af19250505080156128cf575060408051601f3d908101601f191682019092526128cc918101906137ad565b60015b612984576128db6137ca565b806308c379a00361291457506128ef6137e6565b806128fa5750612916565b8060405162461bcd60e51b81526004016108149190612dce565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610814565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c810000000000000000000000000000000000000000000000000000000014610f935760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608401610814565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612a7557612a756135d3565b602090810291909101015292915050565b6001600160a01b0384163b156118da576040517ff23a6e610000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063f23a6e6190612ae3908990899088908890889060040161388e565b6020604051808303816000875af1925050508015612b1e575060408051601f3d908101601f19168201909252612b1b918101906137ad565b60015b612b2a576128db6137ca565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e610000000000000000000000000000000000000000000000000000000014610f935760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608401610814565b600054610100900460ff16612c5e5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610814565b6111e6336121d1565b600081815b84518110156110d257612c9882868381518110612c8b57612c8b6135d3565b6020026020010151612cac565b915080612ca4816135e9565b915050612c6c565b6000818310612cc8576000828152602084905260409020612cd7565b60008381526020839052604090205b9392505050565b80356001600160a01b0381168114612cf557600080fd5b919050565b60008060408385031215612d0d57600080fd5b612d1683612cde565b946020939093013593505050565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114611d1e57600080fd5b600060208284031215612d6457600080fd5b8135612cd781612d24565b600060208284031215612d8157600080fd5b5035919050565b6000815180845260005b81811015612dae57602081850181015186830182015201612d92565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000612cd76020830184612d88565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715612e1d57612e1d612de1565b6040525050565b604051610120810167ffffffffffffffff81118282101715612e4857612e48612de1565b60405290565b600067ffffffffffffffff821115612e6857612e68612de1565b5060051b60200190565b600082601f830112612e8357600080fd5b81356020612e9082612e4e565b604051612e9d8282612df7565b83815260059390931b8501820192828101915086841115612ebd57600080fd5b8286015b84811015612ed85780358352918301918301612ec1565b509695505050505050565b600082601f830112612ef457600080fd5b813567ffffffffffffffff811115612f0e57612f0e612de1565b604051612f256020601f19601f8501160182612df7565b818152846020838601011115612f3a57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215612f6f57600080fd5b612f7886612cde565b9450612f8660208701612cde565b9350604086013567ffffffffffffffff80821115612fa357600080fd5b612faf89838a01612e72565b94506060880135915080821115612fc557600080fd5b612fd189838a01612e72565b93506080880135915080821115612fe757600080fd5b50612ff488828901612ee3565b9150509295509295909350565b60006101208b151583528a151560208401528060408401526130258184018b612d88565b60608401999099525050608081019590955260a085019390935260c084019190915260e0830152610100909101529392505050565b6000806040838503121561306d57600080fd5b50508035926020909101359150565b80358015158114612cf557600080fd5b6000806040838503121561309f57600080fd5b612d168361307c565b60008083601f8401126130ba57600080fd5b50813567ffffffffffffffff8111156130d257600080fd5b6020830191508360208260051b85010111156130ed57600080fd5b9250929050565b6000806000806000806060878903121561310d57600080fd5b863567ffffffffffffffff8082111561312557600080fd5b6131318a838b016130a8565b9098509650602089013591508082111561314a57600080fd5b6131568a838b016130a8565b9096509450604089013591508082111561316f57600080fd5b5061317c89828a016130a8565b979a9699509497509295939492505050565b600080604083850312156131a157600080fd5b823567ffffffffffffffff808211156131b957600080fd5b818501915085601f8301126131cd57600080fd5b813560206131da82612e4e565b6040516131e78282612df7565b83815260059390931b850182019282810191508984111561320757600080fd5b948201945b8386101561322c5761321d86612cde565b8252948201949082019061320c565b9650508601359250508082111561324257600080fd5b5061324f85828601612e72565b9150509250929050565b600081518084526020808501945080840160005b838110156132895781518752958201959082019060010161326d565b509495945050505050565b602081526000612cd76020830184613259565b600080604083850312156132ba57600080fd5b823567ffffffffffffffff8111156132d157600080fd5b6132dd85828601612ee3565b95602094909401359450505050565b600080604083850312156132ff57600080fd5b823567ffffffffffffffff8082111561331757600080fd5b90840190610120828703121561332c57600080fd5b613334612e24565b61333d8361307c565b815261334b6020840161307c565b602082015260408301358281111561336257600080fd5b61336e88828601612ee3565b604083015250606083013560608201526080830135608082015260a083013560a082015260c083013560c082015260e083013560e082015261010091508183013582820152809450505050602083013590509250929050565b600080604083850312156133da57600080fd5b6133e383612cde565b91506133f16020840161307c565b90509250929050565b60006020828403121561340c57600080fd5b612cd782612cde565b60008060008060006080868803121561342d57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561345957600080fd5b613465888289016130a8565b969995985093965092949392505050565b6000806040838503121561348957600080fd5b61349283612cde565b91506133f160208401612cde565b6000806000806000608086880312156134b857600080fd5b6134c186612cde565b94506020860135935060408601359250606086013567ffffffffffffffff81111561345957600080fd5b600080600080600060a0868803121561350357600080fd5b61350c86612cde565b945061351a60208701612cde565b93506040860135925060608601359150608086013567ffffffffffffffff81111561354457600080fd5b612ff488828901612ee3565b600181811c9082168061356457607f821691505b602082108103610a2557634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761084257610842613584565b6000826135ce57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b600060001982036135fc576135fc613584565b5060010190565b601f82111561364957600081815260208120601f850160051c8101602086101561362a5750805b601f850160051c820191505b818110156118da57828155600101613636565b505050565b815167ffffffffffffffff81111561366857613668612de1565b61367c816136768454613550565b84613603565b602080601f8311600181146136b157600084156136995750858301515b600019600386901b1c1916600185901b1785556118da565b600085815260208120601f198616915b828110156136e0578886015182559484019460019091019084016136c1565b50858210156136fe5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8082018082111561084257610842613584565b6040815260006137346040830185613259565b82810360208401526137468185613259565b95945050505050565b60006001600160a01b03808816835280871660208401525060a0604083015261377b60a0830186613259565b828103606084015261378d8186613259565b905082810360808401526137a18185612d88565b98975050505050505050565b6000602082840312156137bf57600080fd5b8151612cd781612d24565b600060033d11156137e35760046000803e5060005160e01c5b90565b600060443d10156137f45790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff816024840111818411171561384257505050505090565b828501915081518181111561385a5750505050505090565b843d87010160208285010111156138745750505050505090565b61388360208286010187612df7565b509095945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152611beb60a0830184612d8856fea264697066735822122063ef1e27a6bbf7dd48695988017f2aeaa3a1574a843b4b54e28392d22d99ef9664736f6c63430008120033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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