ERC-721
Overview
Max Total Supply
2,500 MU
Holders
485
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 MULoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Metaversity
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// \\\\\\\\\\\\\\\\\\\\\\\\\\\\\ // ||||||||||||||||||||||||||||| // | "||,,,,. "|" .,,,,||" ____ // | .d8888b. .d8888b. ( ) _____ // /|\ o8' o '8o o8'o `8o | | ( ) // ||| o8. .8o o8. .8o | | _______ | | // `Y8888P' `Y8888P' | |( )| | // ,||''|| \ / ||''||, | || || | // ,|| ||, \ / .|| ||, | || || | // || || ` || || | || || | // ,|| '|| ||' ||, | || || | _ // || '|| ||' || | || || || \ // || |; ;| || | || || || ' // || ,| |, || | || || || ' // ||, ,|| ||, ,|| | || || || | // ||, ,||| |||, ,|| | || || || | // '||,,||||,...,||||,,|| | || || ||___|_ // `|||..."|||"...|||' (____)(_______)(_____)|____| // |%%%%%%%%WWWW%%%%%%WWWW%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%| // `""""""""""3$F""""#$F""""""""""""""""""""""""""""""""""""""""' // @$.... '$B // d$$$$$$$$$$: // __ ___ __ _ __ // / |/ /__ / /_____ __ _____ __________(_) /___ __ // / /|_/ / _ \/ __/ __ `/ | / / _ \/ ___/ ___/ / __/ / / / // / / / / __/ /_/ /_/ /| |/ / __/ / (__ ) / /_/ /_/ / // /_/ /_/\___/\__/\__,_/ |___/\___/_/ /____/_/\__/\__, / // /____/ // // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; library OpenSeaGasFreeListing { /** @notice Returns whether the operator is an OpenSea proxy for the owner, thus allowing it to list without the token owner paying gas. @dev ERC{721,1155}.isApprovedForAll should be overriden to also check if this function returns true. */ function isApprovedForAll(address owner, address operator) internal view returns (bool) { ProxyRegistry registry; assembly { switch chainid() case 1 { // mainnet registry := 0xa5409ec958c83c3f309868babaca7c86dcb077c1 } case 4 { // rinkeby registry := 0xf57b2c51ded3a29e6891aba85459d600256cf317 } } return address(registry) != address(0) && address(registry.proxies(owner)) == operator; } } contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } contract Metaversity is ERC721A, Ownable { uint256 basePrice = 0.065 ether; uint256 public constant maxSupply = 5555; string private _baseTokenURI; string public provenance; // states 0: closed, 1: benefactors & presale, 3: public uint256 public saleState = 0; bytes32 public benefactorListMerkleRoot; bytes32 public presaleListMerkleRoot; uint public constant BENEFACTORS = 1; uint public constant PRESALE = 2; address private teamAddress = 0x3a21fA2EA2969435A64f6D723b487e2341a29627; mapping (address => uint) public presaleNumMinted; constructor(string memory baseURI) ERC721A("Metaversity", "MU", 25) { setBaseURI(baseURI); } // Setting & Getting Base Price function setPrice(uint256 _price) public onlyOwner { basePrice = _price; } function getPrice() external view returns (uint256) { return basePrice; } // Metadata function setBaseURI(string memory baseURI) public onlyOwner { _baseTokenURI = baseURI; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function setProvenance(string memory _provenance) public onlyOwner { provenance = _provenance; } // Setting & Getting Sale State function getSaleState() external view returns (uint256) { return saleState; } function setSaleState(uint newState) public onlyOwner { require(newState >= 0 && newState <= 2, "Invalid sale state, must be between 0 and 2"); saleState = newState; } // Presale Verification Functions function getPresaleNumMinted(address addr) external view returns (uint) { return presaleNumMinted[addr]; } function verifyMerkle(address addr, bytes32[] calldata proof, uint whitelistType) internal view { require(isOnWhitelist(addr, proof, whitelistType), "User is not on whitelist"); } function isOnWhitelist(address addr, bytes32[] calldata proof, uint whitelistType) public view returns (bool) { bytes32 root; if (whitelistType == BENEFACTORS) { root = benefactorListMerkleRoot; } else if (whitelistType == PRESALE) { root = presaleListMerkleRoot; } else { revert("Invalid whitelistType"); } bytes32 leaf = keccak256(abi.encodePacked(addr)); return MerkleProof.verify(proof, root, leaf); } function setBenefactorListMerkleRoot(bytes32 newMerkle) public onlyOwner { benefactorListMerkleRoot = newMerkle; } function setPresaleListMerkleRoot(bytes32 newMerkle) public onlyOwner { presaleListMerkleRoot = newMerkle; } // Minting Functions function reserve(uint256 numberOfTokens) public onlyOwner { uint256 ts = totalSupply(); require(ts + numberOfTokens <= maxSupply, "Purchase would exceed max tokens"); _safeMint(msg.sender, numberOfTokens); } function earlyMint(uint256 numberOfTokens, bytes32[] calldata merkleProof, uint whitelistType) public payable { require(saleState > 0, "Presale is not open yet"); require(basePrice * numberOfTokens <= msg.value, "Insufficient ETH sent"); require(numberOfTokens <= 25, "Can only mint 25 tokens per transaction"); uint256 ts = totalSupply(); require(ts + numberOfTokens <= maxSupply, "Purchase would exceed max tokens"); // benefactors & presale if (saleState == 1) { presaleNumMinted[msg.sender] = presaleNumMinted[msg.sender] + numberOfTokens; // benefactors if(whitelistType == 1) { require(presaleNumMinted[msg.sender] <= 50, "Cannot mint more than 50 per address in this phase"); verifyMerkle(msg.sender, merkleProof, BENEFACTORS); } // presale else if (whitelistType == 2) { require(presaleNumMinted[msg.sender] <= 4, "Cannot mint more than 4 per address in this phase"); verifyMerkle(msg.sender, merkleProof, PRESALE); } } // public mint else { revert("Presale is over, use the public mint function instead."); } _safeMint(msg.sender, numberOfTokens); } function publicMint(uint256 numberOfTokens) public payable { require(saleState == 2, "Public sale must be active to mint tokens"); require(numberOfTokens <= 6, "Cannot mint more than 6 per transaction"); require(basePrice * numberOfTokens <= msg.value, "Insufficient ETH sent"); uint256 ts = totalSupply(); require(ts + numberOfTokens <= maxSupply, "Purchase would exceed max tokens"); _safeMint(msg.sender, numberOfTokens); } // Withdraw Balance function withdraw() public onlyOwner { uint256 balance = address(this).balance; payable(teamAddress).transfer(balance); } // Open Sea Free Gas function isApprovedForAll(address owner, address operator) public view override returns (bool) { return OpenSeaGasFreeListing.isApprovedForAll(owner, operator) || super.isApprovedForAll(owner, operator); } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require(owner != address(0), "ERC721A: number minted query for the zero address"); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require(isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved"); require(prevOwnership.addr == from, "ERC721A: transfer from incorrect owner"); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership(prevOwnership.addr, prevOwnership.startTimestamp); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > currentIndex - 1) { endIndex = currentIndex - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership(ownership.addr, ownership.startTimestamp); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** @dev Handles the receipt of a single ERC1155 token type. This function is called at the end of a `safeTransferFrom` after the balance has been updated. To accept the transfer, this must return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61, or its own function selector). @param operator The address which initiated the transfer (i.e. msg.sender) @param from The address which previously owned the token @param id The ID of the token being transferred @param value The amount of tokens being transferred @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** @dev Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a `safeBatchTransferFrom` after the balances have been updated. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BENEFACTORS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"benefactorListMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"whitelistType","type":"uint256"}],"name":"earlyMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getPresaleNumMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleState","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"whitelistType","type":"uint256"}],"name":"isOnWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleListMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleNumMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenance","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newMerkle","type":"bytes32"}],"name":"setBenefactorListMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newMerkle","type":"bytes32"}],"name":"setPresaleListMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenance","type":"string"}],"name":"setProvenance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newState","type":"uint256"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a060405260008055600060075566e6ed27d66680006009556000600c55733a21fa2ea2969435a64f6d723b487e2341a29627600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200007f57600080fd5b5060405162005f1038038062005f108339818101604052810190620000a59190620005be565b6040518060400160405280600b81526020017f4d657461766572736974790000000000000000000000000000000000000000008152506040518060400160405280600281526020017f4d5500000000000000000000000000000000000000000000000000000000000081525060196000811162000159576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001509062000696565b60405180910390fd5b82600190805190602001906200017192919062000371565b5081600290805190602001906200018a92919062000371565b508060808181525050505050620001b6620001aa620001ce60201b60201c565b620001d660201b60201c565b620001c7816200029c60201b60201c565b506200078f565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002ac620001ce60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002d26200034760201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16146200032b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003229062000708565b60405180910390fd5b80600a90805190602001906200034392919062000371565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b8280546200037f9062000759565b90600052602060002090601f016020900481019282620003a35760008555620003ef565b82601f10620003be57805160ff1916838001178555620003ef565b82800160010185558215620003ef579182015b82811115620003ee578251825591602001919060010190620003d1565b5b509050620003fe919062000402565b5090565b5b808211156200041d57600081600090555060010162000403565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200048a826200043f565b810181811067ffffffffffffffff82111715620004ac57620004ab62000450565b5b80604052505050565b6000620004c162000421565b9050620004cf82826200047f565b919050565b600067ffffffffffffffff821115620004f257620004f162000450565b5b620004fd826200043f565b9050602081019050919050565b60005b838110156200052a5780820151818401526020810190506200050d565b838111156200053a576000848401525b50505050565b6000620005576200055184620004d4565b620004b5565b9050828152602081018484840111156200057657620005756200043a565b5b620005838482856200050a565b509392505050565b600082601f830112620005a357620005a262000435565b5b8151620005b584826020860162000540565b91505092915050565b600060208284031215620005d757620005d66200042b565b5b600082015167ffffffffffffffff811115620005f857620005f762000430565b5b62000606848285016200058b565b91505092915050565b600082825260208201905092915050565b7f455243373231413a206d61782062617463682073697a65206d7573742062652060008201527f6e6f6e7a65726f00000000000000000000000000000000000000000000000000602082015250565b60006200067e6027836200060f565b91506200068b8262000620565b604082019050919050565b60006020820190508181036000830152620006b1816200066f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000620006f06020836200060f565b9150620006fd82620006b8565b602082019050919050565b600060208201905081810360008301526200072381620006e1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200077257607f821691505b602082108114156200078957620007886200072a565b5b50919050565b608051615757620007b96000396000818161293b0152818161296401526132e601526157576000f3fe6080604052600436106102515760003560e01c80638da5cb5b11610139578063b88d4fde116100b6578063e985e9c51161007a578063e985e9c5146108a8578063ea288042146108e5578063eee2232614610910578063f2fde38b1461094d578063f3e6e69614610976578063ffe630b5146109a157610251565b8063b88d4fde146107c3578063c87b56dd146107ec578063cb83dc5d14610829578063d5abeb0114610852578063d7224ba01461087d57610251565b8063a1e79f8a116100fd578063a1e79f8a146106ed578063a22cb4651461072a578063a322a74a14610753578063a643ed301461076f578063b4cf56481461079857610251565b80638da5cb5b1461061857806391b7f5ed1461064357806395d89b411461066c57806398d5fdca14610697578063a04ef6ae146106c257610251565b80632db11544116101d257806355f804b31161019657806355f804b31461050a578063603f4d52146105335780636352211e1461055e57806370a082311461059b578063715018a6146105d8578063819b25ba146105ef57610251565b80632db11544146104345780632f745c59146104505780633ccfd60b1461048d57806342842e0e146104a45780634f6ccce7146104cd57610251565b80630f7309e8116102195780630f7309e81461034d57806318160ddd146103785780631a58f3ca146103a357806323b872dd146103e057806325bdb2a81461040957610251565b806301ffc9a71461025657806306fdde0314610293578063081812fc146102be578063084c4088146102fb578063095ea7b314610324575b600080fd5b34801561026257600080fd5b5061027d60048036038101906102789190613860565b6109ca565b60405161028a91906138a8565b60405180910390f35b34801561029f57600080fd5b506102a8610b14565b6040516102b5919061395c565b60405180910390f35b3480156102ca57600080fd5b506102e560048036038101906102e091906139b4565b610ba6565b6040516102f29190613a22565b60405180910390f35b34801561030757600080fd5b50610322600480360381019061031d91906139b4565b610c2b565b005b34801561033057600080fd5b5061034b60048036038101906103469190613a69565b610d02565b005b34801561035957600080fd5b50610362610e1b565b60405161036f919061395c565b60405180910390f35b34801561038457600080fd5b5061038d610ea9565b60405161039a9190613ab8565b60405180910390f35b3480156103af57600080fd5b506103ca60048036038101906103c59190613b38565b610eb2565b6040516103d791906138a8565b60405180910390f35b3480156103ec57600080fd5b5061040760048036038101906104029190613bac565b610f9a565b005b34801561041557600080fd5b5061041e610faa565b60405161042b9190613ab8565b60405180910390f35b61044e600480360381019061044991906139b4565b610fb4565b005b34801561045c57600080fd5b5061047760048036038101906104729190613a69565b6110f7565b6040516104849190613ab8565b60405180910390f35b34801561049957600080fd5b506104a26112f5565b005b3480156104b057600080fd5b506104cb60048036038101906104c69190613bac565b6113e2565b005b3480156104d957600080fd5b506104f460048036038101906104ef91906139b4565b611402565b6040516105019190613ab8565b60405180910390f35b34801561051657600080fd5b50610531600480360381019061052c9190613d2f565b611455565b005b34801561053f57600080fd5b506105486114eb565b6040516105559190613ab8565b60405180910390f35b34801561056a57600080fd5b50610585600480360381019061058091906139b4565b6114f1565b6040516105929190613a22565b60405180910390f35b3480156105a757600080fd5b506105c260048036038101906105bd9190613d78565b611507565b6040516105cf9190613ab8565b60405180910390f35b3480156105e457600080fd5b506105ed6115f0565b005b3480156105fb57600080fd5b50610616600480360381019061061191906139b4565b611678565b005b34801561062457600080fd5b5061062d61175e565b60405161063a9190613a22565b60405180910390f35b34801561064f57600080fd5b5061066a600480360381019061066591906139b4565b611788565b005b34801561067857600080fd5b5061068161180e565b60405161068e919061395c565b60405180910390f35b3480156106a357600080fd5b506106ac6118a0565b6040516106b99190613ab8565b60405180910390f35b3480156106ce57600080fd5b506106d76118aa565b6040516106e49190613dbe565b60405180910390f35b3480156106f957600080fd5b50610714600480360381019061070f9190613d78565b6118b0565b6040516107219190613ab8565b60405180910390f35b34801561073657600080fd5b50610751600480360381019061074c9190613e05565b6118c8565b005b61076d60048036038101906107689190613e45565b611a49565b005b34801561077b57600080fd5b5061079660048036038101906107919190613ee5565b611da1565b005b3480156107a457600080fd5b506107ad611e27565b6040516107ba9190613ab8565b60405180910390f35b3480156107cf57600080fd5b506107ea60048036038101906107e59190613fb3565b611e2c565b005b3480156107f857600080fd5b50610813600480360381019061080e91906139b4565b611e88565b604051610820919061395c565b60405180910390f35b34801561083557600080fd5b50610850600480360381019061084b9190613ee5565b611f2f565b005b34801561085e57600080fd5b50610867611fb5565b6040516108749190613ab8565b60405180910390f35b34801561088957600080fd5b50610892611fbb565b60405161089f9190613ab8565b60405180910390f35b3480156108b457600080fd5b506108cf60048036038101906108ca9190614036565b611fc1565b6040516108dc91906138a8565b60405180910390f35b3480156108f157600080fd5b506108fa611fe6565b6040516109079190613ab8565b60405180910390f35b34801561091c57600080fd5b5061093760048036038101906109329190613d78565b611feb565b6040516109449190613ab8565b60405180910390f35b34801561095957600080fd5b50610974600480360381019061096f9190613d78565b612034565b005b34801561098257600080fd5b5061098b61212c565b6040516109989190613dbe565b60405180910390f35b3480156109ad57600080fd5b506109c860048036038101906109c39190613d2f565b612132565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a9557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610afd57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b0d5750610b0c826121c8565b5b9050919050565b606060018054610b23906140a5565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4f906140a5565b8015610b9c5780601f10610b7157610100808354040283529160200191610b9c565b820191906000526020600020905b815481529060010190602001808311610b7f57829003601f168201915b5050505050905090565b6000610bb182612232565b610bf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be790614149565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610c3361223f565b73ffffffffffffffffffffffffffffffffffffffff16610c5161175e565b73ffffffffffffffffffffffffffffffffffffffff1614610ca7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9e906141b5565b60405180910390fd5b60008110158015610cb9575060028111155b610cf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cef90614247565b60405180910390fd5b80600c8190555050565b6000610d0d826114f1565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d75906142d9565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d9d61223f565b73ffffffffffffffffffffffffffffffffffffffff161480610dcc5750610dcb81610dc661223f565b611fc1565b5b610e0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e029061436b565b60405180910390fd5b610e16838383612247565b505050565b600b8054610e28906140a5565b80601f0160208091040260200160405190810160405280929190818152602001828054610e54906140a5565b8015610ea15780601f10610e7657610100808354040283529160200191610ea1565b820191906000526020600020905b815481529060010190602001808311610e8457829003601f168201915b505050505081565b60008054905090565b6000806001831415610ec857600d549050610f17565b6002831415610edb57600e549050610f16565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0d906143d7565b60405180910390fd5b5b600086604051602001610f2a919061443f565b604051602081830303815290604052805190602001209050610f8e868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505083836122f9565b92505050949350505050565b610fa5838383612310565b505050565b6000600c54905090565b6002600c5414610ff9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff0906144cc565b60405180910390fd5b600681111561103d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110349061455e565b60405180910390fd5b348160095461104c91906145ad565b111561108d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108490614653565b60405180910390fd5b6000611097610ea9565b90506115b382826110a89190614673565b11156110e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e090614715565b60405180910390fd5b6110f333836128c9565b5050565b600061110283611507565b8210611143576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113a906147a7565b60405180910390fd5b600061114d610ea9565b905060008060005b838110156112b3576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461124757806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561129f57868414156112905781955050505050506112ef565b838061129b906147c7565b9450505b5080806112ab906147c7565b915050611155565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e690614882565b60405180910390fd5b92915050565b6112fd61223f565b73ffffffffffffffffffffffffffffffffffffffff1661131b61175e565b73ffffffffffffffffffffffffffffffffffffffff1614611371576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611368906141b5565b60405180910390fd5b6000479050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156113de573d6000803e3d6000fd5b5050565b6113fd83838360405180602001604052806000815250611e2c565b505050565b600061140c610ea9565b821061144d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144490614914565b60405180910390fd5b819050919050565b61145d61223f565b73ffffffffffffffffffffffffffffffffffffffff1661147b61175e565b73ffffffffffffffffffffffffffffffffffffffff16146114d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c8906141b5565b60405180910390fd5b80600a90805190602001906114e7929190613717565b5050565b600c5481565b60006114fc826128e7565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611578576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156f906149a6565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b6115f861223f565b73ffffffffffffffffffffffffffffffffffffffff1661161661175e565b73ffffffffffffffffffffffffffffffffffffffff161461166c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611663906141b5565b60405180910390fd5b6116766000612aea565b565b61168061223f565b73ffffffffffffffffffffffffffffffffffffffff1661169e61175e565b73ffffffffffffffffffffffffffffffffffffffff16146116f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116eb906141b5565b60405180910390fd5b60006116fe610ea9565b90506115b3828261170f9190614673565b1115611750576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174790614715565b60405180910390fd5b61175a33836128c9565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61179061223f565b73ffffffffffffffffffffffffffffffffffffffff166117ae61175e565b73ffffffffffffffffffffffffffffffffffffffff1614611804576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fb906141b5565b60405180910390fd5b8060098190555050565b60606002805461181d906140a5565b80601f0160208091040260200160405190810160405280929190818152602001828054611849906140a5565b80156118965780601f1061186b57610100808354040283529160200191611896565b820191906000526020600020905b81548152906001019060200180831161187957829003601f168201915b5050505050905090565b6000600954905090565b600d5481565b60106020528060005260406000206000915090505481565b6118d061223f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561193e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193590614a12565b60405180910390fd5b806006600061194b61223f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166119f861223f565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611a3d91906138a8565b60405180910390a35050565b6000600c5411611a8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8590614a7e565b60405180910390fd5b3484600954611a9d91906145ad565b1115611ade576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad590614653565b60405180910390fd5b6019841115611b22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1990614b10565b60405180910390fd5b6000611b2c610ea9565b90506115b38582611b3d9190614673565b1115611b7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7590614715565b60405180910390fd5b6001600c541415611d555784601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611bd49190614673565b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001821415611cb5576032601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115611ca3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9a90614ba2565b60405180910390fd5b611cb03385856001612bb0565b611d50565b6002821415611d4f576004601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115611d41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3890614c34565b60405180910390fd5b611d4e3385856002612bb0565b5b5b611d90565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8790614cc6565b60405180910390fd5b611d9a33866128c9565b5050505050565b611da961223f565b73ffffffffffffffffffffffffffffffffffffffff16611dc761175e565b73ffffffffffffffffffffffffffffffffffffffff1614611e1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e14906141b5565b60405180910390fd5b80600e8190555050565b600281565b611e37848484612310565b611e4384848484612c01565b611e82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7990614d58565b60405180910390fd5b50505050565b6060611e9382612232565b611ed2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec990614dea565b60405180910390fd5b6000611edc612d98565b90506000815111611efc5760405180602001604052806000815250611f27565b80611f0684612e2a565b604051602001611f17929190614e46565b6040516020818303038152906040525b915050919050565b611f3761223f565b73ffffffffffffffffffffffffffffffffffffffff16611f5561175e565b73ffffffffffffffffffffffffffffffffffffffff1614611fab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa2906141b5565b60405180910390fd5b80600d8190555050565b6115b381565b60075481565b6000611fcd8383612f8b565b80611fde5750611fdd83836130d2565b5b905092915050565b600181565b6000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61203c61223f565b73ffffffffffffffffffffffffffffffffffffffff1661205a61175e565b73ffffffffffffffffffffffffffffffffffffffff16146120b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a7906141b5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612120576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211790614edc565b60405180910390fd5b61212981612aea565b50565b600e5481565b61213a61223f565b73ffffffffffffffffffffffffffffffffffffffff1661215861175e565b73ffffffffffffffffffffffffffffffffffffffff16146121ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121a5906141b5565b60405180910390fd5b80600b90805190602001906121c4929190613717565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000826123068584613166565b1490509392505050565b600061231b826128e7565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff1661234261223f565b73ffffffffffffffffffffffffffffffffffffffff16148061239e575061236761223f565b73ffffffffffffffffffffffffffffffffffffffff1661238684610ba6565b73ffffffffffffffffffffffffffffffffffffffff16145b806123ba57506123b982600001516123b461223f565b611fc1565b5b9050806123fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f390614f6e565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461246e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246590615000565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156124de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d590615092565b60405180910390fd5b6124eb8585856001613219565b6124fb6000848460000151612247565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff1661256991906150ce565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff1661260d9190615102565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555090505060006001846127139190614673565b9050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156128595761278981612232565b15612858576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506003600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46128c1868686600161321f565b505050505050565b6128e3828260405180602001604052806000815250613225565b5050565b6128ef61379d565b6128f882612232565b612937576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292e906151ba565b60405180910390fd5b60007f0000000000000000000000000000000000000000000000000000000000000000831061299b5760017f00000000000000000000000000000000000000000000000000000000000000008461298e91906151da565b6129989190614673565b90505b60008390505b818110612aa9576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612a9557809350505050612ae5565b508080612aa19061520e565b9150506129a1565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612adc906152aa565b60405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612bbc84848484610eb2565b612bfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bf290615316565b60405180910390fd5b50505050565b6000612c228473ffffffffffffffffffffffffffffffffffffffff16613704565b15612d8b578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612c4b61223f565b8786866040518563ffffffff1660e01b8152600401612c6d949392919061538b565b602060405180830381600087803b158015612c8757600080fd5b505af1925050508015612cb857506040513d601f19601f82011682018060405250810190612cb591906153ec565b60015b612d3b573d8060008114612ce8576040519150601f19603f3d011682016040523d82523d6000602084013e612ced565b606091505b50600081511415612d33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2a90614d58565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612d90565b600190505b949350505050565b6060600a8054612da7906140a5565b80601f0160208091040260200160405190810160405280929190818152602001828054612dd3906140a5565b8015612e205780601f10612df557610100808354040283529160200191612e20565b820191906000526020600020905b815481529060010190602001808311612e0357829003601f168201915b5050505050905090565b60606000821415612e72576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612f86565b600082905060005b60008214612ea4578080612e8d906147c7565b915050600a82612e9d9190615448565b9150612e7a565b60008167ffffffffffffffff811115612ec057612ebf613c04565b5b6040519080825280601f01601f191660200182016040528015612ef25781602001600182028036833780820191505090505b5090505b60008514612f7f57600182612f0b91906151da565b9150600a85612f1a9190615479565b6030612f269190614673565b60f81b818381518110612f3c57612f3b6154aa565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612f789190615448565b9450612ef6565b8093505050505b919050565b6000804660018114612fa45760048114612fc057612fd8565b73a5409ec958c83c3f309868babaca7c86dcb077c19150612fd8565b73f57b2c51ded3a29e6891aba85459d600256cf31791505b50600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141580156130c957508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b81526004016130619190613a22565b60206040518083038186803b15801561307957600080fd5b505afa15801561308d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130b19190615517565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60008082905060005b845181101561320e57600085828151811061318d5761318c6154aa565b5b602002602001015190508083116131ce5782816040516020016131b1929190615565565b6040516020818303038152906040528051906020012092506131fa565b80836040516020016131e1929190615565565b6040516020818303038152906040528051906020012092505b508080613206906147c7565b91505061316f565b508091505092915050565b50505050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561329b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161329290615603565b60405180910390fd5b6132a481612232565b156132e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132db9061566f565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000831115613347576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161333e90615701565b60405180910390fd5b6133546000858386613219565b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681525050905060405180604001604052808583600001516134519190615102565b6fffffffffffffffffffffffffffffffff1681526020018583602001516134789190615102565b6fffffffffffffffffffffffffffffffff16815250600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b858110156136e757818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46136876000888488612c01565b6136c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136bd90614d58565b60405180910390fd5b81806136d1906147c7565b92505080806136df906147c7565b915050613616565b50806000819055506136fc600087858861321f565b505050505050565b600080823b905060008111915050919050565b828054613723906140a5565b90600052602060002090601f016020900481019282613745576000855561378c565b82601f1061375e57805160ff191683800117855561378c565b8280016001018555821561378c579182015b8281111561378b578251825591602001919060010190613770565b5b50905061379991906137d7565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b808211156137f05760008160009055506001016137d8565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61383d81613808565b811461384857600080fd5b50565b60008135905061385a81613834565b92915050565b600060208284031215613876576138756137fe565b5b60006138848482850161384b565b91505092915050565b60008115159050919050565b6138a28161388d565b82525050565b60006020820190506138bd6000830184613899565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156138fd5780820151818401526020810190506138e2565b8381111561390c576000848401525b50505050565b6000601f19601f8301169050919050565b600061392e826138c3565b61393881856138ce565b93506139488185602086016138df565b61395181613912565b840191505092915050565b600060208201905081810360008301526139768184613923565b905092915050565b6000819050919050565b6139918161397e565b811461399c57600080fd5b50565b6000813590506139ae81613988565b92915050565b6000602082840312156139ca576139c96137fe565b5b60006139d88482850161399f565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613a0c826139e1565b9050919050565b613a1c81613a01565b82525050565b6000602082019050613a376000830184613a13565b92915050565b613a4681613a01565b8114613a5157600080fd5b50565b600081359050613a6381613a3d565b92915050565b60008060408385031215613a8057613a7f6137fe565b5b6000613a8e85828601613a54565b9250506020613a9f8582860161399f565b9150509250929050565b613ab28161397e565b82525050565b6000602082019050613acd6000830184613aa9565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613af857613af7613ad3565b5b8235905067ffffffffffffffff811115613b1557613b14613ad8565b5b602083019150836020820283011115613b3157613b30613add565b5b9250929050565b60008060008060608587031215613b5257613b516137fe565b5b6000613b6087828801613a54565b945050602085013567ffffffffffffffff811115613b8157613b80613803565b5b613b8d87828801613ae2565b93509350506040613ba08782880161399f565b91505092959194509250565b600080600060608486031215613bc557613bc46137fe565b5b6000613bd386828701613a54565b9350506020613be486828701613a54565b9250506040613bf58682870161399f565b9150509250925092565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613c3c82613912565b810181811067ffffffffffffffff82111715613c5b57613c5a613c04565b5b80604052505050565b6000613c6e6137f4565b9050613c7a8282613c33565b919050565b600067ffffffffffffffff821115613c9a57613c99613c04565b5b613ca382613912565b9050602081019050919050565b82818337600083830152505050565b6000613cd2613ccd84613c7f565b613c64565b905082815260208101848484011115613cee57613ced613bff565b5b613cf9848285613cb0565b509392505050565b600082601f830112613d1657613d15613ad3565b5b8135613d26848260208601613cbf565b91505092915050565b600060208284031215613d4557613d446137fe565b5b600082013567ffffffffffffffff811115613d6357613d62613803565b5b613d6f84828501613d01565b91505092915050565b600060208284031215613d8e57613d8d6137fe565b5b6000613d9c84828501613a54565b91505092915050565b6000819050919050565b613db881613da5565b82525050565b6000602082019050613dd36000830184613daf565b92915050565b613de28161388d565b8114613ded57600080fd5b50565b600081359050613dff81613dd9565b92915050565b60008060408385031215613e1c57613e1b6137fe565b5b6000613e2a85828601613a54565b9250506020613e3b85828601613df0565b9150509250929050565b60008060008060608587031215613e5f57613e5e6137fe565b5b6000613e6d8782880161399f565b945050602085013567ffffffffffffffff811115613e8e57613e8d613803565b5b613e9a87828801613ae2565b93509350506040613ead8782880161399f565b91505092959194509250565b613ec281613da5565b8114613ecd57600080fd5b50565b600081359050613edf81613eb9565b92915050565b600060208284031215613efb57613efa6137fe565b5b6000613f0984828501613ed0565b91505092915050565b600067ffffffffffffffff821115613f2d57613f2c613c04565b5b613f3682613912565b9050602081019050919050565b6000613f56613f5184613f12565b613c64565b905082815260208101848484011115613f7257613f71613bff565b5b613f7d848285613cb0565b509392505050565b600082601f830112613f9a57613f99613ad3565b5b8135613faa848260208601613f43565b91505092915050565b60008060008060808587031215613fcd57613fcc6137fe565b5b6000613fdb87828801613a54565b9450506020613fec87828801613a54565b9350506040613ffd8782880161399f565b925050606085013567ffffffffffffffff81111561401e5761401d613803565b5b61402a87828801613f85565b91505092959194509250565b6000806040838503121561404d5761404c6137fe565b5b600061405b85828601613a54565b925050602061406c85828601613a54565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806140bd57607f821691505b602082108114156140d1576140d0614076565b5b50919050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b6000614133602d836138ce565b915061413e826140d7565b604082019050919050565b6000602082019050818103600083015261416281614126565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061419f6020836138ce565b91506141aa82614169565b602082019050919050565b600060208201905081810360008301526141ce81614192565b9050919050565b7f496e76616c69642073616c652073746174652c206d757374206265206265747760008201527f65656e203020616e642032000000000000000000000000000000000000000000602082015250565b6000614231602b836138ce565b915061423c826141d5565b604082019050919050565b6000602082019050818103600083015261426081614224565b9050919050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b60006142c36022836138ce565b91506142ce82614267565b604082019050919050565b600060208201905081810360008301526142f2816142b6565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b60006143556039836138ce565b9150614360826142f9565b604082019050919050565b6000602082019050818103600083015261438481614348565b9050919050565b7f496e76616c69642077686974656c697374547970650000000000000000000000600082015250565b60006143c16015836138ce565b91506143cc8261438b565b602082019050919050565b600060208201905081810360008301526143f0816143b4565b9050919050565b60008160601b9050919050565b600061440f826143f7565b9050919050565b600061442182614404565b9050919050565b61443961443482613a01565b614416565b82525050565b600061444b8284614428565b60148201915081905092915050565b7f5075626c69632073616c65206d7573742062652061637469766520746f206d6960008201527f6e7420746f6b656e730000000000000000000000000000000000000000000000602082015250565b60006144b66029836138ce565b91506144c18261445a565b604082019050919050565b600060208201905081810360008301526144e5816144a9565b9050919050565b7f43616e6e6f74206d696e74206d6f7265207468616e203620706572207472616e60008201527f73616374696f6e00000000000000000000000000000000000000000000000000602082015250565b60006145486027836138ce565b9150614553826144ec565b604082019050919050565b600060208201905081810360008301526145778161453b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006145b88261397e565b91506145c38361397e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156145fc576145fb61457e565b5b828202905092915050565b7f496e73756666696369656e74204554482073656e740000000000000000000000600082015250565b600061463d6015836138ce565b915061464882614607565b602082019050919050565b6000602082019050818103600083015261466c81614630565b9050919050565b600061467e8261397e565b91506146898361397e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156146be576146bd61457e565b5b828201905092915050565b7f507572636861736520776f756c6420657863656564206d617820746f6b656e73600082015250565b60006146ff6020836138ce565b915061470a826146c9565b602082019050919050565b6000602082019050818103600083015261472e816146f2565b9050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b60006147916022836138ce565b915061479c82614735565b604082019050919050565b600060208201905081810360008301526147c081614784565b9050919050565b60006147d28261397e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156148055761480461457e565b5b600182019050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b600061486c602e836138ce565b915061487782614810565b604082019050919050565b6000602082019050818103600083015261489b8161485f565b9050919050565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b60006148fe6023836138ce565b9150614909826148a2565b604082019050919050565b6000602082019050818103600083015261492d816148f1565b9050919050565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000614990602b836138ce565b915061499b82614934565b604082019050919050565b600060208201905081810360008301526149bf81614983565b9050919050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b60006149fc601a836138ce565b9150614a07826149c6565b602082019050919050565b60006020820190508181036000830152614a2b816149ef565b9050919050565b7f50726573616c65206973206e6f74206f70656e20796574000000000000000000600082015250565b6000614a686017836138ce565b9150614a7382614a32565b602082019050919050565b60006020820190508181036000830152614a9781614a5b565b9050919050565b7f43616e206f6e6c79206d696e7420323520746f6b656e7320706572207472616e60008201527f73616374696f6e00000000000000000000000000000000000000000000000000602082015250565b6000614afa6027836138ce565b9150614b0582614a9e565b604082019050919050565b60006020820190508181036000830152614b2981614aed565b9050919050565b7f43616e6e6f74206d696e74206d6f7265207468616e203530207065722061646460008201527f7265737320696e20746869732070686173650000000000000000000000000000602082015250565b6000614b8c6032836138ce565b9150614b9782614b30565b604082019050919050565b60006020820190508181036000830152614bbb81614b7f565b9050919050565b7f43616e6e6f74206d696e74206d6f7265207468616e203420706572206164647260008201527f65737320696e2074686973207068617365000000000000000000000000000000602082015250565b6000614c1e6031836138ce565b9150614c2982614bc2565b604082019050919050565b60006020820190508181036000830152614c4d81614c11565b9050919050565b7f50726573616c65206973206f7665722c2075736520746865207075626c69632060008201527f6d696e742066756e6374696f6e20696e73746561642e00000000000000000000602082015250565b6000614cb06036836138ce565b9150614cbb82614c54565b604082019050919050565b60006020820190508181036000830152614cdf81614ca3565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b6000614d426033836138ce565b9150614d4d82614ce6565b604082019050919050565b60006020820190508181036000830152614d7181614d35565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614dd4602f836138ce565b9150614ddf82614d78565b604082019050919050565b60006020820190508181036000830152614e0381614dc7565b9050919050565b600081905092915050565b6000614e20826138c3565b614e2a8185614e0a565b9350614e3a8185602086016138df565b80840191505092915050565b6000614e528285614e15565b9150614e5e8284614e15565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614ec66026836138ce565b9150614ed182614e6a565b604082019050919050565b60006020820190508181036000830152614ef581614eb9565b9050919050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000614f586032836138ce565b9150614f6382614efc565b604082019050919050565b60006020820190508181036000830152614f8781614f4b565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b6000614fea6026836138ce565b9150614ff582614f8e565b604082019050919050565b6000602082019050818103600083015261501981614fdd565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061507c6025836138ce565b915061508782615020565b604082019050919050565b600060208201905081810360008301526150ab8161506f565b9050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b60006150d9826150b2565b91506150e4836150b2565b9250828210156150f7576150f661457e565b5b828203905092915050565b600061510d826150b2565b9150615118836150b2565b9250826fffffffffffffffffffffffffffffffff0382111561513d5761513c61457e565b5b828201905092915050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b60006151a4602a836138ce565b91506151af82615148565b604082019050919050565b600060208201905081810360008301526151d381615197565b9050919050565b60006151e58261397e565b91506151f08361397e565b9250828210156152035761520261457e565b5b828203905092915050565b60006152198261397e565b9150600082141561522d5761522c61457e565b5b600182039050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b6000615294602f836138ce565b915061529f82615238565b604082019050919050565b600060208201905081810360008301526152c381615287565b9050919050565b7f55736572206973206e6f74206f6e2077686974656c6973740000000000000000600082015250565b60006153006018836138ce565b915061530b826152ca565b602082019050919050565b6000602082019050818103600083015261532f816152f3565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061535d82615336565b6153678185615341565b93506153778185602086016138df565b61538081613912565b840191505092915050565b60006080820190506153a06000830187613a13565b6153ad6020830186613a13565b6153ba6040830185613aa9565b81810360608301526153cc8184615352565b905095945050505050565b6000815190506153e681613834565b92915050565b600060208284031215615402576154016137fe565b5b6000615410848285016153d7565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006154538261397e565b915061545e8361397e565b92508261546e5761546d615419565b5b828204905092915050565b60006154848261397e565b915061548f8361397e565b92508261549f5761549e615419565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006154e482613a01565b9050919050565b6154f4816154d9565b81146154ff57600080fd5b50565b600081519050615511816154eb565b92915050565b60006020828403121561552d5761552c6137fe565b5b600061553b84828501615502565b91505092915050565b6000819050919050565b61555f61555a82613da5565b615544565b82525050565b6000615571828561554e565b602082019150615581828461554e565b6020820191508190509392505050565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006155ed6021836138ce565b91506155f882615591565b604082019050919050565b6000602082019050818103600083015261561c816155e0565b9050919050565b7f455243373231413a20746f6b656e20616c7265616479206d696e746564000000600082015250565b6000615659601d836138ce565b915061566482615623565b602082019050919050565b600060208201905081810360008301526156888161564c565b9050919050565b7f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008201527f6768000000000000000000000000000000000000000000000000000000000000602082015250565b60006156eb6022836138ce565b91506156f68261568f565b604082019050919050565b6000602082019050818103600083015261571a816156de565b905091905056fea2646970667358221220d3d45110d3b8045d29db07f59687d679afc2acace41371cc1e4e0142b61a708064736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5059747276706d754173374c57485244574b76706157585354694646346b46653639574b5559535a34686f632f00000000000000000000
Deployed Bytecode
0x6080604052600436106102515760003560e01c80638da5cb5b11610139578063b88d4fde116100b6578063e985e9c51161007a578063e985e9c5146108a8578063ea288042146108e5578063eee2232614610910578063f2fde38b1461094d578063f3e6e69614610976578063ffe630b5146109a157610251565b8063b88d4fde146107c3578063c87b56dd146107ec578063cb83dc5d14610829578063d5abeb0114610852578063d7224ba01461087d57610251565b8063a1e79f8a116100fd578063a1e79f8a146106ed578063a22cb4651461072a578063a322a74a14610753578063a643ed301461076f578063b4cf56481461079857610251565b80638da5cb5b1461061857806391b7f5ed1461064357806395d89b411461066c57806398d5fdca14610697578063a04ef6ae146106c257610251565b80632db11544116101d257806355f804b31161019657806355f804b31461050a578063603f4d52146105335780636352211e1461055e57806370a082311461059b578063715018a6146105d8578063819b25ba146105ef57610251565b80632db11544146104345780632f745c59146104505780633ccfd60b1461048d57806342842e0e146104a45780634f6ccce7146104cd57610251565b80630f7309e8116102195780630f7309e81461034d57806318160ddd146103785780631a58f3ca146103a357806323b872dd146103e057806325bdb2a81461040957610251565b806301ffc9a71461025657806306fdde0314610293578063081812fc146102be578063084c4088146102fb578063095ea7b314610324575b600080fd5b34801561026257600080fd5b5061027d60048036038101906102789190613860565b6109ca565b60405161028a91906138a8565b60405180910390f35b34801561029f57600080fd5b506102a8610b14565b6040516102b5919061395c565b60405180910390f35b3480156102ca57600080fd5b506102e560048036038101906102e091906139b4565b610ba6565b6040516102f29190613a22565b60405180910390f35b34801561030757600080fd5b50610322600480360381019061031d91906139b4565b610c2b565b005b34801561033057600080fd5b5061034b60048036038101906103469190613a69565b610d02565b005b34801561035957600080fd5b50610362610e1b565b60405161036f919061395c565b60405180910390f35b34801561038457600080fd5b5061038d610ea9565b60405161039a9190613ab8565b60405180910390f35b3480156103af57600080fd5b506103ca60048036038101906103c59190613b38565b610eb2565b6040516103d791906138a8565b60405180910390f35b3480156103ec57600080fd5b5061040760048036038101906104029190613bac565b610f9a565b005b34801561041557600080fd5b5061041e610faa565b60405161042b9190613ab8565b60405180910390f35b61044e600480360381019061044991906139b4565b610fb4565b005b34801561045c57600080fd5b5061047760048036038101906104729190613a69565b6110f7565b6040516104849190613ab8565b60405180910390f35b34801561049957600080fd5b506104a26112f5565b005b3480156104b057600080fd5b506104cb60048036038101906104c69190613bac565b6113e2565b005b3480156104d957600080fd5b506104f460048036038101906104ef91906139b4565b611402565b6040516105019190613ab8565b60405180910390f35b34801561051657600080fd5b50610531600480360381019061052c9190613d2f565b611455565b005b34801561053f57600080fd5b506105486114eb565b6040516105559190613ab8565b60405180910390f35b34801561056a57600080fd5b50610585600480360381019061058091906139b4565b6114f1565b6040516105929190613a22565b60405180910390f35b3480156105a757600080fd5b506105c260048036038101906105bd9190613d78565b611507565b6040516105cf9190613ab8565b60405180910390f35b3480156105e457600080fd5b506105ed6115f0565b005b3480156105fb57600080fd5b50610616600480360381019061061191906139b4565b611678565b005b34801561062457600080fd5b5061062d61175e565b60405161063a9190613a22565b60405180910390f35b34801561064f57600080fd5b5061066a600480360381019061066591906139b4565b611788565b005b34801561067857600080fd5b5061068161180e565b60405161068e919061395c565b60405180910390f35b3480156106a357600080fd5b506106ac6118a0565b6040516106b99190613ab8565b60405180910390f35b3480156106ce57600080fd5b506106d76118aa565b6040516106e49190613dbe565b60405180910390f35b3480156106f957600080fd5b50610714600480360381019061070f9190613d78565b6118b0565b6040516107219190613ab8565b60405180910390f35b34801561073657600080fd5b50610751600480360381019061074c9190613e05565b6118c8565b005b61076d60048036038101906107689190613e45565b611a49565b005b34801561077b57600080fd5b5061079660048036038101906107919190613ee5565b611da1565b005b3480156107a457600080fd5b506107ad611e27565b6040516107ba9190613ab8565b60405180910390f35b3480156107cf57600080fd5b506107ea60048036038101906107e59190613fb3565b611e2c565b005b3480156107f857600080fd5b50610813600480360381019061080e91906139b4565b611e88565b604051610820919061395c565b60405180910390f35b34801561083557600080fd5b50610850600480360381019061084b9190613ee5565b611f2f565b005b34801561085e57600080fd5b50610867611fb5565b6040516108749190613ab8565b60405180910390f35b34801561088957600080fd5b50610892611fbb565b60405161089f9190613ab8565b60405180910390f35b3480156108b457600080fd5b506108cf60048036038101906108ca9190614036565b611fc1565b6040516108dc91906138a8565b60405180910390f35b3480156108f157600080fd5b506108fa611fe6565b6040516109079190613ab8565b60405180910390f35b34801561091c57600080fd5b5061093760048036038101906109329190613d78565b611feb565b6040516109449190613ab8565b60405180910390f35b34801561095957600080fd5b50610974600480360381019061096f9190613d78565b612034565b005b34801561098257600080fd5b5061098b61212c565b6040516109989190613dbe565b60405180910390f35b3480156109ad57600080fd5b506109c860048036038101906109c39190613d2f565b612132565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a9557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610afd57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b0d5750610b0c826121c8565b5b9050919050565b606060018054610b23906140a5565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4f906140a5565b8015610b9c5780601f10610b7157610100808354040283529160200191610b9c565b820191906000526020600020905b815481529060010190602001808311610b7f57829003601f168201915b5050505050905090565b6000610bb182612232565b610bf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be790614149565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610c3361223f565b73ffffffffffffffffffffffffffffffffffffffff16610c5161175e565b73ffffffffffffffffffffffffffffffffffffffff1614610ca7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9e906141b5565b60405180910390fd5b60008110158015610cb9575060028111155b610cf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cef90614247565b60405180910390fd5b80600c8190555050565b6000610d0d826114f1565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d75906142d9565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d9d61223f565b73ffffffffffffffffffffffffffffffffffffffff161480610dcc5750610dcb81610dc661223f565b611fc1565b5b610e0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e029061436b565b60405180910390fd5b610e16838383612247565b505050565b600b8054610e28906140a5565b80601f0160208091040260200160405190810160405280929190818152602001828054610e54906140a5565b8015610ea15780601f10610e7657610100808354040283529160200191610ea1565b820191906000526020600020905b815481529060010190602001808311610e8457829003601f168201915b505050505081565b60008054905090565b6000806001831415610ec857600d549050610f17565b6002831415610edb57600e549050610f16565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0d906143d7565b60405180910390fd5b5b600086604051602001610f2a919061443f565b604051602081830303815290604052805190602001209050610f8e868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505083836122f9565b92505050949350505050565b610fa5838383612310565b505050565b6000600c54905090565b6002600c5414610ff9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff0906144cc565b60405180910390fd5b600681111561103d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110349061455e565b60405180910390fd5b348160095461104c91906145ad565b111561108d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108490614653565b60405180910390fd5b6000611097610ea9565b90506115b382826110a89190614673565b11156110e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e090614715565b60405180910390fd5b6110f333836128c9565b5050565b600061110283611507565b8210611143576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113a906147a7565b60405180910390fd5b600061114d610ea9565b905060008060005b838110156112b3576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461124757806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561129f57868414156112905781955050505050506112ef565b838061129b906147c7565b9450505b5080806112ab906147c7565b915050611155565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e690614882565b60405180910390fd5b92915050565b6112fd61223f565b73ffffffffffffffffffffffffffffffffffffffff1661131b61175e565b73ffffffffffffffffffffffffffffffffffffffff1614611371576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611368906141b5565b60405180910390fd5b6000479050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156113de573d6000803e3d6000fd5b5050565b6113fd83838360405180602001604052806000815250611e2c565b505050565b600061140c610ea9565b821061144d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144490614914565b60405180910390fd5b819050919050565b61145d61223f565b73ffffffffffffffffffffffffffffffffffffffff1661147b61175e565b73ffffffffffffffffffffffffffffffffffffffff16146114d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c8906141b5565b60405180910390fd5b80600a90805190602001906114e7929190613717565b5050565b600c5481565b60006114fc826128e7565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611578576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156f906149a6565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b6115f861223f565b73ffffffffffffffffffffffffffffffffffffffff1661161661175e565b73ffffffffffffffffffffffffffffffffffffffff161461166c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611663906141b5565b60405180910390fd5b6116766000612aea565b565b61168061223f565b73ffffffffffffffffffffffffffffffffffffffff1661169e61175e565b73ffffffffffffffffffffffffffffffffffffffff16146116f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116eb906141b5565b60405180910390fd5b60006116fe610ea9565b90506115b3828261170f9190614673565b1115611750576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174790614715565b60405180910390fd5b61175a33836128c9565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61179061223f565b73ffffffffffffffffffffffffffffffffffffffff166117ae61175e565b73ffffffffffffffffffffffffffffffffffffffff1614611804576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fb906141b5565b60405180910390fd5b8060098190555050565b60606002805461181d906140a5565b80601f0160208091040260200160405190810160405280929190818152602001828054611849906140a5565b80156118965780601f1061186b57610100808354040283529160200191611896565b820191906000526020600020905b81548152906001019060200180831161187957829003601f168201915b5050505050905090565b6000600954905090565b600d5481565b60106020528060005260406000206000915090505481565b6118d061223f565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561193e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193590614a12565b60405180910390fd5b806006600061194b61223f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166119f861223f565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611a3d91906138a8565b60405180910390a35050565b6000600c5411611a8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8590614a7e565b60405180910390fd5b3484600954611a9d91906145ad565b1115611ade576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad590614653565b60405180910390fd5b6019841115611b22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1990614b10565b60405180910390fd5b6000611b2c610ea9565b90506115b38582611b3d9190614673565b1115611b7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7590614715565b60405180910390fd5b6001600c541415611d555784601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611bd49190614673565b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001821415611cb5576032601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115611ca3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9a90614ba2565b60405180910390fd5b611cb03385856001612bb0565b611d50565b6002821415611d4f576004601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115611d41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3890614c34565b60405180910390fd5b611d4e3385856002612bb0565b5b5b611d90565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8790614cc6565b60405180910390fd5b611d9a33866128c9565b5050505050565b611da961223f565b73ffffffffffffffffffffffffffffffffffffffff16611dc761175e565b73ffffffffffffffffffffffffffffffffffffffff1614611e1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e14906141b5565b60405180910390fd5b80600e8190555050565b600281565b611e37848484612310565b611e4384848484612c01565b611e82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7990614d58565b60405180910390fd5b50505050565b6060611e9382612232565b611ed2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec990614dea565b60405180910390fd5b6000611edc612d98565b90506000815111611efc5760405180602001604052806000815250611f27565b80611f0684612e2a565b604051602001611f17929190614e46565b6040516020818303038152906040525b915050919050565b611f3761223f565b73ffffffffffffffffffffffffffffffffffffffff16611f5561175e565b73ffffffffffffffffffffffffffffffffffffffff1614611fab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa2906141b5565b60405180910390fd5b80600d8190555050565b6115b381565b60075481565b6000611fcd8383612f8b565b80611fde5750611fdd83836130d2565b5b905092915050565b600181565b6000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61203c61223f565b73ffffffffffffffffffffffffffffffffffffffff1661205a61175e565b73ffffffffffffffffffffffffffffffffffffffff16146120b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a7906141b5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612120576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211790614edc565b60405180910390fd5b61212981612aea565b50565b600e5481565b61213a61223f565b73ffffffffffffffffffffffffffffffffffffffff1661215861175e565b73ffffffffffffffffffffffffffffffffffffffff16146121ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121a5906141b5565b60405180910390fd5b80600b90805190602001906121c4929190613717565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000826123068584613166565b1490509392505050565b600061231b826128e7565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff1661234261223f565b73ffffffffffffffffffffffffffffffffffffffff16148061239e575061236761223f565b73ffffffffffffffffffffffffffffffffffffffff1661238684610ba6565b73ffffffffffffffffffffffffffffffffffffffff16145b806123ba57506123b982600001516123b461223f565b611fc1565b5b9050806123fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f390614f6e565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461246e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246590615000565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156124de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d590615092565b60405180910390fd5b6124eb8585856001613219565b6124fb6000848460000151612247565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff1661256991906150ce565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff1661260d9190615102565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555090505060006001846127139190614673565b9050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156128595761278981612232565b15612858576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506003600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46128c1868686600161321f565b505050505050565b6128e3828260405180602001604052806000815250613225565b5050565b6128ef61379d565b6128f882612232565b612937576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292e906151ba565b60405180910390fd5b60007f0000000000000000000000000000000000000000000000000000000000000019831061299b5760017f00000000000000000000000000000000000000000000000000000000000000198461298e91906151da565b6129989190614673565b90505b60008390505b818110612aa9576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612a9557809350505050612ae5565b508080612aa19061520e565b9150506129a1565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612adc906152aa565b60405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612bbc84848484610eb2565b612bfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bf290615316565b60405180910390fd5b50505050565b6000612c228473ffffffffffffffffffffffffffffffffffffffff16613704565b15612d8b578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612c4b61223f565b8786866040518563ffffffff1660e01b8152600401612c6d949392919061538b565b602060405180830381600087803b158015612c8757600080fd5b505af1925050508015612cb857506040513d601f19601f82011682018060405250810190612cb591906153ec565b60015b612d3b573d8060008114612ce8576040519150601f19603f3d011682016040523d82523d6000602084013e612ced565b606091505b50600081511415612d33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2a90614d58565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612d90565b600190505b949350505050565b6060600a8054612da7906140a5565b80601f0160208091040260200160405190810160405280929190818152602001828054612dd3906140a5565b8015612e205780601f10612df557610100808354040283529160200191612e20565b820191906000526020600020905b815481529060010190602001808311612e0357829003601f168201915b5050505050905090565b60606000821415612e72576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612f86565b600082905060005b60008214612ea4578080612e8d906147c7565b915050600a82612e9d9190615448565b9150612e7a565b60008167ffffffffffffffff811115612ec057612ebf613c04565b5b6040519080825280601f01601f191660200182016040528015612ef25781602001600182028036833780820191505090505b5090505b60008514612f7f57600182612f0b91906151da565b9150600a85612f1a9190615479565b6030612f269190614673565b60f81b818381518110612f3c57612f3b6154aa565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612f789190615448565b9450612ef6565b8093505050505b919050565b6000804660018114612fa45760048114612fc057612fd8565b73a5409ec958c83c3f309868babaca7c86dcb077c19150612fd8565b73f57b2c51ded3a29e6891aba85459d600256cf31791505b50600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141580156130c957508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b81526004016130619190613a22565b60206040518083038186803b15801561307957600080fd5b505afa15801561308d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130b19190615517565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60008082905060005b845181101561320e57600085828151811061318d5761318c6154aa565b5b602002602001015190508083116131ce5782816040516020016131b1929190615565565b6040516020818303038152906040528051906020012092506131fa565b80836040516020016131e1929190615565565b6040516020818303038152906040528051906020012092505b508080613206906147c7565b91505061316f565b508091505092915050565b50505050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561329b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161329290615603565b60405180910390fd5b6132a481612232565b156132e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132db9061566f565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000019831115613347576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161333e90615701565b60405180910390fd5b6133546000858386613219565b6000600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681525050905060405180604001604052808583600001516134519190615102565b6fffffffffffffffffffffffffffffffff1681526020018583602001516134789190615102565b6fffffffffffffffffffffffffffffffff16815250600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506003600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b858110156136e757818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46136876000888488612c01565b6136c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136bd90614d58565b60405180910390fd5b81806136d1906147c7565b92505080806136df906147c7565b915050613616565b50806000819055506136fc600087858861321f565b505050505050565b600080823b905060008111915050919050565b828054613723906140a5565b90600052602060002090601f016020900481019282613745576000855561378c565b82601f1061375e57805160ff191683800117855561378c565b8280016001018555821561378c579182015b8281111561378b578251825591602001919060010190613770565b5b50905061379991906137d7565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b808211156137f05760008160009055506001016137d8565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61383d81613808565b811461384857600080fd5b50565b60008135905061385a81613834565b92915050565b600060208284031215613876576138756137fe565b5b60006138848482850161384b565b91505092915050565b60008115159050919050565b6138a28161388d565b82525050565b60006020820190506138bd6000830184613899565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156138fd5780820151818401526020810190506138e2565b8381111561390c576000848401525b50505050565b6000601f19601f8301169050919050565b600061392e826138c3565b61393881856138ce565b93506139488185602086016138df565b61395181613912565b840191505092915050565b600060208201905081810360008301526139768184613923565b905092915050565b6000819050919050565b6139918161397e565b811461399c57600080fd5b50565b6000813590506139ae81613988565b92915050565b6000602082840312156139ca576139c96137fe565b5b60006139d88482850161399f565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613a0c826139e1565b9050919050565b613a1c81613a01565b82525050565b6000602082019050613a376000830184613a13565b92915050565b613a4681613a01565b8114613a5157600080fd5b50565b600081359050613a6381613a3d565b92915050565b60008060408385031215613a8057613a7f6137fe565b5b6000613a8e85828601613a54565b9250506020613a9f8582860161399f565b9150509250929050565b613ab28161397e565b82525050565b6000602082019050613acd6000830184613aa9565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613af857613af7613ad3565b5b8235905067ffffffffffffffff811115613b1557613b14613ad8565b5b602083019150836020820283011115613b3157613b30613add565b5b9250929050565b60008060008060608587031215613b5257613b516137fe565b5b6000613b6087828801613a54565b945050602085013567ffffffffffffffff811115613b8157613b80613803565b5b613b8d87828801613ae2565b93509350506040613ba08782880161399f565b91505092959194509250565b600080600060608486031215613bc557613bc46137fe565b5b6000613bd386828701613a54565b9350506020613be486828701613a54565b9250506040613bf58682870161399f565b9150509250925092565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613c3c82613912565b810181811067ffffffffffffffff82111715613c5b57613c5a613c04565b5b80604052505050565b6000613c6e6137f4565b9050613c7a8282613c33565b919050565b600067ffffffffffffffff821115613c9a57613c99613c04565b5b613ca382613912565b9050602081019050919050565b82818337600083830152505050565b6000613cd2613ccd84613c7f565b613c64565b905082815260208101848484011115613cee57613ced613bff565b5b613cf9848285613cb0565b509392505050565b600082601f830112613d1657613d15613ad3565b5b8135613d26848260208601613cbf565b91505092915050565b600060208284031215613d4557613d446137fe565b5b600082013567ffffffffffffffff811115613d6357613d62613803565b5b613d6f84828501613d01565b91505092915050565b600060208284031215613d8e57613d8d6137fe565b5b6000613d9c84828501613a54565b91505092915050565b6000819050919050565b613db881613da5565b82525050565b6000602082019050613dd36000830184613daf565b92915050565b613de28161388d565b8114613ded57600080fd5b50565b600081359050613dff81613dd9565b92915050565b60008060408385031215613e1c57613e1b6137fe565b5b6000613e2a85828601613a54565b9250506020613e3b85828601613df0565b9150509250929050565b60008060008060608587031215613e5f57613e5e6137fe565b5b6000613e6d8782880161399f565b945050602085013567ffffffffffffffff811115613e8e57613e8d613803565b5b613e9a87828801613ae2565b93509350506040613ead8782880161399f565b91505092959194509250565b613ec281613da5565b8114613ecd57600080fd5b50565b600081359050613edf81613eb9565b92915050565b600060208284031215613efb57613efa6137fe565b5b6000613f0984828501613ed0565b91505092915050565b600067ffffffffffffffff821115613f2d57613f2c613c04565b5b613f3682613912565b9050602081019050919050565b6000613f56613f5184613f12565b613c64565b905082815260208101848484011115613f7257613f71613bff565b5b613f7d848285613cb0565b509392505050565b600082601f830112613f9a57613f99613ad3565b5b8135613faa848260208601613f43565b91505092915050565b60008060008060808587031215613fcd57613fcc6137fe565b5b6000613fdb87828801613a54565b9450506020613fec87828801613a54565b9350506040613ffd8782880161399f565b925050606085013567ffffffffffffffff81111561401e5761401d613803565b5b61402a87828801613f85565b91505092959194509250565b6000806040838503121561404d5761404c6137fe565b5b600061405b85828601613a54565b925050602061406c85828601613a54565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806140bd57607f821691505b602082108114156140d1576140d0614076565b5b50919050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b6000614133602d836138ce565b915061413e826140d7565b604082019050919050565b6000602082019050818103600083015261416281614126565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061419f6020836138ce565b91506141aa82614169565b602082019050919050565b600060208201905081810360008301526141ce81614192565b9050919050565b7f496e76616c69642073616c652073746174652c206d757374206265206265747760008201527f65656e203020616e642032000000000000000000000000000000000000000000602082015250565b6000614231602b836138ce565b915061423c826141d5565b604082019050919050565b6000602082019050818103600083015261426081614224565b9050919050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b60006142c36022836138ce565b91506142ce82614267565b604082019050919050565b600060208201905081810360008301526142f2816142b6565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b60006143556039836138ce565b9150614360826142f9565b604082019050919050565b6000602082019050818103600083015261438481614348565b9050919050565b7f496e76616c69642077686974656c697374547970650000000000000000000000600082015250565b60006143c16015836138ce565b91506143cc8261438b565b602082019050919050565b600060208201905081810360008301526143f0816143b4565b9050919050565b60008160601b9050919050565b600061440f826143f7565b9050919050565b600061442182614404565b9050919050565b61443961443482613a01565b614416565b82525050565b600061444b8284614428565b60148201915081905092915050565b7f5075626c69632073616c65206d7573742062652061637469766520746f206d6960008201527f6e7420746f6b656e730000000000000000000000000000000000000000000000602082015250565b60006144b66029836138ce565b91506144c18261445a565b604082019050919050565b600060208201905081810360008301526144e5816144a9565b9050919050565b7f43616e6e6f74206d696e74206d6f7265207468616e203620706572207472616e60008201527f73616374696f6e00000000000000000000000000000000000000000000000000602082015250565b60006145486027836138ce565b9150614553826144ec565b604082019050919050565b600060208201905081810360008301526145778161453b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006145b88261397e565b91506145c38361397e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156145fc576145fb61457e565b5b828202905092915050565b7f496e73756666696369656e74204554482073656e740000000000000000000000600082015250565b600061463d6015836138ce565b915061464882614607565b602082019050919050565b6000602082019050818103600083015261466c81614630565b9050919050565b600061467e8261397e565b91506146898361397e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156146be576146bd61457e565b5b828201905092915050565b7f507572636861736520776f756c6420657863656564206d617820746f6b656e73600082015250565b60006146ff6020836138ce565b915061470a826146c9565b602082019050919050565b6000602082019050818103600083015261472e816146f2565b9050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b60006147916022836138ce565b915061479c82614735565b604082019050919050565b600060208201905081810360008301526147c081614784565b9050919050565b60006147d28261397e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156148055761480461457e565b5b600182019050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b600061486c602e836138ce565b915061487782614810565b604082019050919050565b6000602082019050818103600083015261489b8161485f565b9050919050565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b60006148fe6023836138ce565b9150614909826148a2565b604082019050919050565b6000602082019050818103600083015261492d816148f1565b9050919050565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000614990602b836138ce565b915061499b82614934565b604082019050919050565b600060208201905081810360008301526149bf81614983565b9050919050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b60006149fc601a836138ce565b9150614a07826149c6565b602082019050919050565b60006020820190508181036000830152614a2b816149ef565b9050919050565b7f50726573616c65206973206e6f74206f70656e20796574000000000000000000600082015250565b6000614a686017836138ce565b9150614a7382614a32565b602082019050919050565b60006020820190508181036000830152614a9781614a5b565b9050919050565b7f43616e206f6e6c79206d696e7420323520746f6b656e7320706572207472616e60008201527f73616374696f6e00000000000000000000000000000000000000000000000000602082015250565b6000614afa6027836138ce565b9150614b0582614a9e565b604082019050919050565b60006020820190508181036000830152614b2981614aed565b9050919050565b7f43616e6e6f74206d696e74206d6f7265207468616e203530207065722061646460008201527f7265737320696e20746869732070686173650000000000000000000000000000602082015250565b6000614b8c6032836138ce565b9150614b9782614b30565b604082019050919050565b60006020820190508181036000830152614bbb81614b7f565b9050919050565b7f43616e6e6f74206d696e74206d6f7265207468616e203420706572206164647260008201527f65737320696e2074686973207068617365000000000000000000000000000000602082015250565b6000614c1e6031836138ce565b9150614c2982614bc2565b604082019050919050565b60006020820190508181036000830152614c4d81614c11565b9050919050565b7f50726573616c65206973206f7665722c2075736520746865207075626c69632060008201527f6d696e742066756e6374696f6e20696e73746561642e00000000000000000000602082015250565b6000614cb06036836138ce565b9150614cbb82614c54565b604082019050919050565b60006020820190508181036000830152614cdf81614ca3565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b6000614d426033836138ce565b9150614d4d82614ce6565b604082019050919050565b60006020820190508181036000830152614d7181614d35565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614dd4602f836138ce565b9150614ddf82614d78565b604082019050919050565b60006020820190508181036000830152614e0381614dc7565b9050919050565b600081905092915050565b6000614e20826138c3565b614e2a8185614e0a565b9350614e3a8185602086016138df565b80840191505092915050565b6000614e528285614e15565b9150614e5e8284614e15565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614ec66026836138ce565b9150614ed182614e6a565b604082019050919050565b60006020820190508181036000830152614ef581614eb9565b9050919050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000614f586032836138ce565b9150614f6382614efc565b604082019050919050565b60006020820190508181036000830152614f8781614f4b565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b6000614fea6026836138ce565b9150614ff582614f8e565b604082019050919050565b6000602082019050818103600083015261501981614fdd565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061507c6025836138ce565b915061508782615020565b604082019050919050565b600060208201905081810360008301526150ab8161506f565b9050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b60006150d9826150b2565b91506150e4836150b2565b9250828210156150f7576150f661457e565b5b828203905092915050565b600061510d826150b2565b9150615118836150b2565b9250826fffffffffffffffffffffffffffffffff0382111561513d5761513c61457e565b5b828201905092915050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b60006151a4602a836138ce565b91506151af82615148565b604082019050919050565b600060208201905081810360008301526151d381615197565b9050919050565b60006151e58261397e565b91506151f08361397e565b9250828210156152035761520261457e565b5b828203905092915050565b60006152198261397e565b9150600082141561522d5761522c61457e565b5b600182039050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b6000615294602f836138ce565b915061529f82615238565b604082019050919050565b600060208201905081810360008301526152c381615287565b9050919050565b7f55736572206973206e6f74206f6e2077686974656c6973740000000000000000600082015250565b60006153006018836138ce565b915061530b826152ca565b602082019050919050565b6000602082019050818103600083015261532f816152f3565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061535d82615336565b6153678185615341565b93506153778185602086016138df565b61538081613912565b840191505092915050565b60006080820190506153a06000830187613a13565b6153ad6020830186613a13565b6153ba6040830185613aa9565b81810360608301526153cc8184615352565b905095945050505050565b6000815190506153e681613834565b92915050565b600060208284031215615402576154016137fe565b5b6000615410848285016153d7565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006154538261397e565b915061545e8361397e565b92508261546e5761546d615419565b5b828204905092915050565b60006154848261397e565b915061548f8361397e565b92508261549f5761549e615419565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006154e482613a01565b9050919050565b6154f4816154d9565b81146154ff57600080fd5b50565b600081519050615511816154eb565b92915050565b60006020828403121561552d5761552c6137fe565b5b600061553b84828501615502565b91505092915050565b6000819050919050565b61555f61555a82613da5565b615544565b82525050565b6000615571828561554e565b602082019150615581828461554e565b6020820191508190509392505050565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006155ed6021836138ce565b91506155f882615591565b604082019050919050565b6000602082019050818103600083015261561c816155e0565b9050919050565b7f455243373231413a20746f6b656e20616c7265616479206d696e746564000000600082015250565b6000615659601d836138ce565b915061566482615623565b602082019050919050565b600060208201905081810360008301526156888161564c565b9050919050565b7f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008201527f6768000000000000000000000000000000000000000000000000000000000000602082015250565b60006156eb6022836138ce565b91506156f68261568f565b604082019050919050565b6000602082019050818103600083015261571a816156de565b905091905056fea2646970667358221220d3d45110d3b8045d29db07f59687d679afc2acace41371cc1e4e0142b61a708064736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5059747276706d754173374c57485244574b76706157585354694646346b46653639574b5559535a34686f632f00000000000000000000
-----Decoded View---------------
Arg [0] : baseURI (string): ipfs://QmPYtrvpmuAs7LWHRDWKvpaWXSTiFF4kFe69WKUYSZ4hoc/
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [2] : 697066733a2f2f516d5059747276706d754173374c57485244574b7670615758
Arg [3] : 5354694646346b46653639574b5559535a34686f632f00000000000000000000
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.