POL Price: $0.637877 (-8.54%)
 

Overview

POL Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo0 POL

POL Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...563407012024-04-28 7:23:30225 days ago1714289010IN
0xA36961ca...43A14CcaB
0 POL0.00701564151.94248722
Set Approval For...562712492024-04-26 10:15:23227 days ago1714126523IN
0xA36961ca...43A14CcaB
0 POL0.0045125897.73206536
Set Approval For...523885172024-01-16 10:32:38328 days ago1705401158IN
0xA36961ca...43A14CcaB
0 POL0.0013852130.0004531
Set Approval For...523741872024-01-16 1:59:56328 days ago1705370396IN
0xA36961ca...43A14CcaB
0 POL0.0013851930.00000006
Set Approval For...522067812024-01-11 17:58:07332 days ago1704995887IN
0xA36961ca...43A14CcaB
0 POL0.0030594666.26081913
Set Approval For...414496922023-04-12 15:22:19606 days ago1681312939IN
0xA36961ca...43A14CcaB
0 POL0.01563165338.54543197
Transfer From407663782023-03-25 21:30:19624 days ago1679779819IN
0xA36961ca...43A14CcaB
0 POL0.0063354275.67572515
Set Approval For...395400882023-02-21 7:13:54657 days ago1676963634IN
0xA36961ca...43A14CcaB
0 POL0.00791944171.51680334
Set Approval For...395244322023-02-20 21:35:52657 days ago1676928952IN
0xA36961ca...43A14CcaB
0 POL0.00536614116.21823324
Safe Transfer Fr...367910502022-12-13 18:52:06726 days ago1670957526IN
0xA36961ca...43A14CcaB
0 POL0.0038003842.59947421
Safe Transfer Fr...367910432022-12-13 18:51:52726 days ago1670957512IN
0xA36961ca...43A14CcaB
0 POL0.0032827442.68182269
Safe Transfer Fr...367910372022-12-13 18:51:36726 days ago1670957496IN
0xA36961ca...43A14CcaB
0 POL0.0031597641.08281014
Safe Transfer Fr...367910292022-12-13 18:51:20726 days ago1670957480IN
0xA36961ca...43A14CcaB
0 POL0.0036090741.38561398
Safe Transfer Fr...367910212022-12-13 18:51:04726 days ago1670957464IN
0xA36961ca...43A14CcaB
0 POL0.0036966142.38947216
Safe Transfer Fr...367910142022-12-13 18:50:50726 days ago1670957450IN
0xA36961ca...43A14CcaB
0 POL0.0038053343.6361852
Safe Transfer Fr...367910072022-12-13 18:50:36726 days ago1670957436IN
0xA36961ca...43A14CcaB
0 POL0.0039081544.81526094
Safe Transfer Fr...367906652022-12-13 18:38:52726 days ago1670956732IN
0xA36961ca...43A14CcaB
0 POL0.0049538256.80600843
Safe Transfer Fr...367906572022-12-13 18:38:36726 days ago1670956716IN
0xA36961ca...43A14CcaB
0 POL0.0046765455.4053452
Safe Transfer Fr...367906452022-12-13 18:38:08726 days ago1670956688IN
0xA36961ca...43A14CcaB
0 POL0.0047609454.59424672
Safe Transfer Fr...367905742022-12-13 18:35:42726 days ago1670956542IN
0xA36961ca...43A14CcaB
0 POL0.005464854.91933138
Set Approval For...366337142022-12-09 21:41:52730 days ago1670622112IN
0xA36961ca...43A14CcaB
0 POL0.0018416739.88642918
Set Approval For...356685912022-11-16 6:37:51754 days ago1668580671IN
0xA36961ca...43A14CcaB
0 POL0.0017348637.57307039
Set Approval For...356455592022-11-15 17:20:46754 days ago1668532846IN
0xA36961ca...43A14CcaB
0 POL0.0020539244.48330291
Set Approval For...342588882022-10-12 17:03:47788 days ago1665594227IN
0xA36961ca...43A14CcaB
0 POL0.0018046839.0852
Set Approval For...331188182022-09-15 2:22:07816 days ago1663208527IN
0xA36961ca...43A14CcaB
0 POL0.0020145443.63043543
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
282599042022-05-13 7:56:54941 days ago1652428614
0xA36961ca...43A14CcaB
2,860 POL
272417992022-04-17 10:53:00967 days ago1650192780
0xA36961ca...43A14CcaB
7,600 POL
263562732022-03-25 19:35:30989 days ago1648236930
0xA36961ca...43A14CcaB
7,620 POL
262665062022-03-23 12:22:12992 days ago1648038132
0xA36961ca...43A14CcaB
7,510 POL
259284752022-03-14 9:33:401001 days ago1647250420
0xA36961ca...43A14CcaB
400 POL
258090582022-03-10 16:08:181004 days ago1646928498
0xA36961ca...43A14CcaB
7,170 POL
256603772022-03-06 21:14:461008 days ago1646601286
0xA36961ca...43A14CcaB
1,000 POL
256583512022-03-06 20:00:241008 days ago1646596824
0xA36961ca...43A14CcaB
7,130 POL
254998612022-03-02 16:01:061012 days ago1646236866
0xA36961ca...43A14CcaB
8,700 POL
253597432022-02-26 16:27:131016 days ago1645892833
0xA36961ca...43A14CcaB
5,630 POL
253294202022-02-25 18:10:091017 days ago1645812609
0xA36961ca...43A14CcaB
8,470 POL
251238292022-02-19 18:15:481023 days ago1645294548
0xA36961ca...43A14CcaB
5,480 POL
250914122022-02-18 19:38:051024 days ago1645213085
0xA36961ca...43A14CcaB
6,460 POL
250148992022-02-16 15:53:251026 days ago1645026805
0xA36961ca...43A14CcaB
8,010 POL
248169312022-02-11 15:08:031031 days ago1644592083
0xA36961ca...43A14CcaB
4,685 POL
246567832022-02-07 12:53:391035 days ago1644238419
0xA36961ca...43A14CcaB
8,535 POL
243797022022-01-31 11:16:001043 days ago1643627760
0xA36961ca...43A14CcaB
11,705 POL
242334922022-01-27 17:20:541046 days ago1643304054
0xA36961ca...43A14CcaB
10,300 POL
241012102022-01-24 10:11:421050 days ago1643019102
0xA36961ca...43A14CcaB
7,620 POL
239571682022-01-20 19:02:471053 days ago1642705367
0xA36961ca...43A14CcaB
3,625 POL
238561622022-01-18 6:29:101056 days ago1642487350
0xA36961ca...43A14CcaB
3,760 POL
238221742022-01-17 10:03:071057 days ago1642413787
0xA36961ca...43A14CcaB
2,070 POL
237851182022-01-16 11:18:391058 days ago1642331919
0xA36961ca...43A14CcaB
2,855 POL
237582532022-01-15 19:21:501058 days ago1642274510
0xA36961ca...43A14CcaB
4,850 POL
237033282022-01-14 8:58:311060 days ago1642150711
0xA36961ca...43A14CcaB
9,455 POL
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LegendsNFT

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : LegendsNFT.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;

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

