ETH Price: $3,309.65 (-3.62%)
Gas: 14 Gwei

Token

DRPMember (DRPM)
 

Overview

Max Total Supply

630 DRPM

Holders

436

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
vault.gts.eth
0xDAb36A4CE12aa220e18c60Ef0dE489c232322a1a
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
DRPMember

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : DRPMember.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import { HoldersHelper } from "./DRPLibraries.sol";

//                                                            %@(
//                                                        (@&   @@  @@.    /@@.
//                                                          /@@.  ,           @#
//              @@#                                            @&       ,@@, (@@
//               @@%@@&                                        @&      &@
//                @@   *@@@                                   @@   &  @@
//                 @@      @&     (@@@@@@%#(/(#%&@@@@@&.    (@/   # .@%
//                  @@      @@@@@                       &@@@@   &. @@
//                   @@      @@                           @@   @  @@
//                    @@      @@        *@@%@@@         #@/  @@ .@%
//                    ,@@       @@@@@@@&@@   @@&&@@&@@@@*  .@/ &@@&
//                   *@.@@.        .@@ .@@.  @@&  @@     ,@@  @@  @@
//           .%      @@   @@%     ,@@@,          %@@@@@@/  /@@ @@ ,@*
//         &@& @@&  *@  /@@@&%@@@@@@@@@,        %@@@@@@@@@@@@@, @* @@  %@&
//       @@.      @@/@@@ @@  *@@   @@@  *@,  @@   @@%  %@@   (/@@@ @@@&  .@@.
//    &@&           %@@  &&,@@@@@#, %@@&,@   @@*@@@ .#@@@@@*.@@  @@%        @@&
//  @@.               .@@@%             *@@@@@@             ,@@@@             .@@
//    &@@            @@     /&@@@@@@@@@@@@@@@@@@@@@@@@@@@&*      @@             &@@
//       @@%        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@(@@         @@&
//         *@@      /@@@@@&.       @@%                 *@@  *@@@@%.@@     &@&
//           .@@  @@@@ @@          @@    &@@@@          @(    @@@@@@    @@
//            @@@@@@@@@ @@         @.  @@(   ,@@       @@   @@.@@%@@@@@@@%
//          ,@#@@@@@@ @@.,@@     #@  @@/ #@@@@ ,@@    @( .@@. @@ /@@@@&  @@.
//          @@  @@@@@&  @@  @@@@@@@@@. (@& @.,@@  @@@@@@@* ,@@   @@@@@   .@@@
//        /@@&   &@@@@@@@.%@@%    ,&@@@& % @,%**@@@@@&//@@@, *@@@@@@      @%#@,
//        @&%@     .@@@@@(@@&   .  .@@  @% @,#@ .(@%      #@@ @@@@       @@  @@
//        @/ (@%       (@@@ /@&   @@ @@ @%.@.#@ @@ @@   *@& %@@@@*     .@@   &@
//        @@   @@@@((@@@@@@@, @@  @%                @* @@  @@@@@@@@@@@@@     @@
//         @@    .@@@@@@@@@@@@ &@ #@               @@ @@ (@@@@@@@@@@@%      @@
//          ,@@      (@@@@@@@@@ @@ @@ @ @%.@.%@ @ @@ #@ @@@@@@@@@&        @@
//             @@@         @@@@@&@@ @@  @%.@.%@ .@@  @@@@@@@/          &@@
//                @@@@@@@@@@@@@@@@@& @# @%.@.%@ /@. @@@@@@@@@@@@@@@@@@@
//                    %@@@@@@@@@@@@@ *@,       .@* *@@@@@@@@@@@@@@(
//                          ,&@@@@@@@              @@@@@@@@%,
//                                 .@@@@@@@@@@@@@@@@.
//
//
//     DRP + Pellar 2022

contract DRPMember is ERC1155Supply, Ownable {
	using HoldersHelper for HoldersHelper.TokenHolders;
	struct Token {
		bool salesActive;
		bool whitelistSalesActive;
		uint16 tokenId;
		uint16 mintableMax; // public mintable
		uint16 maxSupply; // team claim
		uint256 price;
		uint16 maxPerClaim;
		uint16 maxPerWallet;
		string uri;
		uint16[] drops;
	}

	uint16 public membershipTokens;
	uint16 public nDrops;
	string public constant name = "DRPMember";
	string public constant symbol = "DRPM";

	mapping(uint16 => bool) _teamClaimed;
	mapping(uint16 => address) public indexToDrop;
	mapping(uint16 => mapping(address => bool)) public tokenWhitelist;
	mapping(uint16 => Token) public tokens;
	mapping(uint16 => HoldersHelper.TokenHolders) tokenHolders;

	event TokenRegistered(uint16 indexed id, uint16 maxMintable, uint16 maxSupply, uint256 price, uint16[] drops);
	event TokenInformationUpdated(uint16 indexed id, uint16 maxMintable, uint16 maxSupply, uint256 price, uint16[] drops);
	event TokenDropPrerequisitesUpdated(uint16 indexed id, uint16[] drops);
	event TokenDropAddressUpdated(uint16 indexed dropIndex, address newAddress);

	constructor () ERC1155 ("") {}

	modifier validTokenId (uint16 tokenId) {
		require(tokens[tokenId].maxSupply > 0, "Query for non-existent token");
		_;
	}

	function getHolders(uint16 tokenId) public view validTokenId(tokenId) returns (address[] memory) {
		return tokenHolders[tokenId].holders;
	}

	function getTokenPrerequisiteDropAddresses(uint16 tokenId) public view validTokenId(tokenId) returns (address[] memory) {
		Token memory token = tokens[tokenId];
		address[] memory drops = new address[](token.drops.length);
		for (uint256 i = 0; i < token.drops.length; i++) {
			drops[i] = indexToDrop[token.drops[i]];
		}
		return drops;
	}

	// check if you satisfy the drop prerequisites
	function eligibleToMint(uint16 tokenId) external view validTokenId(tokenId) returns (bool) {
		return _checkDropsWhitelist(tokens[tokenId]);
	}

	function registerToken(
		uint16 _mintableMax,
		uint16 _maxSupply,
		uint256 _price,
		uint16 _maxPerClaim,
		uint16 _maxPerWallet,
		string calldata _uri,
		uint16[] calldata _drops
	) public onlyOwner {
		_setTokenData(
			membershipTokens,
			_mintableMax,
			_maxSupply,
			_price,
			_maxPerClaim,
			_maxPerWallet,
			false,
			false,
			_uri,
			_drops
		);
		emit TokenRegistered(membershipTokens, _mintableMax, _maxSupply, _price, _drops);
		membershipTokens++;
	}

	function updateToken(
		uint16 tokenId,
		uint16 _mintableMax,
		uint16 _maxSupply,
		uint256 _price,
		uint16 _maxPerClaim,
		uint16 _maxPerWallet,
		string calldata _uri,
		uint16[] calldata _drops
	) public onlyOwner validTokenId (tokenId){
		require(!tokens[tokenId].salesActive, "Cannot update when sales are active");
		require(!tokens[tokenId].whitelistSalesActive, "Cannot update when whitelist sales are active");
		require(totalSupply(tokenId) < _mintableMax, "Cannot update mintable amount below current supply");
		require(totalSupply(tokenId) < _maxSupply, "Cannot update max supply below current supply");

		// preserve current sales status
		bool salesStatus = tokens[tokenId].salesActive;
		bool whitelistSalesStatus = tokens[tokenId].whitelistSalesActive;
		_setTokenData(
			tokenId,
			_mintableMax,
			_maxSupply,
			_price,
			_maxPerClaim,
			_maxPerWallet,
			salesStatus,
			whitelistSalesStatus,
			_uri,
			_drops
		);
		emit TokenInformationUpdated(tokenId, _mintableMax, _maxSupply, _price, _drops);
	}

	function claim(
		uint16 tokenId,
		uint16 amount
	) public payable validTokenId (tokenId){
		Token memory tokenToMint = tokens[tokenId];
		require(tokenToMint.salesActive, "Token sales not active");
		require(_checkDropsWhitelist(tokenToMint), "Sender doesnt own token in prerequisite contracts");

		require((tokenToMint.maxPerWallet == 0) || (balanceOf(msg.sender, tokenId) < tokenToMint.maxPerWallet), "Cannot claim more tokens than you already own");
		require((tokenToMint.maxPerClaim == 0) || (amount <= tokenToMint.maxPerClaim), "Amount exceeds claim limit");
		require(totalSupply(tokenId) < tokenToMint.mintableMax, "Supply exhausted");
		require(totalSupply(tokenId) + amount <= tokenToMint.mintableMax, "Not enough tokens to mint");
		tokenToMint.price == 0 ? require(msg.value == 0, "ETH sent for free token") : require(msg.value >= tokenToMint.price * amount, "Insufficient ETH sent");
		_mint(msg.sender, tokenId, amount, "");
	}

	function whitelistClaim(
		uint16 tokenId,
		uint16 amount
	) public payable validTokenId (tokenId){
		Token memory tokenToMint = tokens[tokenId];
		require(tokenToMint.whitelistSalesActive, "Whitelist sales not active");
		require(tokenWhitelist[tokenId][msg.sender], "Not whitelisted");

		require((tokenToMint.maxPerWallet == 0) || (balanceOf(msg.sender, tokenId) < tokenToMint.maxPerWallet), "Cannot claim more tokens than you already own");
		require((tokenToMint.maxPerClaim == 0) || (amount <= tokenToMint.maxPerClaim), "Amount exceeds claim limit");
		require(totalSupply(tokenId) < tokenToMint.mintableMax, "Supply exhausted");
		require(totalSupply(tokenId) + amount <= tokenToMint.mintableMax, "Not enough tokens to mint");
		tokenToMint.price == 0 ? require(msg.value == 0, "ETH sent for free token") : require(msg.value >= tokenToMint.price * amount, "Insufficient ETH sent");

		_mint(msg.sender, tokenId, amount, "");
	}


	function teamClaim(uint16 tokenId) external onlyOwner validTokenId(tokenId) {
		require(!_teamClaimed[tokenId], "Already claimed");
		require(totalSupply(tokenId) >= tokens[tokenId].mintableMax, "Claimable tokens not exhausted yet");
		_mint(msg.sender, tokenId, tokens[tokenId].maxSupply - tokens[tokenId].mintableMax, "");
		_teamClaimed[tokenId] = true;
	}

	// e.g. if there were 0 drops and we add 1, index 0 wil be 1
	// we check if an address exists by if index > 0 (to reserve -1)
	function addNewDrops(uint16[] calldata indexes, address[] calldata drops) external onlyOwner {
		require(indexes.length > 0 && drops.length > 0, "Cannot send empty array");
		require(indexes.length == drops.length, "Both arrays must be of same length");
		for (uint16 i = 0; i < indexes.length; i++) {
			indexToDrop[indexes[i]] = drops[i];
		}
	}

	function updateDropAddresses(uint16[] calldata indexes, address[] calldata newAddresses) external onlyOwner {
		require(indexes.length == newAddresses.length, "Both arrays not the same length");
		for (uint16 i = 0; i < indexes.length; i++) {
			indexToDrop[indexes[i]] = newAddresses[i];
			if(newAddresses[i] == address(0)){
				nDrops--;
			}
			emit TokenDropAddressUpdated(indexes[i], newAddresses[i]);
		}

	}

	function setWalletWhitelist(
		uint16 tokenId,
		address[] calldata whitelist,
		bool status
	) public onlyOwner validTokenId (tokenId) {
		for (uint16 i = 0; i < whitelist.length; i++) {
			tokenWhitelist[tokenId][whitelist[i]] = status;
		}
	}

	function setTokenDropsWhitelist(
		uint16 tokenId,
		uint16[] calldata drops
	) public onlyOwner validTokenId (tokenId) {
		Token storage tokenInfo = tokens[tokenId];
		for(uint16 i = 0; i < drops.length; i++){
			require(indexToDrop[drops[i]] != address(0), "Must be valid DRP project");
		}
		tokenInfo.drops = drops;
		emit TokenDropPrerequisitesUpdated(tokenId, drops);

	}

	function toggleSalesActive(uint16[] calldata ids) external onlyOwner{
		for (uint16 i = 0; i < ids.length; i++) {
			require(tokens[ids[i]].maxSupply > 0, "Query for non-existent token");
		}
		for (uint16 i = 0; i < ids.length; i++) {
			tokens[ids[i]].salesActive = !tokens[ids[i]].salesActive;
		}
	}

	function toggleWhitelistSalesActive(uint16[] calldata ids) external onlyOwner {
		for (uint16 i = 0; i < ids.length; i++) {
			require(tokens[ids[i]].maxSupply > 0, "Query for non-existent token");
		}
		for (uint16 i = 0; i < ids.length; i++) {
			tokens[ids[i]].whitelistSalesActive = !tokens[ids[i]].whitelistSalesActive;
		}
	}

	function uri(uint256 tokenId) public view override validTokenId(uint16(tokenId)) returns (string memory)  {
		return tokens[uint16(tokenId)].uri;
	}

	function setURI(uint16[] calldata ids, string[] calldata uris) external {
		require(ids.length == uris.length, "Arrays mismatched");
		for (uint16 i = 0; i < ids.length; i++) {
			require(tokens[ids[i]].maxSupply > 0, "Query for non-existent token");
		}
		for (uint16 i = 0; i < ids.length; i++) {
			tokens[ids[i]].uri = uris[i];
		}
	}

	function withdraw() external onlyOwner {
		uint256 balance = address(this).balance;
		address owner = owner();
		payable(owner).transfer(balance);
	}

	function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
		super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
		for (uint16 i = 0; i < ids.length; ++i) {
			uint16 tokenId = uint16(ids[i]);
			if (from != address(0)) {
				if (balanceOf(from, tokenId) == 0){
					tokenHolders[tokenId].swapHolders(from);
				}
				tokenHolders[tokenId].removeHolder(from);
			}
			if (to != address(0)) {
				if (tokenHolders[tokenId].holdersIndex[to] == 0) {
					tokenHolders[tokenId].addHolder(to);
				}
			}
		}
	}

	function _setTokenData(
		uint16 _tokenId,
		uint16 _mintableMax,
		uint16 _maxSupply,
		uint256 _price,
		uint16 _maxPerClaim,
		uint16 _maxPerWallet,
		bool _salesActive,
		bool _whitelistSalesActive,
		string calldata _uri,
		uint16[] calldata _drops
	) internal {
		require(_mintableMax > 0, "Mintable amount must be more than 0");
		require(_maxSupply > _mintableMax, "Total supply must be greater than or equal to mintable amount");
		for(uint16 i = 0; i < _drops.length; i++) {
			require(indexToDrop[_drops[i]] != address(0), "Invalid project index");
		}
		tokens[_tokenId] = Token(
			_salesActive, // by default this is false
			_whitelistSalesActive, // by default this is false
			_tokenId,
			_mintableMax,
			_maxSupply,
			_price,
			_maxPerClaim,
			_maxPerWallet,
			_uri,
			_drops
		);
	}

	// checks the project whitelist
	function _checkDropsWhitelist(Token memory tokenToMint) internal view returns(bool) {
		if (tokenToMint.drops.length == 0 ) {
			return true;
		} else {
			for (uint16 i = 0; i < tokenToMint.drops.length; i++) {
				uint16 dropNo = tokenToMint.drops[i];
				uint256 _amount = ERC721(indexToDrop[dropNo]).balanceOf(msg.sender);
				if (_amount > 0){ // if one of them has balance greater than 0
					return true;
				}
			}
			return false;
		}
	}
}

