ETH Price: $3,310.57 (+1.56%)
Gas: 3 Gwei

Contract

0xcF95Dd4d51aAF20210b77908EC70F679BC349680
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...195620232024-04-01 15:58:35119 days ago1711987115IN
0xcF95Dd4d...9BC349680
0 ETH0.0018913340.88928399
Transfer Ownersh...195159682024-03-26 3:33:23125 days ago1711424003IN
0xcF95Dd4d...9BC349680
0 ETH0.0006024621.0459346
Set Approval For...188024312023-12-17 1:17:59225 days ago1702775879IN
0xcF95Dd4d...9BC349680
0 ETH0.0007661931.56825582
Set Approval For...187999822023-12-16 17:03:11226 days ago1702746191IN
0xcF95Dd4d...9BC349680
0 ETH0.0012428651.20784219
Transfer Ownersh...184288722023-10-25 17:55:23278 days ago1698256523IN
0xcF95Dd4d...9BC349680
0 ETH0.0011076438.69371844
Set Base URI184149012023-10-23 18:57:35280 days ago1698087455IN
0xcF95Dd4d...9BC349680
0 ETH0.0018426429.13130866
Set Contract URI184148362023-10-23 18:44:23280 days ago1698086663IN
0xcF95Dd4d...9BC349680
0 ETH0.0011569725.01722173
Set Approval For...182730802023-10-03 22:48:35299 days ago1696373315IN
0xcF95Dd4d...9BC349680
0 ETH0.000371048.03421537
Safe Transfer Fr...182730202023-10-03 22:36:35299 days ago1696372595IN
0xcF95Dd4d...9BC349680
0 ETH0.000514229.87871402
Safe Transfer Fr...182730172023-10-03 22:35:59299 days ago1696372559IN
0xcF95Dd4d...9BC349680
0 ETH0.000498699.58035546
Set Approval For...182730032023-10-03 22:33:11299 days ago1696372391IN
0xcF95Dd4d...9BC349680
0 ETH0.0004619710.00303312
Set Approval For...182221072023-09-26 19:43:23307 days ago1695757403IN
0xcF95Dd4d...9BC349680
0 ETH0.0003018112.43537354
Set Approval For...173962952023-06-02 23:27:47422 days ago1685748467IN
0xcF95Dd4d...9BC349680
0 ETH0.0011357624.59264229
Safe Transfer Fr...172339212023-05-11 1:42:35445 days ago1683769355IN
0xcF95Dd4d...9BC349680
0 ETH0.0035565362.55556597
Set Approval For...171889902023-05-04 18:10:11452 days ago1683223811IN
0xcF95Dd4d...9BC349680
0 ETH0.00564319122.19204709
Safe Transfer Fr...171876102023-05-04 13:30:23452 days ago1683207023IN
0xcF95Dd4d...9BC349680
0 ETH0.0039684369.8004207
Set Approval For...171833722023-05-03 23:12:47452 days ago1683155567IN
0xcF95Dd4d...9BC349680
0 ETH0.003127767.72426594
Set Approval For...171673922023-05-01 17:14:35455 days ago1682961275IN
0xcF95Dd4d...9BC349680
0 ETH0.0035658477.21130506
Safe Transfer Fr...171273562023-04-26 2:12:59460 days ago1682475179IN
0xcF95Dd4d...9BC349680
0 ETH0.0017169632.98436801
Set Approval For...170702682023-04-18 1:15:35468 days ago1681780535IN
0xcF95Dd4d...9BC349680
0 ETH0.0017949138.86520832
Set Approval For...170259822023-04-11 16:19:11475 days ago1681229951IN
0xcF95Dd4d...9BC349680
0 ETH0.0020604844.61571859
Safe Transfer Fr...169788092023-04-04 23:38:59481 days ago1680651539IN
0xcF95Dd4d...9BC349680
0 ETH0.001339725.76848786
Set Approval For...169615722023-04-02 13:01:47484 days ago1680440507IN
0xcF95Dd4d...9BC349680
0 ETH0.0008860419.18547187
Set Approval For...169443542023-03-31 2:56:47486 days ago1680231407IN
0xcF95Dd4d...9BC349680
0 ETH0.0011519124.94249364
Set Approval For...169003512023-03-24 22:33:59492 days ago1679697239IN
0xcF95Dd4d...9BC349680
0 ETH0.0010699923.16866416
View all transactions

Latest 3 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
158643412022-10-31 0:04:35637 days ago1667174675
0xcF95Dd4d...9BC349680
6.75 ETH
158536062022-10-29 12:06:11639 days ago1667045171
0xcF95Dd4d...9BC349680
11.74 ETH
158435552022-10-28 2:23:11640 days ago1666923791
0xcF95Dd4d...9BC349680
18.48 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SG

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

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

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./Reclaimable.sol";

contract SG is ERC1155, Ownable, Reclaimable, ReentrancyGuard, IERC2981 {
    using Strings for uint256;

    string private _baseTokenURI = "https://sg-metadata.s3.us-east-2.amazonaws.com/metadata/";
    string private _contractURI = "https://sg-metadata.s3.us-east-2.amazonaws.com/collection/collection.json";

    IERC1155 public catsAddress;
    IERC1155 public ratsAddress;
    IERC1155 public crocsAddress;

    IERC721[] public eligible721; 

    address public forgeContract;

    uint256 public startTime;
    uint256 public endTime;

    uint256 private royaltyBps = 500;
    address private royaltyReceiver = 0x5748bf284B8e001bd535C5dE6e9C52EC64501FdC;

    mapping(uint256 => uint256) public idToPrice; 

    mapping(uint256 => uint256) public totalMinted;
    mapping(uint256 => uint256) public totalBurned;

    constructor() ERC1155(_baseTokenURI) {}

    function isHolder(address holder, uint256 erc1155Id) public view returns (bool) {
        if (catsAddress.balanceOf(holder, erc1155Id) > 0) return true;
        if (ratsAddress.balanceOf(holder, erc1155Id) > 0) return true;
        if (crocsAddress.balanceOf(holder, erc1155Id) > 0) return true;

        for (uint256 i = 0; i < eligible721.length; i++) {
            if (eligible721[i].balanceOf(holder) > 0) return true;
        }

        return false;
    }

    function isEligibleToMint(
        address holder,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        uint256 erc1155Id
    ) external view returns (string memory) {
        if (block.timestamp < startTime || block.timestamp > endTime) return "Mint is paused";
        if (ids.length != amounts.length) return "Invalid params";

        bool isUserHolder = isHolder(holder, erc1155Id);

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 current = ids[i];
            if (idToPrice[current] == 0) return "Unknown id";
            if (amounts[i] > 50) return "Max per transaction exceeded";
            if (current >= 6 && current <= 10 && !isUserHolder) return "Can't mint holder bundle";
        }
        return "";
    }

    // minting functions
    function adminMint(address to, uint256 id, uint256 amount) external onlyOwner {
        _mint(to, id, amount, "");
    }

    function mint(
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        uint256 erc1155Id
    ) external payable nonReentrant {
        require(block.timestamp >= startTime && block.timestamp <= endTime, "Out of timeframe");
        require(ids.length == amounts.length, "Invalid length");
        uint256 priceToPay = 0;

        bool isUserHolder = isHolder(to, erc1155Id);

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 current = ids[i];
            require (idToPrice[current] > 0, "Unknown id");
            require (amounts[i] <= 50, "Max per transaction exceeded");
            if (current >= 6 && current <= 10) require(isUserHolder, "Can't mint holder bundle");
            priceToPay += idToPrice[current] * amounts[i];
        }

        require(msg.value == priceToPay, "Invalid price");

        _mintBatch(to, ids, amounts, "");
    }

    // setup functions
    function setForgeContract(address _forgeContract) external onlyOwner {
        forgeContract = _forgeContract;
    }

    function setTime(uint256 _startTime, uint256 _endTime) external onlyOwner {
        startTime = _startTime;
        endTime = _endTime;
    }

    function setCollections(
        address cats,
        address rats,
        address crocs,
        address[] calldata erc721s
    ) external onlyOwner {
        catsAddress = IERC1155(cats);
        ratsAddress = IERC1155(rats);
        crocsAddress = IERC1155(crocs);

        if (eligible721.length != 0) delete eligible721;
        for (uint256 i = 0; i < erc721s.length; i++) {
            eligible721.push(IERC721(erc721s[i]));
        }
    }

    function setPrices(uint256[] calldata ids, uint256[] calldata prices) external onlyOwner {
        for(uint256 i = 0; i < ids.length; i++) {
            idToPrice[ids[i]] = prices[i];
        }
    }

    // metadata-related functions
    function contractURI() public view returns(string memory) {
		return _contractURI;
	}

	function uri(uint _tokenId) public view override returns (string memory) {
		return string(abi.encodePacked(_baseTokenURI, _tokenId.toString()));
	}

    function setBaseURI(string calldata _newBaseURI) external onlyOwner {
        _baseTokenURI = _newBaseURI;
    }

    function setContractURI(string calldata _newContractURI) external onlyOwner {
        _contractURI = _newContractURI;
    }

    // royalty
    function setRoyaltyReceiver(address _royaltyReceiver) external onlyOwner {
        royaltyReceiver = _royaltyReceiver;
    }

    function setRoyaltyBps(uint256 _royaltyBps) external onlyOwner {
        royaltyBps = _royaltyBps;
    }

    function supportsInterface(bytes4 interfaceId) public view override(ERC1155, IERC165) returns (bool) {
        return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
    }

    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address, uint256 royaltyAmount) {
        royaltyAmount = (_salePrice / 10000) * royaltyBps;
        return (royaltyReceiver, royaltyAmount);
    }

    // forging
    function forge(address from, uint256 id, uint256 amount) external {
        require (msg.sender == forgeContract, "Can't forge");
        _burn(from, id, amount);
    }

    // total counters
    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) {
                totalMinted[ids[i]] += amounts[i];
            }
        }

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


}