contract LegendsNFT is ERC721Enumerable, Ownable, ReentrancyGuard {
	using Strings for uint256;

	string private _baseTokenURI = "https://api.cyborglegends.io/v1/nft/metadata/";
	string private _contractURI = "ipfs://QmR9v5CEfCi6QoZKNvUiaVzgrqQawdzBYMNgNM9gQTJUEb";

	uint256 public mysteryBoxMaxSupply = 10000;
	uint256 public mysteryBoxCounter = 0;
	uint256 public initialMaxSupplyPurchaseT4 = 48;
	uint256 public initialMaxSupplyPurchaseT5 = 16;
	uint256 public counterT4InitialSale = 0;
	uint256 public counterT5InitialSale = 0;
	uint256 public tokenCounter = 0;

	uint256 public priceMysteryBox = 125000000000000000000; // TODO: change to 125 MATIC (100000000000000000000) for production
	uint256 public pricePerTokenT4Utility = 3125000000000000000000; // TODO: change to 3125 MATIC (2500000000000000000000) for production
	uint256 public pricePerTokenT5Utility = 12500000000000000000000; // TODO: change to 12500 MATIC (10000000000000000000000) for production

	string public defaultUtility = "playable_hero";

	mapping(uint256 => string) public utility;

	uint256 public mergeStartTime = 1654898155; // TODO: update to 1654898155 (this is June 2022)
	uint256 public saleStartTime = 1639173355; // TODO: update to 1639173355 (this is 10 dec 2021 09:55 GMT+00)

	mapping(address => bool) public engineers;
	mapping(address => bool) public minters;

	event MysteryBoxPurchase(address indexed account, uint256 tokenID, string utility);
	event T4Purchase(address indexed account, uint256 tokenID, string utility);
	event T5Purchase(address indexed account, uint256 tokenID, string utility);
	event AdminPurchase(address indexed account, uint256 tokenID, uint256 tier, string utility);
	event Merge(uint256 indexed tokenID, uint256[] t1IDs, string utility, address indexed creator);

	constructor() ERC721("Cyborg Legends", "CLE") {
		//transfer to L: 0x6C67c0FC112f64Dd6FDb43b3bb42E2e4B181a452, K: 0x33a2Ce8C986b3321C82cB127f3090F6c10D8D990
		//setMinter(msg.sender, true); // TODO: set deployer as minter, disable in production
        //setEngineer(msg.sender, true); // TODO: set deployer as engineer, disable in production
	}

	//general public sale
	function mysteryBoxPurchase(uint256 qty) external payable nonReentrant {
		require(block.timestamp >= saleStartTime, "sale not live");
		require(qty <= 20, "no more than 20");
		require(priceMysteryBox * qty == msg.value, "exact MATIC amount needed");
		require(tokenCounter + qty <= mysteryBoxMaxSupply, "out of stock (total supply)");

		for (uint256 i = 0; i < qty; i++) {
			utility[getNextTokenID()] = defaultUtility;

			emit MysteryBoxPurchase(msg.sender, getNextTokenID(), utility[getNextTokenID()]);
			_safeMint(msg.sender, getNextTokenID());
			tokenCounter++;
		}
		mysteryBoxCounter += qty;
	}

	//guaranteed mint T4
	function purchaseT4() external payable nonReentrant {
		require(block.timestamp >= saleStartTime, "sale not live");
		require(pricePerTokenT4Utility == msg.value, "exact MATIC amount needed");
		require(counterT4InitialSale <= initialMaxSupplyPurchaseT4, "out of stock (T4)");
		counterT4InitialSale++;
		utility[getNextTokenID()] = defaultUtility;

		emit T4Purchase(msg.sender, getNextTokenID(), utility[getNextTokenID()]);
		_safeMint(msg.sender, getNextTokenID());
		tokenCounter++;
	}

	//guaranteed mint T5
	function purchaseT5() external payable nonReentrant {
		require(block.timestamp >= saleStartTime, "sale not live");
		require(pricePerTokenT5Utility == msg.value, "exact MATIC amount needed");
		require(counterT5InitialSale <= initialMaxSupplyPurchaseT5, "out of stock (T5)");
		counterT5InitialSale++;
		utility[getNextTokenID()] = defaultUtility;

		emit T5Purchase(msg.sender, getNextTokenID(), utility[getNextTokenID()]);
		_safeMint(msg.sender, getNextTokenID());
		tokenCounter++;
	}

	//create merging
	function mergeNFTs(uint256[] memory t1IDs) external nonReentrant {
		require(block.timestamp >= mergeStartTime, "merge not live");
		require(t1IDs.length >= 2, "please pass min 2 nfts");

		for (uint256 i = 0; i < t1IDs.length; i++) {
			require(ownerOf(t1IDs[i]) == msg.sender, "you are not the owner");
			require(compareStrings(utility[t1IDs[i]], utility[t1IDs[0]]), "incorrect utility");
		}

		burnBatch(t1IDs);

		//all good
		utility[getNextTokenID()] = utility[t1IDs[0]]; //set the utility

		emit Merge(getNextTokenID(), t1IDs, utility[t1IDs[0]], msg.sender);
		_safeMint(msg.sender, getNextTokenID());
		tokenCounter++;
	}

	//admin can mint for giveaways, contests etc.
	function adminMint(
		uint256 qty,
		address _to,
		uint256 _tier,
		string memory _utility
	) external {
		require(minters[msg.sender] == true, "only minters");
		require(qty <= 20, "maximum 20");
		for (uint256 i = 0; i < qty; i++) {
			utility[getNextTokenID()] = _utility;

			emit AdminPurchase(_to, getNextTokenID(), _tier, _utility);
			_safeMint(_to, getNextTokenID());
			tokenCounter++;
		}
	}

	// sets the utility
	function setUtility(uint256 nftID, string memory _utility) external {
		require(engineers[msg.sender] == true, "only engineers");
		utility[nftID] = _utility;
	}

	// sets the default utility
	function setDefaultUtility(string memory _utility) external onlyOwner {
		defaultUtility = _utility;
	}

	//----------------------------------
	//---------- other things ----------
	//----------------------------------
	function tokensOfOwner(address _owner) external view returns (uint256[] memory) {
		uint256 tokenCount = balanceOf(_owner);
		if (tokenCount == 0) {
			return new uint256[](0);
		} else {
			uint256[] memory result = new uint256[](tokenCount);
			uint256 index;
			for (index = 0; index < tokenCount; index++) {
				result[index] = tokenOfOwnerByIndex(_owner, index);
			}
			return result;
		}
	}

	//internal, used in burnBatch
	function burn(uint256 tokenId) public virtual {
		require(_isApprovedOrOwner(_msgSender(), tokenId), "caller is not owner nor approved");
		_burn(tokenId);
	}

	//internal, used for merging NFTs
	function burnBatch(uint256[] memory tokensId) public {
		for (uint256 i = 0; i < tokensId.length; i++) {
			burn(tokensId[i]);
		}
	}

	function exists(uint256 _tokenId) external view returns (bool) {
		return _exists(_tokenId);
	}

	function isApprovedOrOwner(address _spender, uint256 _tokenId) external view returns (bool) {
		return _isApprovedOrOwner(_spender, _tokenId);
	}

	function tokenURI(uint256 _tokenId) public view override returns (string memory) {
		require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token");
		return string(abi.encodePacked(_baseTokenURI, _tokenId.toString()));
	}

	function setBaseURI(string memory newBaseURI) public onlyOwner {
		_baseTokenURI = newBaseURI;
	}

	function setContractURI(string memory newuri) public onlyOwner {
		_contractURI = newuri;
	}

	function contractURI() public view returns (string memory) {
		return _contractURI;
	}

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

	function reclaimERC20(IERC20 erc20Token) external onlyOwner {
		erc20Token.transfer(msg.sender, erc20Token.balanceOf(address(this)));
	}

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

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

	function setEngineer(address _newWallet, bool _isEngineer) public onlyOwner {
		engineers[_newWallet] = _isEngineer;
	}

	function setMinter(address _newWallet, bool _isMinter) public onlyOwner {
		minters[_newWallet] = _isMinter;
	}

	function setSaleStartTime(uint256 _saleStartTime) external onlyOwner {
		saleStartTime = _saleStartTime;
	}

	function setMergeStartTime(uint256 _mergeStartTime) external onlyOwner {
		mergeStartTime = _mergeStartTime;
	}

	function setMaxSupplyMysteryBox(uint256 _newMaxSupply) external onlyOwner {
		mysteryBoxMaxSupply = _newMaxSupply;
	}

	function setMaxSupplyPurchaseT4(uint256 _newMaxSupply) external onlyOwner {
		initialMaxSupplyPurchaseT4 = _newMaxSupply;
	}

	function setMaxSupplyPurchaseT5(uint256 _newMaxSupply) external onlyOwner {
		initialMaxSupplyPurchaseT5 = _newMaxSupply;
	}

	function resetMysteryBoxCounter() external onlyOwner {
		mysteryBoxCounter = 0;
	}

	function resetMT4Counter() external onlyOwner {
		counterT4InitialSale = 0;
	}

	function resetT5Counter() external onlyOwner {
		counterT5InitialSale = 0;
	}

    // change mystery price
    function changeMysteryBoxPrice(uint256 newPrice) external onlyOwner {
        priceMysteryBox = newPrice;
    }

	//change the price per NFT according to their tier (only T4 & T5)
	function changeTierPrice(uint256 where, uint256 newPrice) external onlyOwner {
		if (where == 4) {
			pricePerTokenT4Utility = newPrice;
		}
		if (where == 5) {
			pricePerTokenT5Utility = newPrice;
		}
	}

	//easy for some devs
	function getUtility(uint256 nftID) public view returns (string memory) {
		return utility[nftID];
	}

	function getNextTokenID() internal view returns (uint256) {
		return tokenCounter + 1;
	}

	function compareStrings(string memory a, string memory b) internal pure returns (bool) {
		return (keccak256(abi.encodePacked((a))) == keccak256(abi.encodePacked((b))));
	}
}

File 2 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT

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 16 : IERC1155.sol
// SPDX-License-Identifier: MIT

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 4 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT

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

File 5 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 6 of 16 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 7 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @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.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 8 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

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 make 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 9 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT

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 16 : Context.sol
// SPDX-License-Identifier: MIT

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 11 of 16 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 12 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 13 of 16 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

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

