Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
5,000 TT
Holders
2,692
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 TTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TheToxics
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol'; pragma solidity ^0.8.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 internal currentIndex = 1; // 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) internal _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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual 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; address currOwnershipAddr; // Counter overflow is impossible as the loop breaks when uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; 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); } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), 'ERC721A: owner query for nonexistent token'); unchecked { for (uint256 curr = tokenId; curr >= 0; 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(), '.json')) : ''; } /** * @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 Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = currentIndex; require(to != address(0), 'ERC721A: mint to the zero address'); require(quantity != 0, 'ERC721A: quantity must be greater than 0'); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1 // updatedIndex overflows if currentIndex + quantity > 1.56e77 (2**256) - 1 unchecked { _addressData[to].balance += uint128(quantity); _addressData[to].numberMinted += uint128(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; for (uint256 i; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); if (safe) { 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); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = 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].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = 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); } /** * @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 {} } pragma solidity >=0.8.0 <0.9.0; contract TheToxics is ERC721A, Ownable, ReentrancyGuard { using Strings for uint256; // ================== VARAIBLES ======================= bytes32 public merkleRootWl; bool public revealed = false; bool public paused = true; string private uriPrefix = ''; string private uriSuffix = '.json'; string private hiddenMetadataUri; uint256 public wlPrice = 0.005 ether; uint256 public salePrice = 0.005 ether; uint256 public maxFree = 1; uint256 public maxPerTx = 10; uint256 public maxSupply = 3333; uint256 public WL_MINTED = 0; uint256 public PL_MINTED = 0; mapping(address => uint256) public PL_MINT_COUNT; mapping(address => uint256) public WL_MINT_COUNT; mapping(address => bool) public WL_CLAIMED; // ================== CONTRUCTOR ======================= constructor() ERC721A('TheToxics', 'TT') { setHiddenMetadataUri('ipfs://__CID__/hidden.json'); } // ================== MINT FUNCTIONS ======================= /** * @notice Public Mint */ function publicMint(uint256 _quantity) external payable { // Normal requirements require(!paused, 'The contract is paused!'); require(_quantity > 0 && _quantity <= maxPerTx, 'Invalid mint amount!'); require(totalSupply() + _quantity <= maxSupply, 'Sold out!'); if (msg.sender != owner()) { require(msg.value >= salePrice * _quantity, 'Please send the exact amount.'); } // Mint _safeMint(msg.sender, _quantity); // Mapping update PL_MINT_COUNT[msg.sender] += _quantity; PL_MINTED += _quantity; } /** * @notice Whitelist Mint */ function whitelistMint(uint256 _quantity, bytes32[] calldata _merkleProof) external payable { // Verify wl requirements require(!paused, 'The contract is paused!'); require(isWhitelist(_merkleProof), 'Address is not whitelisted!'); // Normal requirements require(_quantity > 0 && _quantity <= maxPerTx, 'Invalid mint amount!'); require(totalSupply() + _quantity <= maxSupply, 'Sold out!'); require(WL_MINTED + _quantity <= maxSupply, 'No more!'); if (!WL_CLAIMED[msg.sender]) { if (_quantity <= maxFree) { require(msg.value >= 0, 'Please send the exact amount.'); } else { require(msg.value >= (_quantity - maxFree) * wlPrice, 'Please send the exact amount.'); } WL_CLAIMED[msg.sender] = true; } else { require(msg.value >= wlPrice * _quantity, 'Please send the exact amount.'); } // Mint _safeMint(msg.sender, _quantity); // Mapping update WL_MINT_COUNT[msg.sender] += _quantity; WL_MINTED += _quantity; } /** * @notice Team Mint */ function teamMint(uint256 _quantity) external onlyOwner { require(_quantity > 0, 'Minimum 1 NFT has to be minted per transaction'); require(totalSupply() + _quantity <= maxSupply, 'Sold out'); _safeMint(msg.sender, _quantity); } /** * @notice Reserve Tokens */ function reserveTokens(address _to, uint256 _quantity) public onlyOwner { require(_quantity > 0, 'Minimum 1 NFT has to be minted per transaction'); require(totalSupply() + _quantity <= maxSupply, 'Max supply exceeded!'); _safeMint(_to, _quantity); } /** * @notice Check if the address is in the white list or not */ function isWhitelist(bytes32[] calldata _merkleProof) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); if (MerkleProof.verify(_merkleProof, merkleRootWl, leaf)) { return true; } return false; } // ================== SETUP FUNCTIONS ======================= function setPaused(bool _state) external onlyOwner { paused = _state; } function setRevealed(bool _state) public onlyOwner { revealed = _state; } function setWhitelist(bytes32 _merkleRoot) external onlyOwner { merkleRootWl = _merkleRoot; } function setWlPrice(uint256 _newPrice) external onlyOwner { wlPrice = _newPrice; } function setSalePrice(uint256 _newPrice) external onlyOwner { salePrice = _newPrice; } function setMaxFree(uint256 _maxFree) public onlyOwner { maxFree = _maxFree; } function setMaxPerTx(uint256 _maxPerTx) public onlyOwner { maxPerTx = _maxPerTx; } function setMaxSupply(uint256 _maxSupply) public onlyOwner { maxSupply = _maxSupply; } function setHiddenMetadataUri(string memory _hiddenMetadataUri) public onlyOwner { hiddenMetadataUri = _hiddenMetadataUri; } function setUriPrefix(string memory _uriPrefix) public onlyOwner { uriPrefix = _uriPrefix; } function _baseURI() internal view virtual override returns (string memory) { return uriPrefix; } function walletOfOwner(address _owner) public view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount); uint256 currentTokenId = 1; uint256 ownedTokenIndex = 0; while (ownedTokenIndex < ownerTokenCount && currentTokenId <= maxSupply) { address currentTokenOwner = ownerOf(currentTokenId); if (currentTokenOwner == _owner) { ownedTokenIds[ownedTokenIndex] = currentTokenId; ownedTokenIndex++; } currentTokenId++; } return ownedTokenIds; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), 'ERC721Metadata: URI query for nonexistent token'); if (revealed == false) { return hiddenMetadataUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), uriSuffix)) : ''; } function withdraw() external onlyOwner { (bool success, ) = payable(msg.sender).call{ value: address(this).balance }(''); require(success, 'Transfer failed.'); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (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); /** * @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 (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 (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// 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 (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://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 functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions 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 (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 (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (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`. * * 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; /** * @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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * 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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); }
// 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; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":"PL_MINTED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"PL_MINT_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"WL_CLAIMED","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL_MINTED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"WL_MINT_COUNT","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"isWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFree","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootWl","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"reserveTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"salePrice","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":"_hiddenMetadataUri","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxFree","type":"uint256"}],"name":"setMaxFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerTx","type":"uint256"}],"name":"setMaxPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setWlPrice","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":"_quantity","type":"uint256"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wlPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405260016000556000600a60006101000a81548160ff0219169083151502179055506001600a60016101000a81548160ff02191690831515021790555060405180602001604052806000815250600b90816200005f919062000613565b506040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600c9081620000a6919062000613565b506611c37937e08000600e556611c37937e08000600f556001601055600a601155610d0560125560006013556000601455348015620000e457600080fd5b506040518060400160405280600981526020017f546865546f7869637300000000000000000000000000000000000000000000008152506040518060400160405280600281526020017f5454000000000000000000000000000000000000000000000000000000000000815250816001908162000162919062000613565b50806002908162000174919062000613565b505050620001976200018b620001eb60201b60201c565b620001f360201b60201c565b6001600881905550620001e56040518060400160405280601a81526020017f697066733a2f2f5f5f4349445f5f2f68696464656e2e6a736f6e000000000000815250620002b960201b60201c565b6200077d565b600033905090565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002c9620002de60201b60201c565b80600d9081620002da919062000613565b5050565b620002ee620001eb60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620003146200036f60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16146200036d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000364906200075b565b60405180910390fd5b565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200041b57607f821691505b602082108103620004315762000430620003d3565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200049b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200045c565b620004a786836200045c565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620004f4620004ee620004e884620004bf565b620004c9565b620004bf565b9050919050565b6000819050919050565b6200051083620004d3565b620005286200051f82620004fb565b84845462000469565b825550505050565b600090565b6200053f62000530565b6200054c81848462000505565b505050565b5b8181101562000574576200056860008262000535565b60018101905062000552565b5050565b601f821115620005c3576200058d8162000437565b62000598846200044c565b81016020851015620005a8578190505b620005c0620005b7856200044c565b83018262000551565b50505b505050565b600082821c905092915050565b6000620005e860001984600802620005c8565b1980831691505092915050565b6000620006038383620005d5565b9150826002028217905092915050565b6200061e8262000399565b67ffffffffffffffff8111156200063a5762000639620003a4565b5b62000646825462000402565b6200065382828562000578565b600060209050601f8311600181146200068b576000841562000676578287015190505b620006828582620005f5565b865550620006f2565b601f1984166200069b8662000437565b60005b82811015620006c5578489015182556001820191506020850194506020810190506200069e565b86831015620006e55784890151620006e1601f891682620005d5565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600062000743602083620006fa565b915062000750826200070b565b602082019050919050565b60006020820190508181036000830152620007768162000734565b9050919050565b61540f806200078d6000396000f3fe6080604052600436106102ae5760003560e01c806366cbf2e211610175578063c7f8d01a116100dc578063e0a8085311610095578063ef8319cd1161006f578063ef8319cd14610ac4578063f2fde38b14610aef578063f51f96dd14610b18578063f968adbe14610b43576102ae565b8063e0a8085314610a21578063e985e9c514610a4a578063ed475f6314610a87576102ae565b8063c7f8d01a1461090c578063c87b56dd14610937578063cd3d46f214610974578063d2cab056146109b1578063d5abeb01146109cd578063d755bf99146109f8576102ae565b80638da5cb5b1161012e5780638da5cb5b146108125780638dd07d0f1461083d57806395d89b4114610866578063a22cb46514610891578063b88d4fde146108ba578063c6f6f216146108e3576102ae565b806366cbf2e2146107065780636f8b44b01461074357806370a082311461076c578063715018a6146107a957806378cf19e9146107c05780637ec4a659146107e9576102ae565b80632fbba11511610219578063485a68a3116101d2578063485a68a3146105e25780634f6ccce71461060d5780634fdd43cb1461064a57806351830227146106735780635c975abb1461069e5780636352211e146106c9576102ae565b80632fbba115146104e85780633ccfd60b146105115780633f296d491461052857806342842e0e14610553578063438b63001461057c578063440bc7f3146105b9576102ae565b806318160ddd1161026b57806318160ddd146103d55780631919fed71461040057806323b872dd146104295780632705a473146104525780632db115441461048f5780632f745c59146104ab576102ae565b806301ffc9a7146102b357806306fdde03146102f057806308119f201461031b578063081812fc14610346578063095ea7b31461038357806316c38b3c146103ac575b600080fd5b3480156102bf57600080fd5b506102da60048036038101906102d59190613539565b610b6e565b6040516102e79190613581565b60405180910390f35b3480156102fc57600080fd5b50610305610cb8565b604051610312919061362c565b60405180910390f35b34801561032757600080fd5b50610330610d4a565b60405161033d9190613667565b60405180910390f35b34801561035257600080fd5b5061036d600480360381019061036891906136ae565b610d50565b60405161037a919061371c565b60405180910390f35b34801561038f57600080fd5b506103aa60048036038101906103a59190613763565b610dd5565b005b3480156103b857600080fd5b506103d360048036038101906103ce91906137cf565b610eed565b005b3480156103e157600080fd5b506103ea610f12565b6040516103f79190613667565b60405180910390f35b34801561040c57600080fd5b50610427600480360381019061042291906136ae565b610f1b565b005b34801561043557600080fd5b50610450600480360381019061044b91906137fc565b610f2d565b005b34801561045e57600080fd5b506104796004803603810190610474919061384f565b610f3d565b6040516104869190613581565b60405180910390f35b6104a960048036038101906104a491906136ae565b610f5d565b005b3480156104b757600080fd5b506104d260048036038101906104cd9190613763565b61115c565b6040516104df9190613667565b60405180910390f35b3480156104f457600080fd5b5061050f600480360381019061050a91906136ae565b61134c565b005b34801561051d57600080fd5b506105266113fb565b005b34801561053457600080fd5b5061053d6114b2565b60405161054a9190613667565b60405180910390f35b34801561055f57600080fd5b5061057a600480360381019061057591906137fc565b6114b8565b005b34801561058857600080fd5b506105a3600480360381019061059e919061384f565b6114d8565b6040516105b0919061393a565b60405180910390f35b3480156105c557600080fd5b506105e060048036038101906105db9190613992565b6115e2565b005b3480156105ee57600080fd5b506105f76115f4565b6040516106049190613667565b60405180910390f35b34801561061957600080fd5b50610634600480360381019061062f91906136ae565b6115fa565b6040516106419190613667565b60405180910390f35b34801561065657600080fd5b50610671600480360381019061066c9190613af4565b61164d565b005b34801561067f57600080fd5b50610688611668565b6040516106959190613581565b60405180910390f35b3480156106aa57600080fd5b506106b361167b565b6040516106c09190613581565b60405180910390f35b3480156106d557600080fd5b506106f060048036038101906106eb91906136ae565b61168e565b6040516106fd919061371c565b60405180910390f35b34801561071257600080fd5b5061072d6004803603810190610728919061384f565b6116a4565b60405161073a9190613667565b60405180910390f35b34801561074f57600080fd5b5061076a600480360381019061076591906136ae565b6116bc565b005b34801561077857600080fd5b50610793600480360381019061078e919061384f565b6116ce565b6040516107a09190613667565b60405180910390f35b3480156107b557600080fd5b506107be6117b6565b005b3480156107cc57600080fd5b506107e760048036038101906107e29190613763565b6117ca565b005b3480156107f557600080fd5b50610810600480360381019061080b9190613af4565b61187a565b005b34801561081e57600080fd5b50610827611895565b604051610834919061371c565b60405180910390f35b34801561084957600080fd5b50610864600480360381019061085f91906136ae565b6118bf565b005b34801561087257600080fd5b5061087b6118d1565b604051610888919061362c565b60405180910390f35b34801561089d57600080fd5b506108b860048036038101906108b39190613b3d565b611963565b005b3480156108c657600080fd5b506108e160048036038101906108dc9190613c1e565b611ae3565b005b3480156108ef57600080fd5b5061090a600480360381019061090591906136ae565b611b3f565b005b34801561091857600080fd5b50610921611b51565b60405161092e9190613667565b60405180910390f35b34801561094357600080fd5b5061095e600480360381019061095991906136ae565b611b57565b60405161096b919061362c565b60405180910390f35b34801561098057600080fd5b5061099b6004803603810190610996919061384f565b611caf565b6040516109a89190613667565b60405180910390f35b6109cb60048036038101906109c69190613d01565b611cc7565b005b3480156109d957600080fd5b506109e2612087565b6040516109ef9190613667565b60405180910390f35b348015610a0457600080fd5b50610a1f6004803603810190610a1a91906136ae565b61208d565b005b348015610a2d57600080fd5b50610a486004803603810190610a4391906137cf565b61209f565b005b348015610a5657600080fd5b50610a716004803603810190610a6c9190613d61565b6120c4565b604051610a7e9190613581565b60405180910390f35b348015610a9357600080fd5b50610aae6004803603810190610aa99190613da1565b612158565b604051610abb9190613581565b60405180910390f35b348015610ad057600080fd5b50610ad96121ed565b604051610ae69190613dfd565b60405180910390f35b348015610afb57600080fd5b50610b166004803603810190610b11919061384f565b6121f3565b005b348015610b2457600080fd5b50610b2d612276565b604051610b3a9190613667565b60405180910390f35b348015610b4f57600080fd5b50610b5861227c565b604051610b659190613667565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c3957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610ca157507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610cb15750610cb082612282565b5b9050919050565b606060018054610cc790613e47565b80601f0160208091040260200160405190810160405280929190818152602001828054610cf390613e47565b8015610d405780601f10610d1557610100808354040283529160200191610d40565b820191906000526020600020905b815481529060010190602001808311610d2357829003601f168201915b5050505050905090565b60145481565b6000610d5b826122ec565b610d9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9190613eea565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610de08261168e565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610e50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4790613f7c565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610e6f6122f9565b73ffffffffffffffffffffffffffffffffffffffff161480610e9e5750610e9d81610e986122f9565b6120c4565b5b610edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed49061400e565b60405180910390fd5b610ee8838383612301565b505050565b610ef56123b3565b80600a60016101000a81548160ff02191690831515021790555050565b60008054905090565b610f236123b3565b80600f8190555050565b610f38838383612431565b505050565b60176020528060005260406000206000915054906101000a900460ff1681565b600a60019054906101000a900460ff1615610fad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa49061407a565b60405180910390fd5b600081118015610fbf57506011548111155b610ffe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff5906140e6565b60405180910390fd5b6012548161100a610f12565b6110149190614135565b1115611055576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104c906141b5565b60405180910390fd5b61105d611895565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110e05780600f5461109d91906141d5565b3410156110df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d690614263565b60405180910390fd5b5b6110ea338261296f565b80601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546111399190614135565b9250508190555080601460008282546111529190614135565b9250508190555050565b6000611167836116ce565b82106111a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119f906142f5565b60405180910390fd5b60006111b2610f12565b905060008060005b8381101561130a576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146112ac57806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036112fc578684036112f3578195505050505050611346565b83806001019450505b5080806001019150506111ba565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133d90614387565b60405180910390fd5b92915050565b6113546123b3565b60008111611397576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138e90614419565b60405180910390fd5b601254816113a3610f12565b6113ad9190614135565b11156113ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e590614485565b60405180910390fd5b6113f8338261296f565b50565b6114036123b3565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051611429906144d6565b60006040518083038185875af1925050503d8060008114611466576040519150601f19603f3d011682016040523d82523d6000602084013e61146b565b606091505b50509050806114af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a690614537565b60405180910390fd5b50565b60135481565b6114d383838360405180602001604052806000815250611ae3565b505050565b606060006114e5836116ce565b905060008167ffffffffffffffff811115611503576115026139c9565b5b6040519080825280602002602001820160405280156115315781602001602082028036833780820191505090505b50905060006001905060005b838110801561154e57506012548211155b156115d657600061155e8361168e565b90508673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036115c257828483815181106115a7576115a6614557565b5b60200260200101818152505081806115be90614586565b9250505b82806115cd90614586565b9350505061153d565b82945050505050919050565b6115ea6123b3565b8060098190555050565b60105481565b6000611604610f12565b8210611645576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163c90614640565b60405180910390fd5b819050919050565b6116556123b3565b80600d9081611664919061480c565b5050565b600a60009054906101000a900460ff1681565b600a60019054906101000a900460ff1681565b60006116998261298d565b600001519050919050565b60166020528060005260406000206000915090505481565b6116c46123b3565b8060128190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361173e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173590614950565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b6117be6123b3565b6117c86000612b27565b565b6117d26123b3565b60008111611815576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180c90614419565b60405180910390fd5b60125481611821610f12565b61182b9190614135565b111561186c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611863906149bc565b60405180910390fd5b611876828261296f565b5050565b6118826123b3565b80600b9081611891919061480c565b5050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6118c76123b3565b80600e8190555050565b6060600280546118e090613e47565b80601f016020809104026020016040519081016040528092919081815260200182805461190c90613e47565b80156119595780601f1061192e57610100808354040283529160200191611959565b820191906000526020600020905b81548152906001019060200180831161193c57829003601f168201915b5050505050905090565b61196b6122f9565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036119d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119cf90614a28565b60405180910390fd5b80600660006119e56122f9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611a926122f9565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ad79190613581565b60405180910390a35050565b611aee848484612431565b611afa84848484612bed565b611b39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3090614aba565b60405180910390fd5b50505050565b611b476123b3565b8060118190555050565b600e5481565b6060611b62826122ec565b611ba1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9890614b4c565b60405180910390fd5b60001515600a60009054906101000a900460ff16151503611c4e57600d8054611bc990613e47565b80601f0160208091040260200160405190810160405280929190818152602001828054611bf590613e47565b8015611c425780601f10611c1757610100808354040283529160200191611c42565b820191906000526020600020905b815481529060010190602001808311611c2557829003601f168201915b50505050509050611caa565b6000611c58612d74565b90506000815111611c785760405180602001604052806000815250611ca6565b80611c8284612e06565b600c604051602001611c9693929190614c2b565b6040516020818303038152906040525b9150505b919050565b60156020528060005260406000206000915090505481565b600a60019054906101000a900460ff1615611d17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0e9061407a565b60405180910390fd5b611d218282612158565b611d60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5790614ca8565b60405180910390fd5b600083118015611d7257506011548311155b611db1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da8906140e6565b60405180910390fd5b60125483611dbd610f12565b611dc79190614135565b1115611e08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dff906141b5565b60405180910390fd5b60125483601354611e199190614135565b1115611e5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5190614d14565b60405180910390fd5b601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611fb8576010548311611efd576000341015611ef8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eef90614263565b60405180910390fd5b611f5b565b600e5460105484611f0e9190614d34565b611f1891906141d5565b341015611f5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f5190614263565b60405180910390fd5b5b6001601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612009565b82600e54611fc691906141d5565b341015612008576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fff90614263565b60405180910390fd5b5b612013338461296f565b82601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120629190614135565b92505081905550826013600082825461207b9190614135565b92505081905550505050565b60125481565b6120956123b3565b8060108190555050565b6120a76123b3565b80600a60006101000a81548160ff02191690831515021790555050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000803360405160200161216c9190614db0565b6040516020818303038152906040528051906020012090506121d2848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060095483612ed4565b156121e15760019150506121e7565b60009150505b92915050565b60095481565b6121fb6123b3565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361226a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226190614e3d565b60405180910390fd5b61227381612b27565b50565b600f5481565b60115481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6123bb6122f9565b73ffffffffffffffffffffffffffffffffffffffff166123d9611895565b73ffffffffffffffffffffffffffffffffffffffff161461242f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242690614ea9565b60405180910390fd5b565b600061243c8261298d565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166124636122f9565b73ffffffffffffffffffffffffffffffffffffffff1614806124bf57506124886122f9565b73ffffffffffffffffffffffffffffffffffffffff166124a784610d50565b73ffffffffffffffffffffffffffffffffffffffff16145b806124db57506124da82600001516124d56122f9565b6120c4565b5b90508061251d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251490614f3b565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461258f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258690614fcd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036125fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125f59061505f565b60405180910390fd5b61260b8585856001612eeb565b61261b6000848460000151612301565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160392506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550836003600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036128ff5761285e816122ec565b156128fe5782600001516003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46129688585856001612ef1565b5050505050565b612989828260405180602001604052806000815250612ef7565b5050565b612995613493565b61299e826122ec565b6129dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d4906150f1565b60405180910390fd5b60008290505b60008110612ae6576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612ad7578092505050612b22565b508080600190039150506129e3565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1990615183565b60405180910390fd5b919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612c0e8473ffffffffffffffffffffffffffffffffffffffff16612f09565b15612d67578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612c376122f9565b8786866040518563ffffffff1660e01b8152600401612c5994939291906151f8565b6020604051808303816000875af1925050508015612c9557506040513d601f19601f82011682018060405250810190612c929190615259565b60015b612d17573d8060008114612cc5576040519150601f19603f3d011682016040523d82523d6000602084013e612cca565b606091505b506000815103612d0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d0690614aba565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612d6c565b600190505b949350505050565b6060600b8054612d8390613e47565b80601f0160208091040260200160405190810160405280929190818152602001828054612daf90613e47565b8015612dfc5780601f10612dd157610100808354040283529160200191612dfc565b820191906000526020600020905b815481529060010190602001808311612ddf57829003601f168201915b5050505050905090565b606060006001612e1584612f2c565b01905060008167ffffffffffffffff811115612e3457612e336139c9565b5b6040519080825280601f01601f191660200182016040528015612e665781602001600182028036833780820191505090505b509050600082602001820190505b600115612ec9578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612ebd57612ebc615286565b5b04945060008503612e74575b819350505050919050565b600082612ee1858461307f565b1490509392505050565b50505050565b50505050565b612f0483838360016130d5565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612f8a577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612f8057612f7f615286565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612fc7576d04ee2d6d415b85acef81000000008381612fbd57612fbc615286565b5b0492506020810190505b662386f26fc100008310612ff657662386f26fc100008381612fec57612feb615286565b5b0492506010810190505b6305f5e100831061301f576305f5e100838161301557613014615286565b5b0492506008810190505b612710831061304457612710838161303a57613039615286565b5b0492506004810190505b60648310613067576064838161305d5761305c615286565b5b0492506002810190505b600a8310613076576001810190505b80915050919050565b60008082905060005b84518110156130ca576130b5828683815181106130a8576130a7614557565b5b6020026020010151613451565b915080806130c290614586565b915050613088565b508091505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361314a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161314190615327565b60405180910390fd5b6000840361318d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613184906153b9565b60405180910390fd5b61319a6000868387612eeb565b83600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555083600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550846003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b8581101561343457818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4831561341f576133df6000888488612bed565b61341e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161341590614aba565b60405180910390fd5b5b81806001019250508080600101915050613368565b50806000819055505061344a6000868387612ef1565b5050505050565b600081831061346957613464828461347c565b613474565b613473838361347c565b5b905092915050565b600082600052816020526040600020905092915050565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613516816134e1565b811461352157600080fd5b50565b6000813590506135338161350d565b92915050565b60006020828403121561354f5761354e6134d7565b5b600061355d84828501613524565b91505092915050565b60008115159050919050565b61357b81613566565b82525050565b60006020820190506135966000830184613572565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156135d65780820151818401526020810190506135bb565b60008484015250505050565b6000601f19601f8301169050919050565b60006135fe8261359c565b61360881856135a7565b93506136188185602086016135b8565b613621816135e2565b840191505092915050565b6000602082019050818103600083015261364681846135f3565b905092915050565b6000819050919050565b6136618161364e565b82525050565b600060208201905061367c6000830184613658565b92915050565b61368b8161364e565b811461369657600080fd5b50565b6000813590506136a881613682565b92915050565b6000602082840312156136c4576136c36134d7565b5b60006136d284828501613699565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613706826136db565b9050919050565b613716816136fb565b82525050565b6000602082019050613731600083018461370d565b92915050565b613740816136fb565b811461374b57600080fd5b50565b60008135905061375d81613737565b92915050565b6000806040838503121561377a576137796134d7565b5b60006137888582860161374e565b925050602061379985828601613699565b9150509250929050565b6137ac81613566565b81146137b757600080fd5b50565b6000813590506137c9816137a3565b92915050565b6000602082840312156137e5576137e46134d7565b5b60006137f3848285016137ba565b91505092915050565b600080600060608486031215613815576138146134d7565b5b60006138238682870161374e565b93505060206138348682870161374e565b925050604061384586828701613699565b9150509250925092565b600060208284031215613865576138646134d7565b5b60006138738482850161374e565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6138b18161364e565b82525050565b60006138c383836138a8565b60208301905092915050565b6000602082019050919050565b60006138e78261387c565b6138f18185613887565b93506138fc83613898565b8060005b8381101561392d57815161391488826138b7565b975061391f836138cf565b925050600181019050613900565b5085935050505092915050565b6000602082019050818103600083015261395481846138dc565b905092915050565b6000819050919050565b61396f8161395c565b811461397a57600080fd5b50565b60008135905061398c81613966565b92915050565b6000602082840312156139a8576139a76134d7565b5b60006139b68482850161397d565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613a01826135e2565b810181811067ffffffffffffffff82111715613a2057613a1f6139c9565b5b80604052505050565b6000613a336134cd565b9050613a3f82826139f8565b919050565b600067ffffffffffffffff821115613a5f57613a5e6139c9565b5b613a68826135e2565b9050602081019050919050565b82818337600083830152505050565b6000613a97613a9284613a44565b613a29565b905082815260208101848484011115613ab357613ab26139c4565b5b613abe848285613a75565b509392505050565b600082601f830112613adb57613ada6139bf565b5b8135613aeb848260208601613a84565b91505092915050565b600060208284031215613b0a57613b096134d7565b5b600082013567ffffffffffffffff811115613b2857613b276134dc565b5b613b3484828501613ac6565b91505092915050565b60008060408385031215613b5457613b536134d7565b5b6000613b628582860161374e565b9250506020613b73858286016137ba565b9150509250929050565b600067ffffffffffffffff821115613b9857613b976139c9565b5b613ba1826135e2565b9050602081019050919050565b6000613bc1613bbc84613b7d565b613a29565b905082815260208101848484011115613bdd57613bdc6139c4565b5b613be8848285613a75565b509392505050565b600082601f830112613c0557613c046139bf565b5b8135613c15848260208601613bae565b91505092915050565b60008060008060808587031215613c3857613c376134d7565b5b6000613c468782880161374e565b9450506020613c578782880161374e565b9350506040613c6887828801613699565b925050606085013567ffffffffffffffff811115613c8957613c886134dc565b5b613c9587828801613bf0565b91505092959194509250565b600080fd5b600080fd5b60008083601f840112613cc157613cc06139bf565b5b8235905067ffffffffffffffff811115613cde57613cdd613ca1565b5b602083019150836020820283011115613cfa57613cf9613ca6565b5b9250929050565b600080600060408486031215613d1a57613d196134d7565b5b6000613d2886828701613699565b935050602084013567ffffffffffffffff811115613d4957613d486134dc565b5b613d5586828701613cab565b92509250509250925092565b60008060408385031215613d7857613d776134d7565b5b6000613d868582860161374e565b9250506020613d978582860161374e565b9150509250929050565b60008060208385031215613db857613db76134d7565b5b600083013567ffffffffffffffff811115613dd657613dd56134dc565b5b613de285828601613cab565b92509250509250929050565b613df78161395c565b82525050565b6000602082019050613e126000830184613dee565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613e5f57607f821691505b602082108103613e7257613e71613e18565b5b50919050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b6000613ed4602d836135a7565b9150613edf82613e78565b604082019050919050565b60006020820190508181036000830152613f0381613ec7565b9050919050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b6000613f666022836135a7565b9150613f7182613f0a565b604082019050919050565b60006020820190508181036000830152613f9581613f59565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b6000613ff86039836135a7565b915061400382613f9c565b604082019050919050565b6000602082019050818103600083015261402781613feb565b9050919050565b7f54686520636f6e74726163742069732070617573656421000000000000000000600082015250565b60006140646017836135a7565b915061406f8261402e565b602082019050919050565b6000602082019050818103600083015261409381614057565b9050919050565b7f496e76616c6964206d696e7420616d6f756e7421000000000000000000000000600082015250565b60006140d06014836135a7565b91506140db8261409a565b602082019050919050565b600060208201905081810360008301526140ff816140c3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006141408261364e565b915061414b8361364e565b925082820190508082111561416357614162614106565b5b92915050565b7f536f6c64206f7574210000000000000000000000000000000000000000000000600082015250565b600061419f6009836135a7565b91506141aa82614169565b602082019050919050565b600060208201905081810360008301526141ce81614192565b9050919050565b60006141e08261364e565b91506141eb8361364e565b92508282026141f98161364e565b915082820484148315176142105761420f614106565b5b5092915050565b7f506c656173652073656e642074686520657861637420616d6f756e742e000000600082015250565b600061424d601d836135a7565b915061425882614217565b602082019050919050565b6000602082019050818103600083015261427c81614240565b9050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b60006142df6022836135a7565b91506142ea82614283565b604082019050919050565b6000602082019050818103600083015261430e816142d2565b9050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b6000614371602e836135a7565b915061437c82614315565b604082019050919050565b600060208201905081810360008301526143a081614364565b9050919050565b7f4d696e696d756d2031204e46542068617320746f206265206d696e746564207060008201527f6572207472616e73616374696f6e000000000000000000000000000000000000602082015250565b6000614403602e836135a7565b915061440e826143a7565b604082019050919050565b60006020820190508181036000830152614432816143f6565b9050919050565b7f536f6c64206f7574000000000000000000000000000000000000000000000000600082015250565b600061446f6008836135a7565b915061447a82614439565b602082019050919050565b6000602082019050818103600083015261449e81614462565b9050919050565b600081905092915050565b50565b60006144c06000836144a5565b91506144cb826144b0565b600082019050919050565b60006144e1826144b3565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b60006145216010836135a7565b915061452c826144eb565b602082019050919050565b6000602082019050818103600083015261455081614514565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006145918261364e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036145c3576145c2614106565b5b600182019050919050565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b600061462a6023836135a7565b9150614635826145ce565b604082019050919050565b600060208201905081810360008301526146598161461d565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026146c27fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614685565b6146cc8683614685565b95508019841693508086168417925050509392505050565b6000819050919050565b60006147096147046146ff8461364e565b6146e4565b61364e565b9050919050565b6000819050919050565b614723836146ee565b61473761472f82614710565b848454614692565b825550505050565b600090565b61474c61473f565b61475781848461471a565b505050565b5b8181101561477b57614770600082614744565b60018101905061475d565b5050565b601f8211156147c05761479181614660565b61479a84614675565b810160208510156147a9578190505b6147bd6147b585614675565b83018261475c565b50505b505050565b600082821c905092915050565b60006147e3600019846008026147c5565b1980831691505092915050565b60006147fc83836147d2565b9150826002028217905092915050565b6148158261359c565b67ffffffffffffffff81111561482e5761482d6139c9565b5b6148388254613e47565b61484382828561477f565b600060209050601f8311600181146148765760008415614864578287015190505b61486e85826147f0565b8655506148d6565b601f19841661488486614660565b60005b828110156148ac57848901518255600182019150602085019450602081019050614887565b868310156148c957848901516148c5601f8916826147d2565b8355505b6001600288020188555050505b505050505050565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b600061493a602b836135a7565b9150614945826148de565b604082019050919050565b600060208201905081810360008301526149698161492d565b9050919050565b7f4d617820737570706c7920657863656564656421000000000000000000000000600082015250565b60006149a66014836135a7565b91506149b182614970565b602082019050919050565b600060208201905081810360008301526149d581614999565b9050919050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b6000614a12601a836135a7565b9150614a1d826149dc565b602082019050919050565b60006020820190508181036000830152614a4181614a05565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b6000614aa46033836135a7565b9150614aaf82614a48565b604082019050919050565b60006020820190508181036000830152614ad381614a97565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614b36602f836135a7565b9150614b4182614ada565b604082019050919050565b60006020820190508181036000830152614b6581614b29565b9050919050565b600081905092915050565b6000614b828261359c565b614b8c8185614b6c565b9350614b9c8185602086016135b8565b80840191505092915050565b60008154614bb581613e47565b614bbf8186614b6c565b94506001821660008114614bda5760018114614bef57614c22565b60ff1983168652811515820286019350614c22565b614bf885614660565b60005b83811015614c1a57815481890152600182019150602081019050614bfb565b838801955050505b50505092915050565b6000614c378286614b77565b9150614c438285614b77565b9150614c4f8284614ba8565b9150819050949350505050565b7f41646472657373206973206e6f742077686974656c6973746564210000000000600082015250565b6000614c92601b836135a7565b9150614c9d82614c5c565b602082019050919050565b60006020820190508181036000830152614cc181614c85565b9050919050565b7f4e6f206d6f726521000000000000000000000000000000000000000000000000600082015250565b6000614cfe6008836135a7565b9150614d0982614cc8565b602082019050919050565b60006020820190508181036000830152614d2d81614cf1565b9050919050565b6000614d3f8261364e565b9150614d4a8361364e565b9250828203905081811115614d6257614d61614106565b5b92915050565b60008160601b9050919050565b6000614d8082614d68565b9050919050565b6000614d9282614d75565b9050919050565b614daa614da5826136fb565b614d87565b82525050565b6000614dbc8284614d99565b60148201915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614e276026836135a7565b9150614e3282614dcb565b604082019050919050565b60006020820190508181036000830152614e5681614e1a565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614e936020836135a7565b9150614e9e82614e5d565b602082019050919050565b60006020820190508181036000830152614ec281614e86565b9050919050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000614f256032836135a7565b9150614f3082614ec9565b604082019050919050565b60006020820190508181036000830152614f5481614f18565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b6000614fb76026836135a7565b9150614fc282614f5b565b604082019050919050565b60006020820190508181036000830152614fe681614faa565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006150496025836135a7565b915061505482614fed565b604082019050919050565b600060208201905081810360008301526150788161503c565b9050919050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b60006150db602a836135a7565b91506150e68261507f565b604082019050919050565b6000602082019050818103600083015261510a816150ce565b9050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b600061516d602f836135a7565b915061517882615111565b604082019050919050565b6000602082019050818103600083015261519c81615160565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006151ca826151a3565b6151d481856151ae565b93506151e48185602086016135b8565b6151ed816135e2565b840191505092915050565b600060808201905061520d600083018761370d565b61521a602083018661370d565b6152276040830185613658565b818103606083015261523981846151bf565b905095945050505050565b6000815190506152538161350d565b92915050565b60006020828403121561526f5761526e6134d7565b5b600061527d84828501615244565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006153116021836135a7565b915061531c826152b5565b604082019050919050565b6000602082019050818103600083015261534081615304565b9050919050565b7f455243373231413a207175616e74697479206d7573742062652067726561746560008201527f72207468616e2030000000000000000000000000000000000000000000000000602082015250565b60006153a36028836135a7565b91506153ae82615347565b604082019050919050565b600060208201905081810360008301526153d281615396565b905091905056fea264697066735822122087d853c1ad703907e6007830ffca70d0ac70f36c0893c1a2240685ed6d270e3a64736f6c63430008110033
Deployed Bytecode
0x6080604052600436106102ae5760003560e01c806366cbf2e211610175578063c7f8d01a116100dc578063e0a8085311610095578063ef8319cd1161006f578063ef8319cd14610ac4578063f2fde38b14610aef578063f51f96dd14610b18578063f968adbe14610b43576102ae565b8063e0a8085314610a21578063e985e9c514610a4a578063ed475f6314610a87576102ae565b8063c7f8d01a1461090c578063c87b56dd14610937578063cd3d46f214610974578063d2cab056146109b1578063d5abeb01146109cd578063d755bf99146109f8576102ae565b80638da5cb5b1161012e5780638da5cb5b146108125780638dd07d0f1461083d57806395d89b4114610866578063a22cb46514610891578063b88d4fde146108ba578063c6f6f216146108e3576102ae565b806366cbf2e2146107065780636f8b44b01461074357806370a082311461076c578063715018a6146107a957806378cf19e9146107c05780637ec4a659146107e9576102ae565b80632fbba11511610219578063485a68a3116101d2578063485a68a3146105e25780634f6ccce71461060d5780634fdd43cb1461064a57806351830227146106735780635c975abb1461069e5780636352211e146106c9576102ae565b80632fbba115146104e85780633ccfd60b146105115780633f296d491461052857806342842e0e14610553578063438b63001461057c578063440bc7f3146105b9576102ae565b806318160ddd1161026b57806318160ddd146103d55780631919fed71461040057806323b872dd146104295780632705a473146104525780632db115441461048f5780632f745c59146104ab576102ae565b806301ffc9a7146102b357806306fdde03146102f057806308119f201461031b578063081812fc14610346578063095ea7b31461038357806316c38b3c146103ac575b600080fd5b3480156102bf57600080fd5b506102da60048036038101906102d59190613539565b610b6e565b6040516102e79190613581565b60405180910390f35b3480156102fc57600080fd5b50610305610cb8565b604051610312919061362c565b60405180910390f35b34801561032757600080fd5b50610330610d4a565b60405161033d9190613667565b60405180910390f35b34801561035257600080fd5b5061036d600480360381019061036891906136ae565b610d50565b60405161037a919061371c565b60405180910390f35b34801561038f57600080fd5b506103aa60048036038101906103a59190613763565b610dd5565b005b3480156103b857600080fd5b506103d360048036038101906103ce91906137cf565b610eed565b005b3480156103e157600080fd5b506103ea610f12565b6040516103f79190613667565b60405180910390f35b34801561040c57600080fd5b50610427600480360381019061042291906136ae565b610f1b565b005b34801561043557600080fd5b50610450600480360381019061044b91906137fc565b610f2d565b005b34801561045e57600080fd5b506104796004803603810190610474919061384f565b610f3d565b6040516104869190613581565b60405180910390f35b6104a960048036038101906104a491906136ae565b610f5d565b005b3480156104b757600080fd5b506104d260048036038101906104cd9190613763565b61115c565b6040516104df9190613667565b60405180910390f35b3480156104f457600080fd5b5061050f600480360381019061050a91906136ae565b61134c565b005b34801561051d57600080fd5b506105266113fb565b005b34801561053457600080fd5b5061053d6114b2565b60405161054a9190613667565b60405180910390f35b34801561055f57600080fd5b5061057a600480360381019061057591906137fc565b6114b8565b005b34801561058857600080fd5b506105a3600480360381019061059e919061384f565b6114d8565b6040516105b0919061393a565b60405180910390f35b3480156105c557600080fd5b506105e060048036038101906105db9190613992565b6115e2565b005b3480156105ee57600080fd5b506105f76115f4565b6040516106049190613667565b60405180910390f35b34801561061957600080fd5b50610634600480360381019061062f91906136ae565b6115fa565b6040516106419190613667565b60405180910390f35b34801561065657600080fd5b50610671600480360381019061066c9190613af4565b61164d565b005b34801561067f57600080fd5b50610688611668565b6040516106959190613581565b60405180910390f35b3480156106aa57600080fd5b506106b361167b565b6040516106c09190613581565b60405180910390f35b3480156106d557600080fd5b506106f060048036038101906106eb91906136ae565b61168e565b6040516106fd919061371c565b60405180910390f35b34801561071257600080fd5b5061072d6004803603810190610728919061384f565b6116a4565b60405161073a9190613667565b60405180910390f35b34801561074f57600080fd5b5061076a600480360381019061076591906136ae565b6116bc565b005b34801561077857600080fd5b50610793600480360381019061078e919061384f565b6116ce565b6040516107a09190613667565b60405180910390f35b3480156107b557600080fd5b506107be6117b6565b005b3480156107cc57600080fd5b506107e760048036038101906107e29190613763565b6117ca565b005b3480156107f557600080fd5b50610810600480360381019061080b9190613af4565b61187a565b005b34801561081e57600080fd5b50610827611895565b604051610834919061371c565b60405180910390f35b34801561084957600080fd5b50610864600480360381019061085f91906136ae565b6118bf565b005b34801561087257600080fd5b5061087b6118d1565b604051610888919061362c565b60405180910390f35b34801561089d57600080fd5b506108b860048036038101906108b39190613b3d565b611963565b005b3480156108c657600080fd5b506108e160048036038101906108dc9190613c1e565b611ae3565b005b3480156108ef57600080fd5b5061090a600480360381019061090591906136ae565b611b3f565b005b34801561091857600080fd5b50610921611b51565b60405161092e9190613667565b60405180910390f35b34801561094357600080fd5b5061095e600480360381019061095991906136ae565b611b57565b60405161096b919061362c565b60405180910390f35b34801561098057600080fd5b5061099b6004803603810190610996919061384f565b611caf565b6040516109a89190613667565b60405180910390f35b6109cb60048036038101906109c69190613d01565b611cc7565b005b3480156109d957600080fd5b506109e2612087565b6040516109ef9190613667565b60405180910390f35b348015610a0457600080fd5b50610a1f6004803603810190610a1a91906136ae565b61208d565b005b348015610a2d57600080fd5b50610a486004803603810190610a4391906137cf565b61209f565b005b348015610a5657600080fd5b50610a716004803603810190610a6c9190613d61565b6120c4565b604051610a7e9190613581565b60405180910390f35b348015610a9357600080fd5b50610aae6004803603810190610aa99190613da1565b612158565b604051610abb9190613581565b60405180910390f35b348015610ad057600080fd5b50610ad96121ed565b604051610ae69190613dfd565b60405180910390f35b348015610afb57600080fd5b50610b166004803603810190610b11919061384f565b6121f3565b005b348015610b2457600080fd5b50610b2d612276565b604051610b3a9190613667565b60405180910390f35b348015610b4f57600080fd5b50610b5861227c565b604051610b659190613667565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610c3957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610ca157507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610cb15750610cb082612282565b5b9050919050565b606060018054610cc790613e47565b80601f0160208091040260200160405190810160405280929190818152602001828054610cf390613e47565b8015610d405780601f10610d1557610100808354040283529160200191610d40565b820191906000526020600020905b815481529060010190602001808311610d2357829003601f168201915b5050505050905090565b60145481565b6000610d5b826122ec565b610d9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9190613eea565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610de08261168e565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610e50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4790613f7c565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610e6f6122f9565b73ffffffffffffffffffffffffffffffffffffffff161480610e9e5750610e9d81610e986122f9565b6120c4565b5b610edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed49061400e565b60405180910390fd5b610ee8838383612301565b505050565b610ef56123b3565b80600a60016101000a81548160ff02191690831515021790555050565b60008054905090565b610f236123b3565b80600f8190555050565b610f38838383612431565b505050565b60176020528060005260406000206000915054906101000a900460ff1681565b600a60019054906101000a900460ff1615610fad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa49061407a565b60405180910390fd5b600081118015610fbf57506011548111155b610ffe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff5906140e6565b60405180910390fd5b6012548161100a610f12565b6110149190614135565b1115611055576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104c906141b5565b60405180910390fd5b61105d611895565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110e05780600f5461109d91906141d5565b3410156110df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d690614263565b60405180910390fd5b5b6110ea338261296f565b80601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546111399190614135565b9250508190555080601460008282546111529190614135565b9250508190555050565b6000611167836116ce565b82106111a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119f906142f5565b60405180910390fd5b60006111b2610f12565b905060008060005b8381101561130a576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146112ac57806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036112fc578684036112f3578195505050505050611346565b83806001019450505b5080806001019150506111ba565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133d90614387565b60405180910390fd5b92915050565b6113546123b3565b60008111611397576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138e90614419565b60405180910390fd5b601254816113a3610f12565b6113ad9190614135565b11156113ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e590614485565b60405180910390fd5b6113f8338261296f565b50565b6114036123b3565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051611429906144d6565b60006040518083038185875af1925050503d8060008114611466576040519150601f19603f3d011682016040523d82523d6000602084013e61146b565b606091505b50509050806114af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a690614537565b60405180910390fd5b50565b60135481565b6114d383838360405180602001604052806000815250611ae3565b505050565b606060006114e5836116ce565b905060008167ffffffffffffffff811115611503576115026139c9565b5b6040519080825280602002602001820160405280156115315781602001602082028036833780820191505090505b50905060006001905060005b838110801561154e57506012548211155b156115d657600061155e8361168e565b90508673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036115c257828483815181106115a7576115a6614557565b5b60200260200101818152505081806115be90614586565b9250505b82806115cd90614586565b9350505061153d565b82945050505050919050565b6115ea6123b3565b8060098190555050565b60105481565b6000611604610f12565b8210611645576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163c90614640565b60405180910390fd5b819050919050565b6116556123b3565b80600d9081611664919061480c565b5050565b600a60009054906101000a900460ff1681565b600a60019054906101000a900460ff1681565b60006116998261298d565b600001519050919050565b60166020528060005260406000206000915090505481565b6116c46123b3565b8060128190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361173e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173590614950565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b6117be6123b3565b6117c86000612b27565b565b6117d26123b3565b60008111611815576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180c90614419565b60405180910390fd5b60125481611821610f12565b61182b9190614135565b111561186c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611863906149bc565b60405180910390fd5b611876828261296f565b5050565b6118826123b3565b80600b9081611891919061480c565b5050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6118c76123b3565b80600e8190555050565b6060600280546118e090613e47565b80601f016020809104026020016040519081016040528092919081815260200182805461190c90613e47565b80156119595780601f1061192e57610100808354040283529160200191611959565b820191906000526020600020905b81548152906001019060200180831161193c57829003601f168201915b5050505050905090565b61196b6122f9565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036119d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119cf90614a28565b60405180910390fd5b80600660006119e56122f9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611a926122f9565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ad79190613581565b60405180910390a35050565b611aee848484612431565b611afa84848484612bed565b611b39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3090614aba565b60405180910390fd5b50505050565b611b476123b3565b8060118190555050565b600e5481565b6060611b62826122ec565b611ba1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9890614b4c565b60405180910390fd5b60001515600a60009054906101000a900460ff16151503611c4e57600d8054611bc990613e47565b80601f0160208091040260200160405190810160405280929190818152602001828054611bf590613e47565b8015611c425780601f10611c1757610100808354040283529160200191611c42565b820191906000526020600020905b815481529060010190602001808311611c2557829003601f168201915b50505050509050611caa565b6000611c58612d74565b90506000815111611c785760405180602001604052806000815250611ca6565b80611c8284612e06565b600c604051602001611c9693929190614c2b565b6040516020818303038152906040525b9150505b919050565b60156020528060005260406000206000915090505481565b600a60019054906101000a900460ff1615611d17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0e9061407a565b60405180910390fd5b611d218282612158565b611d60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5790614ca8565b60405180910390fd5b600083118015611d7257506011548311155b611db1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da8906140e6565b60405180910390fd5b60125483611dbd610f12565b611dc79190614135565b1115611e08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dff906141b5565b60405180910390fd5b60125483601354611e199190614135565b1115611e5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5190614d14565b60405180910390fd5b601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611fb8576010548311611efd576000341015611ef8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eef90614263565b60405180910390fd5b611f5b565b600e5460105484611f0e9190614d34565b611f1891906141d5565b341015611f5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f5190614263565b60405180910390fd5b5b6001601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612009565b82600e54611fc691906141d5565b341015612008576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fff90614263565b60405180910390fd5b5b612013338461296f565b82601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120629190614135565b92505081905550826013600082825461207b9190614135565b92505081905550505050565b60125481565b6120956123b3565b8060108190555050565b6120a76123b3565b80600a60006101000a81548160ff02191690831515021790555050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000803360405160200161216c9190614db0565b6040516020818303038152906040528051906020012090506121d2848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060095483612ed4565b156121e15760019150506121e7565b60009150505b92915050565b60095481565b6121fb6123b3565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361226a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226190614e3d565b60405180910390fd5b61227381612b27565b50565b600f5481565b60115481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6123bb6122f9565b73ffffffffffffffffffffffffffffffffffffffff166123d9611895565b73ffffffffffffffffffffffffffffffffffffffff161461242f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242690614ea9565b60405180910390fd5b565b600061243c8261298d565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166124636122f9565b73ffffffffffffffffffffffffffffffffffffffff1614806124bf57506124886122f9565b73ffffffffffffffffffffffffffffffffffffffff166124a784610d50565b73ffffffffffffffffffffffffffffffffffffffff16145b806124db57506124da82600001516124d56122f9565b6120c4565b5b90508061251d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251490614f3b565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461258f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258690614fcd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036125fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125f59061505f565b60405180910390fd5b61260b8585856001612eeb565b61261b6000848460000151612301565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160392506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550836003600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036128ff5761285e816122ec565b156128fe5782600001516003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46129688585856001612ef1565b5050505050565b612989828260405180602001604052806000815250612ef7565b5050565b612995613493565b61299e826122ec565b6129dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d4906150f1565b60405180910390fd5b60008290505b60008110612ae6576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612ad7578092505050612b22565b508080600190039150506129e3565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1990615183565b60405180910390fd5b919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612c0e8473ffffffffffffffffffffffffffffffffffffffff16612f09565b15612d67578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612c376122f9565b8786866040518563ffffffff1660e01b8152600401612c5994939291906151f8565b6020604051808303816000875af1925050508015612c9557506040513d601f19601f82011682018060405250810190612c929190615259565b60015b612d17573d8060008114612cc5576040519150601f19603f3d011682016040523d82523d6000602084013e612cca565b606091505b506000815103612d0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d0690614aba565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612d6c565b600190505b949350505050565b6060600b8054612d8390613e47565b80601f0160208091040260200160405190810160405280929190818152602001828054612daf90613e47565b8015612dfc5780601f10612dd157610100808354040283529160200191612dfc565b820191906000526020600020905b815481529060010190602001808311612ddf57829003601f168201915b5050505050905090565b606060006001612e1584612f2c565b01905060008167ffffffffffffffff811115612e3457612e336139c9565b5b6040519080825280601f01601f191660200182016040528015612e665781602001600182028036833780820191505090505b509050600082602001820190505b600115612ec9578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612ebd57612ebc615286565b5b04945060008503612e74575b819350505050919050565b600082612ee1858461307f565b1490509392505050565b50505050565b50505050565b612f0483838360016130d5565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612f8a577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612f8057612f7f615286565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612fc7576d04ee2d6d415b85acef81000000008381612fbd57612fbc615286565b5b0492506020810190505b662386f26fc100008310612ff657662386f26fc100008381612fec57612feb615286565b5b0492506010810190505b6305f5e100831061301f576305f5e100838161301557613014615286565b5b0492506008810190505b612710831061304457612710838161303a57613039615286565b5b0492506004810190505b60648310613067576064838161305d5761305c615286565b5b0492506002810190505b600a8310613076576001810190505b80915050919050565b60008082905060005b84518110156130ca576130b5828683815181106130a8576130a7614557565b5b6020026020010151613451565b915080806130c290614586565b915050613088565b508091505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361314a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161314190615327565b60405180910390fd5b6000840361318d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613184906153b9565b60405180910390fd5b61319a6000868387612eeb565b83600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555083600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550846003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b8581101561343457818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4831561341f576133df6000888488612bed565b61341e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161341590614aba565b60405180910390fd5b5b81806001019250508080600101915050613368565b50806000819055505061344a6000868387612ef1565b5050505050565b600081831061346957613464828461347c565b613474565b613473838361347c565b5b905092915050565b600082600052816020526040600020905092915050565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613516816134e1565b811461352157600080fd5b50565b6000813590506135338161350d565b92915050565b60006020828403121561354f5761354e6134d7565b5b600061355d84828501613524565b91505092915050565b60008115159050919050565b61357b81613566565b82525050565b60006020820190506135966000830184613572565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156135d65780820151818401526020810190506135bb565b60008484015250505050565b6000601f19601f8301169050919050565b60006135fe8261359c565b61360881856135a7565b93506136188185602086016135b8565b613621816135e2565b840191505092915050565b6000602082019050818103600083015261364681846135f3565b905092915050565b6000819050919050565b6136618161364e565b82525050565b600060208201905061367c6000830184613658565b92915050565b61368b8161364e565b811461369657600080fd5b50565b6000813590506136a881613682565b92915050565b6000602082840312156136c4576136c36134d7565b5b60006136d284828501613699565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613706826136db565b9050919050565b613716816136fb565b82525050565b6000602082019050613731600083018461370d565b92915050565b613740816136fb565b811461374b57600080fd5b50565b60008135905061375d81613737565b92915050565b6000806040838503121561377a576137796134d7565b5b60006137888582860161374e565b925050602061379985828601613699565b9150509250929050565b6137ac81613566565b81146137b757600080fd5b50565b6000813590506137c9816137a3565b92915050565b6000602082840312156137e5576137e46134d7565b5b60006137f3848285016137ba565b91505092915050565b600080600060608486031215613815576138146134d7565b5b60006138238682870161374e565b93505060206138348682870161374e565b925050604061384586828701613699565b9150509250925092565b600060208284031215613865576138646134d7565b5b60006138738482850161374e565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6138b18161364e565b82525050565b60006138c383836138a8565b60208301905092915050565b6000602082019050919050565b60006138e78261387c565b6138f18185613887565b93506138fc83613898565b8060005b8381101561392d57815161391488826138b7565b975061391f836138cf565b925050600181019050613900565b5085935050505092915050565b6000602082019050818103600083015261395481846138dc565b905092915050565b6000819050919050565b61396f8161395c565b811461397a57600080fd5b50565b60008135905061398c81613966565b92915050565b6000602082840312156139a8576139a76134d7565b5b60006139b68482850161397d565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613a01826135e2565b810181811067ffffffffffffffff82111715613a2057613a1f6139c9565b5b80604052505050565b6000613a336134cd565b9050613a3f82826139f8565b919050565b600067ffffffffffffffff821115613a5f57613a5e6139c9565b5b613a68826135e2565b9050602081019050919050565b82818337600083830152505050565b6000613a97613a9284613a44565b613a29565b905082815260208101848484011115613ab357613ab26139c4565b5b613abe848285613a75565b509392505050565b600082601f830112613adb57613ada6139bf565b5b8135613aeb848260208601613a84565b91505092915050565b600060208284031215613b0a57613b096134d7565b5b600082013567ffffffffffffffff811115613b2857613b276134dc565b5b613b3484828501613ac6565b91505092915050565b60008060408385031215613b5457613b536134d7565b5b6000613b628582860161374e565b9250506020613b73858286016137ba565b9150509250929050565b600067ffffffffffffffff821115613b9857613b976139c9565b5b613ba1826135e2565b9050602081019050919050565b6000613bc1613bbc84613b7d565b613a29565b905082815260208101848484011115613bdd57613bdc6139c4565b5b613be8848285613a75565b509392505050565b600082601f830112613c0557613c046139bf565b5b8135613c15848260208601613bae565b91505092915050565b60008060008060808587031215613c3857613c376134d7565b5b6000613c468782880161374e565b9450506020613c578782880161374e565b9350506040613c6887828801613699565b925050606085013567ffffffffffffffff811115613c8957613c886134dc565b5b613c9587828801613bf0565b91505092959194509250565b600080fd5b600080fd5b60008083601f840112613cc157613cc06139bf565b5b8235905067ffffffffffffffff811115613cde57613cdd613ca1565b5b602083019150836020820283011115613cfa57613cf9613ca6565b5b9250929050565b600080600060408486031215613d1a57613d196134d7565b5b6000613d2886828701613699565b935050602084013567ffffffffffffffff811115613d4957613d486134dc565b5b613d5586828701613cab565b92509250509250925092565b60008060408385031215613d7857613d776134d7565b5b6000613d868582860161374e565b9250506020613d978582860161374e565b9150509250929050565b60008060208385031215613db857613db76134d7565b5b600083013567ffffffffffffffff811115613dd657613dd56134dc565b5b613de285828601613cab565b92509250509250929050565b613df78161395c565b82525050565b6000602082019050613e126000830184613dee565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613e5f57607f821691505b602082108103613e7257613e71613e18565b5b50919050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b6000613ed4602d836135a7565b9150613edf82613e78565b604082019050919050565b60006020820190508181036000830152613f0381613ec7565b9050919050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b6000613f666022836135a7565b9150613f7182613f0a565b604082019050919050565b60006020820190508181036000830152613f9581613f59565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b6000613ff86039836135a7565b915061400382613f9c565b604082019050919050565b6000602082019050818103600083015261402781613feb565b9050919050565b7f54686520636f6e74726163742069732070617573656421000000000000000000600082015250565b60006140646017836135a7565b915061406f8261402e565b602082019050919050565b6000602082019050818103600083015261409381614057565b9050919050565b7f496e76616c6964206d696e7420616d6f756e7421000000000000000000000000600082015250565b60006140d06014836135a7565b91506140db8261409a565b602082019050919050565b600060208201905081810360008301526140ff816140c3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006141408261364e565b915061414b8361364e565b925082820190508082111561416357614162614106565b5b92915050565b7f536f6c64206f7574210000000000000000000000000000000000000000000000600082015250565b600061419f6009836135a7565b91506141aa82614169565b602082019050919050565b600060208201905081810360008301526141ce81614192565b9050919050565b60006141e08261364e565b91506141eb8361364e565b92508282026141f98161364e565b915082820484148315176142105761420f614106565b5b5092915050565b7f506c656173652073656e642074686520657861637420616d6f756e742e000000600082015250565b600061424d601d836135a7565b915061425882614217565b602082019050919050565b6000602082019050818103600083015261427c81614240565b9050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b60006142df6022836135a7565b91506142ea82614283565b604082019050919050565b6000602082019050818103600083015261430e816142d2565b9050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b6000614371602e836135a7565b915061437c82614315565b604082019050919050565b600060208201905081810360008301526143a081614364565b9050919050565b7f4d696e696d756d2031204e46542068617320746f206265206d696e746564207060008201527f6572207472616e73616374696f6e000000000000000000000000000000000000602082015250565b6000614403602e836135a7565b915061440e826143a7565b604082019050919050565b60006020820190508181036000830152614432816143f6565b9050919050565b7f536f6c64206f7574000000000000000000000000000000000000000000000000600082015250565b600061446f6008836135a7565b915061447a82614439565b602082019050919050565b6000602082019050818103600083015261449e81614462565b9050919050565b600081905092915050565b50565b60006144c06000836144a5565b91506144cb826144b0565b600082019050919050565b60006144e1826144b3565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b60006145216010836135a7565b915061452c826144eb565b602082019050919050565b6000602082019050818103600083015261455081614514565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006145918261364e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036145c3576145c2614106565b5b600182019050919050565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b600061462a6023836135a7565b9150614635826145ce565b604082019050919050565b600060208201905081810360008301526146598161461d565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026146c27fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614685565b6146cc8683614685565b95508019841693508086168417925050509392505050565b6000819050919050565b60006147096147046146ff8461364e565b6146e4565b61364e565b9050919050565b6000819050919050565b614723836146ee565b61473761472f82614710565b848454614692565b825550505050565b600090565b61474c61473f565b61475781848461471a565b505050565b5b8181101561477b57614770600082614744565b60018101905061475d565b5050565b601f8211156147c05761479181614660565b61479a84614675565b810160208510156147a9578190505b6147bd6147b585614675565b83018261475c565b50505b505050565b600082821c905092915050565b60006147e3600019846008026147c5565b1980831691505092915050565b60006147fc83836147d2565b9150826002028217905092915050565b6148158261359c565b67ffffffffffffffff81111561482e5761482d6139c9565b5b6148388254613e47565b61484382828561477f565b600060209050601f8311600181146148765760008415614864578287015190505b61486e85826147f0565b8655506148d6565b601f19841661488486614660565b60005b828110156148ac57848901518255600182019150602085019450602081019050614887565b868310156148c957848901516148c5601f8916826147d2565b8355505b6001600288020188555050505b505050505050565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b600061493a602b836135a7565b9150614945826148de565b604082019050919050565b600060208201905081810360008301526149698161492d565b9050919050565b7f4d617820737570706c7920657863656564656421000000000000000000000000600082015250565b60006149a66014836135a7565b91506149b182614970565b602082019050919050565b600060208201905081810360008301526149d581614999565b9050919050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b6000614a12601a836135a7565b9150614a1d826149dc565b602082019050919050565b60006020820190508181036000830152614a4181614a05565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b6000614aa46033836135a7565b9150614aaf82614a48565b604082019050919050565b60006020820190508181036000830152614ad381614a97565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614b36602f836135a7565b9150614b4182614ada565b604082019050919050565b60006020820190508181036000830152614b6581614b29565b9050919050565b600081905092915050565b6000614b828261359c565b614b8c8185614b6c565b9350614b9c8185602086016135b8565b80840191505092915050565b60008154614bb581613e47565b614bbf8186614b6c565b94506001821660008114614bda5760018114614bef57614c22565b60ff1983168652811515820286019350614c22565b614bf885614660565b60005b83811015614c1a57815481890152600182019150602081019050614bfb565b838801955050505b50505092915050565b6000614c378286614b77565b9150614c438285614b77565b9150614c4f8284614ba8565b9150819050949350505050565b7f41646472657373206973206e6f742077686974656c6973746564210000000000600082015250565b6000614c92601b836135a7565b9150614c9d82614c5c565b602082019050919050565b60006020820190508181036000830152614cc181614c85565b9050919050565b7f4e6f206d6f726521000000000000000000000000000000000000000000000000600082015250565b6000614cfe6008836135a7565b9150614d0982614cc8565b602082019050919050565b60006020820190508181036000830152614d2d81614cf1565b9050919050565b6000614d3f8261364e565b9150614d4a8361364e565b9250828203905081811115614d6257614d61614106565b5b92915050565b60008160601b9050919050565b6000614d8082614d68565b9050919050565b6000614d9282614d75565b9050919050565b614daa614da5826136fb565b614d87565b82525050565b6000614dbc8284614d99565b60148201915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614e276026836135a7565b9150614e3282614dcb565b604082019050919050565b60006020820190508181036000830152614e5681614e1a565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614e936020836135a7565b9150614e9e82614e5d565b602082019050919050565b60006020820190508181036000830152614ec281614e86565b9050919050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000614f256032836135a7565b9150614f3082614ec9565b604082019050919050565b60006020820190508181036000830152614f5481614f18565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b6000614fb76026836135a7565b9150614fc282614f5b565b604082019050919050565b60006020820190508181036000830152614fe681614faa565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006150496025836135a7565b915061505482614fed565b604082019050919050565b600060208201905081810360008301526150788161503c565b9050919050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b60006150db602a836135a7565b91506150e68261507f565b604082019050919050565b6000602082019050818103600083015261510a816150ce565b9050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b600061516d602f836135a7565b915061517882615111565b604082019050919050565b6000602082019050818103600083015261519c81615160565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006151ca826151a3565b6151d481856151ae565b93506151e48185602086016135b8565b6151ed816135e2565b840191505092915050565b600060808201905061520d600083018761370d565b61521a602083018661370d565b6152276040830185613658565b818103606083015261523981846151bf565b905095945050505050565b6000815190506152538161350d565b92915050565b60006020828403121561526f5761526e6134d7565b5b600061527d84828501615244565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006153116021836135a7565b915061531c826152b5565b604082019050919050565b6000602082019050818103600083015261534081615304565b9050919050565b7f455243373231413a207175616e74697479206d7573742062652067726561746560008201527f72207468616e2030000000000000000000000000000000000000000000000000602082015250565b60006153a36028836135a7565b91506153ae82615347565b604082019050919050565b600060208201905081810360008301526153d281615396565b905091905056fea264697066735822122087d853c1ad703907e6007830ffca70d0ac70f36c0893c1a2240685ed6d270e3a64736f6c63430008110033
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.