ERC-721
Overview
Max Total Supply
6,969 SS
Holders
2,579
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:
SnoozinSquad
Compiler Version
v0.8.18+commit.87f61d96
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 SnoozinSquad 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.005 ether; uint256 public salePrice = 0.0069 ether; uint256 public noCost = 1; uint256 public maxWLTx = 5; uint256 public maxTx = 10; uint256 public maxSupply = 6969; uint256 public noCostLimit = 2000; uint256 public NC_MINTED = 0; uint256 public WL_MINTED = 0; uint256 public PB_MINTED = 0; mapping(address => uint256) public MINT_COUNT; mapping(address => uint256) public WL_MINT_COUNT; mapping(address => bool) public CLAIMED; // ================== CONTRUCTOR ======================= constructor() ERC721A("SnoozinSquad", "SS") { 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 <= maxTx, "Invalid mint amount!"); require(totalSupply() + _quantity <= maxSupply, "Sold out!"); if (msg.sender != owner()) { require(balanceOf(msg.sender) + _quantity <= maxTx, "No more!"); require( msg.value >= salePrice * _quantity, "Please send the exact amount." ); } // Mint _safeMint(msg.sender, _quantity); // Mapping update 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 <= maxWLTx, "Invalid mint amount!"); require(totalSupply() + _quantity <= maxSupply, "Sold out!"); require( WL_MINT_COUNT[msg.sender] + _quantity <= maxWLTx, "Max mint per wallet exceeded!" ); if (!CLAIMED[msg.sender] && NC_MINTED + noCost <= noCostLimit) { if (_quantity <= noCost) { require(msg.value >= 0, "Please send the exact amount."); NC_MINTED += _quantity; } else { require( msg.value >= wlPrice * (_quantity - noCost), "Please send the exact amount." ); NC_MINTED += noCost; } CLAIMED[msg.sender] = true; } else { require( msg.value >= wlPrice * _quantity, "Please send the exact amount." ); } // Mint _safeMint(msg.sender, _quantity); // Mapping update WL_MINT_COUNT[msg.sender] += _quantity; WL_MINTED += _quantity; } /** * @notice Team Mint */ function teamMint(uint256 _quantity) external onlyOwner { require( _quantity > 0, "Minimum 1 NFT has to be minted per transaction" ); require(totalSupply() + _quantity <= maxSupply, "Sold out"); _safeMint(msg.sender, _quantity); } /** * @notice airdrop */ function airdrop(address _to, uint256 _quantity) external onlyOwner { require(saleState != SaleState.PAUSE, "The contract is paused!"); require(_quantity + totalSupply() <= maxSupply, "Sold out"); _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 setRevealed(bool _state) public onlyOwner { revealed = _state; } function setState(SaleState _state) external onlyOwner { saleState = _state; } function setWhitelist(bytes32 _merkleRoot) external onlyOwner { merkleRootWl = _merkleRoot; } function setSalePrice(uint256 _newPrice) external onlyOwner { salePrice = _newPrice; } function setWlPrice(uint256 _newPrice) external onlyOwner { wlPrice = _newPrice; } function setNoCost(uint256 _noCost) public onlyOwner { noCost = _noCost; } function setMaxTx(uint256 _maxTx) public onlyOwner { maxTx = _maxTx; } function setMaxWlTx(uint256 _maxWLTx) public onlyOwner { maxWLTx = _maxWLTx; } function setNoCostLimit(uint256 _noCostLimit) public onlyOwner { noCostLimit = _noCostLimit; } 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 setUriSuffix(string memory _uriSuffix) public onlyOwner { uriSuffix = _uriSuffix; } 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":[{"internalType":"address","name":"","type":"address"}],"name":"CLAIMED","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"MINT_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NC_MINTED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PB_MINTED","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":"_quantity","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":"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":"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":"noCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"noCostLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","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 SnoozinSquad.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":"_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":"_maxWLTx","type":"uint256"}],"name":"setMaxWlTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_noCost","type":"uint256"}],"name":"setNoCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_noCostLimit","type":"uint256"}],"name":"setNoCostLimit","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 SnoozinSquad.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":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","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
608060405260016000556000600a60006101000a81548160ff0219169083151502179055506000600a60016101000a81548160ff021916908360028111156200004d576200004c620003bc565b5b021790555060405180602001604052806000815250600b908162000072919062000665565b506040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600c9081620000b9919062000665565b506611c37937e08000600e556618838370f34000600f5560016010556005601155600a601255611b396013556107d06014556000601555600060165560006017553480156200010757600080fd5b506040518060400160405280600c81526020017f536e6f6f7a696e537175616400000000000000000000000000000000000000008152506040518060400160405280600281526020017f5353000000000000000000000000000000000000000000000000000000000000815250816001908162000185919062000665565b50806002908162000197919062000665565b505050620001ba620001ae6200020e60201b60201c565b6200021660201b60201c565b6001600881905550620002086040518060400160405280601a81526020017f697066733a2f2f5f5f4349445f5f2f68696464656e2e6a736f6e000000000000815250620002dc60201b60201c565b620007cf565b600033905090565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002ec6200030160201b60201c565b80600d9081620002fd919062000665565b5050565b620003116200020e60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620003376200039260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000390576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200038790620007ad565b60405180910390fd5b565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200046d57607f821691505b60208210810362000483576200048262000425565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620004ed7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620004ae565b620004f98683620004ae565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000546620005406200053a8462000511565b6200051b565b62000511565b9050919050565b6000819050919050565b620005628362000525565b6200057a62000571826200054d565b848454620004bb565b825550505050565b600090565b6200059162000582565b6200059e81848462000557565b505050565b5b81811015620005c657620005ba60008262000587565b600181019050620005a4565b5050565b601f8211156200061557620005df8162000489565b620005ea846200049e565b81016020851015620005fa578190505b6200061262000609856200049e565b830182620005a3565b50505b505050565b600082821c905092915050565b60006200063a600019846008026200061a565b1980831691505092915050565b600062000655838362000627565b9150826002028217905092915050565b6200067082620003eb565b67ffffffffffffffff8111156200068c576200068b620003f6565b5b62000698825462000454565b620006a5828285620005ca565b600060209050601f831160018114620006dd5760008415620006c8578287015190505b620006d4858262000647565b86555062000744565b601f198416620006ed8662000489565b60005b828110156200071757848901518255600182019150602085019450602081019050620006f0565b8683101562000737578489015162000733601f89168262000627565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000620007956020836200074c565b9150620007a2826200075d565b602082019050919050565b60006020820190508181036000830152620007c88162000786565b9050919050565b6158da80620007df6000396000f3fe6080604052600436106103505760003560e01c80636f8b44b0116101c6578063b88d4fde116100f7578063e0a8085311610095578063ed475f631161006f578063ed475f6314610c50578063ef8319cd14610c8d578063f2fde38b14610cb8578063f51f96dd14610ce157610350565b8063e0a8085314610bbf578063e985e9c514610be8578063eb2b045a14610c2557610350565b8063c87b56dd116100d1578063c87b56dd14610b10578063d2cab05614610b4d578063d5abeb0114610b69578063de137a4a14610b9457610350565b8063b88d4fde14610a93578063bc33718214610abc578063c7f8d01a14610ae557610350565b80638256994c116101645780638dd07d0f1161013e5780638dd07d0f146109eb57806395d89b4114610a14578063a22cb46514610a3f578063b4dc131514610a6857610350565b80638256994c1461096e5780638ba4cc3c146109975780638da5cb5b146109c057610350565b806371a34298116101a057806371a34298146108a05780637437681e146108dd57806377d15a84146109085780637ec4a6591461094557610350565b80636f8b44b01461082357806370a082311461084c578063715018a61461088957610350565b80633ccfd60b116102a05780634fdd43cb1161023e578063603f4d5211610218578063603f4d52146107555780636352211e1461078057806366cbf2e2146107bd57806366f05dda146107fa57610350565b80634fdd43cb146106d8578063518302271461070157806356de96db1461072c57610350565b8063438b63001161027a578063438b63001461060c578063440bc7f3146106495780634ac1701b146106725780634f6ccce71461069b57610350565b80633ccfd60b146105a15780633f296d49146105b857806342842e0e146105e357610350565b80631758765e1161030d57806323b872dd116102e757806323b872dd146104f65780632db115441461051f5780632f745c591461053b5780632fbba1151461057857610350565b80631758765e1461047757806318160ddd146104a25780631919fed7146104cd57610350565b806301ffc9a71461035557806306fdde0314610392578063081812fc146103bd578063095ea7b3146103fa5780630f2910311461042357806316ba10e01461044e575b600080fd5b34801561036157600080fd5b5061037c60048036038101906103779190613848565b610d0c565b6040516103899190613890565b60405180910390f35b34801561039e57600080fd5b506103a7610e56565b6040516103b4919061393b565b60405180910390f35b3480156103c957600080fd5b506103e460048036038101906103df9190613993565b610ee8565b6040516103f19190613a01565b60405180910390f35b34801561040657600080fd5b50610421600480360381019061041c9190613a48565b610f6d565b005b34801561042f57600080fd5b50610438611085565b6040516104459190613a97565b60405180910390f35b34801561045a57600080fd5b5061047560048036038101906104709190613be7565b61108b565b005b34801561048357600080fd5b5061048c6110a6565b6040516104999190613a97565b60405180910390f35b3480156104ae57600080fd5b506104b76110ac565b6040516104c49190613a97565b60405180910390f35b3480156104d957600080fd5b506104f460048036038101906104ef9190613993565b6110b5565b005b34801561050257600080fd5b5061051d60048036038101906105189190613c30565b6110c7565b005b61053960048036038101906105349190613993565b6110d7565b005b34801561054757600080fd5b50610562600480360381019061055d9190613a48565b6112fd565b60405161056f9190613a97565b60405180910390f35b34801561058457600080fd5b5061059f600480360381019061059a9190613993565b6114ed565b005b3480156105ad57600080fd5b506105b661159c565b005b3480156105c457600080fd5b506105cd611653565b6040516105da9190613a97565b60405180910390f35b3480156105ef57600080fd5b5061060a60048036038101906106059190613c30565b611659565b005b34801561061857600080fd5b50610633600480360381019061062e9190613c83565b611679565b6040516106409190613d6e565b60405180910390f35b34801561065557600080fd5b50610670600480360381019061066b9190613dc6565b611783565b005b34801561067e57600080fd5b5061069960048036038101906106949190613993565b611795565b005b3480156106a757600080fd5b506106c260048036038101906106bd9190613993565b6117a7565b6040516106cf9190613a97565b60405180910390f35b3480156106e457600080fd5b506106ff60048036038101906106fa9190613be7565b6117fa565b005b34801561070d57600080fd5b50610716611815565b6040516107239190613890565b60405180910390f35b34801561073857600080fd5b50610753600480360381019061074e9190613e18565b611828565b005b34801561076157600080fd5b5061076a61185d565b6040516107779190613ebc565b60405180910390f35b34801561078c57600080fd5b506107a760048036038101906107a29190613993565b611870565b6040516107b49190613a01565b60405180910390f35b3480156107c957600080fd5b506107e460048036038101906107df9190613c83565b611886565b6040516107f19190613a97565b60405180910390f35b34801561080657600080fd5b50610821600480360381019061081c9190613993565b61189e565b005b34801561082f57600080fd5b5061084a60048036038101906108459190613993565b6118b0565b005b34801561085857600080fd5b50610873600480360381019061086e9190613c83565b6118c2565b6040516108809190613a97565b60405180910390f35b34801561089557600080fd5b5061089e6119aa565b005b3480156108ac57600080fd5b506108c760048036038101906108c29190613c83565b6119be565b6040516108d49190613890565b60405180910390f35b3480156108e957600080fd5b506108f26119de565b6040516108ff9190613a97565b60405180910390f35b34801561091457600080fd5b5061092f600480360381019061092a9190613c83565b6119e4565b60405161093c9190613a97565b60405180910390f35b34801561095157600080fd5b5061096c60048036038101906109679190613be7565b6119fc565b005b34801561097a57600080fd5b5061099560048036038101906109909190613993565b611a17565b005b3480156109a357600080fd5b506109be60048036038101906109b99190613a48565b611a29565b005b3480156109cc57600080fd5b506109d5611b0c565b6040516109e29190613a01565b60405180910390f35b3480156109f757600080fd5b50610a126004803603810190610a0d9190613993565b611b36565b005b348015610a2057600080fd5b50610a29611b48565b604051610a36919061393b565b60405180910390f35b348015610a4b57600080fd5b50610a666004803603810190610a619190613f03565b611bda565b005b348015610a7457600080fd5b50610a7d611d5a565b604051610a8a9190613a97565b60405180910390f35b348015610a9f57600080fd5b50610aba6004803603810190610ab59190613fe4565b611d60565b005b348015610ac857600080fd5b50610ae36004803603810190610ade9190613993565b611dbc565b005b348015610af157600080fd5b50610afa611dce565b604051610b079190613a97565b60405180910390f35b348015610b1c57600080fd5b50610b376004803603810190610b329190613993565b611dd4565b604051610b44919061393b565b60405180910390f35b610b676004803603810190610b6291906140c7565b611f2c565b005b348015610b7557600080fd5b50610b7e6123a2565b604051610b8b9190613a97565b60405180910390f35b348015610ba057600080fd5b50610ba96123a8565b604051610bb69190613a97565b60405180910390f35b348015610bcb57600080fd5b50610be66004803603810190610be19190614127565b6123ae565b005b348015610bf457600080fd5b50610c0f6004803603810190610c0a9190614154565b6123d3565b604051610c1c9190613890565b60405180910390f35b348015610c3157600080fd5b50610c3a612467565b604051610c479190613a97565b60405180910390f35b348015610c5c57600080fd5b50610c776004803603810190610c729190614194565b61246d565b604051610c849190613890565b60405180910390f35b348015610c9957600080fd5b50610ca2612502565b604051610caf91906141f0565b60405180910390f35b348015610cc457600080fd5b50610cdf6004803603810190610cda9190613c83565b612508565b005b348015610ced57600080fd5b50610cf661258b565b604051610d039190613a97565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610dd757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610e3f57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610e4f5750610e4e82612591565b5b9050919050565b606060018054610e659061423a565b80601f0160208091040260200160405190810160405280929190818152602001828054610e919061423a565b8015610ede5780601f10610eb357610100808354040283529160200191610ede565b820191906000526020600020905b815481529060010190602001808311610ec157829003601f168201915b5050505050905090565b6000610ef3826125fb565b610f32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f29906142dd565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610f7882611870565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610fe8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdf9061436f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16611007612608565b73ffffffffffffffffffffffffffffffffffffffff161480611036575061103581611030612608565b6123d3565b5b611075576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106c90614401565b60405180910390fd5b611080838383612610565b505050565b60155481565b6110936126c2565b80600c90816110a291906145cd565b5050565b60145481565b60008054905090565b6110bd6126c2565b80600f8190555050565b6110d2838383612740565b505050565b6002808111156110ea576110e9613e45565b5b600a60019054906101000a900460ff16600281111561110c5761110b613e45565b5b1461114c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611143906146eb565b60405180910390fd5b60008111801561115e57506012548111155b61119d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119490614757565b60405180910390fd5b601354816111a96110ac565b6111b391906147a6565b11156111f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111eb90614826565b60405180910390fd5b6111fc611b0c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146112d7576012548161123b336118c2565b61124591906147a6565b1115611286576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127d90614892565b60405180910390fd5b80600f5461129491906148b2565b3410156112d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112cd90614940565b60405180910390fd5b5b6112e13382612c7e565b80601760008282546112f391906147a6565b9250508190555050565b6000611308836118c2565b8210611349576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611340906149d2565b60405180910390fd5b60006113536110ac565b905060008060005b838110156114ab576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461144d57806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361149d578684036114945781955050505050506114e7565b83806001019450505b50808060010191505061135b565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114de90614a64565b60405180910390fd5b92915050565b6114f56126c2565b60008111611538576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152f90614af6565b60405180910390fd5b601354816115446110ac565b61154e91906147a6565b111561158f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158690614b62565b60405180910390fd5b6115993382612c7e565b50565b6115a46126c2565b60003373ffffffffffffffffffffffffffffffffffffffff16476040516115ca90614bb3565b60006040518083038185875af1925050503d8060008114611607576040519150601f19603f3d011682016040523d82523d6000602084013e61160c565b606091505b5050905080611650576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164790614c14565b60405180910390fd5b50565b60165481565b61167483838360405180602001604052806000815250611d60565b505050565b60606000611686836118c2565b905060008167ffffffffffffffff8111156116a4576116a3613abc565b5b6040519080825280602002602001820160405280156116d25781602001602082028036833780820191505090505b50905060006001905060005b83811080156116ef57506013548211155b156117775760006116ff83611870565b90508673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611763578284838151811061174857611747614c34565b5b602002602001018181525050818061175f90614c63565b9250505b828061176e90614c63565b935050506116de565b82945050505050919050565b61178b6126c2565b8060098190555050565b61179d6126c2565b8060108190555050565b60006117b16110ac565b82106117f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e990614d1d565b60405180910390fd5b819050919050565b6118026126c2565b80600d908161181191906145cd565b5050565b600a60009054906101000a900460ff1681565b6118306126c2565b80600a60016101000a81548160ff0219169083600281111561185557611854613e45565b5b021790555050565b600a60019054906101000a900460ff1681565b600061187b82612c9c565b600001519050919050565b60196020528060005260406000206000915090505481565b6118a66126c2565b8060118190555050565b6118b86126c2565b8060138190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611932576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192990614daf565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b6119b26126c2565b6119bc6000612e36565b565b601a6020528060005260406000206000915054906101000a900460ff1681565b60125481565b60186020528060005260406000206000915090505481565b611a046126c2565b80600b9081611a1391906145cd565b5050565b611a1f6126c2565b8060148190555050565b611a316126c2565b60006002811115611a4557611a44613e45565b5b600a60019054906101000a900460ff166002811115611a6757611a66613e45565b5b03611aa7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9e90614e1b565b60405180910390fd5b601354611ab26110ac565b82611abd91906147a6565b1115611afe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af590614b62565b60405180910390fd5b611b088282612c7e565b5050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611b3e6126c2565b80600e8190555050565b606060028054611b579061423a565b80601f0160208091040260200160405190810160405280929190818152602001828054611b839061423a565b8015611bd05780601f10611ba557610100808354040283529160200191611bd0565b820191906000526020600020905b815481529060010190602001808311611bb357829003601f168201915b5050505050905090565b611be2612608565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4690614e87565b60405180910390fd5b8060066000611c5c612608565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611d09612608565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611d4e9190613890565b60405180910390a35050565b60175481565b611d6b848484612740565b611d7784848484612efc565b611db6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dad90614f19565b60405180910390fd5b50505050565b611dc46126c2565b8060128190555050565b600e5481565b6060611ddf826125fb565b611e1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1590614fab565b60405180910390fd5b60001515600a60009054906101000a900460ff16151503611ecb57600d8054611e469061423a565b80601f0160208091040260200160405190810160405280929190818152602001828054611e729061423a565b8015611ebf5780601f10611e9457610100808354040283529160200191611ebf565b820191906000526020600020905b815481529060010190602001808311611ea257829003601f168201915b50505050509050611f27565b6000611ed5613083565b90506000815111611ef55760405180602001604052806000815250611f23565b80611eff84613115565b600c604051602001611f139392919061508a565b6040516020818303038152906040525b9150505b919050565b60016002811115611f4057611f3f613e45565b5b600a60019054906101000a900460ff166002811115611f6257611f61613e45565b5b14611fa2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9990615107565b60405180910390fd5b611fac828261246d565b611feb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe290615173565b60405180910390fd5b600083118015611ffd57506011548311155b61203c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203390614757565b60405180910390fd5b601354836120486110ac565b61205291906147a6565b1115612093576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208a90614826565b60405180910390fd5b60115483601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546120e191906147a6565b1115612122576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612119906151df565b60405180910390fd5b601a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615801561218d575060145460105460155461218a91906147a6565b11155b156122d35760105483116121fd5760003410156121df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d690614940565b60405180910390fd5b82601560008282546121f191906147a6565b92505081905550612276565b6010548361220b91906151ff565b600e5461221891906148b2565b34101561225a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225190614940565b60405180910390fd5b6010546015600082825461226e91906147a6565b925050819055505b6001601a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612324565b82600e546122e191906148b2565b341015612323576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231a90614940565b60405180910390fd5b5b61232e3384612c7e565b82601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461237d91906147a6565b92505081905550826016600082825461239691906147a6565b92505081905550505050565b60135481565b60115481565b6123b66126c2565b80600a60006101000a81548160ff02191690831515021790555050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60105481565b60008033604051602001612481919061527b565b6040516020818303038152906040528051906020012090506124e7848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600954836131e3565b156124f65760019150506124fc565b60009150505b92915050565b60095481565b6125106126c2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361257f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257690615308565b60405180910390fd5b61258881612e36565b50565b600f5481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6126ca612608565b73ffffffffffffffffffffffffffffffffffffffff166126e8611b0c565b73ffffffffffffffffffffffffffffffffffffffff161461273e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161273590615374565b60405180910390fd5b565b600061274b82612c9c565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16612772612608565b73ffffffffffffffffffffffffffffffffffffffff1614806127ce5750612797612608565b73ffffffffffffffffffffffffffffffffffffffff166127b684610ee8565b73ffffffffffffffffffffffffffffffffffffffff16145b806127ea57506127e982600001516127e4612608565b6123d3565b5b90508061282c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161282390615406565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461289e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289590615498565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361290d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129049061552a565b60405180910390fd5b61291a85858560016131fa565b61292a6000848460000151612610565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160392506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550836003600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603612c0e57612b6d816125fb565b15612c0d5782600001516003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612c778585856001613200565b5050505050565b612c98828260405180602001604052806000815250613206565b5050565b612ca46137a2565b612cad826125fb565b612cec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce3906155bc565b60405180910390fd5b60008290505b60008110612df5576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612de6578092505050612e31565b50808060019003915050612cf2565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e289061564e565b60405180910390fd5b919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612f1d8473ffffffffffffffffffffffffffffffffffffffff16613218565b15613076578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f46612608565b8786866040518563ffffffff1660e01b8152600401612f6894939291906156c3565b6020604051808303816000875af1925050508015612fa457506040513d601f19601f82011682018060405250810190612fa19190615724565b60015b613026573d8060008114612fd4576040519150601f19603f3d011682016040523d82523d6000602084013e612fd9565b606091505b50600081510361301e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161301590614f19565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061307b565b600190505b949350505050565b6060600b80546130929061423a565b80601f01602080910402602001604051908101604052809291908181526020018280546130be9061423a565b801561310b5780601f106130e05761010080835404028352916020019161310b565b820191906000526020600020905b8154815290600101906020018083116130ee57829003601f168201915b5050505050905090565b6060600060016131248461323b565b01905060008167ffffffffffffffff81111561314357613142613abc565b5b6040519080825280601f01601f1916602001820160405280156131755781602001600182028036833780820191505090505b509050600082602001820190505b6001156131d8578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816131cc576131cb615751565b5b04945060008503613183575b819350505050919050565b6000826131f0858461338e565b1490509392505050565b50505050565b50505050565b61321383838360016133e4565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613299577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161328f5761328e615751565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106132d6576d04ee2d6d415b85acef810000000083816132cc576132cb615751565b5b0492506020810190505b662386f26fc10000831061330557662386f26fc1000083816132fb576132fa615751565b5b0492506010810190505b6305f5e100831061332e576305f5e100838161332457613323615751565b5b0492506008810190505b612710831061335357612710838161334957613348615751565b5b0492506004810190505b60648310613376576064838161336c5761336b615751565b5b0492506002810190505b600a8310613385576001810190505b80915050919050565b60008082905060005b84518110156133d9576133c4828683815181106133b7576133b6614c34565b5b6020026020010151613760565b915080806133d190614c63565b915050613397565b508091505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603613459576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613450906157f2565b60405180910390fd5b6000840361349c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161349390615884565b60405180910390fd5b6134a960008683876131fa565b83600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555083600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550846003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b8581101561374357818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4831561372e576136ee6000888488612efc565b61372d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161372490614f19565b60405180910390fd5b5b81806001019250508080600101915050613677565b5080600081905550506137596000868387613200565b5050505050565b600081831061377857613773828461378b565b613783565b613782838361378b565b5b905092915050565b600082600052816020526040600020905092915050565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613825816137f0565b811461383057600080fd5b50565b6000813590506138428161381c565b92915050565b60006020828403121561385e5761385d6137e6565b5b600061386c84828501613833565b91505092915050565b60008115159050919050565b61388a81613875565b82525050565b60006020820190506138a56000830184613881565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156138e55780820151818401526020810190506138ca565b60008484015250505050565b6000601f19601f8301169050919050565b600061390d826138ab565b61391781856138b6565b93506139278185602086016138c7565b613930816138f1565b840191505092915050565b600060208201905081810360008301526139558184613902565b905092915050565b6000819050919050565b6139708161395d565b811461397b57600080fd5b50565b60008135905061398d81613967565b92915050565b6000602082840312156139a9576139a86137e6565b5b60006139b78482850161397e565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006139eb826139c0565b9050919050565b6139fb816139e0565b82525050565b6000602082019050613a1660008301846139f2565b92915050565b613a25816139e0565b8114613a3057600080fd5b50565b600081359050613a4281613a1c565b92915050565b60008060408385031215613a5f57613a5e6137e6565b5b6000613a6d85828601613a33565b9250506020613a7e8582860161397e565b9150509250929050565b613a918161395d565b82525050565b6000602082019050613aac6000830184613a88565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613af4826138f1565b810181811067ffffffffffffffff82111715613b1357613b12613abc565b5b80604052505050565b6000613b266137dc565b9050613b328282613aeb565b919050565b600067ffffffffffffffff821115613b5257613b51613abc565b5b613b5b826138f1565b9050602081019050919050565b82818337600083830152505050565b6000613b8a613b8584613b37565b613b1c565b905082815260208101848484011115613ba657613ba5613ab7565b5b613bb1848285613b68565b509392505050565b600082601f830112613bce57613bcd613ab2565b5b8135613bde848260208601613b77565b91505092915050565b600060208284031215613bfd57613bfc6137e6565b5b600082013567ffffffffffffffff811115613c1b57613c1a6137eb565b5b613c2784828501613bb9565b91505092915050565b600080600060608486031215613c4957613c486137e6565b5b6000613c5786828701613a33565b9350506020613c6886828701613a33565b9250506040613c798682870161397e565b9150509250925092565b600060208284031215613c9957613c986137e6565b5b6000613ca784828501613a33565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613ce58161395d565b82525050565b6000613cf78383613cdc565b60208301905092915050565b6000602082019050919050565b6000613d1b82613cb0565b613d258185613cbb565b9350613d3083613ccc565b8060005b83811015613d61578151613d488882613ceb565b9750613d5383613d03565b925050600181019050613d34565b5085935050505092915050565b60006020820190508181036000830152613d888184613d10565b905092915050565b6000819050919050565b613da381613d90565b8114613dae57600080fd5b50565b600081359050613dc081613d9a565b92915050565b600060208284031215613ddc57613ddb6137e6565b5b6000613dea84828501613db1565b91505092915050565b60038110613e0057600080fd5b50565b600081359050613e1281613df3565b92915050565b600060208284031215613e2e57613e2d6137e6565b5b6000613e3c84828501613e03565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60038110613e8557613e84613e45565b5b50565b6000819050613e9682613e74565b919050565b6000613ea682613e88565b9050919050565b613eb681613e9b565b82525050565b6000602082019050613ed16000830184613ead565b92915050565b613ee081613875565b8114613eeb57600080fd5b50565b600081359050613efd81613ed7565b92915050565b60008060408385031215613f1a57613f196137e6565b5b6000613f2885828601613a33565b9250506020613f3985828601613eee565b9150509250929050565b600067ffffffffffffffff821115613f5e57613f5d613abc565b5b613f67826138f1565b9050602081019050919050565b6000613f87613f8284613f43565b613b1c565b905082815260208101848484011115613fa357613fa2613ab7565b5b613fae848285613b68565b509392505050565b600082601f830112613fcb57613fca613ab2565b5b8135613fdb848260208601613f74565b91505092915050565b60008060008060808587031215613ffe57613ffd6137e6565b5b600061400c87828801613a33565b945050602061401d87828801613a33565b935050604061402e8782880161397e565b925050606085013567ffffffffffffffff81111561404f5761404e6137eb565b5b61405b87828801613fb6565b91505092959194509250565b600080fd5b600080fd5b60008083601f84011261408757614086613ab2565b5b8235905067ffffffffffffffff8111156140a4576140a3614067565b5b6020830191508360208202830111156140c0576140bf61406c565b5b9250929050565b6000806000604084860312156140e0576140df6137e6565b5b60006140ee8682870161397e565b935050602084013567ffffffffffffffff81111561410f5761410e6137eb565b5b61411b86828701614071565b92509250509250925092565b60006020828403121561413d5761413c6137e6565b5b600061414b84828501613eee565b91505092915050565b6000806040838503121561416b5761416a6137e6565b5b600061417985828601613a33565b925050602061418a85828601613a33565b9150509250929050565b600080602083850312156141ab576141aa6137e6565b5b600083013567ffffffffffffffff8111156141c9576141c86137eb565b5b6141d585828601614071565b92509250509250929050565b6141ea81613d90565b82525050565b600060208201905061420560008301846141e1565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061425257607f821691505b6020821081036142655761426461420b565b5b50919050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b60006142c7602d836138b6565b91506142d28261426b565b604082019050919050565b600060208201905081810360008301526142f6816142ba565b9050919050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b60006143596022836138b6565b9150614364826142fd565b604082019050919050565b600060208201905081810360008301526143888161434c565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b60006143eb6039836138b6565b91506143f68261438f565b604082019050919050565b6000602082019050818103600083015261441a816143de565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026144837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614446565b61448d8683614446565b95508019841693508086168417925050509392505050565b6000819050919050565b60006144ca6144c56144c08461395d565b6144a5565b61395d565b9050919050565b6000819050919050565b6144e4836144af565b6144f86144f0826144d1565b848454614453565b825550505050565b600090565b61450d614500565b6145188184846144db565b505050565b5b8181101561453c57614531600082614505565b60018101905061451e565b5050565b601f8211156145815761455281614421565b61455b84614436565b8101602085101561456a578190505b61457e61457685614436565b83018261451d565b50505b505050565b600082821c905092915050565b60006145a460001984600802614586565b1980831691505092915050565b60006145bd8383614593565b9150826002028217905092915050565b6145d6826138ab565b67ffffffffffffffff8111156145ef576145ee613abc565b5b6145f9825461423a565b614604828285614540565b600060209050601f8311600181146146375760008415614625578287015190505b61462f85826145b1565b865550614697565b601f19841661464586614421565b60005b8281101561466d57848901518255600182019150602085019450602081019050614648565b8683101561468a5784890151614686601f891682614593565b8355505b6001600288020188555050505b505050505050565b7f5761697420666f72207075626c6963206d696e74000000000000000000000000600082015250565b60006146d56014836138b6565b91506146e08261469f565b602082019050919050565b60006020820190508181036000830152614704816146c8565b9050919050565b7f496e76616c6964206d696e7420616d6f756e7421000000000000000000000000600082015250565b60006147416014836138b6565b915061474c8261470b565b602082019050919050565b6000602082019050818103600083015261477081614734565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006147b18261395d565b91506147bc8361395d565b92508282019050808211156147d4576147d3614777565b5b92915050565b7f536f6c64206f7574210000000000000000000000000000000000000000000000600082015250565b60006148106009836138b6565b915061481b826147da565b602082019050919050565b6000602082019050818103600083015261483f81614803565b9050919050565b7f4e6f206d6f726521000000000000000000000000000000000000000000000000600082015250565b600061487c6008836138b6565b915061488782614846565b602082019050919050565b600060208201905081810360008301526148ab8161486f565b9050919050565b60006148bd8261395d565b91506148c88361395d565b92508282026148d68161395d565b915082820484148315176148ed576148ec614777565b5b5092915050565b7f506c656173652073656e642074686520657861637420616d6f756e742e000000600082015250565b600061492a601d836138b6565b9150614935826148f4565b602082019050919050565b600060208201905081810360008301526149598161491d565b9050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b60006149bc6022836138b6565b91506149c782614960565b604082019050919050565b600060208201905081810360008301526149eb816149af565b9050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b6000614a4e602e836138b6565b9150614a59826149f2565b604082019050919050565b60006020820190508181036000830152614a7d81614a41565b9050919050565b7f4d696e696d756d2031204e46542068617320746f206265206d696e746564207060008201527f6572207472616e73616374696f6e000000000000000000000000000000000000602082015250565b6000614ae0602e836138b6565b9150614aeb82614a84565b604082019050919050565b60006020820190508181036000830152614b0f81614ad3565b9050919050565b7f536f6c64206f7574000000000000000000000000000000000000000000000000600082015250565b6000614b4c6008836138b6565b9150614b5782614b16565b602082019050919050565b60006020820190508181036000830152614b7b81614b3f565b9050919050565b600081905092915050565b50565b6000614b9d600083614b82565b9150614ba882614b8d565b600082019050919050565b6000614bbe82614b90565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b6000614bfe6010836138b6565b9150614c0982614bc8565b602082019050919050565b60006020820190508181036000830152614c2d81614bf1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614c6e8261395d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614ca057614c9f614777565b5b600182019050919050565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b6000614d076023836138b6565b9150614d1282614cab565b604082019050919050565b60006020820190508181036000830152614d3681614cfa565b9050919050565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000614d99602b836138b6565b9150614da482614d3d565b604082019050919050565b60006020820190508181036000830152614dc881614d8c565b9050919050565b7f54686520636f6e74726163742069732070617573656421000000000000000000600082015250565b6000614e056017836138b6565b9150614e1082614dcf565b602082019050919050565b60006020820190508181036000830152614e3481614df8565b9050919050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b6000614e71601a836138b6565b9150614e7c82614e3b565b602082019050919050565b60006020820190508181036000830152614ea081614e64565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b6000614f036033836138b6565b9150614f0e82614ea7565b604082019050919050565b60006020820190508181036000830152614f3281614ef6565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614f95602f836138b6565b9150614fa082614f39565b604082019050919050565b60006020820190508181036000830152614fc481614f88565b9050919050565b600081905092915050565b6000614fe1826138ab565b614feb8185614fcb565b9350614ffb8185602086016138c7565b80840191505092915050565b600081546150148161423a565b61501e8186614fcb565b94506001821660008114615039576001811461504e57615081565b60ff1983168652811515820286019350615081565b61505785614421565b60005b838110156150795781548189015260018201915060208101905061505a565b838801955050505b50505092915050565b60006150968286614fd6565b91506150a28285614fd6565b91506150ae8284615007565b9150819050949350505050565b7f5761697420666f722077686974656c697374206d696e74000000000000000000600082015250565b60006150f16017836138b6565b91506150fc826150bb565b602082019050919050565b60006020820190508181036000830152615120816150e4565b9050919050565b7f41646472657373206973206e6f742077686974656c6973746564210000000000600082015250565b600061515d601b836138b6565b915061516882615127565b602082019050919050565b6000602082019050818103600083015261518c81615150565b9050919050565b7f4d6178206d696e74207065722077616c6c657420657863656564656421000000600082015250565b60006151c9601d836138b6565b91506151d482615193565b602082019050919050565b600060208201905081810360008301526151f8816151bc565b9050919050565b600061520a8261395d565b91506152158361395d565b925082820390508181111561522d5761522c614777565b5b92915050565b60008160601b9050919050565b600061524b82615233565b9050919050565b600061525d82615240565b9050919050565b615275615270826139e0565b615252565b82525050565b60006152878284615264565b60148201915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006152f26026836138b6565b91506152fd82615296565b604082019050919050565b60006020820190508181036000830152615321816152e5565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061535e6020836138b6565b915061536982615328565b602082019050919050565b6000602082019050818103600083015261538d81615351565b9050919050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b60006153f06032836138b6565b91506153fb82615394565b604082019050919050565b6000602082019050818103600083015261541f816153e3565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b60006154826026836138b6565b915061548d82615426565b604082019050919050565b600060208201905081810360008301526154b181615475565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006155146025836138b6565b915061551f826154b8565b604082019050919050565b6000602082019050818103600083015261554381615507565b9050919050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b60006155a6602a836138b6565b91506155b18261554a565b604082019050919050565b600060208201905081810360008301526155d581615599565b9050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b6000615638602f836138b6565b9150615643826155dc565b604082019050919050565b600060208201905081810360008301526156678161562b565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006156958261566e565b61569f8185615679565b93506156af8185602086016138c7565b6156b8816138f1565b840191505092915050565b60006080820190506156d860008301876139f2565b6156e560208301866139f2565b6156f26040830185613a88565b8181036060830152615704818461568a565b905095945050505050565b60008151905061571e8161381c565b92915050565b60006020828403121561573a576157396137e6565b5b60006157488482850161570f565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006157dc6021836138b6565b91506157e782615780565b604082019050919050565b6000602082019050818103600083015261580b816157cf565b9050919050565b7f455243373231413a207175616e74697479206d7573742062652067726561746560008201527f72207468616e2030000000000000000000000000000000000000000000000000602082015250565b600061586e6028836138b6565b915061587982615812565b604082019050919050565b6000602082019050818103600083015261589d81615861565b905091905056fea2646970667358221220ceb03f5d08126ae07a180d194b496453cccfc8cf432e9a7be4e9a43f844974a964736f6c63430008120033
Deployed Bytecode
0x6080604052600436106103505760003560e01c80636f8b44b0116101c6578063b88d4fde116100f7578063e0a8085311610095578063ed475f631161006f578063ed475f6314610c50578063ef8319cd14610c8d578063f2fde38b14610cb8578063f51f96dd14610ce157610350565b8063e0a8085314610bbf578063e985e9c514610be8578063eb2b045a14610c2557610350565b8063c87b56dd116100d1578063c87b56dd14610b10578063d2cab05614610b4d578063d5abeb0114610b69578063de137a4a14610b9457610350565b8063b88d4fde14610a93578063bc33718214610abc578063c7f8d01a14610ae557610350565b80638256994c116101645780638dd07d0f1161013e5780638dd07d0f146109eb57806395d89b4114610a14578063a22cb46514610a3f578063b4dc131514610a6857610350565b80638256994c1461096e5780638ba4cc3c146109975780638da5cb5b146109c057610350565b806371a34298116101a057806371a34298146108a05780637437681e146108dd57806377d15a84146109085780637ec4a6591461094557610350565b80636f8b44b01461082357806370a082311461084c578063715018a61461088957610350565b80633ccfd60b116102a05780634fdd43cb1161023e578063603f4d5211610218578063603f4d52146107555780636352211e1461078057806366cbf2e2146107bd57806366f05dda146107fa57610350565b80634fdd43cb146106d8578063518302271461070157806356de96db1461072c57610350565b8063438b63001161027a578063438b63001461060c578063440bc7f3146106495780634ac1701b146106725780634f6ccce71461069b57610350565b80633ccfd60b146105a15780633f296d49146105b857806342842e0e146105e357610350565b80631758765e1161030d57806323b872dd116102e757806323b872dd146104f65780632db115441461051f5780632f745c591461053b5780632fbba1151461057857610350565b80631758765e1461047757806318160ddd146104a25780631919fed7146104cd57610350565b806301ffc9a71461035557806306fdde0314610392578063081812fc146103bd578063095ea7b3146103fa5780630f2910311461042357806316ba10e01461044e575b600080fd5b34801561036157600080fd5b5061037c60048036038101906103779190613848565b610d0c565b6040516103899190613890565b60405180910390f35b34801561039e57600080fd5b506103a7610e56565b6040516103b4919061393b565b60405180910390f35b3480156103c957600080fd5b506103e460048036038101906103df9190613993565b610ee8565b6040516103f19190613a01565b60405180910390f35b34801561040657600080fd5b50610421600480360381019061041c9190613a48565b610f6d565b005b34801561042f57600080fd5b50610438611085565b6040516104459190613a97565b60405180910390f35b34801561045a57600080fd5b5061047560048036038101906104709190613be7565b61108b565b005b34801561048357600080fd5b5061048c6110a6565b6040516104999190613a97565b60405180910390f35b3480156104ae57600080fd5b506104b76110ac565b6040516104c49190613a97565b60405180910390f35b3480156104d957600080fd5b506104f460048036038101906104ef9190613993565b6110b5565b005b34801561050257600080fd5b5061051d60048036038101906105189190613c30565b6110c7565b005b61053960048036038101906105349190613993565b6110d7565b005b34801561054757600080fd5b50610562600480360381019061055d9190613a48565b6112fd565b60405161056f9190613a97565b60405180910390f35b34801561058457600080fd5b5061059f600480360381019061059a9190613993565b6114ed565b005b3480156105ad57600080fd5b506105b661159c565b005b3480156105c457600080fd5b506105cd611653565b6040516105da9190613a97565b60405180910390f35b3480156105ef57600080fd5b5061060a60048036038101906106059190613c30565b611659565b005b34801561061857600080fd5b50610633600480360381019061062e9190613c83565b611679565b6040516106409190613d6e565b60405180910390f35b34801561065557600080fd5b50610670600480360381019061066b9190613dc6565b611783565b005b34801561067e57600080fd5b5061069960048036038101906106949190613993565b611795565b005b3480156106a757600080fd5b506106c260048036038101906106bd9190613993565b6117a7565b6040516106cf9190613a97565b60405180910390f35b3480156106e457600080fd5b506106ff60048036038101906106fa9190613be7565b6117fa565b005b34801561070d57600080fd5b50610716611815565b6040516107239190613890565b60405180910390f35b34801561073857600080fd5b50610753600480360381019061074e9190613e18565b611828565b005b34801561076157600080fd5b5061076a61185d565b6040516107779190613ebc565b60405180910390f35b34801561078c57600080fd5b506107a760048036038101906107a29190613993565b611870565b6040516107b49190613a01565b60405180910390f35b3480156107c957600080fd5b506107e460048036038101906107df9190613c83565b611886565b6040516107f19190613a97565b60405180910390f35b34801561080657600080fd5b50610821600480360381019061081c9190613993565b61189e565b005b34801561082f57600080fd5b5061084a60048036038101906108459190613993565b6118b0565b005b34801561085857600080fd5b50610873600480360381019061086e9190613c83565b6118c2565b6040516108809190613a97565b60405180910390f35b34801561089557600080fd5b5061089e6119aa565b005b3480156108ac57600080fd5b506108c760048036038101906108c29190613c83565b6119be565b6040516108d49190613890565b60405180910390f35b3480156108e957600080fd5b506108f26119de565b6040516108ff9190613a97565b60405180910390f35b34801561091457600080fd5b5061092f600480360381019061092a9190613c83565b6119e4565b60405161093c9190613a97565b60405180910390f35b34801561095157600080fd5b5061096c60048036038101906109679190613be7565b6119fc565b005b34801561097a57600080fd5b5061099560048036038101906109909190613993565b611a17565b005b3480156109a357600080fd5b506109be60048036038101906109b99190613a48565b611a29565b005b3480156109cc57600080fd5b506109d5611b0c565b6040516109e29190613a01565b60405180910390f35b3480156109f757600080fd5b50610a126004803603810190610a0d9190613993565b611b36565b005b348015610a2057600080fd5b50610a29611b48565b604051610a36919061393b565b60405180910390f35b348015610a4b57600080fd5b50610a666004803603810190610a619190613f03565b611bda565b005b348015610a7457600080fd5b50610a7d611d5a565b604051610a8a9190613a97565b60405180910390f35b348015610a9f57600080fd5b50610aba6004803603810190610ab59190613fe4565b611d60565b005b348015610ac857600080fd5b50610ae36004803603810190610ade9190613993565b611dbc565b005b348015610af157600080fd5b50610afa611dce565b604051610b079190613a97565b60405180910390f35b348015610b1c57600080fd5b50610b376004803603810190610b329190613993565b611dd4565b604051610b44919061393b565b60405180910390f35b610b676004803603810190610b6291906140c7565b611f2c565b005b348015610b7557600080fd5b50610b7e6123a2565b604051610b8b9190613a97565b60405180910390f35b348015610ba057600080fd5b50610ba96123a8565b604051610bb69190613a97565b60405180910390f35b348015610bcb57600080fd5b50610be66004803603810190610be19190614127565b6123ae565b005b348015610bf457600080fd5b50610c0f6004803603810190610c0a9190614154565b6123d3565b604051610c1c9190613890565b60405180910390f35b348015610c3157600080fd5b50610c3a612467565b604051610c479190613a97565b60405180910390f35b348015610c5c57600080fd5b50610c776004803603810190610c729190614194565b61246d565b604051610c849190613890565b60405180910390f35b348015610c9957600080fd5b50610ca2612502565b604051610caf91906141f0565b60405180910390f35b348015610cc457600080fd5b50610cdf6004803603810190610cda9190613c83565b612508565b005b348015610ced57600080fd5b50610cf661258b565b604051610d039190613a97565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610dd757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610e3f57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610e4f5750610e4e82612591565b5b9050919050565b606060018054610e659061423a565b80601f0160208091040260200160405190810160405280929190818152602001828054610e919061423a565b8015610ede5780601f10610eb357610100808354040283529160200191610ede565b820191906000526020600020905b815481529060010190602001808311610ec157829003601f168201915b5050505050905090565b6000610ef3826125fb565b610f32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f29906142dd565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610f7882611870565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610fe8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdf9061436f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16611007612608565b73ffffffffffffffffffffffffffffffffffffffff161480611036575061103581611030612608565b6123d3565b5b611075576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106c90614401565b60405180910390fd5b611080838383612610565b505050565b60155481565b6110936126c2565b80600c90816110a291906145cd565b5050565b60145481565b60008054905090565b6110bd6126c2565b80600f8190555050565b6110d2838383612740565b505050565b6002808111156110ea576110e9613e45565b5b600a60019054906101000a900460ff16600281111561110c5761110b613e45565b5b1461114c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611143906146eb565b60405180910390fd5b60008111801561115e57506012548111155b61119d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119490614757565b60405180910390fd5b601354816111a96110ac565b6111b391906147a6565b11156111f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111eb90614826565b60405180910390fd5b6111fc611b0c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146112d7576012548161123b336118c2565b61124591906147a6565b1115611286576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127d90614892565b60405180910390fd5b80600f5461129491906148b2565b3410156112d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112cd90614940565b60405180910390fd5b5b6112e13382612c7e565b80601760008282546112f391906147a6565b9250508190555050565b6000611308836118c2565b8210611349576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611340906149d2565b60405180910390fd5b60006113536110ac565b905060008060005b838110156114ab576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461144d57806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361149d578684036114945781955050505050506114e7565b83806001019450505b50808060010191505061135b565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114de90614a64565b60405180910390fd5b92915050565b6114f56126c2565b60008111611538576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152f90614af6565b60405180910390fd5b601354816115446110ac565b61154e91906147a6565b111561158f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158690614b62565b60405180910390fd5b6115993382612c7e565b50565b6115a46126c2565b60003373ffffffffffffffffffffffffffffffffffffffff16476040516115ca90614bb3565b60006040518083038185875af1925050503d8060008114611607576040519150601f19603f3d011682016040523d82523d6000602084013e61160c565b606091505b5050905080611650576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164790614c14565b60405180910390fd5b50565b60165481565b61167483838360405180602001604052806000815250611d60565b505050565b60606000611686836118c2565b905060008167ffffffffffffffff8111156116a4576116a3613abc565b5b6040519080825280602002602001820160405280156116d25781602001602082028036833780820191505090505b50905060006001905060005b83811080156116ef57506013548211155b156117775760006116ff83611870565b90508673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611763578284838151811061174857611747614c34565b5b602002602001018181525050818061175f90614c63565b9250505b828061176e90614c63565b935050506116de565b82945050505050919050565b61178b6126c2565b8060098190555050565b61179d6126c2565b8060108190555050565b60006117b16110ac565b82106117f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e990614d1d565b60405180910390fd5b819050919050565b6118026126c2565b80600d908161181191906145cd565b5050565b600a60009054906101000a900460ff1681565b6118306126c2565b80600a60016101000a81548160ff0219169083600281111561185557611854613e45565b5b021790555050565b600a60019054906101000a900460ff1681565b600061187b82612c9c565b600001519050919050565b60196020528060005260406000206000915090505481565b6118a66126c2565b8060118190555050565b6118b86126c2565b8060138190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611932576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192990614daf565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b6119b26126c2565b6119bc6000612e36565b565b601a6020528060005260406000206000915054906101000a900460ff1681565b60125481565b60186020528060005260406000206000915090505481565b611a046126c2565b80600b9081611a1391906145cd565b5050565b611a1f6126c2565b8060148190555050565b611a316126c2565b60006002811115611a4557611a44613e45565b5b600a60019054906101000a900460ff166002811115611a6757611a66613e45565b5b03611aa7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9e90614e1b565b60405180910390fd5b601354611ab26110ac565b82611abd91906147a6565b1115611afe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af590614b62565b60405180910390fd5b611b088282612c7e565b5050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611b3e6126c2565b80600e8190555050565b606060028054611b579061423a565b80601f0160208091040260200160405190810160405280929190818152602001828054611b839061423a565b8015611bd05780601f10611ba557610100808354040283529160200191611bd0565b820191906000526020600020905b815481529060010190602001808311611bb357829003601f168201915b5050505050905090565b611be2612608565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4690614e87565b60405180910390fd5b8060066000611c5c612608565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611d09612608565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611d4e9190613890565b60405180910390a35050565b60175481565b611d6b848484612740565b611d7784848484612efc565b611db6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dad90614f19565b60405180910390fd5b50505050565b611dc46126c2565b8060128190555050565b600e5481565b6060611ddf826125fb565b611e1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1590614fab565b60405180910390fd5b60001515600a60009054906101000a900460ff16151503611ecb57600d8054611e469061423a565b80601f0160208091040260200160405190810160405280929190818152602001828054611e729061423a565b8015611ebf5780601f10611e9457610100808354040283529160200191611ebf565b820191906000526020600020905b815481529060010190602001808311611ea257829003601f168201915b50505050509050611f27565b6000611ed5613083565b90506000815111611ef55760405180602001604052806000815250611f23565b80611eff84613115565b600c604051602001611f139392919061508a565b6040516020818303038152906040525b9150505b919050565b60016002811115611f4057611f3f613e45565b5b600a60019054906101000a900460ff166002811115611f6257611f61613e45565b5b14611fa2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9990615107565b60405180910390fd5b611fac828261246d565b611feb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe290615173565b60405180910390fd5b600083118015611ffd57506011548311155b61203c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203390614757565b60405180910390fd5b601354836120486110ac565b61205291906147a6565b1115612093576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208a90614826565b60405180910390fd5b60115483601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546120e191906147a6565b1115612122576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612119906151df565b60405180910390fd5b601a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615801561218d575060145460105460155461218a91906147a6565b11155b156122d35760105483116121fd5760003410156121df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d690614940565b60405180910390fd5b82601560008282546121f191906147a6565b92505081905550612276565b6010548361220b91906151ff565b600e5461221891906148b2565b34101561225a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225190614940565b60405180910390fd5b6010546015600082825461226e91906147a6565b925050819055505b6001601a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612324565b82600e546122e191906148b2565b341015612323576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231a90614940565b60405180910390fd5b5b61232e3384612c7e565b82601960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461237d91906147a6565b92505081905550826016600082825461239691906147a6565b92505081905550505050565b60135481565b60115481565b6123b66126c2565b80600a60006101000a81548160ff02191690831515021790555050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60105481565b60008033604051602001612481919061527b565b6040516020818303038152906040528051906020012090506124e7848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600954836131e3565b156124f65760019150506124fc565b60009150505b92915050565b60095481565b6125106126c2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361257f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257690615308565b60405180910390fd5b61258881612e36565b50565b600f5481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6126ca612608565b73ffffffffffffffffffffffffffffffffffffffff166126e8611b0c565b73ffffffffffffffffffffffffffffffffffffffff161461273e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161273590615374565b60405180910390fd5b565b600061274b82612c9c565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16612772612608565b73ffffffffffffffffffffffffffffffffffffffff1614806127ce5750612797612608565b73ffffffffffffffffffffffffffffffffffffffff166127b684610ee8565b73ffffffffffffffffffffffffffffffffffffffff16145b806127ea57506127e982600001516127e4612608565b6123d3565b5b90508061282c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161282390615406565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461289e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161289590615498565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361290d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129049061552a565b60405180910390fd5b61291a85858560016131fa565b61292a6000848460000151612610565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160392506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550836003600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603612c0e57612b6d816125fb565b15612c0d5782600001516003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612c778585856001613200565b5050505050565b612c98828260405180602001604052806000815250613206565b5050565b612ca46137a2565b612cad826125fb565b612cec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce3906155bc565b60405180910390fd5b60008290505b60008110612df5576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612de6578092505050612e31565b50808060019003915050612cf2565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e289061564e565b60405180910390fd5b919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612f1d8473ffffffffffffffffffffffffffffffffffffffff16613218565b15613076578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f46612608565b8786866040518563ffffffff1660e01b8152600401612f6894939291906156c3565b6020604051808303816000875af1925050508015612fa457506040513d601f19601f82011682018060405250810190612fa19190615724565b60015b613026573d8060008114612fd4576040519150601f19603f3d011682016040523d82523d6000602084013e612fd9565b606091505b50600081510361301e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161301590614f19565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061307b565b600190505b949350505050565b6060600b80546130929061423a565b80601f01602080910402602001604051908101604052809291908181526020018280546130be9061423a565b801561310b5780601f106130e05761010080835404028352916020019161310b565b820191906000526020600020905b8154815290600101906020018083116130ee57829003601f168201915b5050505050905090565b6060600060016131248461323b565b01905060008167ffffffffffffffff81111561314357613142613abc565b5b6040519080825280601f01601f1916602001820160405280156131755781602001600182028036833780820191505090505b509050600082602001820190505b6001156131d8578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816131cc576131cb615751565b5b04945060008503613183575b819350505050919050565b6000826131f0858461338e565b1490509392505050565b50505050565b50505050565b61321383838360016133e4565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613299577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161328f5761328e615751565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106132d6576d04ee2d6d415b85acef810000000083816132cc576132cb615751565b5b0492506020810190505b662386f26fc10000831061330557662386f26fc1000083816132fb576132fa615751565b5b0492506010810190505b6305f5e100831061332e576305f5e100838161332457613323615751565b5b0492506008810190505b612710831061335357612710838161334957613348615751565b5b0492506004810190505b60648310613376576064838161336c5761336b615751565b5b0492506002810190505b600a8310613385576001810190505b80915050919050565b60008082905060005b84518110156133d9576133c4828683815181106133b7576133b6614c34565b5b6020026020010151613760565b915080806133d190614c63565b915050613397565b508091505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603613459576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613450906157f2565b60405180910390fd5b6000840361349c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161349390615884565b60405180910390fd5b6134a960008683876131fa565b83600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555083600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550846003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b8581101561374357818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4831561372e576136ee6000888488612efc565b61372d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161372490614f19565b60405180910390fd5b5b81806001019250508080600101915050613677565b5080600081905550506137596000868387613200565b5050505050565b600081831061377857613773828461378b565b613783565b613782838361378b565b5b905092915050565b600082600052816020526040600020905092915050565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613825816137f0565b811461383057600080fd5b50565b6000813590506138428161381c565b92915050565b60006020828403121561385e5761385d6137e6565b5b600061386c84828501613833565b91505092915050565b60008115159050919050565b61388a81613875565b82525050565b60006020820190506138a56000830184613881565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156138e55780820151818401526020810190506138ca565b60008484015250505050565b6000601f19601f8301169050919050565b600061390d826138ab565b61391781856138b6565b93506139278185602086016138c7565b613930816138f1565b840191505092915050565b600060208201905081810360008301526139558184613902565b905092915050565b6000819050919050565b6139708161395d565b811461397b57600080fd5b50565b60008135905061398d81613967565b92915050565b6000602082840312156139a9576139a86137e6565b5b60006139b78482850161397e565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006139eb826139c0565b9050919050565b6139fb816139e0565b82525050565b6000602082019050613a1660008301846139f2565b92915050565b613a25816139e0565b8114613a3057600080fd5b50565b600081359050613a4281613a1c565b92915050565b60008060408385031215613a5f57613a5e6137e6565b5b6000613a6d85828601613a33565b9250506020613a7e8582860161397e565b9150509250929050565b613a918161395d565b82525050565b6000602082019050613aac6000830184613a88565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613af4826138f1565b810181811067ffffffffffffffff82111715613b1357613b12613abc565b5b80604052505050565b6000613b266137dc565b9050613b328282613aeb565b919050565b600067ffffffffffffffff821115613b5257613b51613abc565b5b613b5b826138f1565b9050602081019050919050565b82818337600083830152505050565b6000613b8a613b8584613b37565b613b1c565b905082815260208101848484011115613ba657613ba5613ab7565b5b613bb1848285613b68565b509392505050565b600082601f830112613bce57613bcd613ab2565b5b8135613bde848260208601613b77565b91505092915050565b600060208284031215613bfd57613bfc6137e6565b5b600082013567ffffffffffffffff811115613c1b57613c1a6137eb565b5b613c2784828501613bb9565b91505092915050565b600080600060608486031215613c4957613c486137e6565b5b6000613c5786828701613a33565b9350506020613c6886828701613a33565b9250506040613c798682870161397e565b9150509250925092565b600060208284031215613c9957613c986137e6565b5b6000613ca784828501613a33565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613ce58161395d565b82525050565b6000613cf78383613cdc565b60208301905092915050565b6000602082019050919050565b6000613d1b82613cb0565b613d258185613cbb565b9350613d3083613ccc565b8060005b83811015613d61578151613d488882613ceb565b9750613d5383613d03565b925050600181019050613d34565b5085935050505092915050565b60006020820190508181036000830152613d888184613d10565b905092915050565b6000819050919050565b613da381613d90565b8114613dae57600080fd5b50565b600081359050613dc081613d9a565b92915050565b600060208284031215613ddc57613ddb6137e6565b5b6000613dea84828501613db1565b91505092915050565b60038110613e0057600080fd5b50565b600081359050613e1281613df3565b92915050565b600060208284031215613e2e57613e2d6137e6565b5b6000613e3c84828501613e03565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60038110613e8557613e84613e45565b5b50565b6000819050613e9682613e74565b919050565b6000613ea682613e88565b9050919050565b613eb681613e9b565b82525050565b6000602082019050613ed16000830184613ead565b92915050565b613ee081613875565b8114613eeb57600080fd5b50565b600081359050613efd81613ed7565b92915050565b60008060408385031215613f1a57613f196137e6565b5b6000613f2885828601613a33565b9250506020613f3985828601613eee565b9150509250929050565b600067ffffffffffffffff821115613f5e57613f5d613abc565b5b613f67826138f1565b9050602081019050919050565b6000613f87613f8284613f43565b613b1c565b905082815260208101848484011115613fa357613fa2613ab7565b5b613fae848285613b68565b509392505050565b600082601f830112613fcb57613fca613ab2565b5b8135613fdb848260208601613f74565b91505092915050565b60008060008060808587031215613ffe57613ffd6137e6565b5b600061400c87828801613a33565b945050602061401d87828801613a33565b935050604061402e8782880161397e565b925050606085013567ffffffffffffffff81111561404f5761404e6137eb565b5b61405b87828801613fb6565b91505092959194509250565b600080fd5b600080fd5b60008083601f84011261408757614086613ab2565b5b8235905067ffffffffffffffff8111156140a4576140a3614067565b5b6020830191508360208202830111156140c0576140bf61406c565b5b9250929050565b6000806000604084860312156140e0576140df6137e6565b5b60006140ee8682870161397e565b935050602084013567ffffffffffffffff81111561410f5761410e6137eb565b5b61411b86828701614071565b92509250509250925092565b60006020828403121561413d5761413c6137e6565b5b600061414b84828501613eee565b91505092915050565b6000806040838503121561416b5761416a6137e6565b5b600061417985828601613a33565b925050602061418a85828601613a33565b9150509250929050565b600080602083850312156141ab576141aa6137e6565b5b600083013567ffffffffffffffff8111156141c9576141c86137eb565b5b6141d585828601614071565b92509250509250929050565b6141ea81613d90565b82525050565b600060208201905061420560008301846141e1565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061425257607f821691505b6020821081036142655761426461420b565b5b50919050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b60006142c7602d836138b6565b91506142d28261426b565b604082019050919050565b600060208201905081810360008301526142f6816142ba565b9050919050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b60006143596022836138b6565b9150614364826142fd565b604082019050919050565b600060208201905081810360008301526143888161434c565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b60006143eb6039836138b6565b91506143f68261438f565b604082019050919050565b6000602082019050818103600083015261441a816143de565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026144837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614446565b61448d8683614446565b95508019841693508086168417925050509392505050565b6000819050919050565b60006144ca6144c56144c08461395d565b6144a5565b61395d565b9050919050565b6000819050919050565b6144e4836144af565b6144f86144f0826144d1565b848454614453565b825550505050565b600090565b61450d614500565b6145188184846144db565b505050565b5b8181101561453c57614531600082614505565b60018101905061451e565b5050565b601f8211156145815761455281614421565b61455b84614436565b8101602085101561456a578190505b61457e61457685614436565b83018261451d565b50505b505050565b600082821c905092915050565b60006145a460001984600802614586565b1980831691505092915050565b60006145bd8383614593565b9150826002028217905092915050565b6145d6826138ab565b67ffffffffffffffff8111156145ef576145ee613abc565b5b6145f9825461423a565b614604828285614540565b600060209050601f8311600181146146375760008415614625578287015190505b61462f85826145b1565b865550614697565b601f19841661464586614421565b60005b8281101561466d57848901518255600182019150602085019450602081019050614648565b8683101561468a5784890151614686601f891682614593565b8355505b6001600288020188555050505b505050505050565b7f5761697420666f72207075626c6963206d696e74000000000000000000000000600082015250565b60006146d56014836138b6565b91506146e08261469f565b602082019050919050565b60006020820190508181036000830152614704816146c8565b9050919050565b7f496e76616c6964206d696e7420616d6f756e7421000000000000000000000000600082015250565b60006147416014836138b6565b915061474c8261470b565b602082019050919050565b6000602082019050818103600083015261477081614734565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006147b18261395d565b91506147bc8361395d565b92508282019050808211156147d4576147d3614777565b5b92915050565b7f536f6c64206f7574210000000000000000000000000000000000000000000000600082015250565b60006148106009836138b6565b915061481b826147da565b602082019050919050565b6000602082019050818103600083015261483f81614803565b9050919050565b7f4e6f206d6f726521000000000000000000000000000000000000000000000000600082015250565b600061487c6008836138b6565b915061488782614846565b602082019050919050565b600060208201905081810360008301526148ab8161486f565b9050919050565b60006148bd8261395d565b91506148c88361395d565b92508282026148d68161395d565b915082820484148315176148ed576148ec614777565b5b5092915050565b7f506c656173652073656e642074686520657861637420616d6f756e742e000000600082015250565b600061492a601d836138b6565b9150614935826148f4565b602082019050919050565b600060208201905081810360008301526149598161491d565b9050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b60006149bc6022836138b6565b91506149c782614960565b604082019050919050565b600060208201905081810360008301526149eb816149af565b9050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b6000614a4e602e836138b6565b9150614a59826149f2565b604082019050919050565b60006020820190508181036000830152614a7d81614a41565b9050919050565b7f4d696e696d756d2031204e46542068617320746f206265206d696e746564207060008201527f6572207472616e73616374696f6e000000000000000000000000000000000000602082015250565b6000614ae0602e836138b6565b9150614aeb82614a84565b604082019050919050565b60006020820190508181036000830152614b0f81614ad3565b9050919050565b7f536f6c64206f7574000000000000000000000000000000000000000000000000600082015250565b6000614b4c6008836138b6565b9150614b5782614b16565b602082019050919050565b60006020820190508181036000830152614b7b81614b3f565b9050919050565b600081905092915050565b50565b6000614b9d600083614b82565b9150614ba882614b8d565b600082019050919050565b6000614bbe82614b90565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b6000614bfe6010836138b6565b9150614c0982614bc8565b602082019050919050565b60006020820190508181036000830152614c2d81614bf1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000614c6e8261395d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614ca057614c9f614777565b5b600182019050919050565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b6000614d076023836138b6565b9150614d1282614cab565b604082019050919050565b60006020820190508181036000830152614d3681614cfa565b9050919050565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000614d99602b836138b6565b9150614da482614d3d565b604082019050919050565b60006020820190508181036000830152614dc881614d8c565b9050919050565b7f54686520636f6e74726163742069732070617573656421000000000000000000600082015250565b6000614e056017836138b6565b9150614e1082614dcf565b602082019050919050565b60006020820190508181036000830152614e3481614df8565b9050919050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b6000614e71601a836138b6565b9150614e7c82614e3b565b602082019050919050565b60006020820190508181036000830152614ea081614e64565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b6000614f036033836138b6565b9150614f0e82614ea7565b604082019050919050565b60006020820190508181036000830152614f3281614ef6565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614f95602f836138b6565b9150614fa082614f39565b604082019050919050565b60006020820190508181036000830152614fc481614f88565b9050919050565b600081905092915050565b6000614fe1826138ab565b614feb8185614fcb565b9350614ffb8185602086016138c7565b80840191505092915050565b600081546150148161423a565b61501e8186614fcb565b94506001821660008114615039576001811461504e57615081565b60ff1983168652811515820286019350615081565b61505785614421565b60005b838110156150795781548189015260018201915060208101905061505a565b838801955050505b50505092915050565b60006150968286614fd6565b91506150a28285614fd6565b91506150ae8284615007565b9150819050949350505050565b7f5761697420666f722077686974656c697374206d696e74000000000000000000600082015250565b60006150f16017836138b6565b91506150fc826150bb565b602082019050919050565b60006020820190508181036000830152615120816150e4565b9050919050565b7f41646472657373206973206e6f742077686974656c6973746564210000000000600082015250565b600061515d601b836138b6565b915061516882615127565b602082019050919050565b6000602082019050818103600083015261518c81615150565b9050919050565b7f4d6178206d696e74207065722077616c6c657420657863656564656421000000600082015250565b60006151c9601d836138b6565b91506151d482615193565b602082019050919050565b600060208201905081810360008301526151f8816151bc565b9050919050565b600061520a8261395d565b91506152158361395d565b925082820390508181111561522d5761522c614777565b5b92915050565b60008160601b9050919050565b600061524b82615233565b9050919050565b600061525d82615240565b9050919050565b615275615270826139e0565b615252565b82525050565b60006152878284615264565b60148201915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006152f26026836138b6565b91506152fd82615296565b604082019050919050565b60006020820190508181036000830152615321816152e5565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061535e6020836138b6565b915061536982615328565b602082019050919050565b6000602082019050818103600083015261538d81615351565b9050919050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b60006153f06032836138b6565b91506153fb82615394565b604082019050919050565b6000602082019050818103600083015261541f816153e3565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b60006154826026836138b6565b915061548d82615426565b604082019050919050565b600060208201905081810360008301526154b181615475565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006155146025836138b6565b915061551f826154b8565b604082019050919050565b6000602082019050818103600083015261554381615507565b9050919050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b60006155a6602a836138b6565b91506155b18261554a565b604082019050919050565b600060208201905081810360008301526155d581615599565b9050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b6000615638602f836138b6565b9150615643826155dc565b604082019050919050565b600060208201905081810360008301526156678161562b565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006156958261566e565b61569f8185615679565b93506156af8185602086016138c7565b6156b8816138f1565b840191505092915050565b60006080820190506156d860008301876139f2565b6156e560208301866139f2565b6156f26040830185613a88565b8181036060830152615704818461568a565b905095945050505050565b60008151905061571e8161381c565b92915050565b60006020828403121561573a576157396137e6565b5b60006157488482850161570f565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006157dc6021836138b6565b91506157e782615780565b604082019050919050565b6000602082019050818103600083015261580b816157cf565b9050919050565b7f455243373231413a207175616e74697479206d7573742062652067726561746560008201527f72207468616e2030000000000000000000000000000000000000000000000000602082015250565b600061586e6028836138b6565b915061587982615812565b604082019050919050565b6000602082019050818103600083015261589d81615861565b905091905056fea2646970667358221220ceb03f5d08126ae07a180d194b496453cccfc8cf432e9a7be4e9a43f844974a964736f6c63430008120033
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.