File 14 of 16 : Address.sol
// SPDX-License-Identifier: MIT

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 15 of 16 : Strings.sol
// SPDX-License-Identifier: MIT

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 16 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT

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

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":false,"internalType":"uint256","name":"tokenID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tier","type":"uint256"},{"indexed":false,"internalType":"string","name":"utility","type":"string"}],"name":"AdminPurchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","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":"uint256","name":"tokenID","type":"uint256"},{"indexed":false,"internalType":"uint256[]","name":"t1IDs","type":"uint256[]"},{"indexed":false,"internalType":"string","name":"utility","type":"string"},{"indexed":true,"internalType":"address","name":"creator","type":"address"}],"name":"Merge","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenID","type":"uint256"},{"indexed":false,"internalType":"string","name":"utility","type":"string"}],"name":"MysteryBoxPurchase","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":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenID","type":"uint256"},{"indexed":false,"internalType":"string","name":"utility","type":"string"}],"name":"T4Purchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenID","type":"uint256"},{"indexed":false,"internalType":"string","name":"utility","type":"string"}],"name":"T5Purchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tier","type":"uint256"},{"internalType":"string","name":"_utility","type":"string"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokensId","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"changeMysteryBoxPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"where","type":"uint256"},{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"changeTierPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"counterT4InitialSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"counterT5InitialSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultUtility","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"engineers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nftID","type":"uint256"}],"name":"getUtility","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialMaxSupplyPurchaseT4","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialMaxSupplyPurchaseT5","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isApprovedOrOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"t1IDs","type":"uint256[]"}],"name":"mergeNFTs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mergeStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mysteryBoxCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mysteryBoxMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"qty","type":"uint256"}],"name":"mysteryBoxPurchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceMysteryBox","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pricePerTokenT4Utility","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pricePerTokenT5Utility","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"purchaseT4","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"purchaseT5","outputs":[],"stateMutability":"payable","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":"erc20Token","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resetMT4Counter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resetMysteryBoxCounter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resetT5Counter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"string","name":"newuri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_utility","type":"string"}],"name":"setDefaultUtility","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newWallet","type":"address"},{"internalType":"bool","name":"_isEngineer","type":"bool"}],"name":"setEngineer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxSupply","type":"uint256"}],"name":"setMaxSupplyMysteryBox","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxSupply","type":"uint256"}],"name":"setMaxSupplyPurchaseT4","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxSupply","type":"uint256"}],"name":"setMaxSupplyPurchaseT5","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mergeStartTime","type":"uint256"}],"name":"setMergeStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newWallet","type":"address"},{"internalType":"bool","name":"_isMinter","type":"bool"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleStartTime","type":"uint256"}],"name":"setSaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nftID","type":"uint256"},{"internalType":"string","name":"_utility","type":"string"}],"name":"setUtility","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"utility","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawEarnings","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e0604052602d60808181529062003f0c60a03980516200002991600c91602090910190620001e8565b5060405180606001604052806035815260200162003ed76035913980516200005a91600d91602090910190620001e8565b50612710600e556000600f55603060105560106011556000601255600060135560006014556806c6b935b8bbd4000060155568a968163f0a57b400006016556902a5a058fc295ed000006017556040518060400160405280600d81526020016c706c617961626c655f6865726f60981b81525060189080519060200190620000e4929190620001e8565b506362a3bdeb601a556361b3cceb601b553480156200010257600080fd5b50604080518082018252600e81526d4379626f7267204c6567656e647360901b602080830191825283518085019094526003845262434c4560e81b9084015281519192916200015491600091620001e8565b5080516200016a906001906020840190620001e8565b50505062000187620001816200019260201b60201c565b62000196565b6001600b55620002cb565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001f6906200028e565b90600052602060002090601f0160209004810192826200021a576000855562000265565b82601f106200023557805160ff191683800117855562000265565b8280016001018555821562000265579182015b828111156200026557825182559160200191906001019062000248565b506200027392915062000277565b5090565b5b8082111562000273576000815560010162000278565b600181811c90821680620002a357607f821691505b60208210811415620002c557634e487b7160e01b600052602260045260246000fd5b50919050565b613bfc80620002db6000396000f3fe6080604052600436106103e45760003560e01c8063715018a611610208578063b88d4fde11610118578063e4623c1b116100ab578063f2fde38b1161007a578063f2fde38b14610b1e578063f46eccc414610b3e578063f7ad6f0b14610b6e578063f9ab1ba514610b84578063fffc541614610ba457600080fd5b8063e4623c1b14610a80578063e8a3d48514610aa0578063e985e9c514610ab5578063ef4a22a114610afe57600080fd5b8063d082e381116100e7578063d082e38114610a12578063d43f784714610a28578063d513b04014610a58578063db5954c914610a6057600080fd5b8063b88d4fde1461099c578063b8d37e82146109bc578063c87b56dd146109d2578063cf456ae7146109f257600080fd5b8063938e3d7b1161019b578063a350d79d1161016a578063a350d79d14610911578063a4c83f9914610931578063ae428d8514610951578063b48b512514610971578063b73c6ce91461098757600080fd5b8063938e3d7b146108a6578063955fa4aa146108c657806395d89b41146108dc578063a22cb465146108f157600080fd5b80638905fd4f116101d75780638905fd4f146108285780638da5cb5b1461084857806392e77ca214610866578063937d4cd31461088657600080fd5b8063715018a6146107a65780637ccee55f146107bb5780637ed79b1c146107db5780638462151c146107fb57600080fd5b806333d08d70116103035780634f6ccce7116102965780635a65e608116102655780635a65e6081461071e5780636352211e146107315780636540a7c8146107515780636b7d24701461076657806370a082311461078657600080fd5b80634f6ccce7146106a9578063525f8a5c146106c957806355f804b3146106e957806357f868ea1461070957600080fd5b806342994503116102d2578063429945031461063d578063430c2081146106535780634ca31e2d146106735780634f558e791461068957600080fd5b806333d08d70146105d1578063369d0421146105e757806342842e0e146105fd57806342966c681461061d57600080fd5b806317c987711161037b5780631cbaee2d1161034a5780631cbaee2d1461056657806323b872dd1461057c5780632728eb511461059c5780632f745c59146105b157600080fd5b806317c98771146104fb57806318160ddd1461051b5780631923476914610530578063192eccfe1461055057600080fd5b806306fdde03116103b757806306fdde031461046c578063081812fc1461048e5780630837254e146104c6578063095ea7b3146104db57600080fd5b806301ffc9a7146103e9578063031b92931461041e5780630350179114610428578063056ea46a14610448575b600080fd5b3480156103f557600080fd5b50610409610404366004613252565b610bc4565b60405190151581526020015b60405180910390f35b610426610bef565b005b34801561043457600080fd5b5061042661044336600461326f565b610d7b565b34801561045457600080fd5b5061045e60135481565b604051908152602001610415565b34801561047857600080fd5b50610481610daa565b60405161041591906132e0565b34801561049a57600080fd5b506104ae6104a936600461326f565b610e3c565b6040516001600160a01b039091168152602001610415565b3480156104d257600080fd5b50610426610ed1565b3480156104e757600080fd5b506104266104f6366004613308565b610f02565b34801561050757600080fd5b50610426610516366004613334565b611018565b34801561052757600080fd5b5060085461045e565b34801561053c57600080fd5b5061048161054b36600461326f565b611064565b34801561055c57600080fd5b5061045e600e5481565b34801561057257600080fd5b5061045e601b5481565b34801561058857600080fd5b50610426610597366004613356565b611106565b3480156105a857600080fd5b50610426611138565b3480156105bd57600080fd5b5061045e6105cc366004613308565b611169565b3480156105dd57600080fd5b5061045e601a5481565b3480156105f357600080fd5b5061045e600f5481565b34801561060957600080fd5b50610426610618366004613356565b6111ff565b34801561062957600080fd5b5061042661063836600461326f565b61121a565b34801561064957600080fd5b5061045e60165481565b34801561065f57600080fd5b5061040961066e366004613308565b61127b565b34801561067f57600080fd5b5061045e60155481565b34801561069557600080fd5b506104096106a436600461326f565b61128e565b3480156106b557600080fd5b5061045e6106c436600461326f565b6112ad565b3480156106d557600080fd5b506104266106e436600461326f565b611340565b3480156106f557600080fd5b50610426610704366004613456565b61136f565b34801561071557600080fd5b506104816113ac565b61042661072c36600461326f565b61143a565b34801561073d57600080fd5b506104ae61074c36600461326f565b61163f565b34801561075d57600080fd5b506104266116b6565b34801561077257600080fd5b50610426610781366004613308565b6116e7565b34801561079257600080fd5b5061045e6107a136600461348b565b61177c565b3480156107b257600080fd5b50610426611803565b3480156107c757600080fd5b506104266107d636600461326f565b611839565b3480156107e757600080fd5b506104266107f63660046134b6565b611868565b34801561080757600080fd5b5061081b61081636600461348b565b6118bd565b604051610415919061352a565b34801561083457600080fd5b5061042661084336600461348b565b61197c565b34801561085457600080fd5b50600a546001600160a01b03166104ae565b34801561087257600080fd5b5061048161088136600461326f565b611a87565b34801561089257600080fd5b506104266108a1366004613456565b611aa0565b3480156108b257600080fd5b506104266108c1366004613456565b611add565b3480156108d257600080fd5b5061045e60125481565b3480156108e857600080fd5b50610481611b1a565b3480156108fd57600080fd5b5061042661090c3660046134b6565b611b29565b34801561091d57600080fd5b5061042661092c36600461326f565b611bee565b34801561093d57600080fd5b5061042661094c36600461326f565b611c1d565b34801561095d57600080fd5b5061042661096c36600461353d565b611c4c565b34801561097d57600080fd5b5061045e60115481565b34801561099357600080fd5b50610426612040565b3480156109a857600080fd5b506104266109b73660046135e3565b612096565b3480156109c857600080fd5b5061045e60105481565b3480156109de57600080fd5b506104816109ed36600461326f565b6120ce565b3480156109fe57600080fd5b50610426610a0d3660046134b6565b61217f565b348015610a1e57600080fd5b5061045e60145481565b348015610a3457600080fd5b50610409610a4336600461348b565b601c6020526000908152604090205460ff1681565b6104266121d4565b348015610a6c57600080fd5b50610426610a7b366004613308565b6122fa565b348015610a8c57600080fd5b50610426610a9b36600461353d565b612372565b348015610aac57600080fd5b506104816123b2565b348015610ac157600080fd5b50610409610ad0366004613663565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b0a57600080fd5b50610426610b1936600461326f565b6123c1565b348015610b2a57600080fd5b50610426610b3936600461348b565b6123f0565b348015610b4a57600080fd5b50610409610b5936600461348b565b601d6020526000908152604090205460ff1681565b348015610b7a57600080fd5b5061045e60175481565b348015610b9057600080fd5b50610426610b9f366004613691565b612488565b348015610bb057600080fd5b50610426610bbf3660046136d8565b6124fc565b60006001600160e01b0319821663780e9d6360e01b1480610be95750610be98261264e565b92915050565b6002600b541415610c1b5760405162461bcd60e51b8152600401610c129061372f565b60405180910390fd5b6002600b55601b54421015610c425760405162461bcd60e51b8152600401610c1290613766565b3460175414610c635760405162461bcd60e51b8152600401610c129061378d565b6011546013541115610cab5760405162461bcd60e51b81526020600482015260116024820152706f7574206f662073746f636b202854352960781b6044820152606401610c12565b60138054906000610cbb836137da565b9190505550601860196000610cce61269e565b8152602001908152602001600020908054610ce8906137f5565b610cf3929190613128565b50337ffb4c12112560edab4fe9b18d1cf7cac050afc2f973edfb23240289064b782541610d1e61269e565b60196000610d2a61269e565b8152602001908152602001600020604051610d469291906138a1565b60405180910390a2610d5f33610d5a61269e565b6126b4565b60148054906000610d6f836137da565b90915550506001600b55565b600a546001600160a01b03163314610da55760405162461bcd60e51b8152600401610c12906138ba565b601055565b606060008054610db9906137f5565b80601f0160208091040260200160405190810160405280929190818152602001828054610de5906137f5565b8015610e325780601f10610e0757610100808354040283529160200191610e32565b820191906000526020600020905b815481529060010190602001808311610e1557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610eb55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c12565b506000908152600460205260409020546001600160a01b031690565b600a546001600160a01b03163314610efb5760405162461bcd60e51b8152600401610c12906138ba565b6000600f55565b6000610f0d8261163f565b9050806001600160a01b0316836001600160a01b03161415610f7b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c12565b336001600160a01b0382161480610f975750610f978133610ad0565b6110095760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c12565b61101383836126ce565b505050565b600a546001600160a01b031633146110425760405162461bcd60e51b8152600401610c12906138ba565b81600414156110515760168190555b81600514156110605760178190555b5050565b6000818152601960205260409020805460609190611081906137f5565b80601f01602080910402602001604051908101604052809291908181526020018280546110ad906137f5565b80156110fa5780601f106110cf576101008083540402835291602001916110fa565b820191906000526020600020905b8154815290600101906020018083116110dd57829003601f168201915b50505050509050919050565b611111335b8261273c565b61112d5760405162461bcd60e51b8152600401610c12906138ef565b611013838383612833565b600a546001600160a01b031633146111625760405162461bcd60e51b8152600401610c12906138ba565b6000601355565b60006111748361177c565b82106111d65760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610c12565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61101383838360405180602001604052806000815250612096565b6112233361110b565b61126f5760405162461bcd60e51b815260206004820181905260248201527f63616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665646044820152606401610c12565b611278816129de565b50565b6000611287838361273c565b9392505050565b6000818152600260205260408120546001600160a01b03161515610be9565b60006112b860085490565b821061131b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610c12565b6008828154811061132e5761132e613940565b90600052602060002001549050919050565b600a546001600160a01b0316331461136a5760405162461bcd60e51b8152600401610c12906138ba565b601b55565b600a546001600160a01b031633146113995760405162461bcd60e51b8152600401610c12906138ba565b805161106090600c9060208401906131b3565b601880546113b9906137f5565b80601f01602080910402602001604051908101604052809291908181526020018280546113e5906137f5565b80156114325780601f1061140757610100808354040283529160200191611432565b820191906000526020600020905b81548152906001019060200180831161141557829003601f168201915b505050505081565b6002600b54141561145d5760405162461bcd60e51b8152600401610c129061372f565b6002600b55601b544210156114845760405162461bcd60e51b8152600401610c1290613766565b60148111156114c75760405162461bcd60e51b815260206004820152600f60248201526e06e6f206d6f7265207468616e20323608c1b6044820152606401610c12565b34816015546114d69190613956565b146114f35760405162461bcd60e51b8152600401610c129061378d565b600e54816014546115049190613975565b11156115525760405162461bcd60e51b815260206004820152601b60248201527f6f7574206f662073746f636b2028746f74616c20737570706c792900000000006044820152606401610c12565b60005b8181101561161f5760186019600061156b61269e565b8152602001908152602001600020908054611585906137f5565b611590929190613128565b50337f0bf2f8553c52006159fe511c84910062b0e914a108c128d94b588667e949c26e6115bb61269e565b601960006115c761269e565b81526020019081526020016000206040516115e39291906138a1565b60405180910390a26115f733610d5a61269e565b60148054906000611607836137da565b91905055508080611617906137da565b915050611555565b5080600f60008282546116329190613975565b90915550506001600b5550565b6000818152600260205260408120546001600160a01b031680610be95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c12565b600a546001600160a01b031633146116e05760405162461bcd60e51b8152600401610c12906138ba565b6000601255565b600a546001600160a01b031633146117115760405162461bcd60e51b8152600401610c12906138ba565b604051632142170760e11b8152306004820152336024820152604481018290526001600160a01b038316906342842e0e906064015b600060405180830381600087803b15801561176057600080fd5b505af1158015611774573d6000803e3d6000fd5b505050505050565b60006001600160a01b0382166117e75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c12565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b0316331461182d5760405162461bcd60e51b8152600401610c12906138ba565b6118376000612a85565b565b600a546001600160a01b031633146118635760405162461bcd60e51b8152600401610c12906138ba565b601555565b600a546001600160a01b031633146118925760405162461bcd60e51b8152600401610c12906138ba565b6001600160a01b03919091166000908152601c60205260409020805460ff1916911515919091179055565b606060006118ca8361177c565b9050806118eb5760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff81111561190657611906613397565b60405190808252806020026020018201604052801561192f578160200160208202803683370190505b50905060005b828110156118e3576119478582611169565b82828151811061195957611959613940565b60209081029190910101528061196e816137da565b915050611935565b50919050565b600a546001600160a01b031633146119a65760405162461bcd60e51b8152600401610c12906138ba565b6040516370a0823160e01b81523060048201526001600160a01b0382169063a9059cbb90339083906370a0823190602401602060405180830381865afa1580156119f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a18919061398d565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015611a63573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061106091906139a6565b601960205260009081526040902080546113b9906137f5565b600a546001600160a01b03163314611aca5760405162461bcd60e51b8152600401610c12906138ba565b80516110609060189060208401906131b3565b600a546001600160a01b03163314611b075760405162461bcd60e51b8152600401610c12906138ba565b805161106090600d9060208401906131b3565b606060018054610db9906137f5565b6001600160a01b038216331415611b825760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c12565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b03163314611c185760405162461bcd60e51b8152600401610c12906138ba565b600e55565b600a546001600160a01b03163314611c475760405162461bcd60e51b8152600401610c12906138ba565b601155565b6002600b541415611c6f5760405162461bcd60e51b8152600401610c129061372f565b6002600b55601a54421015611cb75760405162461bcd60e51b815260206004820152600e60248201526d6d65726765206e6f74206c69766560901b6044820152606401610c12565b600281511015611d025760405162461bcd60e51b8152602060048201526016602482015275706c656173652070617373206d696e2032206e66747360501b6044820152606401610c12565b60005b8151811015611f4d57336001600160a01b0316611d3a838381518110611d2d57611d2d613940565b602002602001015161163f565b6001600160a01b031614611d885760405162461bcd60e51b81526020600482015260156024820152743cb7ba9030b932903737ba103a34329037bbb732b960591b6044820152606401610c12565b611efb60196000848481518110611da157611da1613940565b602002602001015181526020019081526020016000208054611dc2906137f5565b80601f0160208091040260200160405190810160405280929190818152602001828054611dee906137f5565b8015611e3b5780601f10611e1057610100808354040283529160200191611e3b565b820191906000526020600020905b815481529060010190602001808311611e1e57829003601f168201915b50505050506019600085600081518110611e5757611e57613940565b602002602001015181526020019081526020016000208054611e78906137f5565b80601f0160208091040260200160405190810160405280929190818152602001828054611ea4906137f5565b8015611ef15780601f10611ec657610100808354040283529160200191611ef1565b820191906000526020600020905b815481529060010190602001808311611ed457829003601f168201915b5050505050612ad7565b611f3b5760405162461bcd60e51b8152602060048201526011602482015270696e636f7272656374207574696c69747960781b6044820152606401610c12565b80611f45816137da565b915050611d05565b50611f5781612372565b6019600082600081518110611f6e57611f6e613940565b6020026020010151815260200190815260200160002060196000611f9061269e565b8152602001908152602001600020908054611faa906137f5565b611fb5929190613128565b5033611fbf61269e565b7f8552e5552be44b683819c13788be4b56ab388831699a897d42924ea7043ee839836019600086600081518110611ff857611ff8613940565b6020026020010151815260200190815260200160002060405161201c9291906139c3565b60405180910390a361203033610d5a61269e565b60148054906000611632836137da565b600a546001600160a01b0316331461206a5760405162461bcd60e51b8152600401610c12906138ba565b60405133904780156108fc02916000818181858888f19350505050158015611278573d6000803e3d6000fd5b6120a0338361273c565b6120bc5760405162461bcd60e51b8152600401610c12906138ef565b6120c884848484612b30565b50505050565b6000818152600260205260409020546060906001600160a01b031661214d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610c12565b600c61215883612b63565b6040516020016121699291906139f1565b6040516020818303038152906040529050919050565b600a546001600160a01b031633146121a95760405162461bcd60e51b8152600401610c12906138ba565b6001600160a01b03919091166000908152601d60205260409020805460ff1916911515919091179055565b6002600b5414156121f75760405162461bcd60e51b8152600401610c129061372f565b6002600b55601b5442101561221e5760405162461bcd60e51b8152600401610c1290613766565b346016541461223f5760405162461bcd60e51b8152600401610c129061378d565b60105460125411156122875760405162461bcd60e51b81526020600482015260116024820152706f7574206f662073746f636b202854342960781b6044820152606401610c12565b60128054906000612297836137da565b91905055506018601960006122aa61269e565b81526020019081526020016000209080546122c4906137f5565b6122cf929190613128565b50337f6812bd52ce8ab37988a30321834f4f9bb2b14e563af4256c361116ab13a1236a610d1e61269e565b600a546001600160a01b031633146123245760405162461bcd60e51b8152600401610c12906138ba565b604051637921219560e11b8152306004820152336024820152604481018290526001606482015260a06084820152600060a48201526001600160a01b0383169063f242432a9060c401611746565b60005b8151811015611060576123a082828151811061239357612393613940565b602002602001015161121a565b806123aa816137da565b915050612375565b6060600d8054610db9906137f5565b600a546001600160a01b031633146123eb5760405162461bcd60e51b8152600401610c12906138ba565b601a55565b600a546001600160a01b0316331461241a5760405162461bcd60e51b8152600401610c12906138ba565b6001600160a01b03811661247f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c12565b61127881612a85565b336000908152601c602052604090205460ff1615156001146124dd5760405162461bcd60e51b815260206004820152600e60248201526d6f6e6c7920656e67696e6565727360901b6044820152606401610c12565b60008281526019602090815260409091208251611013928401906131b3565b336000908152601d602052604090205460ff16151560011461254f5760405162461bcd60e51b815260206004820152600c60248201526b6f6e6c79206d696e7465727360a01b6044820152606401610c12565b601484111561258d5760405162461bcd60e51b815260206004820152600a60248201526906d6178696d756d2032360b41b6044820152606401610c12565b60005b848110156126475781601960006125a561269e565b815260200190815260200160002090805190602001906125c69291906131b3565b50836001600160a01b03167ffd743afeedad468b1515557736346dfb82825c63241a07bacc531d44ff286d216125fa61269e565b858560405161260b93929190613a74565b60405180910390a261261f84610d5a61269e565b6014805490600061262f836137da565b9190505550808061263f906137da565b915050612590565b5050505050565b60006001600160e01b031982166380ac58cd60e01b148061267f57506001600160e01b03198216635b5e139f60e01b145b80610be957506301ffc9a760e01b6001600160e01b0319831614610be9565b600060145460016126af9190613975565b905090565b611060828260405180602001604052806000815250612c61565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906127038261163f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166127b55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c12565b60006127c08361163f565b9050806001600160a01b0316846001600160a01b031614806127fb5750836001600160a01b03166127f084610e3c565b6001600160a01b0316145b8061282b57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166128468261163f565b6001600160a01b0316146128ae5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610c12565b6001600160a01b0382166129105760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c12565b61291b838383612c94565b6129266000826126ce565b6001600160a01b038316600090815260036020526040812080546001929061294f908490613a93565b90915550506001600160a01b038216600090815260036020526040812080546001929061297d908490613975565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006129e98261163f565b90506129f781600084612c94565b612a026000836126ce565b6001600160a01b0381166000908152600360205260408120805460019290612a2b908490613a93565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600081604051602001612aea9190613aaa565b6040516020818303038152906040528051906020012083604051602001612b119190613aaa565b6040516020818303038152906040528051906020012014905092915050565b612b3b848484612833565b612b4784848484612d4c565b6120c85760405162461bcd60e51b8152600401610c1290613ac6565b606081612b875750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612bb15780612b9b816137da565b9150612baa9050600a83613b2e565b9150612b8b565b60008167ffffffffffffffff811115612bcc57612bcc613397565b6040519080825280601f01601f191660200182016040528015612bf6576020820181803683370190505b5090505b841561282b57612c0b600183613a93565b9150612c18600a86613b42565b612c23906030613975565b60f81b818381518110612c3857612c38613940565b60200101906001600160f81b031916908160001a905350612c5a600a86613b2e565b9450612bfa565b612c6b8383612e4a565b612c786000848484612d4c565b6110135760405162461bcd60e51b8152600401610c1290613ac6565b6001600160a01b038316612cef57612cea81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612d12565b816001600160a01b0316836001600160a01b031614612d1257612d128382612f98565b6001600160a01b038216612d295761101381613035565b826001600160a01b0316826001600160a01b0316146110135761101382826130e4565b60006001600160a01b0384163b15612e3f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612d90903390899088908890600401613b56565b6020604051808303816000875af1925050508015612dcb575060408051601f3d908101601f19168201909252612dc891810190613b93565b60015b612e25573d808015612df9576040519150601f19603f3d011682016040523d82523d6000602084013e612dfe565b606091505b508051612e1d5760405162461bcd60e51b8152600401610c1290613ac6565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061282b565b506001949350505050565b6001600160a01b038216612ea05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c12565b6000818152600260205260409020546001600160a01b031615612f055760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c12565b612f1160008383612c94565b6001600160a01b0382166000908152600360205260408120805460019290612f3a908490613975565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001612fa58461177c565b612faf9190613a93565b600083815260076020526040902054909150808214613002576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061304790600190613a93565b6000838152600960205260408120546008805493945090928490811061306f5761306f613940565b90600052602060002001549050806008838154811061309057613090613940565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806130c8576130c8613bb0565b6001900381819060005260206000200160009055905550505050565b60006130ef8361177c565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054613134906137f5565b90600052602060002090601f01602090048101928261315657600085556131a3565b82601f1061316757805485556131a3565b828001600101855582156131a357600052602060002091601f016020900482015b828111156131a3578254825591600101919060010190613188565b506131af929150613227565b5090565b8280546131bf906137f5565b90600052602060002090601f0160209004810192826131e157600085556131a3565b82601f106131fa57805160ff19168380011785556131a3565b828001600101855582156131a3579182015b828111156131a357825182559160200191906001019061320c565b5b808211156131af5760008155600101613228565b6001600160e01b03198116811461127857600080fd5b60006020828403121561326457600080fd5b81356112878161323c565b60006020828403121561328157600080fd5b5035919050565b60005b838110156132a357818101518382015260200161328b565b838111156120c85750506000910152565b600081518084526132cc816020860160208601613288565b601f01601f19169290920160200192915050565b60208152600061128760208301846132b4565b6001600160a01b038116811461127857600080fd5b6000806040838503121561331b57600080fd5b8235613326816132f3565b946020939093013593505050565b6000806040838503121561334757600080fd5b50508035926020909101359150565b60008060006060848603121561336b57600080fd5b8335613376816132f3565b92506020840135613386816132f3565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156133d6576133d6613397565b604052919050565b600067ffffffffffffffff8311156133f8576133f8613397565b61340b601f8401601f19166020016133ad565b905082815283838301111561341f57600080fd5b828260208301376000602084830101529392505050565b600082601f83011261344757600080fd5b611287838335602085016133de565b60006020828403121561346857600080fd5b813567ffffffffffffffff81111561347f57600080fd5b61282b84828501613436565b60006020828403121561349d57600080fd5b8135611287816132f3565b801515811461127857600080fd5b600080604083850312156134c957600080fd5b82356134d4816132f3565b915060208301356134e4816134a8565b809150509250929050565b600081518084526020808501945080840160005b8381101561351f57815187529582019590820190600101613503565b509495945050505050565b60208152600061128760208301846134ef565b6000602080838503121561355057600080fd5b823567ffffffffffffffff8082111561356857600080fd5b818501915085601f83011261357c57600080fd5b81358181111561358e5761358e613397565b8060051b915061359f8483016133ad565b81815291830184019184810190888411156135b957600080fd5b938501935b838510156135d7578435825293850193908501906135be565b98975050505050505050565b600080600080608085870312156135f957600080fd5b8435613604816132f3565b93506020850135613614816132f3565b925060408501359150606085013567ffffffffffffffff81111561363757600080fd5b8501601f8101871361364857600080fd5b613657878235602084016133de565b91505092959194509250565b6000806040838503121561367657600080fd5b8235613681816132f3565b915060208301356134e4816132f3565b600080604083850312156136a457600080fd5b82359150602083013567ffffffffffffffff8111156136c257600080fd5b6136ce85828601613436565b9150509250929050565b600080600080608085870312156136ee57600080fd5b843593506020850135613700816132f3565b925060408501359150606085013567ffffffffffffffff81111561372357600080fd5b61365787828801613436565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600d908201526c73616c65206e6f74206c69766560981b604082015260600190565b60208082526019908201527f6578616374204d4154494320616d6f756e74206e656564656400000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60006000198214156137ee576137ee6137c4565b5060010190565b600181811c9082168061380957607f821691505b6020821081141561197657634e487b7160e01b600052602260045260246000fd5b60008154613837816137f5565b808552602060018381168015613854576001811461386857613896565b60ff19851688840152604088019550613896565b866000528260002060005b8581101561388e5781548a8201860152908301908401613873565b890184019650505b505050505092915050565b82815260406020820152600061282b604083018461382a565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615613970576139706137c4565b500290565b60008219821115613988576139886137c4565b500190565b60006020828403121561399f57600080fd5b5051919050565b6000602082840312156139b857600080fd5b8151611287816134a8565b6040815260006139d660408301856134ef565b82810360208401526139e8818561382a565b95945050505050565b60008084546139ff816137f5565b60018281168015613a175760018114613a2857613a57565b60ff19841687528287019450613a57565b8860005260208060002060005b85811015613a4e5781548a820152908401908201613a35565b50505082870194505b505050508351613a6b818360208801613288565b01949350505050565b8381528260208201526060604082015260006139e860608301846132b4565b600082821015613aa557613aa56137c4565b500390565b60008251613abc818460208701613288565b9190910192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082613b3d57613b3d613b18565b500490565b600082613b5157613b51613b18565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613b89908301846132b4565b9695505050505050565b600060208284031215613ba557600080fd5b81516112878161323c565b634e487b7160e01b600052603160045260246000fdfea26469706673582212207e8a490792bfcacf1a6db62338d83833a06ab58ab5b73ff23676a4882120cc9f64736f6c634300080a0033697066733a2f2f516d52397635434566436936516f5a4b4e76556961567a677271516177647a42594d4e674e4d396751544a55456268747470733a2f2f6170692e6379626f72676c6567656e64732e696f2f76312f6e66742f6d657461646174612f