File 2 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 3 of 17 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.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 ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address 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}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC1155).interfaceId ||
            interfaceId == type(IERC1155MetadataURI).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: balance query for the zero address");
        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 owner nor 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: transfer caller is not owner nor 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();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), 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);

        _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);

        _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();

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

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

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

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * 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);

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

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * 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();

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

        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);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * 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);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {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 `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 _beforeTokenTransfer(
        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 IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.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 IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.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;
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

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

File 5 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

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

File 6 of 17 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Called with the sale price to determine how much royalty is owed and to whom.
     * @param tokenId - the NFT asset queried for royalty information
     * @param salePrice - the sale price of the NFT asset specified by `tokenId`
     * @return receiver - address of who should be sent the royalty payment
     * @return royaltyAmount - the royalty payment amount for `salePrice`
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 7 of 17 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 8 of 17 : Reclaimable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

abstract contract Reclaimable is Ownable {

    function reclaimERC20(IERC20 token) external onlyOwner {
		require(address(token) != address(0));
		uint256 balance = token.balanceOf(address(this));
		token.transfer(msg.sender, balance);
	}

	function reclaimERC1155(IERC1155 erc1155Token, uint256 id) external onlyOwner {
		erc1155Token.safeTransferFrom(address(this), msg.sender, id, 1, "");
	}

	function reclaimERC721(IERC721 erc721Token, uint256 id) external onlyOwner {
		erc721Token.safeTransferFrom(address(this), msg.sender, id);
	}

	function reclaimETH() external onlyOwner {
		payable(msg.sender).transfer(address(this).balance);
	}
}

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

pragma solidity ^0.8.0;

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

File 10 of 17 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be 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 11 of 17 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @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.
        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. 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 12 of 17 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.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 IERC1155MetadataURI is IERC1155 {
    /**
     * @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 13 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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://diligence.consensys.net/posts/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.5.11/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 functionCall(target, data, "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");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason 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 {
            // 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 16 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

File 17 of 17 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"adminMint","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":[],"name":"catsAddress","outputs":[{"internalType":"contract IERC1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"crocsAddress","outputs":[{"internalType":"contract IERC1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"eligible721","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"forge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"forgeContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"idToPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"erc1155Id","type":"uint256"}],"name":"isEligibleToMint","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"uint256","name":"erc1155Id","type":"uint256"}],"name":"isHolder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"erc1155Id","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ratsAddress","outputs":[{"internalType":"contract IERC1155","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC1155","name":"erc1155Token","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"reclaimERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"reclaimERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"erc721Token","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"reclaimERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reclaimETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"cats","type":"address"},{"internalType":"address","name":"rats","type":"address"},{"internalType":"address","name":"crocs","type":"address"},{"internalType":"address[]","name":"erc721s","type":"address[]"}],"name":"setCollections","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newContractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_forgeContract","type":"address"}],"name":"setForgeContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"prices","type":"uint256[]"}],"name":"setPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_royaltyBps","type":"uint256"}],"name":"setRoyaltyBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltyReceiver","type":"address"}],"name":"setRoyaltyReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"setTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"totalMinted","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"}]

60e06040526038608081815290620037bb60a0396005906200002290826200024b565b50604051806080016040528060498152602001620037f3604991396006906200004c90826200024b565b506101f4600e55600f80546001600160a01b031916735748bf284b8e001bd535c5de6e9c52ec64501fdc1790553480156200008657600080fd5b50600580546200009690620001bc565b80601f0160208091040260200160405190810160405280929190818152602001828054620000c490620001bc565b8015620001155780601f10620000e95761010080835404028352916020019162000115565b820191906000526020600020905b815481529060010190602001808311620000f757829003601f168201915b50505050506200012b816200014260201b60201c565b50620001373362000154565b600160045562000317565b60026200015082826200024b565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001d157607f821691505b602082108103620001f257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200024657600081815260208120601f850160051c81016020861015620002215750805b601f850160051c820191505b8181101562000242578281556001016200022d565b5050505b505050565b81516001600160401b03811115620002675762000267620001a6565b6200027f81620002788454620001bc565b84620001f8565b602080601f831160018114620002b757600084156200029e5750858301515b600019600386901b1c1916600185901b17855562000242565b600085815260208120601f198616915b82811015620002e857888601518255948401946001909101908401620002c7565b5085821015620003075787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61349480620003276000396000f3fe6080604052600436106102395760003560e01c806378e979251161012e578063c2ee7ced116100ab578063e985e9c51161006f578063e985e9c5146106ea578063f242432a14610733578063f2fde38b14610753578063f9c6a05414610773578063ff5f382f146107a057600080fd5b8063c2ee7ced14610655578063d05eaae014610675578063db5954c914610695578063de9d056a146106b5578063e8a3d485146106d557600080fd5b80639d7f4ebf116100f25780639d7f4ebf146105a8578063a0355eca146105d5578063a22cb465146105f5578063a59b312c14610615578063c21f95cb1461063557600080fd5b806378e97925146105145780638905fd4f1461052a5780638da5cb5b1461054a5780638dc251e314610568578063938e3d7b1461058857600080fd5b80633197cbb6116101bc5780636b7d2470116101805780636b7d24701461045a5780636ef82ecc1461047a5780636f442fda146104a7578063715018a6146104df57806375c72f03146104f457600080fd5b80633197cbb6146103b757806344aacca5146103cd5780634e1273f4146103ed57806355f804b31461041a578063577cf0fa1461043a57600080fd5b80630f144a48116102035780630f144a4814610310578063161c05c0146103255780631f72d831146103385780632a55205a146103585780632eb2c2d61461039757600080fd5b80624a84cb1461023e578062fdd58e1461026057806301ffc9a71461029357806307c9ae23146102c35780630e89341c146102e3575b600080fd5b34801561024a57600080fd5b5061025e61025936600461270a565b6107c0565b005b34801561026c57600080fd5b5061028061027b36600461273f565b610813565b6040519081526020015b60405180910390f35b34801561029f57600080fd5b506102b36102ae366004612781565b6108a8565b604051901515815260200161028a565b3480156102cf57600080fd5b5061025e6102de3660046127a5565b6108cd565b3480156102ef57600080fd5b506103036102fe3660046127c2565b610919565b60405161028a919061282b565b34801561031c57600080fd5b5061025e61094d565b61025e610333366004612882565b6109a6565b34801561034457600080fd5b5061025e6103533660046127c2565b610d01565b34801561036457600080fd5b5061037861037336600461290c565b610d30565b604080516001600160a01b03909316835260208301919091520161028a565b3480156103a357600080fd5b5061025e6103b2366004612a77565b610d66565b3480156103c357600080fd5b50610280600d5481565b3480156103d957600080fd5b506102b36103e836600461273f565b610dfd565b3480156103f957600080fd5b5061040d610408366004612b24565b61104b565b60405161028a9190612c2b565b34801561042657600080fd5b5061025e610435366004612c3e565b611174565b34801561044657600080fd5b5061025e61045536600461270a565b6111ab565b34801561046657600080fd5b5061025e61047536600461273f565b6111fe565b34801561048657600080fd5b506102806104953660046127c2565b60126020526000908152604090205481565b3480156104b357600080fd5b506008546104c7906001600160a01b031681565b6040516001600160a01b03909116815260200161028a565b3480156104eb57600080fd5b5061025e611293565b34801561050057600080fd5b506009546104c7906001600160a01b031681565b34801561052057600080fd5b50610280600c5481565b34801561053657600080fd5b5061025e6105453660046127a5565b6112c9565b34801561055657600080fd5b506003546001600160a01b03166104c7565b34801561057457600080fd5b5061025e6105833660046127a5565b6113e5565b34801561059457600080fd5b5061025e6105a3366004612c3e565b611431565b3480156105b457600080fd5b506102806105c33660046127c2565b60116020526000908152604090205481565b3480156105e157600080fd5b5061025e6105f036600461290c565b611468565b34801561060157600080fd5b5061025e610610366004612cbd565b61149d565b34801561062157600080fd5b5061025e610630366004612cf6565b6114ac565b34801561064157600080fd5b506007546104c7906001600160a01b031681565b34801561066157600080fd5b50600b546104c7906001600160a01b031681565b34801561068157600080fd5b5061025e610690366004612d71565b61159f565b3480156106a157600080fd5b5061025e6106b036600461273f565b61162f565b3480156106c157600080fd5b506103036106d0366004612882565b6116a7565b3480156106e157600080fd5b50610303611889565b3480156106f657600080fd5b506102b3610705366004612ddc565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561073f57600080fd5b5061025e61074e366004612e0a565b61191b565b34801561075f57600080fd5b5061025e61076e3660046127a5565b6119a2565b34801561077f57600080fd5b5061028061078e3660046127c2565b60106020526000908152604090205481565b3480156107ac57600080fd5b506104c76107bb3660046127c2565b611a3a565b6003546001600160a01b031633146107f35760405162461bcd60e51b81526004016107ea90612e72565b60405180910390fd5b61080e83838360405180602001604052806000815250611a64565b505050565b60006001600160a01b03831661087f5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084016107ea565b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b0319821663152a902d60e11b14806108a257506108a282611b3a565b6003546001600160a01b031633146108f75760405162461bcd60e51b81526004016107ea90612e72565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600561092683611b8a565b604051602001610937929190612ee1565b6040516020818303038152906040529050919050565b6003546001600160a01b031633146109775760405162461bcd60e51b81526004016107ea90612e72565b60405133904780156108fc02916000818181858888f193505050501580156109a3573d6000803e3d6000fd5b50565b6002600454036109f85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107ea565b6002600455600c544210801590610a115750600d544211155b610a505760405162461bcd60e51b815260206004820152601060248201526f4f7574206f662074696d656672616d6560801b60448201526064016107ea565b838214610a905760405162461bcd60e51b815260206004820152600e60248201526d092dcecc2d8d2c840d8cadccee8d60931b60448201526064016107ea565b600080610a9d8884610dfd565b905060005b86811015610c36576000888883818110610abe57610abe612f68565b9050602002013590506000601060008381526020019081526020016000205411610b175760405162461bcd60e51b815260206004820152600a602482015269155b9adb9bdddb881a5960b21b60448201526064016107ea565b6032878784818110610b2b57610b2b612f68565b905060200201351115610b805760405162461bcd60e51b815260206004820152601c60248201527f4d617820706572207472616e73616374696f6e2065786365656465640000000060448201526064016107ea565b60068110158015610b925750600a8111155b15610bdf5782610bdf5760405162461bcd60e51b815260206004820152601860248201527743616e2774206d696e7420686f6c6465722062756e646c6560401b60448201526064016107ea565b868683818110610bf157610bf1612f68565b905060200201356010600083815260200190815260200160002054610c169190612f94565b610c209085612fb3565b9350508080610c2e90612fc6565b915050610aa2565b50813414610c765760405162461bcd60e51b815260206004820152600d60248201526c496e76616c696420707269636560981b60448201526064016107ea565b610cf28888888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808c0282810182019093528b82529093508b92508a918291850190849080828437600092018290525060408051602081019091529081529250611c92915050565b50506001600455505050505050565b6003546001600160a01b03163314610d2b5760405162461bcd60e51b81526004016107ea90612e72565b600e55565b600080600e5461271084610d449190612ff5565b610d4e9190612f94565b600f546001600160a01b0316925090505b9250929050565b6001600160a01b038516331480610d825750610d828533610705565b610de95760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016107ea565b610df68585858585611dec565b5050505050565b600754604051627eeac760e11b81526001600160a01b03848116600483015260248201849052600092839291169062fdd58e90604401602060405180830381865afa158015610e50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e749190613009565b1115610e82575060016108a2565b600854604051627eeac760e11b81526001600160a01b03858116600483015260248201859052600092169062fdd58e90604401602060405180830381865afa158015610ed2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef69190613009565b1115610f04575060016108a2565b600954604051627eeac760e11b81526001600160a01b03858116600483015260248201859052600092169062fdd58e90604401602060405180830381865afa158015610f54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f789190613009565b1115610f86575060016108a2565b60005b600a54811015611041576000600a8281548110610fa857610fa8612f68565b6000918252602090912001546040516370a0823160e01b81526001600160a01b038781166004830152909116906370a0823190602401602060405180830381865afa158015610ffb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101f9190613009565b111561102f5760019150506108a2565b8061103981612fc6565b915050610f89565b5060009392505050565b606081518351146110b05760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016107ea565b600083516001600160401b038111156110cb576110cb61292e565b6040519080825280602002602001820160405280156110f4578160200160208202803683370190505b50905060005b845181101561116c5761113f85828151811061111857611118612f68565b602002602001015185838151811061113257611132612f68565b6020026020010151610813565b82828151811061115157611151612f68565b602090810291909101015261116581612fc6565b90506110fa565b509392505050565b6003546001600160a01b0316331461119e5760405162461bcd60e51b81526004016107ea90612e72565b600561080e828483613068565b600b546001600160a01b031633146111f35760405162461bcd60e51b815260206004820152600b60248201526a43616e277420666f72676560a81b60448201526064016107ea565b61080e838383611f8e565b6003546001600160a01b031633146112285760405162461bcd60e51b81526004016107ea90612e72565b604051632142170760e11b8152306004820152336024820152604481018290526001600160a01b038316906342842e0e906064015b600060405180830381600087803b15801561127757600080fd5b505af115801561128b573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031633146112bd5760405162461bcd60e51b81526004016107ea90612e72565b6112c76000612107565b565b6003546001600160a01b031633146112f35760405162461bcd60e51b81526004016107ea90612e72565b6001600160a01b03811661130657600080fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561134d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113719190613009565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156113c1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080e9190613127565b6003546001600160a01b0316331461140f5760405162461bcd60e51b81526004016107ea90612e72565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b0316331461145b5760405162461bcd60e51b81526004016107ea90612e72565b600661080e828483613068565b6003546001600160a01b031633146114925760405162461bcd60e51b81526004016107ea90612e72565b600c91909155600d55565b6114a8338383612159565b5050565b6003546001600160a01b031633146114d65760405162461bcd60e51b81526004016107ea90612e72565b600780546001600160a01b038088166001600160a01b031992831617909255600880548784169083161790556009805492861692909116919091179055600a541561152757611527600a60006126c3565b60005b8181101561128b57600a83838381811061154657611546612f68565b905060200201602081019061155b91906127a5565b81546001810183556000928352602090922090910180546001600160a01b0319166001600160a01b039092169190911790558061159781612fc6565b91505061152a565b6003546001600160a01b031633146115c95760405162461bcd60e51b81526004016107ea90612e72565b60005b83811015610df6578282828181106115e6576115e6612f68565b905060200201356010600087878581811061160357611603612f68565b90506020020135815260200190815260200160002081905550808061162790612fc6565b9150506115cc565b6003546001600160a01b031633146116595760405162461bcd60e51b81526004016107ea90612e72565b604051637921219560e11b8152306004820152336024820152604481018290526001606482015260a06084820152600060a48201526001600160a01b0383169063f242432a9060c40161125d565b6060600c544210806116ba5750600d5442115b156116ea575060408051808201909152600e81526d135a5b9d081a5cc81c185d5cd95960921b602082015261187f565b84831461171c575060408051808201909152600e81526d496e76616c696420706172616d7360901b602082015261187f565b60006117288884610dfd565b905060005b8681101561186a57600088888381811061174957611749612f68565b905060200201359050601060008281526020019081526020016000205460000361179a576040518060400160405280600a815260200169155b9adb9bdddb881a5960b21b815250935050505061187f565b60328787848181106117ae576117ae612f68565b9050602002013511156117fb576040518060400160405280601c81526020017f4d617820706572207472616e73616374696f6e20657863656564656400000000815250935050505061187f565b6006811015801561180d5750600a8111155b8015611817575082155b15611857576040518060400160405280601881526020017743616e2774206d696e7420686f6c6465722062756e646c6560401b815250935050505061187f565b508061186281612fc6565b91505061172d565b50604051806020016040528060008152509150505b9695505050505050565b60606006805461189890612ea7565b80601f01602080910402602001604051908101604052809291908181526020018280546118c490612ea7565b80156119115780601f106118e657610100808354040283529160200191611911565b820191906000526020600020905b8154815290600101906020018083116118f457829003601f168201915b5050505050905090565b6001600160a01b03851633148061193757506119378533610705565b6119955760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016107ea565b610df68585858585612239565b6003546001600160a01b031633146119cc5760405162461bcd60e51b81526004016107ea90612e72565b6001600160a01b038116611a315760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ea565b6109a381612107565b600a8181548110611a4a57600080fd5b6000918252602090912001546001600160a01b0316905081565b6001600160a01b038416611a8a5760405162461bcd60e51b81526004016107ea90613144565b33611aaa81600087611a9b88612356565b611aa488612356565b876123a1565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611ada908490612fb3565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610df6816000878787876124ad565b60006001600160e01b03198216636cdb3d1360e11b1480611b6b57506001600160e01b031982166303a24d0760e21b145b806108a257506301ffc9a760e01b6001600160e01b03198316146108a2565b606081600003611bb15750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611bdb5780611bc581612fc6565b9150611bd49050600a83612ff5565b9150611bb5565b6000816001600160401b03811115611bf557611bf561292e565b6040519080825280601f01601f191660200182016040528015611c1f576020820181803683370190505b5090505b8415611c8a57611c34600183613185565b9150611c41600a86613198565b611c4c906030612fb3565b60f81b818381518110611c6157611c61612f68565b60200101906001600160f81b031916908160001a905350611c83600a86612ff5565b9450611c23565b949350505050565b6001600160a01b038416611cb85760405162461bcd60e51b81526004016107ea90613144565b8151835114611cd95760405162461bcd60e51b81526004016107ea906131ac565b33611ce9816000878787876123a1565b60005b8451811015611d8457838181518110611d0757611d07612f68565b6020026020010151600080878481518110611d2457611d24612f68565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254611d6c9190612fb3565b90915550819050611d7c81612fc6565b915050611cec565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611dd59291906131f4565b60405180910390a4610df681600087878787612608565b8151835114611e0d5760405162461bcd60e51b81526004016107ea906131ac565b6001600160a01b038416611e335760405162461bcd60e51b81526004016107ea90613222565b33611e428187878787876123a1565b60005b8451811015611f28576000858281518110611e6257611e62612f68565b602002602001015190506000858381518110611e8057611e80612f68565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611ed05760405162461bcd60e51b81526004016107ea90613267565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611f0d908490612fb3565b9250508190555050505080611f2190612fc6565b9050611e45565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611f789291906131f4565b60405180910390a461128b818787878787612608565b6001600160a01b038316611ff05760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b60648201526084016107ea565b3361201f8185600061200187612356565b61200a87612356565b604051806020016040528060008152506123a1565b6000838152602081815260408083206001600160a01b03881684529091529020548281101561209c5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b60648201526084016107ea565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036121cc5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016107ea565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b03841661225f5760405162461bcd60e51b81526004016107ea90613222565b3361226f818787611a9b88612356565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156122b05760405162461bcd60e51b81526004016107ea90613267565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906122ed908490612fb3565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461234d8288888888886124ad565b50505050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061239057612390612f68565b602090810291909101015292915050565b6001600160a01b0385166124285760005b8351811015612426578281815181106123cd576123cd612f68565b6020026020010151601160008684815181106123eb576123eb612f68565b6020026020010151815260200190815260200160002060008282546124109190612fb3565b9091555061241f905081612fc6565b90506123b2565b505b6001600160a01b03841661128b5760005b835181101561234d5782818151811061245457612454612f68565b60200260200101516012600086848151811061247257612472612f68565b6020026020010151815260200190815260200160002060008282546124979190612fb3565b909155506124a6905081612fc6565b9050612439565b6001600160a01b0384163b1561128b5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906124f190899089908890889088906004016132b1565b6020604051808303816000875af192505050801561252c575060408051601f3d908101601f19168201909252612529918101906132f6565b60015b6125d857612538613313565b806308c379a003612571575061254c61332f565b806125575750612573565b8060405162461bcd60e51b81526004016107ea919061282b565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016107ea565b6001600160e01b0319811663f23a6e6160e01b1461234d5760405162461bcd60e51b81526004016107ea906133b8565b6001600160a01b0384163b1561128b5760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061264c9089908990889088908890600401613400565b6020604051808303816000875af1925050508015612687575060408051601f3d908101601f19168201909252612684918101906132f6565b60015b61269357612538613313565b6001600160e01b0319811663bc197c8160e01b1461234d5760405162461bcd60e51b81526004016107ea906133b8565b50805460008255906000526020600020908101906109a391905b808211156126f157600081556001016126dd565b5090565b6001600160a01b03811681146109a357600080fd5b60008060006060848603121561271f57600080fd5b833561272a816126f5565b95602085013595506040909401359392505050565b6000806040838503121561275257600080fd5b823561275d816126f5565b946020939093013593505050565b6001600160e01b0319811681146109a357600080fd5b60006020828403121561279357600080fd5b813561279e8161276b565b9392505050565b6000602082840312156127b757600080fd5b813561279e816126f5565b6000602082840312156127d457600080fd5b5035919050565b60005b838110156127f65781810151838201526020016127de565b50506000910152565b600081518084526128178160208601602086016127db565b601f01601f19169290920160200192915050565b60208152600061279e60208301846127ff565b60008083601f84011261285057600080fd5b5081356001600160401b0381111561286757600080fd5b6020830191508360208260051b8501011115610d5f57600080fd5b6000806000806000806080878903121561289b57600080fd5b86356128a6816126f5565b955060208701356001600160401b03808211156128c257600080fd5b6128ce8a838b0161283e565b909750955060408901359150808211156128e757600080fd5b506128f489828a0161283e565b979a9699509497949695606090950135949350505050565b6000806040838503121561291f57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156129695761296961292e565b6040525050565b60006001600160401b038211156129895761298961292e565b5060051b60200190565b600082601f8301126129a457600080fd5b813560206129b182612970565b6040516129be8282612944565b83815260059390931b85018201928281019150868411156129de57600080fd5b8286015b848110156129f957803583529183019183016129e2565b509695505050505050565b600082601f830112612a1557600080fd5b81356001600160401b03811115612a2e57612a2e61292e565b604051612a45601f8301601f191660200182612944565b818152846020838601011115612a5a57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215612a8f57600080fd5b8535612a9a816126f5565b94506020860135612aaa816126f5565b935060408601356001600160401b0380821115612ac657600080fd5b612ad289838a01612993565b94506060880135915080821115612ae857600080fd5b612af489838a01612993565b93506080880135915080821115612b0a57600080fd5b50612b1788828901612a04565b9150509295509295909350565b60008060408385031215612b3757600080fd5b82356001600160401b0380821115612b4e57600080fd5b818501915085601f830112612b6257600080fd5b81356020612b6f82612970565b604051612b7c8282612944565b83815260059390931b8501820192828101915089841115612b9c57600080fd5b948201945b83861015612bc3578535612bb4816126f5565b82529482019490820190612ba1565b96505086013592505080821115612bd957600080fd5b50612be685828601612993565b9150509250929050565b600081518084526020808501945080840160005b83811015612c2057815187529582019590820190600101612c04565b509495945050505050565b60208152600061279e6020830184612bf0565b60008060208385031215612c5157600080fd5b82356001600160401b0380821115612c6857600080fd5b818501915085601f830112612c7c57600080fd5b813581811115612c8b57600080fd5b866020828501011115612c9d57600080fd5b60209290920196919550909350505050565b80151581146109a357600080fd5b60008060408385031215612cd057600080fd5b8235612cdb816126f5565b91506020830135612ceb81612caf565b809150509250929050565b600080600080600060808688031215612d0e57600080fd5b8535612d19816126f5565b94506020860135612d29816126f5565b93506040860135612d39816126f5565b925060608601356001600160401b03811115612d5457600080fd5b612d608882890161283e565b969995985093965092949392505050565b60008060008060408587031215612d8757600080fd5b84356001600160401b0380821115612d9e57600080fd5b612daa8883890161283e565b90965094506020870135915080821115612dc357600080fd5b50612dd08782880161283e565b95989497509550505050565b60008060408385031215612def57600080fd5b8235612dfa816126f5565b91506020830135612ceb816126f5565b600080600080600060a08688031215612e2257600080fd5b8535612e2d816126f5565b94506020860135612e3d816126f5565b9350604086013592506060860135915060808601356001600160401b03811115612e6657600080fd5b612b1788828901612a04565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680612ebb57607f821691505b602082108103612edb57634e487b7160e01b600052602260045260246000fd5b50919050565b6000808454612eef81612ea7565b60018281168015612f075760018114612f1c57612f4b565b60ff1984168752821515830287019450612f4b565b8860005260208060002060005b85811015612f425781548a820152908401908201612f29565b50505082870194505b505050508351612f5f8183602088016127db565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612fae57612fae612f7e565b500290565b808201808211156108a2576108a2612f7e565b600060018201612fd857612fd8612f7e565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261300457613004612fdf565b500490565b60006020828403121561301b57600080fd5b5051919050565b601f82111561080e57600081815260208120601f850160051c810160208610156130495750805b601f850160051c820191505b8181101561128b57828155600101613055565b6001600160401b0383111561307f5761307f61292e565b6130938361308d8354612ea7565b83613022565b6000601f8411600181146130c757600085156130af5750838201355b600019600387901b1c1916600186901b178355610df6565b600083815260209020601f19861690835b828110156130f857868501358255602094850194600190920191016130d8565b50868210156131155760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60006020828403121561313957600080fd5b815161279e81612caf565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b818103818111156108a2576108a2612f7e565b6000826131a7576131a7612fdf565b500690565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b6040815260006132076040830185612bf0565b82810360208401526132198185612bf0565b95945050505050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906132eb908301846127ff565b979650505050505050565b60006020828403121561330857600080fd5b815161279e8161276b565b600060033d111561332c5760046000803e5060005160e01c5b90565b600060443d101561333d5790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561336c57505050505090565b82850191508151818111156133845750505050505090565b843d870101602082850101111561339e5750505050505090565b6133ad60208286010187612944565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061342c90830186612bf0565b828103606084015261343e8186612bf0565b9050828103608084015261345281856127ff565b9897505050505050505056fea26469706673582212201449f2be703cbbcb28ac096a6214c2f8db61829168a2b36d526f22851698025964736f6c6343000810003368747470733a2f2f73672d6d657461646174612e73332e75732d656173742d322e616d617a6f6e6177732e636f6d2f6d657461646174612f68747470733a2f2f73672d6d657461646174612e73332e75732d656173742d322e616d617a6f6e6177732e636f6d2f636f6c6c656374696f6e2f636f6c6c656374696f6e2e6a736f6e

Deployed Bytecode

0x6080604052600436106102395760003560e01c806378e979251161012e578063c2ee7ced116100ab578063e985e9c51161006f578063e985e9c5146106ea578063f242432a14610733578063f2fde38b14610753578063f9c6a05414610773578063ff5f382f146107a057600080fd5b8063c2ee7ced14610655578063d05eaae014610675578063db5954c914610695578063de9d056a146106b5578063e8a3d485146106d557600080fd5b80639d7f4ebf116100f25780639d7f4ebf146105a8578063a0355eca146105d5578063a22cb465146105f5578063a59b312c14610615578063c21f95cb1461063557600080fd5b806378e97925146105145780638905fd4f1461052a5780638da5cb5b1461054a5780638dc251e314610568578063938e3d7b1461058857600080fd5b80633197cbb6116101bc5780636b7d2470116101805780636b7d24701461045a5780636ef82ecc1461047a5780636f442fda146104a7578063715018a6146104df57806375c72f03146104f457600080fd5b80633197cbb6146103b757806344aacca5146103cd5780634e1273f4146103ed57806355f804b31461041a578063577cf0fa1461043a57600080fd5b80630f144a48116102035780630f144a4814610310578063161c05c0146103255780631f72d831146103385780632a55205a146103585780632eb2c2d61461039757600080fd5b80624a84cb1461023e578062fdd58e1461026057806301ffc9a71461029357806307c9ae23146102c35780630e89341c146102e3575b600080fd5b34801561024a57600080fd5b5061025e61025936600461270a565b6107c0565b005b34801561026c57600080fd5b5061028061027b36600461273f565b610813565b6040519081526020015b60405180910390f35b34801561029f57600080fd5b506102b36102ae366004612781565b6108a8565b604051901515815260200161028a565b3480156102cf57600080fd5b5061025e6102de3660046127a5565b6108cd565b3480156102ef57600080fd5b506103036102fe3660046127c2565b610919565b60405161028a919061282b565b34801561031c57600080fd5b5061025e61094d565b61025e610333366004612882565b6109a6565b34801561034457600080fd5b5061025e6103533660046127c2565b610d01565b34801561036457600080fd5b5061037861037336600461290c565b610d30565b604080516001600160a01b03909316835260208301919091520161028a565b3480156103a357600080fd5b5061025e6103b2366004612a77565b610d66565b3480156103c357600080fd5b50610280600d5481565b3480156103d957600080fd5b506102b36103e836600461273f565b610dfd565b3480156103f957600080fd5b5061040d610408366004612b24565b61104b565b60405161028a9190612c2b565b34801561042657600080fd5b5061025e610435366004612c3e565b611174565b34801561044657600080fd5b5061025e61045536600461270a565b6111ab565b34801561046657600080fd5b5061025e61047536600461273f565b6111fe565b34801561048657600080fd5b506102806104953660046127c2565b60126020526000908152604090205481565b3480156104b357600080fd5b506008546104c7906001600160a01b031681565b6040516001600160a01b03909116815260200161028a565b3480156104eb57600080fd5b5061025e611293565b34801561050057600080fd5b506009546104c7906001600160a01b031681565b34801561052057600080fd5b50610280600c5481565b34801561053657600080fd5b5061025e6105453660046127a5565b6112c9565b34801561055657600080fd5b506003546001600160a01b03166104c7565b34801561057457600080fd5b5061025e6105833660046127a5565b6113e5565b34801561059457600080fd5b5061025e6105a3366004612c3e565b611431565b3480156105b457600080fd5b506102806105c33660046127c2565b60116020526000908152604090205481565b3480156105e157600080fd5b5061025e6105f036600461290c565b611468565b34801561060157600080fd5b5061025e610610366004612cbd565b61149d565b34801561062157600080fd5b5061025e610630366004612cf6565b6114ac565b34801561064157600080fd5b506007546104c7906001600160a01b031681565b34801561066157600080fd5b50600b546104c7906001600160a01b031681565b34801561068157600080fd5b5061025e610690366004612d71565b61159f565b3480156106a157600080fd5b5061025e6106b036600461273f565b61162f565b3480156106c157600080fd5b506103036106d0366004612882565b6116a7565b3480156106e157600080fd5b50610303611889565b3480156106f657600080fd5b506102b3610705366004612ddc565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561073f57600080fd5b5061025e61074e366004612e0a565b61191b565b34801561075f57600080fd5b5061025e61076e3660046127a5565b6119a2565b34801561077f57600080fd5b5061028061078e3660046127c2565b60106020526000908152604090205481565b3480156107ac57600080fd5b506104c76107bb3660046127c2565b611a3a565b6003546001600160a01b031633146107f35760405162461bcd60e51b81526004016107ea90612e72565b60405180910390fd5b61080e83838360405180602001604052806000815250611a64565b505050565b60006001600160a01b03831661087f5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084016107ea565b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b0319821663152a902d60e11b14806108a257506108a282611b3a565b6003546001600160a01b031633146108f75760405162461bcd60e51b81526004016107ea90612e72565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600561092683611b8a565b604051602001610937929190612ee1565b6040516020818303038152906040529050919050565b6003546001600160a01b031633146109775760405162461bcd60e51b81526004016107ea90612e72565b60405133904780156108fc02916000818181858888f193505050501580156109a3573d6000803e3d6000fd5b50565b6002600454036109f85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107ea565b6002600455600c544210801590610a115750600d544211155b610a505760405162461bcd60e51b815260206004820152601060248201526f4f7574206f662074696d656672616d6560801b60448201526064016107ea565b838214610a905760405162461bcd60e51b815260206004820152600e60248201526d092dcecc2d8d2c840d8cadccee8d60931b60448201526064016107ea565b600080610a9d8884610dfd565b905060005b86811015610c36576000888883818110610abe57610abe612f68565b9050602002013590506000601060008381526020019081526020016000205411610b175760405162461bcd60e51b815260206004820152600a602482015269155b9adb9bdddb881a5960b21b60448201526064016107ea565b6032878784818110610b2b57610b2b612f68565b905060200201351115610b805760405162461bcd60e51b815260206004820152601c60248201527f4d617820706572207472616e73616374696f6e2065786365656465640000000060448201526064016107ea565b60068110158015610b925750600a8111155b15610bdf5782610bdf5760405162461bcd60e51b815260206004820152601860248201527743616e2774206d696e7420686f6c6465722062756e646c6560401b60448201526064016107ea565b868683818110610bf157610bf1612f68565b905060200201356010600083815260200190815260200160002054610c169190612f94565b610c209085612fb3565b9350508080610c2e90612fc6565b915050610aa2565b50813414610c765760405162461bcd60e51b815260206004820152600d60248201526c496e76616c696420707269636560981b60448201526064016107ea565b610cf28888888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808c0282810182019093528b82529093508b92508a918291850190849080828437600092018290525060408051602081019091529081529250611c92915050565b50506001600455505050505050565b6003546001600160a01b03163314610d2b5760405162461bcd60e51b81526004016107ea90612e72565b600e55565b600080600e5461271084610d449190612ff5565b610d4e9190612f94565b600f546001600160a01b0316925090505b9250929050565b6001600160a01b038516331480610d825750610d828533610705565b610de95760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016107ea565b610df68585858585611dec565b5050505050565b600754604051627eeac760e11b81526001600160a01b03848116600483015260248201849052600092839291169062fdd58e90604401602060405180830381865afa158015610e50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e749190613009565b1115610e82575060016108a2565b600854604051627eeac760e11b81526001600160a01b03858116600483015260248201859052600092169062fdd58e90604401602060405180830381865afa158015610ed2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef69190613009565b1115610f04575060016108a2565b600954604051627eeac760e11b81526001600160a01b03858116600483015260248201859052600092169062fdd58e90604401602060405180830381865afa158015610f54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f789190613009565b1115610f86575060016108a2565b60005b600a54811015611041576000600a8281548110610fa857610fa8612f68565b6000918252602090912001546040516370a0823160e01b81526001600160a01b038781166004830152909116906370a0823190602401602060405180830381865afa158015610ffb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101f9190613009565b111561102f5760019150506108a2565b8061103981612fc6565b915050610f89565b5060009392505050565b606081518351146110b05760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016107ea565b600083516001600160401b038111156110cb576110cb61292e565b6040519080825280602002602001820160405280156110f4578160200160208202803683370190505b50905060005b845181101561116c5761113f85828151811061111857611118612f68565b602002602001015185838151811061113257611132612f68565b6020026020010151610813565b82828151811061115157611151612f68565b602090810291909101015261116581612fc6565b90506110fa565b509392505050565b6003546001600160a01b0316331461119e5760405162461bcd60e51b81526004016107ea90612e72565b600561080e828483613068565b600b546001600160a01b031633146111f35760405162461bcd60e51b815260206004820152600b60248201526a43616e277420666f72676560a81b60448201526064016107ea565b61080e838383611f8e565b6003546001600160a01b031633146112285760405162461bcd60e51b81526004016107ea90612e72565b604051632142170760e11b8152306004820152336024820152604481018290526001600160a01b038316906342842e0e906064015b600060405180830381600087803b15801561127757600080fd5b505af115801561128b573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031633146112bd5760405162461bcd60e51b81526004016107ea90612e72565b6112c76000612107565b565b6003546001600160a01b031633146112f35760405162461bcd60e51b81526004016107ea90612e72565b6001600160a01b03811661130657600080fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561134d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113719190613009565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156113c1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080e9190613127565b6003546001600160a01b0316331461140f5760405162461bcd60e51b81526004016107ea90612e72565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b0316331461145b5760405162461bcd60e51b81526004016107ea90612e72565b600661080e828483613068565b6003546001600160a01b031633146114925760405162461bcd60e51b81526004016107ea90612e72565b600c91909155600d55565b6114a8338383612159565b5050565b6003546001600160a01b031633146114d65760405162461bcd60e51b81526004016107ea90612e72565b600780546001600160a01b038088166001600160a01b031992831617909255600880548784169083161790556009805492861692909116919091179055600a541561152757611527600a60006126c3565b60005b8181101561128b57600a83838381811061154657611546612f68565b905060200201602081019061155b91906127a5565b81546001810183556000928352602090922090910180546001600160a01b0319166001600160a01b039092169190911790558061159781612fc6565b91505061152a565b6003546001600160a01b031633146115c95760405162461bcd60e51b81526004016107ea90612e72565b60005b83811015610df6578282828181106115e6576115e6612f68565b905060200201356010600087878581811061160357611603612f68565b90506020020135815260200190815260200160002081905550808061162790612fc6565b9150506115cc565b6003546001600160a01b031633146116595760405162461bcd60e51b81526004016107ea90612e72565b604051637921219560e11b8152306004820152336024820152604481018290526001606482015260a06084820152600060a48201526001600160a01b0383169063f242432a9060c40161125d565b6060600c544210806116ba5750600d5442115b156116ea575060408051808201909152600e81526d135a5b9d081a5cc81c185d5cd95960921b602082015261187f565b84831461171c575060408051808201909152600e81526d496e76616c696420706172616d7360901b602082015261187f565b60006117288884610dfd565b905060005b8681101561186a57600088888381811061174957611749612f68565b905060200201359050601060008281526020019081526020016000205460000361179a576040518060400160405280600a815260200169155b9adb9bdddb881a5960b21b815250935050505061187f565b60328787848181106117ae576117ae612f68565b9050602002013511156117fb576040518060400160405280601c81526020017f4d617820706572207472616e73616374696f6e20657863656564656400000000815250935050505061187f565b6006811015801561180d5750600a8111155b8015611817575082155b15611857576040518060400160405280601881526020017743616e2774206d696e7420686f6c6465722062756e646c6560401b815250935050505061187f565b508061186281612fc6565b91505061172d565b50604051806020016040528060008152509150505b9695505050505050565b60606006805461189890612ea7565b80601f01602080910402602001604051908101604052809291908181526020018280546118c490612ea7565b80156119115780601f106118e657610100808354040283529160200191611911565b820191906000526020600020905b8154815290600101906020018083116118f457829003601f168201915b5050505050905090565b6001600160a01b03851633148061193757506119378533610705565b6119955760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016107ea565b610df68585858585612239565b6003546001600160a01b031633146119cc5760405162461bcd60e51b81526004016107ea90612e72565b6001600160a01b038116611a315760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ea565b6109a381612107565b600a8181548110611a4a57600080fd5b6000918252602090912001546001600160a01b0316905081565b6001600160a01b038416611a8a5760405162461bcd60e51b81526004016107ea90613144565b33611aaa81600087611a9b88612356565b611aa488612356565b876123a1565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611ada908490612fb3565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610df6816000878787876124ad565b60006001600160e01b03198216636cdb3d1360e11b1480611b6b57506001600160e01b031982166303a24d0760e21b145b806108a257506301ffc9a760e01b6001600160e01b03198316146108a2565b606081600003611bb15750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611bdb5780611bc581612fc6565b9150611bd49050600a83612ff5565b9150611bb5565b6000816001600160401b03811115611bf557611bf561292e565b6040519080825280601f01601f191660200182016040528015611c1f576020820181803683370190505b5090505b8415611c8a57611c34600183613185565b9150611c41600a86613198565b611c4c906030612fb3565b60f81b818381518110611c6157611c61612f68565b60200101906001600160f81b031916908160001a905350611c83600a86612ff5565b9450611c23565b949350505050565b6001600160a01b038416611cb85760405162461bcd60e51b81526004016107ea90613144565b8151835114611cd95760405162461bcd60e51b81526004016107ea906131ac565b33611ce9816000878787876123a1565b60005b8451811015611d8457838181518110611d0757611d07612f68565b6020026020010151600080878481518110611d2457611d24612f68565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000206000828254611d6c9190612fb3565b90915550819050611d7c81612fc6565b915050611cec565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611dd59291906131f4565b60405180910390a4610df681600087878787612608565b8151835114611e0d5760405162461bcd60e51b81526004016107ea906131ac565b6001600160a01b038416611e335760405162461bcd60e51b81526004016107ea90613222565b33611e428187878787876123a1565b60005b8451811015611f28576000858281518110611e6257611e62612f68565b602002602001015190506000858381518110611e8057611e80612f68565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611ed05760405162461bcd60e51b81526004016107ea90613267565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611f0d908490612fb3565b9250508190555050505080611f2190612fc6565b9050611e45565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611f789291906131f4565b60405180910390a461128b818787878787612608565b6001600160a01b038316611ff05760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b60648201526084016107ea565b3361201f8185600061200187612356565b61200a87612356565b604051806020016040528060008152506123a1565b6000838152602081815260408083206001600160a01b03881684529091529020548281101561209c5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b60648201526084016107ea565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036121cc5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016107ea565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b03841661225f5760405162461bcd60e51b81526004016107ea90613222565b3361226f818787611a9b88612356565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156122b05760405162461bcd60e51b81526004016107ea90613267565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906122ed908490612fb3565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461234d8288888888886124ad565b50505050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061239057612390612f68565b602090810291909101015292915050565b6001600160a01b0385166124285760005b8351811015612426578281815181106123cd576123cd612f68565b6020026020010151601160008684815181106123eb576123eb612f68565b6020026020010151815260200190815260200160002060008282546124109190612fb3565b9091555061241f905081612fc6565b90506123b2565b505b6001600160a01b03841661128b5760005b835181101561234d5782818151811061245457612454612f68565b60200260200101516012600086848151811061247257612472612f68565b6020026020010151815260200190815260200160002060008282546124979190612fb3565b909155506124a6905081612fc6565b9050612439565b6001600160a01b0384163b1561128b5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906124f190899089908890889088906004016132b1565b6020604051808303816000875af192505050801561252c575060408051601f3d908101601f19168201909252612529918101906132f6565b60015b6125d857612538613313565b806308c379a003612571575061254c61332f565b806125575750612573565b8060405162461bcd60e51b81526004016107ea919061282b565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016107ea565b6001600160e01b0319811663f23a6e6160e01b1461234d5760405162461bcd60e51b81526004016107ea906133b8565b6001600160a01b0384163b1561128b5760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061264c9089908990889088908890600401613400565b6020604051808303816000875af1925050508015612687575060408051601f3d908101601f19168201909252612684918101906132f6565b60015b61269357612538613313565b6001600160e01b0319811663bc197c8160e01b1461234d5760405162461bcd60e51b81526004016107ea906133b8565b50805460008255906000526020600020908101906109a391905b808211156126f157600081556001016126dd565b5090565b6001600160a01b03811681146109a357600080fd5b60008060006060848603121561271f57600080fd5b833561272a816126f5565b95602085013595506040909401359392505050565b6000806040838503121561275257600080fd5b823561275d816126f5565b946020939093013593505050565b6001600160e01b0319811681146109a357600080fd5b60006020828403121561279357600080fd5b813561279e8161276b565b9392505050565b6000602082840312156127b757600080fd5b813561279e816126f5565b6000602082840312156127d457600080fd5b5035919050565b60005b838110156127f65781810151838201526020016127de565b50506000910152565b600081518084526128178160208601602086016127db565b601f01601f19169290920160200192915050565b60208152600061279e60208301846127ff565b60008083601f84011261285057600080fd5b5081356001600160401b0381111561286757600080fd5b6020830191508360208260051b8501011115610d5f57600080fd5b6000806000806000806080878903121561289b57600080fd5b86356128a6816126f5565b955060208701356001600160401b03808211156128c257600080fd5b6128ce8a838b0161283e565b909750955060408901359150808211156128e757600080fd5b506128f489828a0161283e565b979a9699509497949695606090950135949350505050565b6000806040838503121561291f57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156129695761296961292e565b6040525050565b60006001600160401b038211156129895761298961292e565b5060051b60200190565b600082601f8301126129a457600080fd5b813560206129b182612970565b6040516129be8282612944565b83815260059390931b85018201928281019150868411156129de57600080fd5b8286015b848110156129f957803583529183019183016129e2565b509695505050505050565b600082601f830112612a1557600080fd5b81356001600160401b03811115612a2e57612a2e61292e565b604051612a45601f8301601f191660200182612944565b818152846020838601011115612a5a57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215612a8f57600080fd5b8535612a9a816126f5565b94506020860135612aaa816126f5565b935060408601356001600160401b0380821115612ac657600080fd5b612ad289838a01612993565b94506060880135915080821115612ae857600080fd5b612af489838a01612993565b93506080880135915080821115612b0a57600080fd5b50612b1788828901612a04565b9150509295509295909350565b60008060408385031215612b3757600080fd5b82356001600160401b0380821115612b4e57600080fd5b818501915085601f830112612b6257600080fd5b81356020612b6f82612970565b604051612b7c8282612944565b83815260059390931b8501820192828101915089841115612b9c57600080fd5b948201945b83861015612bc3578535612bb4816126f5565b82529482019490820190612ba1565b96505086013592505080821115612bd957600080fd5b50612be685828601612993565b9150509250929050565b600081518084526020808501945080840160005b83811015612c2057815187529582019590820190600101612c04565b509495945050505050565b60208152600061279e6020830184612bf0565b60008060208385031215612c5157600080fd5b82356001600160401b0380821115612c6857600080fd5b818501915085601f830112612c7c57600080fd5b813581811115612c8b57600080fd5b866020828501011115612c9d57600080fd5b60209290920196919550909350505050565b80151581146109a357600080fd5b60008060408385031215612cd057600080fd5b8235612cdb816126f5565b91506020830135612ceb81612caf565b809150509250929050565b600080600080600060808688031215612d0e57600080fd5b8535612d19816126f5565b94506020860135612d29816126f5565b93506040860135612d39816126f5565b925060608601356001600160401b03811115612d5457600080fd5b612d608882890161283e565b969995985093965092949392505050565b60008060008060408587031215612d8757600080fd5b84356001600160401b0380821115612d9e57600080fd5b612daa8883890161283e565b90965094506020870135915080821115612dc357600080fd5b50612dd08782880161283e565b95989497509550505050565b60008060408385031215612def57600080fd5b8235612dfa816126f5565b91506020830135612ceb816126f5565b600080600080600060a08688031215612e2257600080fd5b8535612e2d816126f5565b94506020860135612e3d816126f5565b9350604086013592506060860135915060808601356001600160401b03811115612e6657600080fd5b612b1788828901612a04565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680612ebb57607f821691505b602082108103612edb57634e487b7160e01b600052602260045260246000fd5b50919050565b6000808454612eef81612ea7565b60018281168015612f075760018114612f1c57612f4b565b60ff1984168752821515830287019450612f4b565b8860005260208060002060005b85811015612f425781548a820152908401908201612f29565b50505082870194505b505050508351612f5f8183602088016127db565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612fae57612fae612f7e565b500290565b808201808211156108a2576108a2612f7e565b600060018201612fd857612fd8612f7e565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261300457613004612fdf565b500490565b60006020828403121561301b57600080fd5b5051919050565b601f82111561080e57600081815260208120601f850160051c810160208610156130495750805b601f850160051c820191505b8181101561128b57828155600101613055565b6001600160401b0383111561307f5761307f61292e565b6130938361308d8354612ea7565b83613022565b6000601f8411600181146130c757600085156130af5750838201355b600019600387901b1c1916600186901b178355610df6565b600083815260209020601f19861690835b828110156130f857868501358255602094850194600190920191016130d8565b50868210156131155760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60006020828403121561313957600080fd5b815161279e81612caf565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b818103818111156108a2576108a2612f7e565b6000826131a7576131a7612fdf565b500690565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b6040815260006132076040830185612bf0565b82810360208401526132198185612bf0565b95945050505050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906132eb908301846127ff565b979650505050505050565b60006020828403121561330857600080fd5b815161279e8161276b565b600060033d111561332c5760046000803e5060005160e01c5b90565b600060443d101561333d5790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561336c57505050505090565b82850191508151818111156133845750505050505090565b843d870101602082850101111561339e5750505050505090565b6133ad60208286010187612944565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061342c90830186612bf0565b828103606084015261343e8186612bf0565b9050828103608084015261345281856127ff565b9897505050505050505056fea26469706673582212201449f2be703cbbcb28ac096a6214c2f8db61829168a2b36d526f22851698025964736f6c63430008100033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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