ERC-721
Overview
Max Total Supply
4,541 YKZC
Holders
2,932
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
YakuzaCat
Compiler Version
v0.8.7+commit.e28d00a7
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 YakuzaCat is ERC721A, Ownable, ReentrancyGuard { using Strings for uint256; // ================== VARAIBLES ======================= bytes32 public merkleRootWl; bool public revealed = false; enum SaleState { PAUSE, // 0 WHITELIST_SALE, // 1 PUBLIC_SALE // 2 } SaleState public saleState = SaleState.PAUSE; string private uriPrefix = ''; string private uriSuffix = '.json'; string private hiddenMetadataUri; uint256 public wlPrice = 0.0047 ether; uint256 public salePrice = 0.0047 ether; uint256 public maxFree = 1; uint256 public maxWLTx = 3; uint256 public maxTx = 3; uint256 public maxPerTx = 3; uint256 public maxWLSupply = 4747; uint256 public maxSupply = 4747; uint256 public WL_MINTED = 0; uint256 public PB_MINTED = 0; mapping(address => uint256) public WL_MINT_COUNT; mapping(address => uint256) public PL_MINT_COUNT; // ================== CONTRUCTOR ======================= constructor() ERC721A('YakuzaCat', 'YKZC') { setHiddenMetadataUri('ipfs://__CID__/hidden.json'); } // ================== MINT FUNCTIONS ======================= /** * @notice Public Mint */ function publicMint(uint256 _quantity) external payable { // Normal requirements require(saleState == SaleState.PUBLIC_SALE, 'Wait for public mint'); require(_quantity > 0 && _quantity <= maxPerTx, 'Invalid mint amount!'); require(totalSupply() + _quantity <= maxSupply, 'Sold out!'); if (msg.sender != owner()) { require(PL_MINT_COUNT[msg.sender] + _quantity <= maxTx, 'Max mint per wallet exceeded!'); if (PL_MINT_COUNT[msg.sender] + _quantity <= maxFree) { require(msg.value >= salePrice * (_quantity - maxFree), 'Please send the exact amount.'); } else { require(msg.value >= salePrice * _quantity, 'Please send the exact amount.'); } } // Mint _safeMint(msg.sender, _quantity); // Mapping update PL_MINT_COUNT[msg.sender] += _quantity; PB_MINTED += _quantity; } /** * @notice Whitelist Mint */ function whitelistMint(uint256 _quantity, bytes32[] calldata _merkleProof) external payable { // Verify wl requirements require(saleState == SaleState.WHITELIST_SALE, 'Wait for whitelist mint'); 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 <= maxWLSupply, 'No more!'); require(WL_MINT_COUNT[msg.sender] + _quantity <= maxWLTx, 'Max mint per wallet exceeded!'); if (WL_MINT_COUNT[msg.sender] + _quantity <= maxFree) { require(msg.value >= wlPrice * (_quantity - maxFree), 'Please send the exact amount.'); } 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 setState(SaleState _state) external onlyOwner { saleState = _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 setMaxWlTx(uint256 _maxWLTx) public onlyOwner { maxWLTx = _maxWLTx; } function setMaxTx(uint256 _maxTx) public onlyOwner { maxTx = _maxTx; } function setMaxPerTx(uint256 _maxPerTx) public onlyOwner { maxPerTx = _maxPerTx; } function setMaxWhitelistSupply(uint256 _maxWLSupply) public onlyOwner { maxWLSupply = _maxWLSupply; } 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":"PB_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":[],"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":"maxTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWLSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWLTx","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":[{"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":[],"name":"saleState","outputs":[{"internalType":"enum YakuzaCat.SaleState","name":"","type":"uint8"}],"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":"uint256","name":"_maxTx","type":"uint256"}],"name":"setMaxTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxWLSupply","type":"uint256"}],"name":"setMaxWhitelistSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxWLTx","type":"uint256"}],"name":"setMaxWlTx","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":"enum YakuzaCat.SaleState","name":"_state","type":"uint8"}],"name":"setState","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
608060405260016000556000600a60006101000a81548160ff0219169083151502179055506000600a60016101000a81548160ff021916908360028111156200004d576200004c6200051f565b5b021790555060405180602001604052806000815250600b908051906020019062000079929190620003df565b506040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600c9080519060200190620000c7929190620003df565b506610b2a00671c000600e556610b2a00671c000600f55600160105560036011556003601255600360135561128b60145561128b601555600060165560006017553480156200011557600080fd5b506040518060400160405280600981526020017f59616b757a6143617400000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f594b5a430000000000000000000000000000000000000000000000000000000081525081600190805190602001906200019a929190620003df565b508060029080519060200190620001b3929190620003df565b505050620001d6620001ca6200022a60201b60201c565b6200023260201b60201c565b6001600881905550620002246040518060400160405280601a81526020017f697066733a2f2f5f5f4349445f5f2f68696464656e2e6a736f6e000000000000815250620002f860201b60201c565b620005a6565b600033905090565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620003086200032460201b60201c565b80600d908051906020019062000320929190620003df565b5050565b620003346200022a60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166200035a620003b560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620003b3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003aa90620004b6565b60405180910390fd5b565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620003ed90620004e9565b90600052602060002090601f0160209004810192826200041157600085556200045d565b82601f106200042c57805160ff19168380011785556200045d565b828001600101855582156200045d579182015b828111156200045c5782518255916020019190600101906200043f565b5b5090506200046c919062000470565b5090565b5b808211156200048b57600081600090555060010162000471565b5090565b60006200049e602083620004d8565b9150620004ab826200057d565b602082019050919050565b60006020820190508181036000830152620004d1816200048f565b9050919050565b600082825260208201905092915050565b600060028204905060018216806200050257607f821691505b602082108114156200051957620005186200054e565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b61576e80620005b66000396000f3fe6080604052600436106103355760003560e01c806370a08231116101ab578063c7f8d01a116100f7578063e0a8085311610095578063ef8319cd1161006f578063ef8319cd14610c0a578063f2fde38b14610c35578063f51f96dd14610c5e578063f968adbe14610c8957610335565b8063e0a8085314610b67578063e985e9c514610b90578063ed475f6314610bcd57610335565b8063d2cab056116100d1578063d2cab05614610acc578063d5abeb0114610ae8578063d755bf9914610b13578063de137a4a14610b3c57610335565b8063c7f8d01a14610a27578063c87b56dd14610a52578063cd3d46f214610a8f57610335565b80638dd07d0f11610164578063b4dc13151161013e578063b4dc131514610981578063b88d4fde146109ac578063bc337182146109d5578063c6f6f216146109fe57610335565b80638dd07d0f1461090457806395d89b411461092d578063a22cb4651461095857610335565b806370a0823114610808578063715018a6146108455780637437681e1461085c57806378cf19e9146108875780637ec4a659146108b05780638da5cb5b146108d957610335565b8063438b63001161028557806354e5c18c116102235780636352211e116101fd5780636352211e1461073c57806366cbf2e21461077957806366f05dda146107b65780636f8b44b0146107df57610335565b806354e5c18c146106bf57806356de96db146106e8578063603f4d521461071157610335565b80634f6ccce71161025f5780634f6ccce7146106035780634fdd43cb14610640578063515dc32714610669578063518302271461069457610335565b8063438b630014610572578063440bc7f3146105af578063485a68a3146105d857610335565b806323b872dd116102f25780632fbba115116102cc5780632fbba115146104de5780633ccfd60b146105075780633f296d491461051e57806342842e0e1461054957610335565b806323b872dd1461045c5780632db11544146104855780632f745c59146104a157610335565b806301ffc9a71461033a57806306fdde0314610377578063081812fc146103a2578063095ea7b3146103df57806318160ddd146104085780631919fed714610433575b600080fd5b34801561034657600080fd5b50610361600480360381019061035c9190613ccb565b610cb4565b60405161036e919061457b565b60405180910390f35b34801561038357600080fd5b5061038c610dfe565b60405161039991906145cc565b60405180910390f35b3480156103ae57600080fd5b506103c960048036038101906103c49190613d9b565b610e90565b6040516103d691906144f2565b60405180910390f35b3480156103eb57600080fd5b5061040660048036038101906104019190613be4565b610f15565b005b34801561041457600080fd5b5061041d61102e565b60405161042a91906149ce565b60405180910390f35b34801561043f57600080fd5b5061045a60048036038101906104559190613d9b565b611037565b005b34801561046857600080fd5b50610483600480360381019061047e9190613ace565b611049565b005b61049f600480360381019061049a9190613d9b565b611059565b005b3480156104ad57600080fd5b506104c860048036038101906104c39190613be4565b6113c2565b6040516104d591906149ce565b60405180910390f35b3480156104ea57600080fd5b5061050560048036038101906105009190613d9b565b6115b4565b005b34801561051357600080fd5b5061051c611663565b005b34801561052a57600080fd5b5061053361171a565b60405161054091906149ce565b60405180910390f35b34801561055557600080fd5b50610570600480360381019061056b9190613ace565b611720565b005b34801561057e57600080fd5b5061059960048036038101906105949190613a61565b611740565b6040516105a69190614559565b60405180910390f35b3480156105bb57600080fd5b506105d660048036038101906105d19190613c9e565b61184b565b005b3480156105e457600080fd5b506105ed61185d565b6040516105fa91906149ce565b60405180910390f35b34801561060f57600080fd5b5061062a60048036038101906106259190613d9b565b611863565b60405161063791906149ce565b60405180910390f35b34801561064c57600080fd5b5061066760048036038101906106629190613d52565b6118b6565b005b34801561067557600080fd5b5061067e6118d8565b60405161068b91906149ce565b60405180910390f35b3480156106a057600080fd5b506106a96118de565b6040516106b6919061457b565b60405180910390f35b3480156106cb57600080fd5b506106e660048036038101906106e19190613d9b565b6118f1565b005b3480156106f457600080fd5b5061070f600480360381019061070a9190613d25565b611903565b005b34801561071d57600080fd5b50610726611938565b60405161073391906145b1565b60405180910390f35b34801561074857600080fd5b50610763600480360381019061075e9190613d9b565b61194b565b60405161077091906144f2565b60405180910390f35b34801561078557600080fd5b506107a0600480360381019061079b9190613a61565b611961565b6040516107ad91906149ce565b60405180910390f35b3480156107c257600080fd5b506107dd60048036038101906107d89190613d9b565b611979565b005b3480156107eb57600080fd5b5061080660048036038101906108019190613d9b565b61198b565b005b34801561081457600080fd5b5061082f600480360381019061082a9190613a61565b61199d565b60405161083c91906149ce565b60405180910390f35b34801561085157600080fd5b5061085a611a86565b005b34801561086857600080fd5b50610871611a9a565b60405161087e91906149ce565b60405180910390f35b34801561089357600080fd5b506108ae60048036038101906108a99190613be4565b611aa0565b005b3480156108bc57600080fd5b506108d760048036038101906108d29190613d52565b611b50565b005b3480156108e557600080fd5b506108ee611b72565b6040516108fb91906144f2565b60405180910390f35b34801561091057600080fd5b5061092b60048036038101906109269190613d9b565b611b9c565b005b34801561093957600080fd5b50610942611bae565b60405161094f91906145cc565b60405180910390f35b34801561096457600080fd5b5061097f600480360381019061097a9190613ba4565b611c40565b005b34801561098d57600080fd5b50610996611dc1565b6040516109a391906149ce565b60405180910390f35b3480156109b857600080fd5b506109d360048036038101906109ce9190613b21565b611dc7565b005b3480156109e157600080fd5b506109fc60048036038101906109f79190613d9b565b611e23565b005b348015610a0a57600080fd5b50610a256004803603810190610a209190613d9b565b611e35565b005b348015610a3357600080fd5b50610a3c611e47565b604051610a4991906149ce565b60405180910390f35b348015610a5e57600080fd5b50610a796004803603810190610a749190613d9b565b611e4d565b604051610a8691906145cc565b60405180910390f35b348015610a9b57600080fd5b50610ab66004803603810190610ab19190613a61565b611fa6565b604051610ac391906149ce565b60405180910390f35b610ae66004803603810190610ae19190613dc8565b611fbe565b005b348015610af457600080fd5b50610afd61238a565b604051610b0a91906149ce565b60405180910390f35b348015610b1f57600080fd5b50610b3a6004803603810190610b359190613d9b565b612390565b005b348015610b4857600080fd5b50610b516123a2565b604051610b5e91906149ce565b60405180910390f35b348015610b7357600080fd5b50610b8e6004803603810190610b899190613c71565b6123a8565b005b348015610b9c57600080fd5b50610bb76004803603810190610bb29190613a8e565b6123cd565b604051610bc4919061457b565b60405180910390f35b348015610bd957600080fd5b50610bf46004803603810190610bef9190613c24565b612461565b604051610c01919061457b565b60405180910390f35b348015610c1657600080fd5b50610c1f6124f6565b604051610c2c9190614596565b60405180910390f35b348015610c4157600080fd5b50610c5c6004803603810190610c579190613a61565b6124fc565b005b348015610c6a57600080fd5b50610c73612580565b604051610c8091906149ce565b60405180910390f35b348015610c9557600080fd5b50610c9e612586565b604051610cab91906149ce565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d7f57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610de757507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610df75750610df68261258c565b5b9050919050565b606060018054610e0d90614cd5565b80601f0160208091040260200160405190810160405280929190818152602001828054610e3990614cd5565b8015610e865780601f10610e5b57610100808354040283529160200191610e86565b820191906000526020600020905b815481529060010190602001808311610e6957829003601f168201915b5050505050905090565b6000610e9b826125f6565b610eda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed19061498e565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610f208261194b565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f889061482e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610fb0612603565b73ffffffffffffffffffffffffffffffffffffffff161480610fdf5750610fde81610fd9612603565b6123cd565b5b61101e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110159061470e565b60405180910390fd5b61102983838361260b565b505050565b60008054905090565b61103f6126bd565b80600f8190555050565b61105483838361273b565b505050565b60028081111561106c5761106b614e03565b5b600a60019054906101000a900460ff16600281111561108e5761108d614e03565b5b146110ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c59061492e565b60405180910390fd5b6000811180156110e057506013548111155b61111f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111169061466e565b60405180910390fd5b6015548161112b61102e565b6111359190614b0c565b1115611176576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116d906149ae565b60405180910390fd5b61117e611b72565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113465760125481601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546111fe9190614b0c565b111561123f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611236906146ee565b60405180910390fd5b60105481601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461128d9190614b0c565b116112f457601054816112a09190614bbc565b600f546112ad9190614b62565b3410156112ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e69061480e565b60405180910390fd5b611345565b80600f546113029190614b62565b341015611344576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133b9061480e565b60405180910390fd5b5b5b6113503382612c7b565b80601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461139f9190614b0c565b9250508190555080601760008282546113b89190614b0c565b9250508190555050565b60006113cd8361199d565b821061140e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611405906145ee565b60405180910390fd5b600061141861102e565b905060008060005b83811015611572576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461151257806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611564578684141561155b5781955050505050506115ae565b83806001019450505b508080600101915050611420565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a59061494e565b60405180910390fd5b92915050565b6115bc6126bd565b600081116115ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f69061460e565b60405180910390fd5b6015548161160b61102e565b6116159190614b0c565b1115611656576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164d9061488e565b60405180910390fd5b6116603382612c7b565b50565b61166b6126bd565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051611691906144dd565b60006040518083038185875af1925050503d80600081146116ce576040519150601f19603f3d011682016040523d82523d6000602084013e6116d3565b606091505b5050905080611717576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170e9061486e565b60405180910390fd5b50565b60165481565b61173b83838360405180602001604052806000815250611dc7565b505050565b6060600061174d8361199d565b905060008167ffffffffffffffff81111561176b5761176a614e90565b5b6040519080825280602002602001820160405280156117995781602001602082028036833780820191505090505b50905060006001905060005b83811080156117b657506015548211155b1561183f5760006117c68361194b565b90508673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561182b57828483815181106118105761180f614e61565b5b602002602001018181525050818061182790614d38565b9250505b828061183690614d38565b935050506117a5565b82945050505050919050565b6118536126bd565b8060098190555050565b60105481565b600061186d61102e565b82106118ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a59061468e565b60405180910390fd5b819050919050565b6118be6126bd565b80600d90805190602001906118d49291906137bb565b5050565b60145481565b600a60009054906101000a900460ff1681565b6118f96126bd565b8060148190555050565b61190b6126bd565b80600a60016101000a81548160ff021916908360028111156119305761192f614e03565b5b021790555050565b600a60019054906101000a900460ff1681565b600061195682612c99565b600001519050919050565b60186020528060005260406000206000915090505481565b6119816126bd565b8060118190555050565b6119936126bd565b8060158190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a059061472e565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b611a8e6126bd565b611a986000612e33565b565b60125481565b611aa86126bd565b60008111611aeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae29061460e565b60405180910390fd5b60155481611af761102e565b611b019190614b0c565b1115611b42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b399061484e565b60405180910390fd5b611b4c8282612c7b565b5050565b611b586126bd565b80600b9080519060200190611b6e9291906137bb565b5050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611ba46126bd565b80600e8190555050565b606060028054611bbd90614cd5565b80601f0160208091040260200160405190810160405280929190818152602001828054611be990614cd5565b8015611c365780601f10611c0b57610100808354040283529160200191611c36565b820191906000526020600020905b815481529060010190602001808311611c1957829003601f168201915b5050505050905090565b611c48612603565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cad906147ce565b60405180910390fd5b8060066000611cc3612603565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611d70612603565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611db5919061457b565b60405180910390a35050565b60175481565b611dd284848461273b565b611dde84848484612ef9565b611e1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e14906148ae565b60405180910390fd5b50505050565b611e2b6126bd565b8060128190555050565b611e3d6126bd565b8060138190555050565b600e5481565b6060611e58826125f6565b611e97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8e906147ae565b60405180910390fd5b60001515600a60009054906101000a900460ff1615151415611f4557600d8054611ec090614cd5565b80601f0160208091040260200160405190810160405280929190818152602001828054611eec90614cd5565b8015611f395780601f10611f0e57610100808354040283529160200191611f39565b820191906000526020600020905b815481529060010190602001808311611f1c57829003601f168201915b50505050509050611fa1565b6000611f4f613090565b90506000815111611f6f5760405180602001604052806000815250611f9d565b80611f7984613122565b600c604051602001611f8d939291906144ac565b6040516020818303038152906040525b9150505b919050565b60196020528060005260406000206000915090505481565b60016002811115611fd257611fd1614e03565b5b600a60019054906101000a900460ff166002811115611ff457611ff3614e03565b5b14612034576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202b906148ee565b60405180910390fd5b61203e8282612461565b61207d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120749061474e565b60405180910390fd5b60008311801561208f57506013548311155b6120ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c59061466e565b60405180910390fd5b601554836120da61102e565b6120e49190614b0c565b1115612125576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211c906149ae565b60405180910390fd5b601454836016546121369190614b0c565b1115612177576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216e906146ce565b60405180910390fd5b60115483601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546121c59190614b0c565b1115612206576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121fd906146ee565b60405180910390fd5b60105483601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546122549190614b0c565b116122bb57601054836122679190614bbc565b600e546122749190614b62565b3410156122b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ad9061480e565b60405180910390fd5b61230c565b82600e546122c99190614b62565b34101561230b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123029061480e565b60405180910390fd5b5b6123163384612c7b565b82601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123659190614b0c565b92505081905550826016600082825461237e9190614b0c565b92505081905550505050565b60155481565b6123986126bd565b8060108190555050565b60115481565b6123b06126bd565b80600a60006101000a81548160ff02191690831515021790555050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600080336040516020016124759190614491565b6040516020818303038152906040528051906020012090506124db848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600954836131fa565b156124ea5760019150506124f0565b60009150505b92915050565b60095481565b6125046126bd565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612574576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256b9061462e565b60405180910390fd5b61257d81612e33565b50565b600f5481565b60135481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6126c5612603565b73ffffffffffffffffffffffffffffffffffffffff166126e3611b72565b73ffffffffffffffffffffffffffffffffffffffff1614612739576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127309061478e565b60405180910390fd5b565b600061274682612c99565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff1661276d612603565b73ffffffffffffffffffffffffffffffffffffffff1614806127c95750612792612603565b73ffffffffffffffffffffffffffffffffffffffff166127b184610e90565b73ffffffffffffffffffffffffffffffffffffffff16145b806127e557506127e482600001516127df612603565b6123cd565b5b905080612827576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161281e906147ee565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612899576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128909061476e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612909576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612900906146ae565b60405180910390fd5b6129168585856001613211565b612926600084846000015161260b565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160392506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550836003600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612c0b57612b6a816125f6565b15612c0a5782600001516003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612c748585856001613217565b5050505050565b612c9582826040518060200160405280600081525061321d565b5050565b612ca1613841565b612caa826125f6565b612ce9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce09061464e565b60405180910390fd5b60008290505b60008110612df2576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612de3578092505050612e2e565b50808060019003915050612cef565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e259061496e565b60405180910390fd5b919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612f1a8473ffffffffffffffffffffffffffffffffffffffff1661322f565b15613083578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f43612603565b8786866040518563ffffffff1660e01b8152600401612f65949392919061450d565b602060405180830381600087803b158015612f7f57600080fd5b505af1925050508015612fb057506040513d601f19601f82011682018060405250810190612fad9190613cf8565b60015b613033573d8060008114612fe0576040519150601f19603f3d011682016040523d82523d6000602084013e612fe5565b606091505b5060008151141561302b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613022906148ae565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613088565b600190505b949350505050565b6060600b805461309f90614cd5565b80601f01602080910402602001604051908101604052809291908181526020018280546130cb90614cd5565b80156131185780601f106130ed57610100808354040283529160200191613118565b820191906000526020600020905b8154815290600101906020018083116130fb57829003601f168201915b5050505050905090565b60606000600161313184613252565b01905060008167ffffffffffffffff8111156131505761314f614e90565b5b6040519080825280601f01601f1916602001820160405280156131825781602001600182028036833780820191505090505b509050600082602001820190505b6001156131ef578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816131d9576131d8614dd4565b5b04945060008514156131ea576131ef565b613190565b819350505050919050565b60008261320785846133a5565b1490509392505050565b50505050565b50505050565b61322a83838360016133fb565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106132b0577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816132a6576132a5614dd4565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106132ed576d04ee2d6d415b85acef810000000083816132e3576132e2614dd4565b5b0492506020810190505b662386f26fc10000831061331c57662386f26fc10000838161331257613311614dd4565b5b0492506010810190505b6305f5e1008310613345576305f5e100838161333b5761333a614dd4565b5b0492506008810190505b612710831061336a5761271083816133605761335f614dd4565b5b0492506004810190505b6064831061338d576064838161338357613382614dd4565b5b0492506002810190505b600a831061339c576001810190505b80915050919050565b60008082905060005b84518110156133f0576133db828683815181106133ce576133cd614e61565b5b6020026020010151613779565b915080806133e890614d38565b9150506133ae565b508091505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415613471576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613468906148ce565b60405180910390fd5b60008414156134b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134ac9061490e565b60405180910390fd5b6134c26000868387613211565b83600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555083600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550846003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b8581101561375c57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48315613747576137076000888488612ef9565b613746576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161373d906148ae565b60405180910390fd5b5b81806001019250508080600101915050613690565b5080600081905550506137726000868387613217565b5050505050565b60008183106137915761378c82846137a4565b61379c565b61379b83836137a4565b5b905092915050565b600082600052816020526040600020905092915050565b8280546137c790614cd5565b90600052602060002090601f0160209004810192826137e95760008555613830565b82601f1061380257805160ff1916838001178555613830565b82800160010185558215613830579182015b8281111561382f578251825591602001919060010190613814565b5b50905061383d919061387b565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b8082111561389457600081600090555060010161387c565b5090565b60006138ab6138a684614a0e565b6149e9565b9050828152602081018484840111156138c7576138c6614ece565b5b6138d2848285614c93565b509392505050565b60006138ed6138e884614a3f565b6149e9565b90508281526020810184848401111561390957613908614ece565b5b613914848285614c93565b509392505050565b60008135905061392b816156b5565b92915050565b60008083601f84011261394757613946614ec4565b5b8235905067ffffffffffffffff81111561396457613963614ebf565b5b6020830191508360208202830111156139805761397f614ec9565b5b9250929050565b600081359050613996816156cc565b92915050565b6000813590506139ab816156e3565b92915050565b6000813590506139c0816156fa565b92915050565b6000815190506139d5816156fa565b92915050565b600082601f8301126139f0576139ef614ec4565b5b8135613a00848260208601613898565b91505092915050565b600081359050613a1881615711565b92915050565b600082601f830112613a3357613a32614ec4565b5b8135613a438482602086016138da565b91505092915050565b600081359050613a5b81615721565b92915050565b600060208284031215613a7757613a76614ed8565b5b6000613a858482850161391c565b91505092915050565b60008060408385031215613aa557613aa4614ed8565b5b6000613ab38582860161391c565b9250506020613ac48582860161391c565b9150509250929050565b600080600060608486031215613ae757613ae6614ed8565b5b6000613af58682870161391c565b9350506020613b068682870161391c565b9250506040613b1786828701613a4c565b9150509250925092565b60008060008060808587031215613b3b57613b3a614ed8565b5b6000613b498782880161391c565b9450506020613b5a8782880161391c565b9350506040613b6b87828801613a4c565b925050606085013567ffffffffffffffff811115613b8c57613b8b614ed3565b5b613b98878288016139db565b91505092959194509250565b60008060408385031215613bbb57613bba614ed8565b5b6000613bc98582860161391c565b9250506020613bda85828601613987565b9150509250929050565b60008060408385031215613bfb57613bfa614ed8565b5b6000613c098582860161391c565b9250506020613c1a85828601613a4c565b9150509250929050565b60008060208385031215613c3b57613c3a614ed8565b5b600083013567ffffffffffffffff811115613c5957613c58614ed3565b5b613c6585828601613931565b92509250509250929050565b600060208284031215613c8757613c86614ed8565b5b6000613c9584828501613987565b91505092915050565b600060208284031215613cb457613cb3614ed8565b5b6000613cc28482850161399c565b91505092915050565b600060208284031215613ce157613ce0614ed8565b5b6000613cef848285016139b1565b91505092915050565b600060208284031215613d0e57613d0d614ed8565b5b6000613d1c848285016139c6565b91505092915050565b600060208284031215613d3b57613d3a614ed8565b5b6000613d4984828501613a09565b91505092915050565b600060208284031215613d6857613d67614ed8565b5b600082013567ffffffffffffffff811115613d8657613d85614ed3565b5b613d9284828501613a1e565b91505092915050565b600060208284031215613db157613db0614ed8565b5b6000613dbf84828501613a4c565b91505092915050565b600080600060408486031215613de157613de0614ed8565b5b6000613def86828701613a4c565b935050602084013567ffffffffffffffff811115613e1057613e0f614ed3565b5b613e1c86828701613931565b92509250509250925092565b6000613e348383614473565b60208301905092915050565b613e4981614bf0565b82525050565b613e60613e5b82614bf0565b614d81565b82525050565b6000613e7182614a95565b613e7b8185614ac3565b9350613e8683614a70565b8060005b83811015613eb7578151613e9e8882613e28565b9750613ea983614ab6565b925050600181019050613e8a565b5085935050505092915050565b613ecd81614c02565b82525050565b613edc81614c0e565b82525050565b6000613eed82614aa0565b613ef78185614ad4565b9350613f07818560208601614ca2565b613f1081614edd565b840191505092915050565b613f2481614c81565b82525050565b6000613f3582614aab565b613f3f8185614af0565b9350613f4f818560208601614ca2565b613f5881614edd565b840191505092915050565b6000613f6e82614aab565b613f788185614b01565b9350613f88818560208601614ca2565b80840191505092915050565b60008154613fa181614cd5565b613fab8186614b01565b94506001821660008114613fc65760018114613fd75761400a565b60ff1983168652818601935061400a565b613fe085614a80565b60005b8381101561400257815481890152600182019150602081019050613fe3565b838801955050505b50505092915050565b6000614020602283614af0565b915061402b82614efb565b604082019050919050565b6000614043602e83614af0565b915061404e82614f4a565b604082019050919050565b6000614066602683614af0565b915061407182614f99565b604082019050919050565b6000614089602a83614af0565b915061409482614fe8565b604082019050919050565b60006140ac601483614af0565b91506140b782615037565b602082019050919050565b60006140cf602383614af0565b91506140da82615060565b604082019050919050565b60006140f2602583614af0565b91506140fd826150af565b604082019050919050565b6000614115600883614af0565b9150614120826150fe565b602082019050919050565b6000614138601d83614af0565b915061414382615127565b602082019050919050565b600061415b603983614af0565b915061416682615150565b604082019050919050565b600061417e602b83614af0565b91506141898261519f565b604082019050919050565b60006141a1601b83614af0565b91506141ac826151ee565b602082019050919050565b60006141c4602683614af0565b91506141cf82615217565b604082019050919050565b60006141e7602083614af0565b91506141f282615266565b602082019050919050565b600061420a602f83614af0565b91506142158261528f565b604082019050919050565b600061422d601a83614af0565b9150614238826152de565b602082019050919050565b6000614250603283614af0565b915061425b82615307565b604082019050919050565b6000614273601d83614af0565b915061427e82615356565b602082019050919050565b6000614296602283614af0565b91506142a18261537f565b604082019050919050565b60006142b9600083614ae5565b91506142c4826153ce565b600082019050919050565b60006142dc601483614af0565b91506142e7826153d1565b602082019050919050565b60006142ff601083614af0565b915061430a826153fa565b602082019050919050565b6000614322600883614af0565b915061432d82615423565b602082019050919050565b6000614345603383614af0565b91506143508261544c565b604082019050919050565b6000614368602183614af0565b91506143738261549b565b604082019050919050565b600061438b601783614af0565b9150614396826154ea565b602082019050919050565b60006143ae602883614af0565b91506143b982615513565b604082019050919050565b60006143d1601483614af0565b91506143dc82615562565b602082019050919050565b60006143f4602e83614af0565b91506143ff8261558b565b604082019050919050565b6000614417602f83614af0565b9150614422826155da565b604082019050919050565b600061443a602d83614af0565b915061444582615629565b604082019050919050565b600061445d600983614af0565b915061446882615678565b602082019050919050565b61447c81614c77565b82525050565b61448b81614c77565b82525050565b600061449d8284613e4f565b60148201915081905092915050565b60006144b88286613f63565b91506144c48285613f63565b91506144d08284613f94565b9150819050949350505050565b60006144e8826142ac565b9150819050919050565b60006020820190506145076000830184613e40565b92915050565b60006080820190506145226000830187613e40565b61452f6020830186613e40565b61453c6040830185614482565b818103606083015261454e8184613ee2565b905095945050505050565b600060208201905081810360008301526145738184613e66565b905092915050565b60006020820190506145906000830184613ec4565b92915050565b60006020820190506145ab6000830184613ed3565b92915050565b60006020820190506145c66000830184613f1b565b92915050565b600060208201905081810360008301526145e68184613f2a565b905092915050565b6000602082019050818103600083015261460781614013565b9050919050565b6000602082019050818103600083015261462781614036565b9050919050565b6000602082019050818103600083015261464781614059565b9050919050565b600060208201905081810360008301526146678161407c565b9050919050565b600060208201905081810360008301526146878161409f565b9050919050565b600060208201905081810360008301526146a7816140c2565b9050919050565b600060208201905081810360008301526146c7816140e5565b9050919050565b600060208201905081810360008301526146e781614108565b9050919050565b600060208201905081810360008301526147078161412b565b9050919050565b600060208201905081810360008301526147278161414e565b9050919050565b6000602082019050818103600083015261474781614171565b9050919050565b6000602082019050818103600083015261476781614194565b9050919050565b60006020820190508181036000830152614787816141b7565b9050919050565b600060208201905081810360008301526147a7816141da565b9050919050565b600060208201905081810360008301526147c7816141fd565b9050919050565b600060208201905081810360008301526147e781614220565b9050919050565b6000602082019050818103600083015261480781614243565b9050919050565b6000602082019050818103600083015261482781614266565b9050919050565b6000602082019050818103600083015261484781614289565b9050919050565b60006020820190508181036000830152614867816142cf565b9050919050565b60006020820190508181036000830152614887816142f2565b9050919050565b600060208201905081810360008301526148a781614315565b9050919050565b600060208201905081810360008301526148c781614338565b9050919050565b600060208201905081810360008301526148e78161435b565b9050919050565b600060208201905081810360008301526149078161437e565b9050919050565b60006020820190508181036000830152614927816143a1565b9050919050565b60006020820190508181036000830152614947816143c4565b9050919050565b60006020820190508181036000830152614967816143e7565b9050919050565b600060208201905081810360008301526149878161440a565b9050919050565b600060208201905081810360008301526149a78161442d565b9050919050565b600060208201905081810360008301526149c781614450565b9050919050565b60006020820190506149e36000830184614482565b92915050565b60006149f3614a04565b90506149ff8282614d07565b919050565b6000604051905090565b600067ffffffffffffffff821115614a2957614a28614e90565b5b614a3282614edd565b9050602081019050919050565b600067ffffffffffffffff821115614a5a57614a59614e90565b5b614a6382614edd565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614b1782614c77565b9150614b2283614c77565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614b5757614b56614da5565b5b828201905092915050565b6000614b6d82614c77565b9150614b7883614c77565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614bb157614bb0614da5565b5b828202905092915050565b6000614bc782614c77565b9150614bd283614c77565b925082821015614be557614be4614da5565b5b828203905092915050565b6000614bfb82614c57565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000819050614c52826156a1565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000614c8c82614c44565b9050919050565b82818337600083830152505050565b60005b83811015614cc0578082015181840152602081019050614ca5565b83811115614ccf576000848401525b50505050565b60006002820490506001821680614ced57607f821691505b60208210811415614d0157614d00614e32565b5b50919050565b614d1082614edd565b810181811067ffffffffffffffff82111715614d2f57614d2e614e90565b5b80604052505050565b6000614d4382614c77565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614d7657614d75614da5565b5b600182019050919050565b6000614d8c82614d93565b9050919050565b6000614d9e82614eee565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b7f4d696e696d756d2031204e46542068617320746f206265206d696e746564207060008201527f6572207472616e73616374696f6e000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b7f496e76616c6964206d696e7420616d6f756e7421000000000000000000000000600082015250565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f4e6f206d6f726521000000000000000000000000000000000000000000000000600082015250565b7f4d6178206d696e74207065722077616c6c657420657863656564656421000000600082015250565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f41646472657373206973206e6f742077686974656c6973746564210000000000600082015250565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f506c656173652073656e642074686520657861637420616d6f756e742e000000600082015250565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4d617820737570706c7920657863656564656421000000000000000000000000600082015250565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b7f536f6c64206f7574000000000000000000000000000000000000000000000000600082015250565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f5761697420666f722077686974656c697374206d696e74000000000000000000600082015250565b7f455243373231413a207175616e74697479206d7573742062652067726561746560008201527f72207468616e2030000000000000000000000000000000000000000000000000602082015250565b7f5761697420666f72207075626c6963206d696e74000000000000000000000000600082015250565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b7f536f6c64206f7574210000000000000000000000000000000000000000000000600082015250565b600381106156b2576156b1614e03565b5b50565b6156be81614bf0565b81146156c957600080fd5b50565b6156d581614c02565b81146156e057600080fd5b50565b6156ec81614c0e565b81146156f757600080fd5b50565b61570381614c18565b811461570e57600080fd5b50565b6003811061571e57600080fd5b50565b61572a81614c77565b811461573557600080fd5b5056fea2646970667358221220165cff24e627401741c065236d131e184c063cf846e0757832577758b7cb244464736f6c63430008070033
Deployed Bytecode
0x6080604052600436106103355760003560e01c806370a08231116101ab578063c7f8d01a116100f7578063e0a8085311610095578063ef8319cd1161006f578063ef8319cd14610c0a578063f2fde38b14610c35578063f51f96dd14610c5e578063f968adbe14610c8957610335565b8063e0a8085314610b67578063e985e9c514610b90578063ed475f6314610bcd57610335565b8063d2cab056116100d1578063d2cab05614610acc578063d5abeb0114610ae8578063d755bf9914610b13578063de137a4a14610b3c57610335565b8063c7f8d01a14610a27578063c87b56dd14610a52578063cd3d46f214610a8f57610335565b80638dd07d0f11610164578063b4dc13151161013e578063b4dc131514610981578063b88d4fde146109ac578063bc337182146109d5578063c6f6f216146109fe57610335565b80638dd07d0f1461090457806395d89b411461092d578063a22cb4651461095857610335565b806370a0823114610808578063715018a6146108455780637437681e1461085c57806378cf19e9146108875780637ec4a659146108b05780638da5cb5b146108d957610335565b8063438b63001161028557806354e5c18c116102235780636352211e116101fd5780636352211e1461073c57806366cbf2e21461077957806366f05dda146107b65780636f8b44b0146107df57610335565b806354e5c18c146106bf57806356de96db146106e8578063603f4d521461071157610335565b80634f6ccce71161025f5780634f6ccce7146106035780634fdd43cb14610640578063515dc32714610669578063518302271461069457610335565b8063438b630014610572578063440bc7f3146105af578063485a68a3146105d857610335565b806323b872dd116102f25780632fbba115116102cc5780632fbba115146104de5780633ccfd60b146105075780633f296d491461051e57806342842e0e1461054957610335565b806323b872dd1461045c5780632db11544146104855780632f745c59146104a157610335565b806301ffc9a71461033a57806306fdde0314610377578063081812fc146103a2578063095ea7b3146103df57806318160ddd146104085780631919fed714610433575b600080fd5b34801561034657600080fd5b50610361600480360381019061035c9190613ccb565b610cb4565b60405161036e919061457b565b60405180910390f35b34801561038357600080fd5b5061038c610dfe565b60405161039991906145cc565b60405180910390f35b3480156103ae57600080fd5b506103c960048036038101906103c49190613d9b565b610e90565b6040516103d691906144f2565b60405180910390f35b3480156103eb57600080fd5b5061040660048036038101906104019190613be4565b610f15565b005b34801561041457600080fd5b5061041d61102e565b60405161042a91906149ce565b60405180910390f35b34801561043f57600080fd5b5061045a60048036038101906104559190613d9b565b611037565b005b34801561046857600080fd5b50610483600480360381019061047e9190613ace565b611049565b005b61049f600480360381019061049a9190613d9b565b611059565b005b3480156104ad57600080fd5b506104c860048036038101906104c39190613be4565b6113c2565b6040516104d591906149ce565b60405180910390f35b3480156104ea57600080fd5b5061050560048036038101906105009190613d9b565b6115b4565b005b34801561051357600080fd5b5061051c611663565b005b34801561052a57600080fd5b5061053361171a565b60405161054091906149ce565b60405180910390f35b34801561055557600080fd5b50610570600480360381019061056b9190613ace565b611720565b005b34801561057e57600080fd5b5061059960048036038101906105949190613a61565b611740565b6040516105a69190614559565b60405180910390f35b3480156105bb57600080fd5b506105d660048036038101906105d19190613c9e565b61184b565b005b3480156105e457600080fd5b506105ed61185d565b6040516105fa91906149ce565b60405180910390f35b34801561060f57600080fd5b5061062a60048036038101906106259190613d9b565b611863565b60405161063791906149ce565b60405180910390f35b34801561064c57600080fd5b5061066760048036038101906106629190613d52565b6118b6565b005b34801561067557600080fd5b5061067e6118d8565b60405161068b91906149ce565b60405180910390f35b3480156106a057600080fd5b506106a96118de565b6040516106b6919061457b565b60405180910390f35b3480156106cb57600080fd5b506106e660048036038101906106e19190613d9b565b6118f1565b005b3480156106f457600080fd5b5061070f600480360381019061070a9190613d25565b611903565b005b34801561071d57600080fd5b50610726611938565b60405161073391906145b1565b60405180910390f35b34801561074857600080fd5b50610763600480360381019061075e9190613d9b565b61194b565b60405161077091906144f2565b60405180910390f35b34801561078557600080fd5b506107a0600480360381019061079b9190613a61565b611961565b6040516107ad91906149ce565b60405180910390f35b3480156107c257600080fd5b506107dd60048036038101906107d89190613d9b565b611979565b005b3480156107eb57600080fd5b5061080660048036038101906108019190613d9b565b61198b565b005b34801561081457600080fd5b5061082f600480360381019061082a9190613a61565b61199d565b60405161083c91906149ce565b60405180910390f35b34801561085157600080fd5b5061085a611a86565b005b34801561086857600080fd5b50610871611a9a565b60405161087e91906149ce565b60405180910390f35b34801561089357600080fd5b506108ae60048036038101906108a99190613be4565b611aa0565b005b3480156108bc57600080fd5b506108d760048036038101906108d29190613d52565b611b50565b005b3480156108e557600080fd5b506108ee611b72565b6040516108fb91906144f2565b60405180910390f35b34801561091057600080fd5b5061092b60048036038101906109269190613d9b565b611b9c565b005b34801561093957600080fd5b50610942611bae565b60405161094f91906145cc565b60405180910390f35b34801561096457600080fd5b5061097f600480360381019061097a9190613ba4565b611c40565b005b34801561098d57600080fd5b50610996611dc1565b6040516109a391906149ce565b60405180910390f35b3480156109b857600080fd5b506109d360048036038101906109ce9190613b21565b611dc7565b005b3480156109e157600080fd5b506109fc60048036038101906109f79190613d9b565b611e23565b005b348015610a0a57600080fd5b50610a256004803603810190610a209190613d9b565b611e35565b005b348015610a3357600080fd5b50610a3c611e47565b604051610a4991906149ce565b60405180910390f35b348015610a5e57600080fd5b50610a796004803603810190610a749190613d9b565b611e4d565b604051610a8691906145cc565b60405180910390f35b348015610a9b57600080fd5b50610ab66004803603810190610ab19190613a61565b611fa6565b604051610ac391906149ce565b60405180910390f35b610ae66004803603810190610ae19190613dc8565b611fbe565b005b348015610af457600080fd5b50610afd61238a565b604051610b0a91906149ce565b60405180910390f35b348015610b1f57600080fd5b50610b3a6004803603810190610b359190613d9b565b612390565b005b348015610b4857600080fd5b50610b516123a2565b604051610b5e91906149ce565b60405180910390f35b348015610b7357600080fd5b50610b8e6004803603810190610b899190613c71565b6123a8565b005b348015610b9c57600080fd5b50610bb76004803603810190610bb29190613a8e565b6123cd565b604051610bc4919061457b565b60405180910390f35b348015610bd957600080fd5b50610bf46004803603810190610bef9190613c24565b612461565b604051610c01919061457b565b60405180910390f35b348015610c1657600080fd5b50610c1f6124f6565b604051610c2c9190614596565b60405180910390f35b348015610c4157600080fd5b50610c5c6004803603810190610c579190613a61565b6124fc565b005b348015610c6a57600080fd5b50610c73612580565b604051610c8091906149ce565b60405180910390f35b348015610c9557600080fd5b50610c9e612586565b604051610cab91906149ce565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d7f57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610de757507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610df75750610df68261258c565b5b9050919050565b606060018054610e0d90614cd5565b80601f0160208091040260200160405190810160405280929190818152602001828054610e3990614cd5565b8015610e865780601f10610e5b57610100808354040283529160200191610e86565b820191906000526020600020905b815481529060010190602001808311610e6957829003601f168201915b5050505050905090565b6000610e9b826125f6565b610eda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed19061498e565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610f208261194b565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f889061482e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610fb0612603565b73ffffffffffffffffffffffffffffffffffffffff161480610fdf5750610fde81610fd9612603565b6123cd565b5b61101e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110159061470e565b60405180910390fd5b61102983838361260b565b505050565b60008054905090565b61103f6126bd565b80600f8190555050565b61105483838361273b565b505050565b60028081111561106c5761106b614e03565b5b600a60019054906101000a900460ff16600281111561108e5761108d614e03565b5b146110ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c59061492e565b60405180910390fd5b6000811180156110e057506013548111155b61111f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111169061466e565b60405180910390fd5b6015548161112b61102e565b6111359190614b0c565b1115611176576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116d906149ae565b60405180910390fd5b61117e611b72565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113465760125481601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546111fe9190614b0c565b111561123f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611236906146ee565b60405180910390fd5b60105481601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461128d9190614b0c565b116112f457601054816112a09190614bbc565b600f546112ad9190614b62565b3410156112ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e69061480e565b60405180910390fd5b611345565b80600f546113029190614b62565b341015611344576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133b9061480e565b60405180910390fd5b5b5b6113503382612c7b565b80601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461139f9190614b0c565b9250508190555080601760008282546113b89190614b0c565b9250508190555050565b60006113cd8361199d565b821061140e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611405906145ee565b60405180910390fd5b600061141861102e565b905060008060005b83811015611572576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461151257806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611564578684141561155b5781955050505050506115ae565b83806001019450505b508080600101915050611420565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a59061494e565b60405180910390fd5b92915050565b6115bc6126bd565b600081116115ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f69061460e565b60405180910390fd5b6015548161160b61102e565b6116159190614b0c565b1115611656576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164d9061488e565b60405180910390fd5b6116603382612c7b565b50565b61166b6126bd565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051611691906144dd565b60006040518083038185875af1925050503d80600081146116ce576040519150601f19603f3d011682016040523d82523d6000602084013e6116d3565b606091505b5050905080611717576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170e9061486e565b60405180910390fd5b50565b60165481565b61173b83838360405180602001604052806000815250611dc7565b505050565b6060600061174d8361199d565b905060008167ffffffffffffffff81111561176b5761176a614e90565b5b6040519080825280602002602001820160405280156117995781602001602082028036833780820191505090505b50905060006001905060005b83811080156117b657506015548211155b1561183f5760006117c68361194b565b90508673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561182b57828483815181106118105761180f614e61565b5b602002602001018181525050818061182790614d38565b9250505b828061183690614d38565b935050506117a5565b82945050505050919050565b6118536126bd565b8060098190555050565b60105481565b600061186d61102e565b82106118ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a59061468e565b60405180910390fd5b819050919050565b6118be6126bd565b80600d90805190602001906118d49291906137bb565b5050565b60145481565b600a60009054906101000a900460ff1681565b6118f96126bd565b8060148190555050565b61190b6126bd565b80600a60016101000a81548160ff021916908360028111156119305761192f614e03565b5b021790555050565b600a60019054906101000a900460ff1681565b600061195682612c99565b600001519050919050565b60186020528060005260406000206000915090505481565b6119816126bd565b8060118190555050565b6119936126bd565b8060158190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a059061472e565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b611a8e6126bd565b611a986000612e33565b565b60125481565b611aa86126bd565b60008111611aeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae29061460e565b60405180910390fd5b60155481611af761102e565b611b019190614b0c565b1115611b42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b399061484e565b60405180910390fd5b611b4c8282612c7b565b5050565b611b586126bd565b80600b9080519060200190611b6e9291906137bb565b5050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611ba46126bd565b80600e8190555050565b606060028054611bbd90614cd5565b80601f0160208091040260200160405190810160405280929190818152602001828054611be990614cd5565b8015611c365780601f10611c0b57610100808354040283529160200191611c36565b820191906000526020600020905b815481529060010190602001808311611c1957829003601f168201915b5050505050905090565b611c48612603565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611cb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cad906147ce565b60405180910390fd5b8060066000611cc3612603565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611d70612603565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611db5919061457b565b60405180910390a35050565b60175481565b611dd284848461273b565b611dde84848484612ef9565b611e1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e14906148ae565b60405180910390fd5b50505050565b611e2b6126bd565b8060128190555050565b611e3d6126bd565b8060138190555050565b600e5481565b6060611e58826125f6565b611e97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8e906147ae565b60405180910390fd5b60001515600a60009054906101000a900460ff1615151415611f4557600d8054611ec090614cd5565b80601f0160208091040260200160405190810160405280929190818152602001828054611eec90614cd5565b8015611f395780601f10611f0e57610100808354040283529160200191611f39565b820191906000526020600020905b815481529060010190602001808311611f1c57829003601f168201915b50505050509050611fa1565b6000611f4f613090565b90506000815111611f6f5760405180602001604052806000815250611f9d565b80611f7984613122565b600c604051602001611f8d939291906144ac565b6040516020818303038152906040525b9150505b919050565b60196020528060005260406000206000915090505481565b60016002811115611fd257611fd1614e03565b5b600a60019054906101000a900460ff166002811115611ff457611ff3614e03565b5b14612034576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202b906148ee565b60405180910390fd5b61203e8282612461565b61207d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120749061474e565b60405180910390fd5b60008311801561208f57506013548311155b6120ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c59061466e565b60405180910390fd5b601554836120da61102e565b6120e49190614b0c565b1115612125576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211c906149ae565b60405180910390fd5b601454836016546121369190614b0c565b1115612177576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216e906146ce565b60405180910390fd5b60115483601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546121c59190614b0c565b1115612206576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121fd906146ee565b60405180910390fd5b60105483601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546122549190614b0c565b116122bb57601054836122679190614bbc565b600e546122749190614b62565b3410156122b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ad9061480e565b60405180910390fd5b61230c565b82600e546122c99190614b62565b34101561230b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123029061480e565b60405180910390fd5b5b6123163384612c7b565b82601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123659190614b0c565b92505081905550826016600082825461237e9190614b0c565b92505081905550505050565b60155481565b6123986126bd565b8060108190555050565b60115481565b6123b06126bd565b80600a60006101000a81548160ff02191690831515021790555050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600080336040516020016124759190614491565b6040516020818303038152906040528051906020012090506124db848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600954836131fa565b156124ea5760019150506124f0565b60009150505b92915050565b60095481565b6125046126bd565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612574576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256b9061462e565b60405180910390fd5b61257d81612e33565b50565b600f5481565b60135481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6126c5612603565b73ffffffffffffffffffffffffffffffffffffffff166126e3611b72565b73ffffffffffffffffffffffffffffffffffffffff1614612739576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127309061478e565b60405180910390fd5b565b600061274682612c99565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff1661276d612603565b73ffffffffffffffffffffffffffffffffffffffff1614806127c95750612792612603565b73ffffffffffffffffffffffffffffffffffffffff166127b184610e90565b73ffffffffffffffffffffffffffffffffffffffff16145b806127e557506127e482600001516127df612603565b6123cd565b5b905080612827576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161281e906147ee565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612899576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128909061476e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612909576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612900906146ae565b60405180910390fd5b6129168585856001613211565b612926600084846000015161260b565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160392506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550836003600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612c0b57612b6a816125f6565b15612c0a5782600001516003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612c748585856001613217565b5050505050565b612c9582826040518060200160405280600081525061321d565b5050565b612ca1613841565b612caa826125f6565b612ce9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce09061464e565b60405180910390fd5b60008290505b60008110612df2576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612de3578092505050612e2e565b50808060019003915050612cef565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e259061496e565b60405180910390fd5b919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612f1a8473ffffffffffffffffffffffffffffffffffffffff1661322f565b15613083578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f43612603565b8786866040518563ffffffff1660e01b8152600401612f65949392919061450d565b602060405180830381600087803b158015612f7f57600080fd5b505af1925050508015612fb057506040513d601f19601f82011682018060405250810190612fad9190613cf8565b60015b613033573d8060008114612fe0576040519150601f19603f3d011682016040523d82523d6000602084013e612fe5565b606091505b5060008151141561302b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613022906148ae565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613088565b600190505b949350505050565b6060600b805461309f90614cd5565b80601f01602080910402602001604051908101604052809291908181526020018280546130cb90614cd5565b80156131185780601f106130ed57610100808354040283529160200191613118565b820191906000526020600020905b8154815290600101906020018083116130fb57829003601f168201915b5050505050905090565b60606000600161313184613252565b01905060008167ffffffffffffffff8111156131505761314f614e90565b5b6040519080825280601f01601f1916602001820160405280156131825781602001600182028036833780820191505090505b509050600082602001820190505b6001156131ef578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816131d9576131d8614dd4565b5b04945060008514156131ea576131ef565b613190565b819350505050919050565b60008261320785846133a5565b1490509392505050565b50505050565b50505050565b61322a83838360016133fb565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106132b0577a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083816132a6576132a5614dd4565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106132ed576d04ee2d6d415b85acef810000000083816132e3576132e2614dd4565b5b0492506020810190505b662386f26fc10000831061331c57662386f26fc10000838161331257613311614dd4565b5b0492506010810190505b6305f5e1008310613345576305f5e100838161333b5761333a614dd4565b5b0492506008810190505b612710831061336a5761271083816133605761335f614dd4565b5b0492506004810190505b6064831061338d576064838161338357613382614dd4565b5b0492506002810190505b600a831061339c576001810190505b80915050919050565b60008082905060005b84518110156133f0576133db828683815181106133ce576133cd614e61565b5b6020026020010151613779565b915080806133e890614d38565b9150506133ae565b508091505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415613471576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613468906148ce565b60405180910390fd5b60008414156134b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134ac9061490e565b60405180910390fd5b6134c26000868387613211565b83600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555083600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550846003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b8581101561375c57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48315613747576137076000888488612ef9565b613746576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161373d906148ae565b60405180910390fd5b5b81806001019250508080600101915050613690565b5080600081905550506137726000868387613217565b5050505050565b60008183106137915761378c82846137a4565b61379c565b61379b83836137a4565b5b905092915050565b600082600052816020526040600020905092915050565b8280546137c790614cd5565b90600052602060002090601f0160209004810192826137e95760008555613830565b82601f1061380257805160ff1916838001178555613830565b82800160010185558215613830579182015b8281111561382f578251825591602001919060010190613814565b5b50905061383d919061387b565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b8082111561389457600081600090555060010161387c565b5090565b60006138ab6138a684614a0e565b6149e9565b9050828152602081018484840111156138c7576138c6614ece565b5b6138d2848285614c93565b509392505050565b60006138ed6138e884614a3f565b6149e9565b90508281526020810184848401111561390957613908614ece565b5b613914848285614c93565b509392505050565b60008135905061392b816156b5565b92915050565b60008083601f84011261394757613946614ec4565b5b8235905067ffffffffffffffff81111561396457613963614ebf565b5b6020830191508360208202830111156139805761397f614ec9565b5b9250929050565b600081359050613996816156cc565b92915050565b6000813590506139ab816156e3565b92915050565b6000813590506139c0816156fa565b92915050565b6000815190506139d5816156fa565b92915050565b600082601f8301126139f0576139ef614ec4565b5b8135613a00848260208601613898565b91505092915050565b600081359050613a1881615711565b92915050565b600082601f830112613a3357613a32614ec4565b5b8135613a438482602086016138da565b91505092915050565b600081359050613a5b81615721565b92915050565b600060208284031215613a7757613a76614ed8565b5b6000613a858482850161391c565b91505092915050565b60008060408385031215613aa557613aa4614ed8565b5b6000613ab38582860161391c565b9250506020613ac48582860161391c565b9150509250929050565b600080600060608486031215613ae757613ae6614ed8565b5b6000613af58682870161391c565b9350506020613b068682870161391c565b9250506040613b1786828701613a4c565b9150509250925092565b60008060008060808587031215613b3b57613b3a614ed8565b5b6000613b498782880161391c565b9450506020613b5a8782880161391c565b9350506040613b6b87828801613a4c565b925050606085013567ffffffffffffffff811115613b8c57613b8b614ed3565b5b613b98878288016139db565b91505092959194509250565b60008060408385031215613bbb57613bba614ed8565b5b6000613bc98582860161391c565b9250506020613bda85828601613987565b9150509250929050565b60008060408385031215613bfb57613bfa614ed8565b5b6000613c098582860161391c565b9250506020613c1a85828601613a4c565b9150509250929050565b60008060208385031215613c3b57613c3a614ed8565b5b600083013567ffffffffffffffff811115613c5957613c58614ed3565b5b613c6585828601613931565b92509250509250929050565b600060208284031215613c8757613c86614ed8565b5b6000613c9584828501613987565b91505092915050565b600060208284031215613cb457613cb3614ed8565b5b6000613cc28482850161399c565b91505092915050565b600060208284031215613ce157613ce0614ed8565b5b6000613cef848285016139b1565b91505092915050565b600060208284031215613d0e57613d0d614ed8565b5b6000613d1c848285016139c6565b91505092915050565b600060208284031215613d3b57613d3a614ed8565b5b6000613d4984828501613a09565b91505092915050565b600060208284031215613d6857613d67614ed8565b5b600082013567ffffffffffffffff811115613d8657613d85614ed3565b5b613d9284828501613a1e565b91505092915050565b600060208284031215613db157613db0614ed8565b5b6000613dbf84828501613a4c565b91505092915050565b600080600060408486031215613de157613de0614ed8565b5b6000613def86828701613a4c565b935050602084013567ffffffffffffffff811115613e1057613e0f614ed3565b5b613e1c86828701613931565b92509250509250925092565b6000613e348383614473565b60208301905092915050565b613e4981614bf0565b82525050565b613e60613e5b82614bf0565b614d81565b82525050565b6000613e7182614a95565b613e7b8185614ac3565b9350613e8683614a70565b8060005b83811015613eb7578151613e9e8882613e28565b9750613ea983614ab6565b925050600181019050613e8a565b5085935050505092915050565b613ecd81614c02565b82525050565b613edc81614c0e565b82525050565b6000613eed82614aa0565b613ef78185614ad4565b9350613f07818560208601614ca2565b613f1081614edd565b840191505092915050565b613f2481614c81565b82525050565b6000613f3582614aab565b613f3f8185614af0565b9350613f4f818560208601614ca2565b613f5881614edd565b840191505092915050565b6000613f6e82614aab565b613f788185614b01565b9350613f88818560208601614ca2565b80840191505092915050565b60008154613fa181614cd5565b613fab8186614b01565b94506001821660008114613fc65760018114613fd75761400a565b60ff1983168652818601935061400a565b613fe085614a80565b60005b8381101561400257815481890152600182019150602081019050613fe3565b838801955050505b50505092915050565b6000614020602283614af0565b915061402b82614efb565b604082019050919050565b6000614043602e83614af0565b915061404e82614f4a565b604082019050919050565b6000614066602683614af0565b915061407182614f99565b604082019050919050565b6000614089602a83614af0565b915061409482614fe8565b604082019050919050565b60006140ac601483614af0565b91506140b782615037565b602082019050919050565b60006140cf602383614af0565b91506140da82615060565b604082019050919050565b60006140f2602583614af0565b91506140fd826150af565b604082019050919050565b6000614115600883614af0565b9150614120826150fe565b602082019050919050565b6000614138601d83614af0565b915061414382615127565b602082019050919050565b600061415b603983614af0565b915061416682615150565b604082019050919050565b600061417e602b83614af0565b91506141898261519f565b604082019050919050565b60006141a1601b83614af0565b91506141ac826151ee565b602082019050919050565b60006141c4602683614af0565b91506141cf82615217565b604082019050919050565b60006141e7602083614af0565b91506141f282615266565b602082019050919050565b600061420a602f83614af0565b91506142158261528f565b604082019050919050565b600061422d601a83614af0565b9150614238826152de565b602082019050919050565b6000614250603283614af0565b915061425b82615307565b604082019050919050565b6000614273601d83614af0565b915061427e82615356565b602082019050919050565b6000614296602283614af0565b91506142a18261537f565b604082019050919050565b60006142b9600083614ae5565b91506142c4826153ce565b600082019050919050565b60006142dc601483614af0565b91506142e7826153d1565b602082019050919050565b60006142ff601083614af0565b915061430a826153fa565b602082019050919050565b6000614322600883614af0565b915061432d82615423565b602082019050919050565b6000614345603383614af0565b91506143508261544c565b604082019050919050565b6000614368602183614af0565b91506143738261549b565b604082019050919050565b600061438b601783614af0565b9150614396826154ea565b602082019050919050565b60006143ae602883614af0565b91506143b982615513565b604082019050919050565b60006143d1601483614af0565b91506143dc82615562565b602082019050919050565b60006143f4602e83614af0565b91506143ff8261558b565b604082019050919050565b6000614417602f83614af0565b9150614422826155da565b604082019050919050565b600061443a602d83614af0565b915061444582615629565b604082019050919050565b600061445d600983614af0565b915061446882615678565b602082019050919050565b61447c81614c77565b82525050565b61448b81614c77565b82525050565b600061449d8284613e4f565b60148201915081905092915050565b60006144b88286613f63565b91506144c48285613f63565b91506144d08284613f94565b9150819050949350505050565b60006144e8826142ac565b9150819050919050565b60006020820190506145076000830184613e40565b92915050565b60006080820190506145226000830187613e40565b61452f6020830186613e40565b61453c6040830185614482565b818103606083015261454e8184613ee2565b905095945050505050565b600060208201905081810360008301526145738184613e66565b905092915050565b60006020820190506145906000830184613ec4565b92915050565b60006020820190506145ab6000830184613ed3565b92915050565b60006020820190506145c66000830184613f1b565b92915050565b600060208201905081810360008301526145e68184613f2a565b905092915050565b6000602082019050818103600083015261460781614013565b9050919050565b6000602082019050818103600083015261462781614036565b9050919050565b6000602082019050818103600083015261464781614059565b9050919050565b600060208201905081810360008301526146678161407c565b9050919050565b600060208201905081810360008301526146878161409f565b9050919050565b600060208201905081810360008301526146a7816140c2565b9050919050565b600060208201905081810360008301526146c7816140e5565b9050919050565b600060208201905081810360008301526146e781614108565b9050919050565b600060208201905081810360008301526147078161412b565b9050919050565b600060208201905081810360008301526147278161414e565b9050919050565b6000602082019050818103600083015261474781614171565b9050919050565b6000602082019050818103600083015261476781614194565b9050919050565b60006020820190508181036000830152614787816141b7565b9050919050565b600060208201905081810360008301526147a7816141da565b9050919050565b600060208201905081810360008301526147c7816141fd565b9050919050565b600060208201905081810360008301526147e781614220565b9050919050565b6000602082019050818103600083015261480781614243565b9050919050565b6000602082019050818103600083015261482781614266565b9050919050565b6000602082019050818103600083015261484781614289565b9050919050565b60006020820190508181036000830152614867816142cf565b9050919050565b60006020820190508181036000830152614887816142f2565b9050919050565b600060208201905081810360008301526148a781614315565b9050919050565b600060208201905081810360008301526148c781614338565b9050919050565b600060208201905081810360008301526148e78161435b565b9050919050565b600060208201905081810360008301526149078161437e565b9050919050565b60006020820190508181036000830152614927816143a1565b9050919050565b60006020820190508181036000830152614947816143c4565b9050919050565b60006020820190508181036000830152614967816143e7565b9050919050565b600060208201905081810360008301526149878161440a565b9050919050565b600060208201905081810360008301526149a78161442d565b9050919050565b600060208201905081810360008301526149c781614450565b9050919050565b60006020820190506149e36000830184614482565b92915050565b60006149f3614a04565b90506149ff8282614d07565b919050565b6000604051905090565b600067ffffffffffffffff821115614a2957614a28614e90565b5b614a3282614edd565b9050602081019050919050565b600067ffffffffffffffff821115614a5a57614a59614e90565b5b614a6382614edd565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614b1782614c77565b9150614b2283614c77565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614b5757614b56614da5565b5b828201905092915050565b6000614b6d82614c77565b9150614b7883614c77565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614bb157614bb0614da5565b5b828202905092915050565b6000614bc782614c77565b9150614bd283614c77565b925082821015614be557614be4614da5565b5b828203905092915050565b6000614bfb82614c57565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000819050614c52826156a1565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000614c8c82614c44565b9050919050565b82818337600083830152505050565b60005b83811015614cc0578082015181840152602081019050614ca5565b83811115614ccf576000848401525b50505050565b60006002820490506001821680614ced57607f821691505b60208210811415614d0157614d00614e32565b5b50919050565b614d1082614edd565b810181811067ffffffffffffffff82111715614d2f57614d2e614e90565b5b80604052505050565b6000614d4382614c77565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614d7657614d75614da5565b5b600182019050919050565b6000614d8c82614d93565b9050919050565b6000614d9e82614eee565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b7f4d696e696d756d2031204e46542068617320746f206265206d696e746564207060008201527f6572207472616e73616374696f6e000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b7f496e76616c6964206d696e7420616d6f756e7421000000000000000000000000600082015250565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f4e6f206d6f726521000000000000000000000000000000000000000000000000600082015250565b7f4d6178206d696e74207065722077616c6c657420657863656564656421000000600082015250565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f41646472657373206973206e6f742077686974656c6973746564210000000000600082015250565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f506c656173652073656e642074686520657861637420616d6f756e742e000000600082015250565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4d617820737570706c7920657863656564656421000000000000000000000000600082015250565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b7f536f6c64206f7574000000000000000000000000000000000000000000000000600082015250565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f5761697420666f722077686974656c697374206d696e74000000000000000000600082015250565b7f455243373231413a207175616e74697479206d7573742062652067726561746560008201527f72207468616e2030000000000000000000000000000000000000000000000000602082015250565b7f5761697420666f72207075626c6963206d696e74000000000000000000000000600082015250565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b7f536f6c64206f7574210000000000000000000000000000000000000000000000600082015250565b600381106156b2576156b1614e03565b5b50565b6156be81614bf0565b81146156c957600080fd5b50565b6156d581614c02565b81146156e057600080fd5b50565b6156ec81614c0e565b81146156f757600080fd5b50565b61570381614c18565b811461570e57600080fd5b50565b6003811061571e57600080fd5b50565b61572a81614c77565b811461573557600080fd5b5056fea2646970667358221220165cff24e627401741c065236d131e184c063cf846e0757832577758b7cb244464736f6c63430008070033
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.