Deployed Bytecode

0x6080604052600436106103e45760003560e01c8063715018a611610208578063b88d4fde11610118578063e4623c1b116100ab578063f2fde38b1161007a578063f2fde38b14610b1e578063f46eccc414610b3e578063f7ad6f0b14610b6e578063f9ab1ba514610b84578063fffc541614610ba457600080fd5b8063e4623c1b14610a80578063e8a3d48514610aa0578063e985e9c514610ab5578063ef4a22a114610afe57600080fd5b8063d082e381116100e7578063d082e38114610a12578063d43f784714610a28578063d513b04014610a58578063db5954c914610a6057600080fd5b8063b88d4fde1461099c578063b8d37e82146109bc578063c87b56dd146109d2578063cf456ae7146109f257600080fd5b8063938e3d7b1161019b578063a350d79d1161016a578063a350d79d14610911578063a4c83f9914610931578063ae428d8514610951578063b48b512514610971578063b73c6ce91461098757600080fd5b8063938e3d7b146108a6578063955fa4aa146108c657806395d89b41146108dc578063a22cb465146108f157600080fd5b80638905fd4f116101d75780638905fd4f146108285780638da5cb5b1461084857806392e77ca214610866578063937d4cd31461088657600080fd5b8063715018a6146107a65780637ccee55f146107bb5780637ed79b1c146107db5780638462151c146107fb57600080fd5b806333d08d70116103035780634f6ccce7116102965780635a65e608116102655780635a65e6081461071e5780636352211e146107315780636540a7c8146107515780636b7d24701461076657806370a082311461078657600080fd5b80634f6ccce7146106a9578063525f8a5c146106c957806355f804b3146106e957806357f868ea1461070957600080fd5b806342994503116102d2578063429945031461063d578063430c2081146106535780634ca31e2d146106735780634f558e791461068957600080fd5b806333d08d70146105d1578063369d0421146105e757806342842e0e146105fd57806342966c681461061d57600080fd5b806317c987711161037b5780631cbaee2d1161034a5780631cbaee2d1461056657806323b872dd1461057c5780632728eb511461059c5780632f745c59146105b157600080fd5b806317c98771146104fb57806318160ddd1461051b5780631923476914610530578063192eccfe1461055057600080fd5b806306fdde03116103b757806306fdde031461046c578063081812fc1461048e5780630837254e146104c6578063095ea7b3146104db57600080fd5b806301ffc9a7146103e9578063031b92931461041e5780630350179114610428578063056ea46a14610448575b600080fd5b3480156103f557600080fd5b50610409610404366004613252565b610bc4565b60405190151581526020015b60405180910390f35b610426610bef565b005b34801561043457600080fd5b5061042661044336600461326f565b610d7b565b34801561045457600080fd5b5061045e60135481565b604051908152602001610415565b34801561047857600080fd5b50610481610daa565b60405161041591906132e0565b34801561049a57600080fd5b506104ae6104a936600461326f565b610e3c565b6040516001600160a01b039091168152602001610415565b3480156104d257600080fd5b50610426610ed1565b3480156104e757600080fd5b506104266104f6366004613308565b610f02565b34801561050757600080fd5b50610426610516366004613334565b611018565b34801561052757600080fd5b5060085461045e565b34801561053c57600080fd5b5061048161054b36600461326f565b611064565b34801561055c57600080fd5b5061045e600e5481565b34801561057257600080fd5b5061045e601b5481565b34801561058857600080fd5b50610426610597366004613356565b611106565b3480156105a857600080fd5b50610426611138565b3480156105bd57600080fd5b5061045e6105cc366004613308565b611169565b3480156105dd57600080fd5b5061045e601a5481565b3480156105f357600080fd5b5061045e600f5481565b34801561060957600080fd5b50610426610618366004613356565b6111ff565b34801561062957600080fd5b5061042661063836600461326f565b61121a565b34801561064957600080fd5b5061045e60165481565b34801561065f57600080fd5b5061040961066e366004613308565b61127b565b34801561067f57600080fd5b5061045e60155481565b34801561069557600080fd5b506104096106a436600461326f565b61128e565b3480156106b557600080fd5b5061045e6106c436600461326f565b6112ad565b3480156106d557600080fd5b506104266106e436600461326f565b611340565b3480156106f557600080fd5b50610426610704366004613456565b61136f565b34801561071557600080fd5b506104816113ac565b61042661072c36600461326f565b61143a565b34801561073d57600080fd5b506104ae61074c36600461326f565b61163f565b34801561075d57600080fd5b506104266116b6565b34801561077257600080fd5b50610426610781366004613308565b6116e7565b34801561079257600080fd5b5061045e6107a136600461348b565b61177c565b3480156107b257600080fd5b50610426611803565b3480156107c757600080fd5b506104266107d636600461326f565b611839565b3480156107e757600080fd5b506104266107f63660046134b6565b611868565b34801561080757600080fd5b5061081b61081636600461348b565b6118bd565b604051610415919061352a565b34801561083457600080fd5b5061042661084336600461348b565b61197c565b34801561085457600080fd5b50600a546001600160a01b03166104ae565b34801561087257600080fd5b5061048161088136600461326f565b611a87565b34801561089257600080fd5b506104266108a1366004613456565b611aa0565b3480156108b257600080fd5b506104266108c1366004613456565b611add565b3480156108d257600080fd5b5061045e60125481565b3480156108e857600080fd5b50610481611b1a565b3480156108fd57600080fd5b5061042661090c3660046134b6565b611b29565b34801561091d57600080fd5b5061042661092c36600461326f565b611bee565b34801561093d57600080fd5b5061042661094c36600461326f565b611c1d565b34801561095d57600080fd5b5061042661096c36600461353d565b611c4c565b34801561097d57600080fd5b5061045e60115481565b34801561099357600080fd5b50610426612040565b3480156109a857600080fd5b506104266109b73660046135e3565b612096565b3480156109c857600080fd5b5061045e60105481565b3480156109de57600080fd5b506104816109ed36600461326f565b6120ce565b3480156109fe57600080fd5b50610426610a0d3660046134b6565b61217f565b348015610a1e57600080fd5b5061045e60145481565b348015610a3457600080fd5b50610409610a4336600461348b565b601c6020526000908152604090205460ff1681565b6104266121d4565b348015610a6c57600080fd5b50610426610a7b366004613308565b6122fa565b348015610a8c57600080fd5b50610426610a9b36600461353d565b612372565b348015610aac57600080fd5b506104816123b2565b348015610ac157600080fd5b50610409610ad0366004613663565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610b0a57600080fd5b50610426610b1936600461326f565b6123c1565b348015610b2a57600080fd5b50610426610b3936600461348b565b6123f0565b348015610b4a57600080fd5b50610409610b5936600461348b565b601d6020526000908152604090205460ff1681565b348015610b7a57600080fd5b5061045e60175481565b348015610b9057600080fd5b50610426610b9f366004613691565b612488565b348015610bb057600080fd5b50610426610bbf3660046136d8565b6124fc565b60006001600160e01b0319821663780e9d6360e01b1480610be95750610be98261264e565b92915050565b6002600b541415610c1b5760405162461bcd60e51b8152600401610c129061372f565b60405180910390fd5b6002600b55601b54421015610c425760405162461bcd60e51b8152600401610c1290613766565b3460175414610c635760405162461bcd60e51b8152600401610c129061378d565b6011546013541115610cab5760405162461bcd60e51b81526020600482015260116024820152706f7574206f662073746f636b202854352960781b6044820152606401610c12565b60138054906000610cbb836137da565b9190505550601860196000610cce61269e565b8152602001908152602001600020908054610ce8906137f5565b610cf3929190613128565b50337ffb4c12112560edab4fe9b18d1cf7cac050afc2f973edfb23240289064b782541610d1e61269e565b60196000610d2a61269e565b8152602001908152602001600020604051610d469291906138a1565b60405180910390a2610d5f33610d5a61269e565b6126b4565b60148054906000610d6f836137da565b90915550506001600b55565b600a546001600160a01b03163314610da55760405162461bcd60e51b8152600401610c12906138ba565b601055565b606060008054610db9906137f5565b80601f0160208091040260200160405190810160405280929190818152602001828054610de5906137f5565b8015610e325780601f10610e0757610100808354040283529160200191610e32565b820191906000526020600020905b815481529060010190602001808311610e1557829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610eb55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c12565b506000908152600460205260409020546001600160a01b031690565b600a546001600160a01b03163314610efb5760405162461bcd60e51b8152600401610c12906138ba565b6000600f55565b6000610f0d8261163f565b9050806001600160a01b0316836001600160a01b03161415610f7b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c12565b336001600160a01b0382161480610f975750610f978133610ad0565b6110095760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c12565b61101383836126ce565b505050565b600a546001600160a01b031633146110425760405162461bcd60e51b8152600401610c12906138ba565b81600414156110515760168190555b81600514156110605760178190555b5050565b6000818152601960205260409020805460609190611081906137f5565b80601f01602080910402602001604051908101604052809291908181526020018280546110ad906137f5565b80156110fa5780601f106110cf576101008083540402835291602001916110fa565b820191906000526020600020905b8154815290600101906020018083116110dd57829003601f168201915b50505050509050919050565b611111335b8261273c565b61112d5760405162461bcd60e51b8152600401610c12906138ef565b611013838383612833565b600a546001600160a01b031633146111625760405162461bcd60e51b8152600401610c12906138ba565b6000601355565b60006111748361177c565b82106111d65760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610c12565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61101383838360405180602001604052806000815250612096565b6112233361110b565b61126f5760405162461bcd60e51b815260206004820181905260248201527f63616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665646044820152606401610c12565b611278816129de565b50565b6000611287838361273c565b9392505050565b6000818152600260205260408120546001600160a01b03161515610be9565b60006112b860085490565b821061131b5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610c12565b6008828154811061132e5761132e613940565b90600052602060002001549050919050565b600a546001600160a01b0316331461136a5760405162461bcd60e51b8152600401610c12906138ba565b601b55565b600a546001600160a01b031633146113995760405162461bcd60e51b8152600401610c12906138ba565b805161106090600c9060208401906131b3565b601880546113b9906137f5565b80601f01602080910402602001604051908101604052809291908181526020018280546113e5906137f5565b80156114325780601f1061140757610100808354040283529160200191611432565b820191906000526020600020905b81548152906001019060200180831161141557829003601f168201915b505050505081565b6002600b54141561145d5760405162461bcd60e51b8152600401610c129061372f565b6002600b55601b544210156114845760405162461bcd60e51b8152600401610c1290613766565b60148111156114c75760405162461bcd60e51b815260206004820152600f60248201526e06e6f206d6f7265207468616e20323608c1b6044820152606401610c12565b34816015546114d69190613956565b146114f35760405162461bcd60e51b8152600401610c129061378d565b600e54816014546115049190613975565b11156115525760405162461bcd60e51b815260206004820152601b60248201527f6f7574206f662073746f636b2028746f74616c20737570706c792900000000006044820152606401610c12565b60005b8181101561161f5760186019600061156b61269e565b8152602001908152602001600020908054611585906137f5565b611590929190613128565b50337f0bf2f8553c52006159fe511c84910062b0e914a108c128d94b588667e949c26e6115bb61269e565b601960006115c761269e565b81526020019081526020016000206040516115e39291906138a1565b60405180910390a26115f733610d5a61269e565b60148054906000611607836137da565b91905055508080611617906137da565b915050611555565b5080600f60008282546116329190613975565b90915550506001600b5550565b6000818152600260205260408120546001600160a01b031680610be95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c12565b600a546001600160a01b031633146116e05760405162461bcd60e51b8152600401610c12906138ba565b6000601255565b600a546001600160a01b031633146117115760405162461bcd60e51b8152600401610c12906138ba565b604051632142170760e11b8152306004820152336024820152604481018290526001600160a01b038316906342842e0e906064015b600060405180830381600087803b15801561176057600080fd5b505af1158015611774573d6000803e3d6000fd5b505050505050565b60006001600160a01b0382166117e75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c12565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b0316331461182d5760405162461bcd60e51b8152600401610c12906138ba565b6118376000612a85565b565b600a546001600160a01b031633146118635760405162461bcd60e51b8152600401610c12906138ba565b601555565b600a546001600160a01b031633146118925760405162461bcd60e51b8152600401610c12906138ba565b6001600160a01b03919091166000908152601c60205260409020805460ff1916911515919091179055565b606060006118ca8361177c565b9050806118eb5760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff81111561190657611906613397565b60405190808252806020026020018201604052801561192f578160200160208202803683370190505b50905060005b828110156118e3576119478582611169565b82828151811061195957611959613940565b60209081029190910101528061196e816137da565b915050611935565b50919050565b600a546001600160a01b031633146119a65760405162461bcd60e51b8152600401610c12906138ba565b6040516370a0823160e01b81523060048201526001600160a01b0382169063a9059cbb90339083906370a0823190602401602060405180830381865afa1580156119f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a18919061398d565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015611a63573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061106091906139a6565b601960205260009081526040902080546113b9906137f5565b600a546001600160a01b03163314611aca5760405162461bcd60e51b8152600401610c12906138ba565b80516110609060189060208401906131b3565b600a546001600160a01b03163314611b075760405162461bcd60e51b8152600401610c12906138ba565b805161106090600d9060208401906131b3565b606060018054610db9906137f5565b6001600160a01b038216331415611b825760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c12565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b03163314611c185760405162461bcd60e51b8152600401610c12906138ba565b600e55565b600a546001600160a01b03163314611c475760405162461bcd60e51b8152600401610c12906138ba565b601155565b6002600b541415611c6f5760405162461bcd60e51b8152600401610c129061372f565b6002600b55601a54421015611cb75760405162461bcd60e51b815260206004820152600e60248201526d6d65726765206e6f74206c69766560901b6044820152606401610c12565b600281511015611d025760405162461bcd60e51b8152602060048201526016602482015275706c656173652070617373206d696e2032206e66747360501b6044820152606401610c12565b60005b8151811015611f4d57336001600160a01b0316611d3a838381518110611d2d57611d2d613940565b602002602001015161163f565b6001600160a01b031614611d885760405162461bcd60e51b81526020600482015260156024820152743cb7ba9030b932903737ba103a34329037bbb732b960591b6044820152606401610c12565b611efb60196000848481518110611da157611da1613940565b602002602001015181526020019081526020016000208054611dc2906137f5565b80601f0160208091040260200160405190810160405280929190818152602001828054611dee906137f5565b8015611e3b5780601f10611e1057610100808354040283529160200191611e3b565b820191906000526020600020905b815481529060010190602001808311611e1e57829003601f168201915b50505050506019600085600081518110611e5757611e57613940565b602002602001015181526020019081526020016000208054611e78906137f5565b80601f0160208091040260200160405190810160405280929190818152602001828054611ea4906137f5565b8015611ef15780601f10611ec657610100808354040283529160200191611ef1565b820191906000526020600020905b815481529060010190602001808311611ed457829003601f168201915b5050505050612ad7565b611f3b5760405162461bcd60e51b8152602060048201526011602482015270696e636f7272656374207574696c69747960781b6044820152606401610c12565b80611f45816137da565b915050611d05565b50611f5781612372565b6019600082600081518110611f6e57611f6e613940565b6020026020010151815260200190815260200160002060196000611f9061269e565b8152602001908152602001600020908054611faa906137f5565b611fb5929190613128565b5033611fbf61269e565b7f8552e5552be44b683819c13788be4b56ab388831699a897d42924ea7043ee839836019600086600081518110611ff857611ff8613940565b6020026020010151815260200190815260200160002060405161201c9291906139c3565b60405180910390a361203033610d5a61269e565b60148054906000611632836137da565b600a546001600160a01b0316331461206a5760405162461bcd60e51b8152600401610c12906138ba565b60405133904780156108fc02916000818181858888f19350505050158015611278573d6000803e3d6000fd5b6120a0338361273c565b6120bc5760405162461bcd60e51b8152600401610c12906138ef565b6120c884848484612b30565b50505050565b6000818152600260205260409020546060906001600160a01b031661214d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610c12565b600c61215883612b63565b6040516020016121699291906139f1565b6040516020818303038152906040529050919050565b600a546001600160a01b031633146121a95760405162461bcd60e51b8152600401610c12906138ba565b6001600160a01b03919091166000908152601d60205260409020805460ff1916911515919091179055565b6002600b5414156121f75760405162461bcd60e51b8152600401610c129061372f565b6002600b55601b5442101561221e5760405162461bcd60e51b8152600401610c1290613766565b346016541461223f5760405162461bcd60e51b8152600401610c129061378d565b60105460125411156122875760405162461bcd60e51b81526020600482015260116024820152706f7574206f662073746f636b202854342960781b6044820152606401610c12565b60128054906000612297836137da565b91905055506018601960006122aa61269e565b81526020019081526020016000209080546122c4906137f5565b6122cf929190613128565b50337f6812bd52ce8ab37988a30321834f4f9bb2b14e563af4256c361116ab13a1236a610d1e61269e565b600a546001600160a01b031633146123245760405162461bcd60e51b8152600401610c12906138ba565b604051637921219560e11b8152306004820152336024820152604481018290526001606482015260a06084820152600060a48201526001600160a01b0383169063f242432a9060c401611746565b60005b8151811015611060576123a082828151811061239357612393613940565b602002602001015161121a565b806123aa816137da565b915050612375565b6060600d8054610db9906137f5565b600a546001600160a01b031633146123eb5760405162461bcd60e51b8152600401610c12906138ba565b601a55565b600a546001600160a01b0316331461241a5760405162461bcd60e51b8152600401610c12906138ba565b6001600160a01b03811661247f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c12565b61127881612a85565b336000908152601c602052604090205460ff1615156001146124dd5760405162461bcd60e51b815260206004820152600e60248201526d6f6e6c7920656e67696e6565727360901b6044820152606401610c12565b60008281526019602090815260409091208251611013928401906131b3565b336000908152601d602052604090205460ff16151560011461254f5760405162461bcd60e51b815260206004820152600c60248201526b6f6e6c79206d696e7465727360a01b6044820152606401610c12565b601484111561258d5760405162461bcd60e51b815260206004820152600a60248201526906d6178696d756d2032360b41b6044820152606401610c12565b60005b848110156126475781601960006125a561269e565b815260200190815260200160002090805190602001906125c69291906131b3565b50836001600160a01b03167ffd743afeedad468b1515557736346dfb82825c63241a07bacc531d44ff286d216125fa61269e565b858560405161260b93929190613a74565b60405180910390a261261f84610d5a61269e565b6014805490600061262f836137da565b9190505550808061263f906137da565b915050612590565b5050505050565b60006001600160e01b031982166380ac58cd60e01b148061267f57506001600160e01b03198216635b5e139f60e01b145b80610be957506301ffc9a760e01b6001600160e01b0319831614610be9565b600060145460016126af9190613975565b905090565b611060828260405180602001604052806000815250612c61565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906127038261163f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166127b55760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c12565b60006127c08361163f565b9050806001600160a01b0316846001600160a01b031614806127fb5750836001600160a01b03166127f084610e3c565b6001600160a01b0316145b8061282b57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166128468261163f565b6001600160a01b0316146128ae5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610c12565b6001600160a01b0382166129105760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c12565b61291b838383612c94565b6129266000826126ce565b6001600160a01b038316600090815260036020526040812080546001929061294f908490613a93565b90915550506001600160a01b038216600090815260036020526040812080546001929061297d908490613975565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006129e98261163f565b90506129f781600084612c94565b612a026000836126ce565b6001600160a01b0381166000908152600360205260408120805460019290612a2b908490613a93565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600081604051602001612aea9190613aaa565b6040516020818303038152906040528051906020012083604051602001612b119190613aaa565b6040516020818303038152906040528051906020012014905092915050565b612b3b848484612833565b612b4784848484612d4c565b6120c85760405162461bcd60e51b8152600401610c1290613ac6565b606081612b875750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612bb15780612b9b816137da565b9150612baa9050600a83613b2e565b9150612b8b565b60008167ffffffffffffffff811115612bcc57612bcc613397565b6040519080825280601f01601f191660200182016040528015612bf6576020820181803683370190505b5090505b841561282b57612c0b600183613a93565b9150612c18600a86613b42565b612c23906030613975565b60f81b818381518110612c3857612c38613940565b60200101906001600160f81b031916908160001a905350612c5a600a86613b2e565b9450612bfa565b612c6b8383612e4a565b612c786000848484612d4c565b6110135760405162461bcd60e51b8152600401610c1290613ac6565b6001600160a01b038316612cef57612cea81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612d12565b816001600160a01b0316836001600160a01b031614612d1257612d128382612f98565b6001600160a01b038216612d295761101381613035565b826001600160a01b0316826001600160a01b0316146110135761101382826130e4565b60006001600160a01b0384163b15612e3f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612d90903390899088908890600401613b56565b6020604051808303816000875af1925050508015612dcb575060408051601f3d908101601f19168201909252612dc891810190613b93565b60015b612e25573d808015612df9576040519150601f19603f3d011682016040523d82523d6000602084013e612dfe565b606091505b508051612e1d5760405162461bcd60e51b8152600401610c1290613ac6565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061282b565b506001949350505050565b6001600160a01b038216612ea05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c12565b6000818152600260205260409020546001600160a01b031615612f055760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c12565b612f1160008383612c94565b6001600160a01b0382166000908152600360205260408120805460019290612f3a908490613975565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001612fa58461177c565b612faf9190613a93565b600083815260076020526040902054909150808214613002576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061304790600190613a93565b6000838152600960205260408120546008805493945090928490811061306f5761306f613940565b90600052602060002001549050806008838154811061309057613090613940565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806130c8576130c8613bb0565b6001900381819060005260206000200160009055905550505050565b60006130ef8361177c565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054613134906137f5565b90600052602060002090601f01602090048101928261315657600085556131a3565b82601f1061316757805485556131a3565b828001600101855582156131a357600052602060002091601f016020900482015b828111156131a3578254825591600101919060010190613188565b506131af929150613227565b5090565b8280546131bf906137f5565b90600052602060002090601f0160209004810192826131e157600085556131a3565b82601f106131fa57805160ff19168380011785556131a3565b828001600101855582156131a3579182015b828111156131a357825182559160200191906001019061320c565b5b808211156131af5760008155600101613228565b6001600160e01b03198116811461127857600080fd5b60006020828403121561326457600080fd5b81356112878161323c565b60006020828403121561328157600080fd5b5035919050565b60005b838110156132a357818101518382015260200161328b565b838111156120c85750506000910152565b600081518084526132cc816020860160208601613288565b601f01601f19169290920160200192915050565b60208152600061128760208301846132b4565b6001600160a01b038116811461127857600080fd5b6000806040838503121561331b57600080fd5b8235613326816132f3565b946020939093013593505050565b6000806040838503121561334757600080fd5b50508035926020909101359150565b60008060006060848603121561336b57600080fd5b8335613376816132f3565b92506020840135613386816132f3565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156133d6576133d6613397565b604052919050565b600067ffffffffffffffff8311156133f8576133f8613397565b61340b601f8401601f19166020016133ad565b905082815283838301111561341f57600080fd5b828260208301376000602084830101529392505050565b600082601f83011261344757600080fd5b611287838335602085016133de565b60006020828403121561346857600080fd5b813567ffffffffffffffff81111561347f57600080fd5b61282b84828501613436565b60006020828403121561349d57600080fd5b8135611287816132f3565b801515811461127857600080fd5b600080604083850312156134c957600080fd5b82356134d4816132f3565b915060208301356134e4816134a8565b809150509250929050565b600081518084526020808501945080840160005b8381101561351f57815187529582019590820190600101613503565b509495945050505050565b60208152600061128760208301846134ef565b6000602080838503121561355057600080fd5b823567ffffffffffffffff8082111561356857600080fd5b818501915085601f83011261357c57600080fd5b81358181111561358e5761358e613397565b8060051b915061359f8483016133ad565b81815291830184019184810190888411156135b957600080fd5b938501935b838510156135d7578435825293850193908501906135be565b98975050505050505050565b600080600080608085870312156135f957600080fd5b8435613604816132f3565b93506020850135613614816132f3565b925060408501359150606085013567ffffffffffffffff81111561363757600080fd5b8501601f8101871361364857600080fd5b613657878235602084016133de565b91505092959194509250565b6000806040838503121561367657600080fd5b8235613681816132f3565b915060208301356134e4816132f3565b600080604083850312156136a457600080fd5b82359150602083013567ffffffffffffffff8111156136c257600080fd5b6136ce85828601613436565b9150509250929050565b600080600080608085870312156136ee57600080fd5b843593506020850135613700816132f3565b925060408501359150606085013567ffffffffffffffff81111561372357600080fd5b61365787828801613436565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600d908201526c73616c65206e6f74206c69766560981b604082015260600190565b60208082526019908201527f6578616374204d4154494320616d6f756e74206e656564656400000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60006000198214156137ee576137ee6137c4565b5060010190565b600181811c9082168061380957607f821691505b6020821081141561197657634e487b7160e01b600052602260045260246000fd5b60008154613837816137f5565b808552602060018381168015613854576001811461386857613896565b60ff19851688840152604088019550613896565b866000528260002060005b8581101561388e5781548a8201860152908301908401613873565b890184019650505b505050505092915050565b82815260406020820152600061282b604083018461382a565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615613970576139706137c4565b500290565b60008219821115613988576139886137c4565b500190565b60006020828403121561399f57600080fd5b5051919050565b6000602082840312156139b857600080fd5b8151611287816134a8565b6040815260006139d660408301856134ef565b82810360208401526139e8818561382a565b95945050505050565b60008084546139ff816137f5565b60018281168015613a175760018114613a2857613a57565b60ff19841687528287019450613a57565b8860005260208060002060005b85811015613a4e5781548a820152908401908201613a35565b50505082870194505b505050508351613a6b818360208801613288565b01949350505050565b8381528260208201526060604082015260006139e860608301846132b4565b600082821015613aa557613aa56137c4565b500390565b60008251613abc818460208701613288565b9190910192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082613b3d57613b3d613b18565b500490565b600082613b5157613b51613b18565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613b89908301846132b4565b9695505050505050565b600060208284031215613ba557600080fd5b81516112878161323c565b634e487b7160e01b600052603160045260246000fdfea26469706673582212207e8a490792bfcacf1a6db62338d83833a06ab58ab5b73ff23676a4882120cc9f64736f6c634300080a0033

Block Transaction 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
[ 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.