interface ERC721 {
	function balanceOf(address owner) external view returns (uint256);
}

File 2 of 12 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

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

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

    /**
     * @dev See {ERC1155-_mint}.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override {
        super._mint(account, id, amount, data);
        _totalSupply[id] += amount;
    }

    /**
     * @dev See {ERC1155-_mintBatch}.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._mintBatch(to, ids, amounts, data);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] += amounts[i];
        }
    }

    /**
     * @dev See {ERC1155-_burn}.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual override {
        super._burn(account, id, amount);
        _totalSupply[id] -= amount;
    }

    /**
     * @dev See {ERC1155-_burnBatch}.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual override {
        super._burnBatch(account, ids, amounts);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] -= amounts[i];
        }
    }
}

File 3 of 12 : 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 4 of 12 : DRPLibraries.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

library HoldersHelper {
	
	struct TokenHolders {
		address[] holders;
		mapping(address => uint256) holdersIndex;
	}

	function addHolder(TokenHolders storage tokenHolders, address newHolder) internal {
		tokenHolders.holders.push(newHolder);
		tokenHolders.holdersIndex[newHolder] = tokenHolders.holders.length;
	}

	function swapHolders(TokenHolders storage tokenHolders, address holder) internal {
		uint256 knownIndex = tokenHolders.holdersIndex[holder] - 1;
		uint256 knownLastIndex = tokenHolders.holders.length - 1;

		if (knownIndex != knownLastIndex) { 
			address knownLastAddress = tokenHolders.holders[knownLastIndex];

			tokenHolders.holders[knownIndex] = knownLastAddress;
			tokenHolders.holdersIndex[knownLastAddress] = knownIndex + 1;

			tokenHolders.holders[knownLastIndex] = holder;
			tokenHolders.holdersIndex[holder] = knownLastIndex + 1; 
		}
	}

	function removeHolder(TokenHolders storage tokenHolders, address holderToRemove) internal {
		tokenHolders.holdersIndex[holderToRemove] = 0; 
		tokenHolders.holders.pop();
	}
	
}

File 5 of 12 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

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

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

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

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

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

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

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

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

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

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

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

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

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

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

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

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

        emit TransferSingle(operator, account, address(0), id, amount);
    }

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

        address operator = _msgSender();

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

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

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

        emit TransferBatch(operator, account, address(0), ids, amounts);
    }

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

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

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

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

        return array;
    }
}

File 6 of 12 : 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 7 of 12 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

File 8 of 12 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

File 9 of 12 : 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 10 of 12 : 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 12 : 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;
    }
}

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint16","name":"dropIndex","type":"uint16"},{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"TokenDropAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint16","name":"id","type":"uint16"},{"indexed":false,"internalType":"uint16[]","name":"drops","type":"uint16[]"}],"name":"TokenDropPrerequisitesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint16","name":"id","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"maxMintable","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"maxSupply","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint16[]","name":"drops","type":"uint16[]"}],"name":"TokenInformationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint16","name":"id","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"maxMintable","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"maxSupply","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint16[]","name":"drops","type":"uint16[]"}],"name":"TokenRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"uint16[]","name":"indexes","type":"uint16[]"},{"internalType":"address[]","name":"drops","type":"address[]"}],"name":"addNewDrops","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"},{"internalType":"uint16","name":"amount","type":"uint16"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"}],"name":"eligibleToMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"}],"name":"getHolders","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"}],"name":"getTokenPrerequisiteDropAddresses","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"indexToDrop","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"membershipTokens","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nDrops","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","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":"uint16","name":"_mintableMax","type":"uint16"},{"internalType":"uint16","name":"_maxSupply","type":"uint16"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint16","name":"_maxPerClaim","type":"uint16"},{"internalType":"uint16","name":"_maxPerWallet","type":"uint16"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"uint16[]","name":"_drops","type":"uint16[]"}],"name":"registerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"},{"internalType":"uint16[]","name":"drops","type":"uint16[]"}],"name":"setTokenDropsWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"ids","type":"uint16[]"},{"internalType":"string[]","name":"uris","type":"string[]"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"},{"internalType":"address[]","name":"whitelist","type":"address[]"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setWalletWhitelist","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":"uint16","name":"tokenId","type":"uint16"}],"name":"teamClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"ids","type":"uint16[]"}],"name":"toggleSalesActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"ids","type":"uint16[]"}],"name":"toggleWhitelistSalesActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"},{"internalType":"address","name":"","type":"address"}],"name":"tokenWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"tokens","outputs":[{"internalType":"bool","name":"salesActive","type":"bool"},{"internalType":"bool","name":"whitelistSalesActive","type":"bool"},{"internalType":"uint16","name":"tokenId","type":"uint16"},{"internalType":"uint16","name":"mintableMax","type":"uint16"},{"internalType":"uint16","name":"maxSupply","type":"uint16"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint16","name":"maxPerClaim","type":"uint16"},{"internalType":"uint16","name":"maxPerWallet","type":"uint16"},{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"indexes","type":"uint16[]"},{"internalType":"address[]","name":"newAddresses","type":"address[]"}],"name":"updateDropAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"},{"internalType":"uint16","name":"_mintableMax","type":"uint16"},{"internalType":"uint16","name":"_maxSupply","type":"uint16"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint16","name":"_maxPerClaim","type":"uint16"},{"internalType":"uint16","name":"_maxPerWallet","type":"uint16"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"uint16[]","name":"_drops","type":"uint16[]"}],"name":"updateToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"},{"internalType":"uint16","name":"amount","type":"uint16"}],"name":"whitelistClaim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040805160208101909152600081526200002c816200003e565b50620000383362000057565b6200018c565b805162000053906002906020840190620000a9565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620000b7906200014f565b90600052602060002090601f016020900481019282620000db576000855562000126565b82601f10620000f657805160ff191683800117855562000126565b8280016001018555821562000126579182015b828111156200012657825182559160200191906001019062000109565b506200013492915062000138565b5090565b5b8082111562000134576000815560010162000139565b600181811c908216806200016457607f821691505b602082108114156200018657634e487b7160e01b600052602260045260246000fd5b50919050565b614be8806200019c6000396000f3fe60806040526004361061020e5760003560e01c80638da5cb5b11610118578063da1f9fff116100a0578063f242432a1161006f578063f242432a146106d7578063f29d4b47146106f7578063f2fde38b14610717578063f3c20de014610737578063f8441c9c1461076c57600080fd5b8063da1f9fff1461062c578063e5533f261461064c578063e985e9c51461066c578063e9c978d9146106b557600080fd5b8063ac43b386116100e7578063ac43b3861461058c578063b1e78af51461059f578063bd4329cf146105bf578063bd85b039146105df578063d3c206ad1461060c57600080fd5b80638da5cb5b146104fe57806390fed0ac1461051c57806395d89b411461053c578063a22cb4651461056c57600080fd5b80634819dace1161019b5780635e1d505b1161016a5780635e1d505b1461045b5780636080b4c914610496578063715018a6146104b65780637fc61fd7146104cb5780638740c050146104de57600080fd5b80634819dace146103aa578063484c1c39146103df5780634e1273f4146103ff5780634f558e791461042c57600080fd5b806314c9f5dd116101e257806314c9f5dd146102d85780631f5fa73f146103055780632eb2c2d61461032757806335857949146103475780633ccfd60b1461039557600080fd5b8062fdd58e1461021357806301ffc9a71461024657806306fdde03146102765780630e89341c146102b8575b600080fd5b34801561021f57600080fd5b5061023361022e366004613d4c565b61078c565b6040519081526020015b60405180910390f35b34801561025257600080fd5b50610266610261366004613d8c565b610823565b604051901515815260200161023d565b34801561028257600080fd5b506102ab6040518060400160405280600981526020016822292826b2b6b132b960b91b81525081565b60405161023d9190613df6565b3480156102c457600080fd5b506102ab6102d3366004613e09565b610875565b3480156102e457600080fd5b506102f86102f3366004613e34565b61095b565b60405161023d9190613e4f565b34801561031157600080fd5b50610325610320366004613f28565b610c30565b005b34801561033357600080fd5b50610325610342366004614140565b610f15565b34801561035357600080fd5b5061037d610362366004613e34565b6006602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161023d565b3480156103a157600080fd5b50610325610fac565b3480156103b657600080fd5b506004546103cc90600160a01b900461ffff1681565b60405161ffff909116815260200161023d565b3480156103eb57600080fd5b506103256103fa3660046141e9565b611029565b34801561040b57600080fd5b5061041f61041a366004614254565b6111b4565b60405161023d9190614359565b34801561043857600080fd5b50610266610447366004613e09565b600090815260036020526040902054151590565b34801561046757600080fd5b5061026661047636600461436c565b600760209081526000928352604080842090915290825290205460ff1681565b3480156104a257600080fd5b506103256104b13660046141e9565b6112dd565b3480156104c257600080fd5b5061032561144b565b6103256104d936600461439f565b611481565b3480156104ea57600080fd5b506103256104f93660046143d9565b6119da565b34801561050a57600080fd5b506004546001600160a01b031661037d565b34801561052857600080fd5b506103256105373660046141e9565b611ada565b34801561054857600080fd5b506102ab604051806040016040528060048152602001634452504d60e01b81525081565b34801561057857600080fd5b5061032561058736600461443d565b611d1a565b61032561059a36600461439f565b611df1565b3480156105ab57600080fd5b506103256105ba366004614467565b612086565b3480156105cb57600080fd5b506103256105da3660046144a8565b612210565b3480156105eb57600080fd5b506102336105fa366004613e09565b60009081526003602052604090205490565b34801561061857600080fd5b506102f8610627366004613e34565b61239a565b34801561063857600080fd5b50610325610647366004613e34565b612447565b34801561065857600080fd5b50610266610667366004613e34565b6125f8565b34801561067857600080fd5b506102666106873660046144fa565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156106c157600080fd5b506004546103cc90600160b01b900461ffff1681565b3480156106e357600080fd5b506103256106f2366004614516565b6127e8565b34801561070357600080fd5b5061032561071236600461457a565b61286f565b34801561072357600080fd5b50610325610732366004614637565b612951565b34801561074357600080fd5b50610757610752366004613e34565b6129ec565b60405161023d99989796959493929190614652565b34801561077857600080fd5b50610325610787366004614467565b612ad8565b60006001600160a01b0383166107fd5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061085457506001600160e01b031982166303a24d0760e21b145b8061086f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b61ffff8082166000908152600860205260409020546060918391600160301b9004166108b35760405162461bcd60e51b81526004016107f4906146b9565b61ffff8316600090815260086020526040902060030180546108d4906146f0565b80601f0160208091040260200160405190810160405280929190818152602001828054610900906146f0565b801561094d5780601f106109225761010080835404028352916020019161094d565b820191906000526020600020905b81548152906001019060200180831161093057829003601f168201915b505050505091505b50919050565b61ffff8082166000908152600860205260409020546060918391600160301b9004166109995760405162461bcd60e51b81526004016107f4906146b9565b61ffff8084166000908152600860209081526040808320815161014081018352815460ff8082161515835261010080830490911615159583019590955262010000808204881694830194909452600160201b810487166060830152600160301b900486166080820152600182015460a0820152600282015480871660c08301529290920490941660e0820152600384018054939491939192840191610a3d906146f0565b80601f0160208091040260200160405190810160405280929190818152602001828054610a69906146f0565b8015610ab65780601f10610a8b57610100808354040283529160200191610ab6565b820191906000526020600020905b815481529060010190602001808311610a9957829003601f168201915b5050505050815260200160048201805480602002602001604051908101604052809291908181526020018280548015610b3657602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411610afd5790505b50505050508152505090506000816101200151516001600160401b03811115610b6157610b61613ff7565b604051908082528060200260200182016040528015610b8a578160200160208202803683370190505b50905060005b82610120015151811015610c2757600660008461012001518381518110610bb957610bb9614725565b602002602001015161ffff1661ffff16815260200190815260200160002060009054906101000a90046001600160a01b0316828281518110610bfd57610bfd614725565b6001600160a01b039092166020928302919091019091015280610c1f81614751565b915050610b90565b50949350505050565b6004546001600160a01b03163314610c5a5760405162461bcd60e51b81526004016107f49061476c565b61ffff808b166000908152600860205260409020548b91600160301b90910416610c965760405162461bcd60e51b81526004016107f4906146b9565b61ffff8b1660009081526008602052604090205460ff1615610d065760405162461bcd60e51b815260206004820152602360248201527f43616e6e6f7420757064617465207768656e2073616c6573206172652061637460448201526269766560e81b60648201526084016107f4565b61ffff8b16600090815260086020526040902054610100900460ff1615610d855760405162461bcd60e51b815260206004820152602d60248201527f43616e6e6f7420757064617465207768656e2077686974656c6973742073616c60448201526c6573206172652061637469766560981b60648201526084016107f4565b8961ffff16610da48c61ffff1660009081526003602052604090205490565b10610e0c5760405162461bcd60e51b815260206004820152603260248201527f43616e6e6f7420757064617465206d696e7461626c6520616d6f756e742062656044820152716c6f772063757272656e7420737570706c7960701b60648201526084016107f4565b8861ffff16610e2b8c61ffff1660009081526003602052604090205490565b10610e8e5760405162461bcd60e51b815260206004820152602d60248201527f43616e6e6f7420757064617465206d617820737570706c792062656c6f77206360448201526c757272656e7420737570706c7960981b60648201526084016107f4565b61ffff8b1660009081526008602052604090205460ff80821691610100900416610ec28d8d8d8d8d8d88888f8f8f8f612c50565b8c61ffff167f8e6c7632903e1ad628476cdd42a9accdac7ee79860d88fc7c7007204e95626128d8d8d8989604051610efe9594939291906147d8565b60405180910390a250505050505050505050505050565b6001600160a01b038516331480610f315750610f318533610687565b610f985760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016107f4565b610fa58585858585613016565b5050505050565b6004546001600160a01b03163314610fd65760405162461bcd60e51b81526004016107f49061476c565b476000610feb6004546001600160a01b031690565b6040519091506001600160a01b0382169083156108fc029084906000818181858888f19350505050158015611024573d6000803e3d6000fd5b505050565b6004546001600160a01b031633146110535760405162461bcd60e51b81526004016107f49061476c565b821580159061106157508015155b6110ad5760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f742073656e6420656d70747920617272617900000000000000000060448201526064016107f4565b8281146111075760405162461bcd60e51b815260206004820152602260248201527f426f746820617272617973206d757374206265206f662073616d65206c656e676044820152610e8d60f31b60648201526084016107f4565b60005b61ffff8116841115610fa55782828261ffff1681811061112c5761112c614725565b90506020020160208101906111419190614637565b6006600087878561ffff1681811061115b5761115b614725565b90506020020160208101906111709190613e34565b61ffff168152602081019190915260400160002080546001600160a01b0319166001600160a01b0392909216919091179055806111ac81614811565b91505061110a565b606081518351146112195760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016107f4565b600083516001600160401b0381111561123457611234613ff7565b60405190808252806020026020018201604052801561125d578160200160208202803683370190505b50905060005b84518110156112d5576112a885828151811061128157611281614725565b602002602001015185838151811061129b5761129b614725565b602002602001015161078c565b8282815181106112ba576112ba614725565b60209081029190910101526112ce81614751565b9050611263565b509392505050565b8281146113205760405162461bcd60e51b8152602060048201526011602482015270105c9c985e5cc81b5a5cdb585d18da1959607a1b60448201526064016107f4565b60005b61ffff81168411156113ae5760006008600087878561ffff1681811061134b5761134b614725565b90506020020160208101906113609190613e34565b61ffff9081168252602082019290925260400160002054600160301b9004161161139c5760405162461bcd60e51b81526004016107f4906146b9565b806113a681614811565b915050611323565b5060005b61ffff8116841115610fa55782828261ffff168181106113d4576113d4614725565b90506020028101906113e69190614833565b6008600088888661ffff1681811061140057611400614725565b90506020020160208101906114159190613e34565b61ffff168152602081019190915260400160002061143892600390910191613b17565b508061144381614811565b9150506113b2565b6004546001600160a01b031633146114755760405162461bcd60e51b81526004016107f49061476c565b61147f60006131f9565b565b61ffff8083166000908152600860205260409020548391600160301b909104166114bd5760405162461bcd60e51b81526004016107f4906146b9565b61ffff8084166000908152600860209081526040808320815161014081018352815460ff8082161515835261010080830490911615159583019590955262010000808204881694830194909452600160201b810487166060830152600160301b900486166080820152600182015460a0820152600282015480871660c08301529290920490941660e0820152600384018054939491939192840191611561906146f0565b80601f016020809104026020016040519081016040528092919081815260200182805461158d906146f0565b80156115da5780601f106115af576101008083540402835291602001916115da565b820191906000526020600020905b8154815290600101906020018083116115bd57829003601f168201915b505050505081526020016004820180548060200260200160405190810160405280929190818152602001828054801561165a57602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116116215790505b505050505081525050905080600001516116af5760405162461bcd60e51b8152602060048201526016602482015275546f6b656e2073616c6573206e6f742061637469766560501b60448201526064016107f4565b6116b88161324b565b61171e5760405162461bcd60e51b815260206004820152603160248201527f53656e64657220646f65736e74206f776e20746f6b656e20696e2070726572656044820152707175697369746520636f6e74726163747360781b60648201526084016107f4565b60e081015161ffff16158061174757508060e0015161ffff16611745338661ffff1661078c565b105b6117a95760405162461bcd60e51b815260206004820152602d60248201527f43616e6e6f7420636c61696d206d6f726520746f6b656e73207468616e20796f60448201526c3a9030b63932b0b23c9037bbb760991b60648201526084016107f4565b60c081015161ffff1615806117ca57508060c0015161ffff168361ffff1611155b6118165760405162461bcd60e51b815260206004820152601a60248201527f416d6f756e74206578636565647320636c61696d206c696d697400000000000060448201526064016107f4565b806060015161ffff166118398561ffff1660009081526003602052604090205490565b106118795760405162461bcd60e51b815260206004820152601060248201526f14dd5c1c1b1e48195e1a185d5cdd195960821b60448201526064016107f4565b806060015161ffff168361ffff166118a18661ffff1660009081526003602052604090205490565b6118ab9190614879565b11156118f95760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f75676820746f6b656e7320746f206d696e740000000000000060448201526064016107f4565b60a081015115611963578261ffff168160a001516119179190614891565b34101561195e5760405162461bcd60e51b8152602060048201526015602482015274125b9cdd59999a58da595b9d08115512081cd95b9d605a1b60448201526064016107f4565b6119b1565b34156119b15760405162461bcd60e51b815260206004820152601760248201527f4554482073656e7420666f72206672656520746f6b656e00000000000000000060448201526064016107f4565b6119d4338561ffff168561ffff1660405180602001604052806000815250613365565b50505050565b6004546001600160a01b03163314611a045760405162461bcd60e51b81526004016107f49061476c565b61ffff8085166000908152600860205260409020548591600160301b90910416611a405760405162461bcd60e51b81526004016107f4906146b9565b60005b61ffff8116841115611ad25782600760008861ffff1661ffff168152602001908152602001600020600087878561ffff16818110611a8357611a83614725565b9050602002016020810190611a989190614637565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611aca81614811565b915050611a43565b505050505050565b6004546001600160a01b03163314611b045760405162461bcd60e51b81526004016107f49061476c565b828114611b535760405162461bcd60e51b815260206004820152601f60248201527f426f746820617272617973206e6f74207468652073616d65206c656e6774680060448201526064016107f4565b60005b61ffff8116841115610fa55782828261ffff16818110611b7857611b78614725565b9050602002016020810190611b8d9190614637565b6006600087878561ffff16818110611ba757611ba7614725565b9050602002016020810190611bbc9190613e34565b61ffff1661ffff16815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060006001600160a01b031683838361ffff16818110611c1757611c17614725565b9050602002016020810190611c2c9190614637565b6001600160a01b03161415611c725760048054600160b01b900461ffff16906016611c56836148b0565b91906101000a81548161ffff021916908361ffff160217905550505b84848261ffff16818110611c8857611c88614725565b9050602002016020810190611c9d9190613e34565b61ffff167f8c819e14e5c0c754e93cfda2ff45027d0b19a3e7bc73451f11d2abe68ade63f384848461ffff16818110611cd857611cd8614725565b9050602002016020810190611ced9190614637565b6040516001600160a01b03909116815260200160405180910390a280611d1281614811565b915050611b56565b336001600160a01b0383161415611d855760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016107f4565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61ffff8083166000908152600860205260409020548391600160301b90910416611e2d5760405162461bcd60e51b81526004016107f4906146b9565b61ffff8084166000908152600860209081526040808320815161014081018352815460ff8082161515835261010080830490911615159583019590955262010000808204881694830194909452600160201b810487166060830152600160301b900486166080820152600182015460a0820152600282015480871660c08301529290920490941660e0820152600384018054939491939192840191611ed1906146f0565b80601f0160208091040260200160405190810160405280929190818152602001828054611efd906146f0565b8015611f4a5780601f10611f1f57610100808354040283529160200191611f4a565b820191906000526020600020905b815481529060010190602001808311611f2d57829003601f168201915b5050505050815260200160048201805480602002602001604051908101604052809291908181526020018280548015611fca57602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411611f915790505b505050505081525050905080602001516120265760405162461bcd60e51b815260206004820152601a60248201527f57686974656c6973742073616c6573206e6f742061637469766500000000000060448201526064016107f4565b61ffff8416600090815260076020908152604080832033845290915290205460ff1661171e5760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b60448201526064016107f4565b6004546001600160a01b031633146120b05760405162461bcd60e51b81526004016107f49061476c565b60005b61ffff811682111561213e5760006008600085858561ffff168181106120db576120db614725565b90506020020160208101906120f09190613e34565b61ffff9081168252602082019290925260400160002054600160301b9004161161212c5760405162461bcd60e51b81526004016107f4906146b9565b8061213681614811565b9150506120b3565b5060005b61ffff8116821115611024576008600084848461ffff1681811061216857612168614725565b905060200201602081019061217d9190613e34565b61ffff1661ffff16815260200190815260200160002060000160019054906101000a900460ff16156008600085858561ffff168181106121bf576121bf614725565b90506020020160208101906121d49190613e34565b61ffff168152602081019190915260400160002080549115156101000261ff00199092169190911790558061220881614811565b915050612142565b6004546001600160a01b0316331461223a5760405162461bcd60e51b81526004016107f49061476c565b61ffff8084166000908152600860205260409020548491600160301b909104166122765760405162461bcd60e51b81526004016107f4906146b9565b61ffff84166000908152600860205260408120905b61ffff8116841115612345576000600681878761ffff86168181106122b2576122b2614725565b90506020020160208101906122c79190613e34565b61ffff1681526020810191909152604001600020546001600160a01b031614156123335760405162461bcd60e51b815260206004820152601960248201527f4d7573742062652076616c6964204452502070726f6a6563740000000000000060448201526064016107f4565b8061233d81614811565b91505061228b565b50612354600482018585613b9b565b508461ffff167f46de4c65b225f2caf71026e623494c1506120173f913c4c5149209a1c377d717858560405161238b9291906148ce565b60405180910390a25050505050565b61ffff8082166000908152600860205260409020546060918391600160301b9004166123d85760405162461bcd60e51b81526004016107f4906146b9565b61ffff83166000908152600960209081526040918290208054835181840281018401909452808452909183018282801561094d57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161241d575050505050915050919050565b6004546001600160a01b031633146124715760405162461bcd60e51b81526004016107f49061476c565b61ffff8082166000908152600860205260409020548291600160301b909104166124ad5760405162461bcd60e51b81526004016107f4906146b9565b61ffff821660009081526005602052604090205460ff16156125035760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b60448201526064016107f4565b61ffff828116600090815260086020908152604080832054600390925290912054600160201b90910490911611156125885760405162461bcd60e51b815260206004820152602260248201527f436c61696d61626c6520746f6b656e73206e6f74206578686175737465642079604482015261195d60f21b60648201526084016107f4565b61ffff8083166000818152600860205260409020546125d8923392916125bf91600160201b8204811691600160301b9004166148ea565b61ffff1660405180602001604052806000815250613365565b5061ffff166000908152600560205260409020805460ff19166001179055565b61ffff80821660009081526008602052604081205490918391600160301b9004166126355760405162461bcd60e51b81526004016107f4906146b9565b61ffff808416600090815260086020908152604091829020825161014081018452815460ff8082161515835261010080830490911615159483019490945262010000808204871695830195909552600160201b810486166060830152600160301b900485166080820152600182015460a0820152600282015480861660c08301529390930490931660e08301526003830180546127e19492840191906126da906146f0565b80601f0160208091040260200160405190810160405280929190818152602001828054612706906146f0565b80156127535780601f1061272857610100808354040283529160200191612753565b820191906000526020600020905b81548152906001019060200180831161273657829003601f168201915b50505050508152602001600482018054806020026020016040519081016040528092919081815260200182805480156127d357602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff168152602001906002019060208260010104928301926001038202915080841161279a5790505b50505050508152505061324b565b9392505050565b6001600160a01b03851633148061280457506128048533610687565b6128625760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016107f4565b610fa5858585858561339a565b6004546001600160a01b031633146128995760405162461bcd60e51b81526004016107f49061476c565b6004546128bc90600160a01b900461ffff168a8a8a8a8a6000808c8c8c8c612c50565b600460149054906101000a900461ffff1661ffff167fd46bab7ea758eda007ec2db9cf63bd627c1ffd5282040df7c9da6ffdca9f309e8a8a8a86866040516129089594939291906147d8565b60405180910390a260048054600160a01b900461ffff1690601461292b83614811565b91906101000a81548161ffff021916908361ffff16021790555050505050505050505050565b6004546001600160a01b0316331461297b5760405162461bcd60e51b81526004016107f49061476c565b6001600160a01b0381166129e05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107f4565b6129e9816131f9565b50565b600860205260009081526040902080546001820154600283015460038401805460ff808616966101008704909116956201000080820461ffff90811697600160201b8404821697600160301b9094048216969095828516959390940490911692612a55906146f0565b80601f0160208091040260200160405190810160405280929190818152602001828054612a81906146f0565b8015612ace5780601f10612aa357610100808354040283529160200191612ace565b820191906000526020600020905b815481529060010190602001808311612ab157829003601f168201915b5050505050905089565b6004546001600160a01b03163314612b025760405162461bcd60e51b81526004016107f49061476c565b60005b61ffff8116821115612b905760006008600085858561ffff16818110612b2d57612b2d614725565b9050602002016020810190612b429190613e34565b61ffff9081168252602082019290925260400160002054600160301b90041611612b7e5760405162461bcd60e51b81526004016107f4906146b9565b80612b8881614811565b915050612b05565b5060005b61ffff8116821115611024576008600084848461ffff16818110612bba57612bba614725565b9050602002016020810190612bcf9190613e34565b61ffff9081168252602082019290925260400160009081205460ff16159160089190869086908616818110612c0657612c06614725565b9050602002016020810190612c1b9190613e34565b61ffff1681526020810191909152604001600020805460ff191691151591909117905580612c4881614811565b915050612b94565b60008b61ffff1611612cb05760405162461bcd60e51b815260206004820152602360248201527f4d696e7461626c6520616d6f756e74206d757374206265206d6f72652074686160448201526206e20360ec1b60648201526084016107f4565b8a61ffff168a61ffff1611612d2d5760405162461bcd60e51b815260206004820152603d60248201527f546f74616c20737570706c79206d75737420626520677265617465722074686160448201527f6e206f7220657175616c20746f206d696e7461626c6520616d6f756e7400000060648201526084016107f4565b60005b61ffff8116821115612de2576000600681858561ffff8616818110612d5757612d57614725565b9050602002016020810190612d6c9190613e34565b61ffff1681526020810191909152604001600020546001600160a01b03161415612dd05760405162461bcd60e51b8152602060048201526015602482015274092dcecc2d8d2c840e0e4ded4cac6e840d2dcc8caf605b1b60448201526064016107f4565b80612dda81614811565b915050612d30565b50604051806101400160405280871515815260200186151581526020018d61ffff1681526020018c61ffff1681526020018b61ffff1681526020018a81526020018961ffff1681526020018861ffff16815260200185858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050908252506040805160208581028281018201909352858252928301929091869186918291850190849080828437600081840152601f19601f82011690508083019250505050505050815250600860008e61ffff1661ffff16815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548161ffff021916908361ffff16021790555060608201518160000160046101000a81548161ffff021916908361ffff16021790555060808201518160000160066101000a81548161ffff021916908361ffff16021790555060a0820151816001015560c08201518160020160006101000a81548161ffff021916908361ffff16021790555060e08201518160020160026101000a81548161ffff021916908361ffff160217905550610100820151816003019080519060200190612fe8929190613c43565b506101208201518051613005916004840191602090910190613cb7565b505050505050505050505050505050565b81518351146130785760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016107f4565b6001600160a01b03841661309e5760405162461bcd60e51b81526004016107f49061490d565b336130ad8187878787876134c6565b60005b84518110156131935760008582815181106130cd576130cd614725565b6020026020010151905060008583815181106130eb576130eb614725565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561313b5760405162461bcd60e51b81526004016107f490614952565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290613178908490614879565b925050819055505050508061318c90614751565b90506130b0565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516131e392919061499c565b60405180910390a4611ad2818787878787613600565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000816101200151516000141561326457506001919050565b60005b826101200151518161ffff1610156133575760008361012001518261ffff168151811061329657613296614725565b60209081029190910181015161ffff81166000908152600690925260408083205490516370a0823160e01b81523360048201529193506001600160a01b0316906370a082319060240160206040518083038186803b1580156132f757600080fd5b505afa15801561330b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061332f91906149ca565b9050801561334257506001949350505050565b5050808061334f90614811565b915050613267565b50600092915050565b919050565b6133718484848461376b565b6000838152600360205260408120805484929061338f908490614879565b909155505050505050565b6001600160a01b0384166133c05760405162461bcd60e51b81526004016107f49061490d565b336133df8187876133d08861386c565b6133d98861386c565b876134c6565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156134205760405162461bcd60e51b81526004016107f490614952565b6000858152602081815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061345d908490614879565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46134bd8288888888886138b7565b50505050505050565b60005b83518161ffff1610156134bd576000848261ffff16815181106134ee576134ee614725565b6020026020010151905060006001600160a01b0316876001600160a01b03161461355e57613520878261ffff1661078c565b6135415761ffff811660009081526009602052604090206135419088613981565b61ffff8116600090815260096020526040902061355e9088613ac5565b6001600160a01b038616156135ef5761ffff811660009081526009602090815260408083206001600160a01b038a1684526001019091529020546135ef5761ffff8116600090815260096020908152604080832080546001808201835582865284862090910180546001600160a01b0319166001600160a01b038d1690811790915582549086529101909252909120555b506135f981614811565b90506134c9565b6001600160a01b0384163b15611ad25760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061364490899089908890889088906004016149e3565b602060405180830381600087803b15801561365e57600080fd5b505af192505050801561368e575060408051601f3d908101601f1916820190925261368b91810190614a41565b60015b61373b5761369a614a5e565b806308c379a014156136d457506136af614a7a565b806136ba57506136d6565b8060405162461bcd60e51b81526004016107f49190613df6565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016107f4565b6001600160e01b0319811663bc197c8160e01b146134bd5760405162461bcd60e51b81526004016107f490614b03565b6001600160a01b0384166137cb5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016107f4565b336137dc816000876133d08861386c565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061380c908490614879565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610fa5816000878787876138b7565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106138a6576138a6614725565b602090810291909101015292915050565b6001600160a01b0384163b15611ad25760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906138fb9089908990889088908890600401614b4b565b602060405180830381600087803b15801561391557600080fd5b505af1925050508015613945575060408051601f3d908101601f1916820190925261394291810190614a41565b60015b6139515761369a614a5e565b6001600160e01b0319811663f23a6e6160e01b146134bd5760405162461bcd60e51b81526004016107f490614b03565b6001600160a01b0381166000908152600183810160205260408220546139a79190614b85565b83549091506000906139bb90600190614b85565b90508082146119d45760008460000182815481106139db576139db614725565b60009182526020909120015485546001600160a01b0390911691508190869085908110613a0a57613a0a614725565b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055613a3e836001614879565b6001600160a01b038216600090815260018701602052604090205584548490869084908110613a6f57613a6f614725565b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055613aa3826001614879565b6001600160a01b03851660009081526001870160205260409020555050505050565b6001600160a01b03811660009081526001830160205260408120558154829080613af157613af1614b9c565b600082815260209020810160001990810180546001600160a01b03191690550190555050565b828054613b23906146f0565b90600052602060002090601f016020900481019282613b455760008555613b8b565b82601f10613b5e5782800160ff19823516178555613b8b565b82800160010185558215613b8b579182015b82811115613b8b578235825591602001919060010190613b70565b50613b97929150613d20565b5090565b82805482825590600052602060002090600f01601090048101928215613b8b5791602002820160005b83821115613c0857833561ffff1683826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302613bc4565b8015613c365782816101000a81549061ffff0219169055600201602081600101049283019260010302613c08565b5050613b97929150613d20565b828054613c4f906146f0565b90600052602060002090601f016020900481019282613c715760008555613b8b565b82601f10613c8a57805160ff1916838001178555613b8b565b82800160010185558215613b8b579182015b82811115613b8b578251825591602001919060010190613c9c565b82805482825590600052602060002090600f01601090048101928215613b8b5791602002820160005b83821115613c0857835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302613ce0565b5b80821115613b975760008155600101613d21565b80356001600160a01b038116811461336057600080fd5b60008060408385031215613d5f57600080fd5b613d6883613d35565b946020939093013593505050565b6001600160e01b0319811681146129e957600080fd5b600060208284031215613d9e57600080fd5b81356127e181613d76565b6000815180845260005b81811015613dcf57602081850181015186830182015201613db3565b81811115613de1576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006127e16020830184613da9565b600060208284031215613e1b57600080fd5b5035919050565b803561ffff8116811461336057600080fd5b600060208284031215613e4657600080fd5b6127e182613e22565b6020808252825182820181905260009190848201906040850190845b81811015613e905783516001600160a01b031683529284019291840191600101613e6b565b50909695505050505050565b60008083601f840112613eae57600080fd5b5081356001600160401b03811115613ec557600080fd5b602083019150836020828501011115613edd57600080fd5b9250929050565b60008083601f840112613ef657600080fd5b5081356001600160401b03811115613f0d57600080fd5b6020830191508360208260051b8501011115613edd57600080fd5b6000806000806000806000806000806101008b8d031215613f4857600080fd5b613f518b613e22565b9950613f5f60208c01613e22565b9850613f6d60408c01613e22565b975060608b01359650613f8260808c01613e22565b9550613f9060a08c01613e22565b945060c08b01356001600160401b0380821115613fac57600080fd5b613fb88e838f01613e9c565b909650945060e08d0135915080821115613fd157600080fd5b50613fde8d828e01613ee4565b915080935050809150509295989b9194979a5092959850565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b038111828210171561403257614032613ff7565b6040525050565b60006001600160401b0382111561405257614052613ff7565b5060051b60200190565b600082601f83011261406d57600080fd5b8135602061407a82614039565b604051614087828261400d565b83815260059390931b85018201928281019150868411156140a757600080fd5b8286015b848110156140c257803583529183019183016140ab565b509695505050505050565b600082601f8301126140de57600080fd5b81356001600160401b038111156140f7576140f7613ff7565b60405161410e601f8301601f19166020018261400d565b81815284602083860101111561412357600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561415857600080fd5b61416186613d35565b945061416f60208701613d35565b935060408601356001600160401b038082111561418b57600080fd5b61419789838a0161405c565b945060608801359150808211156141ad57600080fd5b6141b989838a0161405c565b935060808801359150808211156141cf57600080fd5b506141dc888289016140cd565b9150509295509295909350565b600080600080604085870312156141ff57600080fd5b84356001600160401b038082111561421657600080fd5b61422288838901613ee4565b9096509450602087013591508082111561423b57600080fd5b5061424887828801613ee4565b95989497509550505050565b6000806040838503121561426757600080fd5b82356001600160401b038082111561427e57600080fd5b818501915085601f83011261429257600080fd5b8135602061429f82614039565b6040516142ac828261400d565b83815260059390931b85018201928281019150898411156142cc57600080fd5b948201945b838610156142f1576142e286613d35565b825294820194908201906142d1565b9650508601359250508082111561430757600080fd5b506143148582860161405c565b9150509250929050565b600081518084526020808501945080840160005b8381101561434e57815187529582019590820190600101614332565b509495945050505050565b6020815260006127e1602083018461431e565b6000806040838503121561437f57600080fd5b61438883613e22565b915061439660208401613d35565b90509250929050565b600080604083850312156143b257600080fd5b6143bb83613e22565b915061439660208401613e22565b8035801515811461336057600080fd5b600080600080606085870312156143ef57600080fd5b6143f885613e22565b935060208501356001600160401b0381111561441357600080fd5b61441f87828801613ee4565b90945092506144329050604086016143c9565b905092959194509250565b6000806040838503121561445057600080fd5b61445983613d35565b9150614396602084016143c9565b6000806020838503121561447a57600080fd5b82356001600160401b0381111561449057600080fd5b61449c85828601613ee4565b90969095509350505050565b6000806000604084860312156144bd57600080fd5b6144c684613e22565b925060208401356001600160401b038111156144e157600080fd5b6144ed86828701613ee4565b9497909650939450505050565b6000806040838503121561450d57600080fd5b61438883613d35565b600080600080600060a0868803121561452e57600080fd5b61453786613d35565b945061454560208701613d35565b9350604086013592506060860135915060808601356001600160401b0381111561456e57600080fd5b6141dc888289016140cd565b600080600080600080600080600060e08a8c03121561459857600080fd5b6145a18a613e22565b98506145af60208b01613e22565b975060408a013596506145c460608b01613e22565b95506145d260808b01613e22565b945060a08a01356001600160401b03808211156145ee57600080fd5b6145fa8d838e01613e9c565b909650945060c08c013591508082111561461357600080fd5b506146208c828d01613ee4565b915080935050809150509295985092959850929598565b60006020828403121561464957600080fd5b6127e182613d35565b60006101208b151583528a1515602084015261ffff808b166040850152808a16606085015280891660808501528760a085015280871660c085015280861660e085015250806101008401526146a981840185613da9565b9c9b505050505050505050505050565b6020808252601c908201527f517565727920666f72206e6f6e2d6578697374656e7420746f6b656e00000000604082015260600190565b600181811c9082168061470457607f821691505b6020821081141561095557634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156147655761476561473b565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b8183526000602080850194508260005b8581101561434e5761ffff6147c583613e22565b16875295820195908201906001016147b1565b600061ffff8088168352808716602084015250846040830152608060608301526148066080830184866147a1565b979650505050505050565b600061ffff808316818114156148295761482961473b565b6001019392505050565b6000808335601e1984360301811261484a57600080fd5b8301803591506001600160401b0382111561486457600080fd5b602001915036819003821315613edd57600080fd5b6000821982111561488c5761488c61473b565b500190565b60008160001904831182151516156148ab576148ab61473b565b500290565b600061ffff8216806148c4576148c461473b565b6000190192915050565b6020815260006148e26020830184866147a1565b949350505050565b600061ffff838116908316818110156149055761490561473b565b039392505050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006149af604083018561431e565b82810360208401526149c1818561431e565b95945050505050565b6000602082840312156149dc57600080fd5b5051919050565b6001600160a01b0386811682528516602082015260a060408201819052600090614a0f9083018661431e565b8281036060840152614a21818661431e565b90508281036080840152614a358185613da9565b98975050505050505050565b600060208284031215614a5357600080fd5b81516127e181613d76565b600060033d1115614a775760046000803e5060005160e01c5b90565b600060443d1015614a885790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715614ab757505050505090565b8285019150815181811115614acf5750505050505090565b843d8701016020828501011115614ae95750505050505090565b614af86020828601018761400d565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061480690830184613da9565b600082821015614b9757614b9761473b565b500390565b634e487b7160e01b600052603160045260246000fdfea26469706673582212207307228f28684f889720e009689b2bf57ab9ef6f18d55cacb6cab2a51257496364736f6c63430008090033

Deployed Bytecode

0x60806040526004361061020e5760003560e01c80638da5cb5b11610118578063da1f9fff116100a0578063f242432a1161006f578063f242432a146106d7578063f29d4b47146106f7578063f2fde38b14610717578063f3c20de014610737578063f8441c9c1461076c57600080fd5b8063da1f9fff1461062c578063e5533f261461064c578063e985e9c51461066c578063e9c978d9146106b557600080fd5b8063ac43b386116100e7578063ac43b3861461058c578063b1e78af51461059f578063bd4329cf146105bf578063bd85b039146105df578063d3c206ad1461060c57600080fd5b80638da5cb5b146104fe57806390fed0ac1461051c57806395d89b411461053c578063a22cb4651461056c57600080fd5b80634819dace1161019b5780635e1d505b1161016a5780635e1d505b1461045b5780636080b4c914610496578063715018a6146104b65780637fc61fd7146104cb5780638740c050146104de57600080fd5b80634819dace146103aa578063484c1c39146103df5780634e1273f4146103ff5780634f558e791461042c57600080fd5b806314c9f5dd116101e257806314c9f5dd146102d85780631f5fa73f146103055780632eb2c2d61461032757806335857949146103475780633ccfd60b1461039557600080fd5b8062fdd58e1461021357806301ffc9a71461024657806306fdde03146102765780630e89341c146102b8575b600080fd5b34801561021f57600080fd5b5061023361022e366004613d4c565b61078c565b6040519081526020015b60405180910390f35b34801561025257600080fd5b50610266610261366004613d8c565b610823565b604051901515815260200161023d565b34801561028257600080fd5b506102ab6040518060400160405280600981526020016822292826b2b6b132b960b91b81525081565b60405161023d9190613df6565b3480156102c457600080fd5b506102ab6102d3366004613e09565b610875565b3480156102e457600080fd5b506102f86102f3366004613e34565b61095b565b60405161023d9190613e4f565b34801561031157600080fd5b50610325610320366004613f28565b610c30565b005b34801561033357600080fd5b50610325610342366004614140565b610f15565b34801561035357600080fd5b5061037d610362366004613e34565b6006602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161023d565b3480156103a157600080fd5b50610325610fac565b3480156103b657600080fd5b506004546103cc90600160a01b900461ffff1681565b60405161ffff909116815260200161023d565b3480156103eb57600080fd5b506103256103fa3660046141e9565b611029565b34801561040b57600080fd5b5061041f61041a366004614254565b6111b4565b60405161023d9190614359565b34801561043857600080fd5b50610266610447366004613e09565b600090815260036020526040902054151590565b34801561046757600080fd5b5061026661047636600461436c565b600760209081526000928352604080842090915290825290205460ff1681565b3480156104a257600080fd5b506103256104b13660046141e9565b6112dd565b3480156104c257600080fd5b5061032561144b565b6103256104d936600461439f565b611481565b3480156104ea57600080fd5b506103256104f93660046143d9565b6119da565b34801561050a57600080fd5b506004546001600160a01b031661037d565b34801561052857600080fd5b506103256105373660046141e9565b611ada565b34801561054857600080fd5b506102ab604051806040016040528060048152602001634452504d60e01b81525081565b34801561057857600080fd5b5061032561058736600461443d565b611d1a565b61032561059a36600461439f565b611df1565b3480156105ab57600080fd5b506103256105ba366004614467565b612086565b3480156105cb57600080fd5b506103256105da3660046144a8565b612210565b3480156105eb57600080fd5b506102336105fa366004613e09565b60009081526003602052604090205490565b34801561061857600080fd5b506102f8610627366004613e34565b61239a565b34801561063857600080fd5b50610325610647366004613e34565b612447565b34801561065857600080fd5b50610266610667366004613e34565b6125f8565b34801561067857600080fd5b506102666106873660046144fa565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156106c157600080fd5b506004546103cc90600160b01b900461ffff1681565b3480156106e357600080fd5b506103256106f2366004614516565b6127e8565b34801561070357600080fd5b5061032561071236600461457a565b61286f565b34801561072357600080fd5b50610325610732366004614637565b612951565b34801561074357600080fd5b50610757610752366004613e34565b6129ec565b60405161023d99989796959493929190614652565b34801561077857600080fd5b50610325610787366004614467565b612ad8565b60006001600160a01b0383166107fd5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061085457506001600160e01b031982166303a24d0760e21b145b8061086f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b61ffff8082166000908152600860205260409020546060918391600160301b9004166108b35760405162461bcd60e51b81526004016107f4906146b9565b61ffff8316600090815260086020526040902060030180546108d4906146f0565b80601f0160208091040260200160405190810160405280929190818152602001828054610900906146f0565b801561094d5780601f106109225761010080835404028352916020019161094d565b820191906000526020600020905b81548152906001019060200180831161093057829003601f168201915b505050505091505b50919050565b61ffff8082166000908152600860205260409020546060918391600160301b9004166109995760405162461bcd60e51b81526004016107f4906146b9565b61ffff8084166000908152600860209081526040808320815161014081018352815460ff8082161515835261010080830490911615159583019590955262010000808204881694830194909452600160201b810487166060830152600160301b900486166080820152600182015460a0820152600282015480871660c08301529290920490941660e0820152600384018054939491939192840191610a3d906146f0565b80601f0160208091040260200160405190810160405280929190818152602001828054610a69906146f0565b8015610ab65780601f10610a8b57610100808354040283529160200191610ab6565b820191906000526020600020905b815481529060010190602001808311610a9957829003601f168201915b5050505050815260200160048201805480602002602001604051908101604052809291908181526020018280548015610b3657602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411610afd5790505b50505050508152505090506000816101200151516001600160401b03811115610b6157610b61613ff7565b604051908082528060200260200182016040528015610b8a578160200160208202803683370190505b50905060005b82610120015151811015610c2757600660008461012001518381518110610bb957610bb9614725565b602002602001015161ffff1661ffff16815260200190815260200160002060009054906101000a90046001600160a01b0316828281518110610bfd57610bfd614725565b6001600160a01b039092166020928302919091019091015280610c1f81614751565b915050610b90565b50949350505050565b6004546001600160a01b03163314610c5a5760405162461bcd60e51b81526004016107f49061476c565b61ffff808b166000908152600860205260409020548b91600160301b90910416610c965760405162461bcd60e51b81526004016107f4906146b9565b61ffff8b1660009081526008602052604090205460ff1615610d065760405162461bcd60e51b815260206004820152602360248201527f43616e6e6f7420757064617465207768656e2073616c6573206172652061637460448201526269766560e81b60648201526084016107f4565b61ffff8b16600090815260086020526040902054610100900460ff1615610d855760405162461bcd60e51b815260206004820152602d60248201527f43616e6e6f7420757064617465207768656e2077686974656c6973742073616c60448201526c6573206172652061637469766560981b60648201526084016107f4565b8961ffff16610da48c61ffff1660009081526003602052604090205490565b10610e0c5760405162461bcd60e51b815260206004820152603260248201527f43616e6e6f7420757064617465206d696e7461626c6520616d6f756e742062656044820152716c6f772063757272656e7420737570706c7960701b60648201526084016107f4565b8861ffff16610e2b8c61ffff1660009081526003602052604090205490565b10610e8e5760405162461bcd60e51b815260206004820152602d60248201527f43616e6e6f7420757064617465206d617820737570706c792062656c6f77206360448201526c757272656e7420737570706c7960981b60648201526084016107f4565b61ffff8b1660009081526008602052604090205460ff80821691610100900416610ec28d8d8d8d8d8d88888f8f8f8f612c50565b8c61ffff167f8e6c7632903e1ad628476cdd42a9accdac7ee79860d88fc7c7007204e95626128d8d8d8989604051610efe9594939291906147d8565b60405180910390a250505050505050505050505050565b6001600160a01b038516331480610f315750610f318533610687565b610f985760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016107f4565b610fa58585858585613016565b5050505050565b6004546001600160a01b03163314610fd65760405162461bcd60e51b81526004016107f49061476c565b476000610feb6004546001600160a01b031690565b6040519091506001600160a01b0382169083156108fc029084906000818181858888f19350505050158015611024573d6000803e3d6000fd5b505050565b6004546001600160a01b031633146110535760405162461bcd60e51b81526004016107f49061476c565b821580159061106157508015155b6110ad5760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f742073656e6420656d70747920617272617900000000000000000060448201526064016107f4565b8281146111075760405162461bcd60e51b815260206004820152602260248201527f426f746820617272617973206d757374206265206f662073616d65206c656e676044820152610e8d60f31b60648201526084016107f4565b60005b61ffff8116841115610fa55782828261ffff1681811061112c5761112c614725565b90506020020160208101906111419190614637565b6006600087878561ffff1681811061115b5761115b614725565b90506020020160208101906111709190613e34565b61ffff168152602081019190915260400160002080546001600160a01b0319166001600160a01b0392909216919091179055806111ac81614811565b91505061110a565b606081518351146112195760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016107f4565b600083516001600160401b0381111561123457611234613ff7565b60405190808252806020026020018201604052801561125d578160200160208202803683370190505b50905060005b84518110156112d5576112a885828151811061128157611281614725565b602002602001015185838151811061129b5761129b614725565b602002602001015161078c565b8282815181106112ba576112ba614725565b60209081029190910101526112ce81614751565b9050611263565b509392505050565b8281146113205760405162461bcd60e51b8152602060048201526011602482015270105c9c985e5cc81b5a5cdb585d18da1959607a1b60448201526064016107f4565b60005b61ffff81168411156113ae5760006008600087878561ffff1681811061134b5761134b614725565b90506020020160208101906113609190613e34565b61ffff9081168252602082019290925260400160002054600160301b9004161161139c5760405162461bcd60e51b81526004016107f4906146b9565b806113a681614811565b915050611323565b5060005b61ffff8116841115610fa55782828261ffff168181106113d4576113d4614725565b90506020028101906113e69190614833565b6008600088888661ffff1681811061140057611400614725565b90506020020160208101906114159190613e34565b61ffff168152602081019190915260400160002061143892600390910191613b17565b508061144381614811565b9150506113b2565b6004546001600160a01b031633146114755760405162461bcd60e51b81526004016107f49061476c565b61147f60006131f9565b565b61ffff8083166000908152600860205260409020548391600160301b909104166114bd5760405162461bcd60e51b81526004016107f4906146b9565b61ffff8084166000908152600860209081526040808320815161014081018352815460ff8082161515835261010080830490911615159583019590955262010000808204881694830194909452600160201b810487166060830152600160301b900486166080820152600182015460a0820152600282015480871660c08301529290920490941660e0820152600384018054939491939192840191611561906146f0565b80601f016020809104026020016040519081016040528092919081815260200182805461158d906146f0565b80156115da5780601f106115af576101008083540402835291602001916115da565b820191906000526020600020905b8154815290600101906020018083116115bd57829003601f168201915b505050505081526020016004820180548060200260200160405190810160405280929190818152602001828054801561165a57602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116116215790505b505050505081525050905080600001516116af5760405162461bcd60e51b8152602060048201526016602482015275546f6b656e2073616c6573206e6f742061637469766560501b60448201526064016107f4565b6116b88161324b565b61171e5760405162461bcd60e51b815260206004820152603160248201527f53656e64657220646f65736e74206f776e20746f6b656e20696e2070726572656044820152707175697369746520636f6e74726163747360781b60648201526084016107f4565b60e081015161ffff16158061174757508060e0015161ffff16611745338661ffff1661078c565b105b6117a95760405162461bcd60e51b815260206004820152602d60248201527f43616e6e6f7420636c61696d206d6f726520746f6b656e73207468616e20796f60448201526c3a9030b63932b0b23c9037bbb760991b60648201526084016107f4565b60c081015161ffff1615806117ca57508060c0015161ffff168361ffff1611155b6118165760405162461bcd60e51b815260206004820152601a60248201527f416d6f756e74206578636565647320636c61696d206c696d697400000000000060448201526064016107f4565b806060015161ffff166118398561ffff1660009081526003602052604090205490565b106118795760405162461bcd60e51b815260206004820152601060248201526f14dd5c1c1b1e48195e1a185d5cdd195960821b60448201526064016107f4565b806060015161ffff168361ffff166118a18661ffff1660009081526003602052604090205490565b6118ab9190614879565b11156118f95760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f75676820746f6b656e7320746f206d696e740000000000000060448201526064016107f4565b60a081015115611963578261ffff168160a001516119179190614891565b34101561195e5760405162461bcd60e51b8152602060048201526015602482015274125b9cdd59999a58da595b9d08115512081cd95b9d605a1b60448201526064016107f4565b6119b1565b34156119b15760405162461bcd60e51b815260206004820152601760248201527f4554482073656e7420666f72206672656520746f6b656e00000000000000000060448201526064016107f4565b6119d4338561ffff168561ffff1660405180602001604052806000815250613365565b50505050565b6004546001600160a01b03163314611a045760405162461bcd60e51b81526004016107f49061476c565b61ffff8085166000908152600860205260409020548591600160301b90910416611a405760405162461bcd60e51b81526004016107f4906146b9565b60005b61ffff8116841115611ad25782600760008861ffff1661ffff168152602001908152602001600020600087878561ffff16818110611a8357611a83614725565b9050602002016020810190611a989190614637565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611aca81614811565b915050611a43565b505050505050565b6004546001600160a01b03163314611b045760405162461bcd60e51b81526004016107f49061476c565b828114611b535760405162461bcd60e51b815260206004820152601f60248201527f426f746820617272617973206e6f74207468652073616d65206c656e6774680060448201526064016107f4565b60005b61ffff8116841115610fa55782828261ffff16818110611b7857611b78614725565b9050602002016020810190611b8d9190614637565b6006600087878561ffff16818110611ba757611ba7614725565b9050602002016020810190611bbc9190613e34565b61ffff1661ffff16815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060006001600160a01b031683838361ffff16818110611c1757611c17614725565b9050602002016020810190611c2c9190614637565b6001600160a01b03161415611c725760048054600160b01b900461ffff16906016611c56836148b0565b91906101000a81548161ffff021916908361ffff160217905550505b84848261ffff16818110611c8857611c88614725565b9050602002016020810190611c9d9190613e34565b61ffff167f8c819e14e5c0c754e93cfda2ff45027d0b19a3e7bc73451f11d2abe68ade63f384848461ffff16818110611cd857611cd8614725565b9050602002016020810190611ced9190614637565b6040516001600160a01b03909116815260200160405180910390a280611d1281614811565b915050611b56565b336001600160a01b0383161415611d855760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016107f4565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61ffff8083166000908152600860205260409020548391600160301b90910416611e2d5760405162461bcd60e51b81526004016107f4906146b9565b61ffff8084166000908152600860209081526040808320815161014081018352815460ff8082161515835261010080830490911615159583019590955262010000808204881694830194909452600160201b810487166060830152600160301b900486166080820152600182015460a0820152600282015480871660c08301529290920490941660e0820152600384018054939491939192840191611ed1906146f0565b80601f0160208091040260200160405190810160405280929190818152602001828054611efd906146f0565b8015611f4a5780601f10611f1f57610100808354040283529160200191611f4a565b820191906000526020600020905b815481529060010190602001808311611f2d57829003601f168201915b5050505050815260200160048201805480602002602001604051908101604052809291908181526020018280548015611fca57602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411611f915790505b505050505081525050905080602001516120265760405162461bcd60e51b815260206004820152601a60248201527f57686974656c6973742073616c6573206e6f742061637469766500000000000060448201526064016107f4565b61ffff8416600090815260076020908152604080832033845290915290205460ff1661171e5760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b60448201526064016107f4565b6004546001600160a01b031633146120b05760405162461bcd60e51b81526004016107f49061476c565b60005b61ffff811682111561213e5760006008600085858561ffff168181106120db576120db614725565b90506020020160208101906120f09190613e34565b61ffff9081168252602082019290925260400160002054600160301b9004161161212c5760405162461bcd60e51b81526004016107f4906146b9565b8061213681614811565b9150506120b3565b5060005b61ffff8116821115611024576008600084848461ffff1681811061216857612168614725565b905060200201602081019061217d9190613e34565b61ffff1661ffff16815260200190815260200160002060000160019054906101000a900460ff16156008600085858561ffff168181106121bf576121bf614725565b90506020020160208101906121d49190613e34565b61ffff168152602081019190915260400160002080549115156101000261ff00199092169190911790558061220881614811565b915050612142565b6004546001600160a01b0316331461223a5760405162461bcd60e51b81526004016107f49061476c565b61ffff8084166000908152600860205260409020548491600160301b909104166122765760405162461bcd60e51b81526004016107f4906146b9565b61ffff84166000908152600860205260408120905b61ffff8116841115612345576000600681878761ffff86168181106122b2576122b2614725565b90506020020160208101906122c79190613e34565b61ffff1681526020810191909152604001600020546001600160a01b031614156123335760405162461bcd60e51b815260206004820152601960248201527f4d7573742062652076616c6964204452502070726f6a6563740000000000000060448201526064016107f4565b8061233d81614811565b91505061228b565b50612354600482018585613b9b565b508461ffff167f46de4c65b225f2caf71026e623494c1506120173f913c4c5149209a1c377d717858560405161238b9291906148ce565b60405180910390a25050505050565b61ffff8082166000908152600860205260409020546060918391600160301b9004166123d85760405162461bcd60e51b81526004016107f4906146b9565b61ffff83166000908152600960209081526040918290208054835181840281018401909452808452909183018282801561094d57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161241d575050505050915050919050565b6004546001600160a01b031633146124715760405162461bcd60e51b81526004016107f49061476c565b61ffff8082166000908152600860205260409020548291600160301b909104166124ad5760405162461bcd60e51b81526004016107f4906146b9565b61ffff821660009081526005602052604090205460ff16156125035760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b60448201526064016107f4565b61ffff828116600090815260086020908152604080832054600390925290912054600160201b90910490911611156125885760405162461bcd60e51b815260206004820152602260248201527f436c61696d61626c6520746f6b656e73206e6f74206578686175737465642079604482015261195d60f21b60648201526084016107f4565b61ffff8083166000818152600860205260409020546125d8923392916125bf91600160201b8204811691600160301b9004166148ea565b61ffff1660405180602001604052806000815250613365565b5061ffff166000908152600560205260409020805460ff19166001179055565b61ffff80821660009081526008602052604081205490918391600160301b9004166126355760405162461bcd60e51b81526004016107f4906146b9565b61ffff808416600090815260086020908152604091829020825161014081018452815460ff8082161515835261010080830490911615159483019490945262010000808204871695830195909552600160201b810486166060830152600160301b900485166080820152600182015460a0820152600282015480861660c08301529390930490931660e08301526003830180546127e19492840191906126da906146f0565b80601f0160208091040260200160405190810160405280929190818152602001828054612706906146f0565b80156127535780601f1061272857610100808354040283529160200191612753565b820191906000526020600020905b81548152906001019060200180831161273657829003601f168201915b50505050508152602001600482018054806020026020016040519081016040528092919081815260200182805480156127d357602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff168152602001906002019060208260010104928301926001038202915080841161279a5790505b50505050508152505061324b565b9392505050565b6001600160a01b03851633148061280457506128048533610687565b6128625760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016107f4565b610fa5858585858561339a565b6004546001600160a01b031633146128995760405162461bcd60e51b81526004016107f49061476c565b6004546128bc90600160a01b900461ffff168a8a8a8a8a6000808c8c8c8c612c50565b600460149054906101000a900461ffff1661ffff167fd46bab7ea758eda007ec2db9cf63bd627c1ffd5282040df7c9da6ffdca9f309e8a8a8a86866040516129089594939291906147d8565b60405180910390a260048054600160a01b900461ffff1690601461292b83614811565b91906101000a81548161ffff021916908361ffff16021790555050505050505050505050565b6004546001600160a01b0316331461297b5760405162461bcd60e51b81526004016107f49061476c565b6001600160a01b0381166129e05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107f4565b6129e9816131f9565b50565b600860205260009081526040902080546001820154600283015460038401805460ff808616966101008704909116956201000080820461ffff90811697600160201b8404821697600160301b9094048216969095828516959390940490911692612a55906146f0565b80601f0160208091040260200160405190810160405280929190818152602001828054612a81906146f0565b8015612ace5780601f10612aa357610100808354040283529160200191612ace565b820191906000526020600020905b815481529060010190602001808311612ab157829003601f168201915b5050505050905089565b6004546001600160a01b03163314612b025760405162461bcd60e51b81526004016107f49061476c565b60005b61ffff8116821115612b905760006008600085858561ffff16818110612b2d57612b2d614725565b9050602002016020810190612b429190613e34565b61ffff9081168252602082019290925260400160002054600160301b90041611612b7e5760405162461bcd60e51b81526004016107f4906146b9565b80612b8881614811565b915050612b05565b5060005b61ffff8116821115611024576008600084848461ffff16818110612bba57612bba614725565b9050602002016020810190612bcf9190613e34565b61ffff9081168252602082019290925260400160009081205460ff16159160089190869086908616818110612c0657612c06614725565b9050602002016020810190612c1b9190613e34565b61ffff1681526020810191909152604001600020805460ff191691151591909117905580612c4881614811565b915050612b94565b60008b61ffff1611612cb05760405162461bcd60e51b815260206004820152602360248201527f4d696e7461626c6520616d6f756e74206d757374206265206d6f72652074686160448201526206e20360ec1b60648201526084016107f4565b8a61ffff168a61ffff1611612d2d5760405162461bcd60e51b815260206004820152603d60248201527f546f74616c20737570706c79206d75737420626520677265617465722074686160448201527f6e206f7220657175616c20746f206d696e7461626c6520616d6f756e7400000060648201526084016107f4565b60005b61ffff8116821115612de2576000600681858561ffff8616818110612d5757612d57614725565b9050602002016020810190612d6c9190613e34565b61ffff1681526020810191909152604001600020546001600160a01b03161415612dd05760405162461bcd60e51b8152602060048201526015602482015274092dcecc2d8d2c840e0e4ded4cac6e840d2dcc8caf605b1b60448201526064016107f4565b80612dda81614811565b915050612d30565b50604051806101400160405280871515815260200186151581526020018d61ffff1681526020018c61ffff1681526020018b61ffff1681526020018a81526020018961ffff1681526020018861ffff16815260200185858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050908252506040805160208581028281018201909352858252928301929091869186918291850190849080828437600081840152601f19601f82011690508083019250505050505050815250600860008e61ffff1661ffff16815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548161ffff021916908361ffff16021790555060608201518160000160046101000a81548161ffff021916908361ffff16021790555060808201518160000160066101000a81548161ffff021916908361ffff16021790555060a0820151816001015560c08201518160020160006101000a81548161ffff021916908361ffff16021790555060e08201518160020160026101000a81548161ffff021916908361ffff160217905550610100820151816003019080519060200190612fe8929190613c43565b506101208201518051613005916004840191602090910190613cb7565b505050505050505050505050505050565b81518351146130785760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016107f4565b6001600160a01b03841661309e5760405162461bcd60e51b81526004016107f49061490d565b336130ad8187878787876134c6565b60005b84518110156131935760008582815181106130cd576130cd614725565b6020026020010151905060008583815181106130eb576130eb614725565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561313b5760405162461bcd60e51b81526004016107f490614952565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290613178908490614879565b925050819055505050508061318c90614751565b90506130b0565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516131e392919061499c565b60405180910390a4611ad2818787878787613600565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000816101200151516000141561326457506001919050565b60005b826101200151518161ffff1610156133575760008361012001518261ffff168151811061329657613296614725565b60209081029190910181015161ffff81166000908152600690925260408083205490516370a0823160e01b81523360048201529193506001600160a01b0316906370a082319060240160206040518083038186803b1580156132f757600080fd5b505afa15801561330b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061332f91906149ca565b9050801561334257506001949350505050565b5050808061334f90614811565b915050613267565b50600092915050565b919050565b6133718484848461376b565b6000838152600360205260408120805484929061338f908490614879565b909155505050505050565b6001600160a01b0384166133c05760405162461bcd60e51b81526004016107f49061490d565b336133df8187876133d08861386c565b6133d98861386c565b876134c6565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156134205760405162461bcd60e51b81526004016107f490614952565b6000858152602081815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061345d908490614879565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46134bd8288888888886138b7565b50505050505050565b60005b83518161ffff1610156134bd576000848261ffff16815181106134ee576134ee614725565b6020026020010151905060006001600160a01b0316876001600160a01b03161461355e57613520878261ffff1661078c565b6135415761ffff811660009081526009602052604090206135419088613981565b61ffff8116600090815260096020526040902061355e9088613ac5565b6001600160a01b038616156135ef5761ffff811660009081526009602090815260408083206001600160a01b038a1684526001019091529020546135ef5761ffff8116600090815260096020908152604080832080546001808201835582865284862090910180546001600160a01b0319166001600160a01b038d1690811790915582549086529101909252909120555b506135f981614811565b90506134c9565b6001600160a01b0384163b15611ad25760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061364490899089908890889088906004016149e3565b602060405180830381600087803b15801561365e57600080fd5b505af192505050801561368e575060408051601f3d908101601f1916820190925261368b91810190614a41565b60015b61373b5761369a614a5e565b806308c379a014156136d457506136af614a7a565b806136ba57506136d6565b8060405162461bcd60e51b81526004016107f49190613df6565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016107f4565b6001600160e01b0319811663bc197c8160e01b146134bd5760405162461bcd60e51b81526004016107f490614b03565b6001600160a01b0384166137cb5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016107f4565b336137dc816000876133d08861386c565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061380c908490614879565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610fa5816000878787876138b7565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106138a6576138a6614725565b602090810291909101015292915050565b6001600160a01b0384163b15611ad25760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906138fb9089908990889088908890600401614b4b565b602060405180830381600087803b15801561391557600080fd5b505af1925050508015613945575060408051601f3d908101601f1916820190925261394291810190614a41565b60015b6139515761369a614a5e565b6001600160e01b0319811663f23a6e6160e01b146134bd5760405162461bcd60e51b81526004016107f490614b03565b6001600160a01b0381166000908152600183810160205260408220546139a79190614b85565b83549091506000906139bb90600190614b85565b90508082146119d45760008460000182815481106139db576139db614725565b60009182526020909120015485546001600160a01b0390911691508190869085908110613a0a57613a0a614725565b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055613a3e836001614879565b6001600160a01b038216600090815260018701602052604090205584548490869084908110613a6f57613a6f614725565b600091825260209091200180546001600160a01b0319166001600160a01b0392909216919091179055613aa3826001614879565b6001600160a01b03851660009081526001870160205260409020555050505050565b6001600160a01b03811660009081526001830160205260408120558154829080613af157613af1614b9c565b600082815260209020810160001990810180546001600160a01b03191690550190555050565b828054613b23906146f0565b90600052602060002090601f016020900481019282613b455760008555613b8b565b82601f10613b5e5782800160ff19823516178555613b8b565b82800160010185558215613b8b579182015b82811115613b8b578235825591602001919060010190613b70565b50613b97929150613d20565b5090565b82805482825590600052602060002090600f01601090048101928215613b8b5791602002820160005b83821115613c0857833561ffff1683826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302613bc4565b8015613c365782816101000a81549061ffff0219169055600201602081600101049283019260010302613c08565b5050613b97929150613d20565b828054613c4f906146f0565b90600052602060002090601f016020900481019282613c715760008555613b8b565b82601f10613c8a57805160ff1916838001178555613b8b565b82800160010185558215613b8b579182015b82811115613b8b578251825591602001919060010190613c9c565b82805482825590600052602060002090600f01601090048101928215613b8b5791602002820160005b83821115613c0857835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302613ce0565b5b80821115613b975760008155600101613d21565b80356001600160a01b038116811461336057600080fd5b60008060408385031215613d5f57600080fd5b613d6883613d35565b946020939093013593505050565b6001600160e01b0319811681146129e957600080fd5b600060208284031215613d9e57600080fd5b81356127e181613d76565b6000815180845260005b81811015613dcf57602081850181015186830182015201613db3565b81811115613de1576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006127e16020830184613da9565b600060208284031215613e1b57600080fd5b5035919050565b803561ffff8116811461336057600080fd5b600060208284031215613e4657600080fd5b6127e182613e22565b6020808252825182820181905260009190848201906040850190845b81811015613e905783516001600160a01b031683529284019291840191600101613e6b565b50909695505050505050565b60008083601f840112613eae57600080fd5b5081356001600160401b03811115613ec557600080fd5b602083019150836020828501011115613edd57600080fd5b9250929050565b60008083601f840112613ef657600080fd5b5081356001600160401b03811115613f0d57600080fd5b6020830191508360208260051b8501011115613edd57600080fd5b6000806000806000806000806000806101008b8d031215613f4857600080fd5b613f518b613e22565b9950613f5f60208c01613e22565b9850613f6d60408c01613e22565b975060608b01359650613f8260808c01613e22565b9550613f9060a08c01613e22565b945060c08b01356001600160401b0380821115613fac57600080fd5b613fb88e838f01613e9c565b909650945060e08d0135915080821115613fd157600080fd5b50613fde8d828e01613ee4565b915080935050809150509295989b9194979a5092959850565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b038111828210171561403257614032613ff7565b6040525050565b60006001600160401b0382111561405257614052613ff7565b5060051b60200190565b600082601f83011261406d57600080fd5b8135602061407a82614039565b604051614087828261400d565b83815260059390931b85018201928281019150868411156140a757600080fd5b8286015b848110156140c257803583529183019183016140ab565b509695505050505050565b600082601f8301126140de57600080fd5b81356001600160401b038111156140f7576140f7613ff7565b60405161410e601f8301601f19166020018261400d565b81815284602083860101111561412357600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561415857600080fd5b61416186613d35565b945061416f60208701613d35565b935060408601356001600160401b038082111561418b57600080fd5b61419789838a0161405c565b945060608801359150808211156141ad57600080fd5b6141b989838a0161405c565b935060808801359150808211156141cf57600080fd5b506141dc888289016140cd565b9150509295509295909350565b600080600080604085870312156141ff57600080fd5b84356001600160401b038082111561421657600080fd5b61422288838901613ee4565b9096509450602087013591508082111561423b57600080fd5b5061424887828801613ee4565b95989497509550505050565b6000806040838503121561426757600080fd5b82356001600160401b038082111561427e57600080fd5b818501915085601f83011261429257600080fd5b8135602061429f82614039565b6040516142ac828261400d565b83815260059390931b85018201928281019150898411156142cc57600080fd5b948201945b838610156142f1576142e286613d35565b825294820194908201906142d1565b9650508601359250508082111561430757600080fd5b506143148582860161405c565b9150509250929050565b600081518084526020808501945080840160005b8381101561434e57815187529582019590820190600101614332565b509495945050505050565b6020815260006127e1602083018461431e565b6000806040838503121561437f57600080fd5b61438883613e22565b915061439660208401613d35565b90509250929050565b600080604083850312156143b257600080fd5b6143bb83613e22565b915061439660208401613e22565b8035801515811461336057600080fd5b600080600080606085870312156143ef57600080fd5b6143f885613e22565b935060208501356001600160401b0381111561441357600080fd5b61441f87828801613ee4565b90945092506144329050604086016143c9565b905092959194509250565b6000806040838503121561445057600080fd5b61445983613d35565b9150614396602084016143c9565b6000806020838503121561447a57600080fd5b82356001600160401b0381111561449057600080fd5b61449c85828601613ee4565b90969095509350505050565b6000806000604084860312156144bd57600080fd5b6144c684613e22565b925060208401356001600160401b038111156144e157600080fd5b6144ed86828701613ee4565b9497909650939450505050565b6000806040838503121561450d57600080fd5b61438883613d35565b600080600080600060a0868803121561452e57600080fd5b61453786613d35565b945061454560208701613d35565b9350604086013592506060860135915060808601356001600160401b0381111561456e57600080fd5b6141dc888289016140cd565b600080600080600080600080600060e08a8c03121561459857600080fd5b6145a18a613e22565b98506145af60208b01613e22565b975060408a013596506145c460608b01613e22565b95506145d260808b01613e22565b945060a08a01356001600160401b03808211156145ee57600080fd5b6145fa8d838e01613e9c565b909650945060c08c013591508082111561461357600080fd5b506146208c828d01613ee4565b915080935050809150509295985092959850929598565b60006020828403121561464957600080fd5b6127e182613d35565b60006101208b151583528a1515602084015261ffff808b166040850152808a16606085015280891660808501528760a085015280871660c085015280861660e085015250806101008401526146a981840185613da9565b9c9b505050505050505050505050565b6020808252601c908201527f517565727920666f72206e6f6e2d6578697374656e7420746f6b656e00000000604082015260600190565b600181811c9082168061470457607f821691505b6020821081141561095557634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156147655761476561473b565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b8183526000602080850194508260005b8581101561434e5761ffff6147c583613e22565b16875295820195908201906001016147b1565b600061ffff8088168352808716602084015250846040830152608060608301526148066080830184866147a1565b979650505050505050565b600061ffff808316818114156148295761482961473b565b6001019392505050565b6000808335601e1984360301811261484a57600080fd5b8301803591506001600160401b0382111561486457600080fd5b602001915036819003821315613edd57600080fd5b6000821982111561488c5761488c61473b565b500190565b60008160001904831182151516156148ab576148ab61473b565b500290565b600061ffff8216806148c4576148c461473b565b6000190192915050565b6020815260006148e26020830184866147a1565b949350505050565b600061ffff838116908316818110156149055761490561473b565b039392505050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006149af604083018561431e565b82810360208401526149c1818561431e565b95945050505050565b6000602082840312156149dc57600080fd5b5051919050565b6001600160a01b0386811682528516602082015260a060408201819052600090614a0f9083018661431e565b8281036060840152614a21818661431e565b90508281036080840152614a358185613da9565b98975050505050505050565b600060208284031215614a5357600080fd5b81516127e181613d76565b600060033d1115614a775760046000803e5060005160e01c5b90565b600060443d1015614a885790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715614ab757505050505090565b8285019150815181811115614acf5750505050505090565b843d8701016020828501011115614ae95750505050505090565b614af86020828601018761400d565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061480690830184613da9565b600082821015614b9757614b9761473b565b500390565b634e487b7160e01b600052603160045260246000fdfea26469706673582212207307228f28684f889720e009689b2bf57ab9ef6f18d55cacb6cab2a51257496364736f6c63430008090033

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.