Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
85 EGGS
Holders
68
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 EGGSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
EggSaurus
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; interface IImage { function generateSVG(uint256 id, uint256 saurusItem, uint256 saurusCollar) external view returns(string memory); function generateEggSVG() external view returns(string memory); } interface ICoin is IERC20{ function burn(uint256 amount) external; } contract EggSaurus is ERC721, ERC721Enumerable, Ownable { using Counters for Counters.Counter; using SafeMath for uint256; uint256 private constant _FEED_PRICE = 60 * (10 ** 18); uint256 private constant _REVIVE_PRICE = 500 * (10 ** 18); uint256 private constant _ITEM_PRICE = 100 * (10 ** 18); uint256 private constant _COLLAR_PRICE = 300 * (10 ** 18); uint256 private constant _ETERNAL_PRICE = 10000 * (10 ** 18); mapping(address => uint) public whitelistRemaining; mapping(address => bool) public whitelistUsed; uint256 public saleStart; uint256 public whitelistSaleStart; address public devAddress = 0x55C650B9b3F15596932fFd5f046bA1bd2E6B3dD4; uint256 public salePrice = 0.06 * (10 ** 18); uint256 public maxSupply = 3333; Counters.Counter private _tokenIdCounter; mapping (uint256 => uint256) private _birth; mapping (uint256 => uint256) private _feed; mapping (uint256 => uint256) private _item; mapping (uint256 => uint256) private _collar; mapping (uint256 => uint256) private _eternal; bytes32 private _merkleRoot; uint256 private _randomNum; address private _coinAddress; address private _imageAddress; event Feed(uint256 indexed tokenId); constructor(string memory tokenName, string memory tokenSymbol) ERC721(tokenName, tokenSymbol) {} function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId)); string memory svgData = returnImage(tokenId); string memory json = Base64.encode(bytes(string(abi.encodePacked( '{"name": "EggSaurus #', uint2str(tokenId), '","image_data": "', bytes(svgData), '","attributes": [{"trait_type": "Age","value": ', uint2str(returnAge(tokenId)), '},{"trait_type": "Virus","value": ', uint2str(returnVirusNum(tokenId)), '}]}' )))); return string(abi.encodePacked('data:application/json;base64,', json)); } function feed(uint256 tokenId) external { require(_msgSender() == ownerOf(tokenId)); require(_isAlive(tokenId), "dead"); ICoin(_coinAddress).transferFrom(msg.sender, address(this), _FEED_PRICE); _feed[tokenId] = block.timestamp; ICoin(_coinAddress).burn(_FEED_PRICE); emit Feed(tokenId); } function revive(uint256 tokenId) external { require(_msgSender() == ownerOf(tokenId)); require(_isAlive(tokenId) == false, "alive"); ICoin(_coinAddress).transferFrom(msg.sender, address(this), _REVIVE_PRICE); _birth[tokenId] = block.timestamp; ICoin(_coinAddress).burn(_REVIVE_PRICE); } function buyItem(uint256 tokenId) external { require(_msgSender() == ownerOf(tokenId)); require(_isAlive(tokenId), "dead"); ICoin(_coinAddress).transferFrom(msg.sender, address(this), _ITEM_PRICE); _item[tokenId] = block.timestamp + (block.number % 8); ICoin(_coinAddress).burn(_ITEM_PRICE); } function buyCollar(uint256 tokenId) external { require(_msgSender() == ownerOf(tokenId)); require(_isAlive(tokenId), "dead"); ICoin(_coinAddress).transferFrom(msg.sender, address(this), _COLLAR_PRICE); _collar[tokenId] = block.timestamp + (block.number % 6); ICoin(_coinAddress).burn(_COLLAR_PRICE); } function giveEternalLife(uint256 tokenId) external { require(_msgSender() == ownerOf(tokenId)); require(returnAge(tokenId) >= 3000, "invalid"); ICoin(_coinAddress).transferFrom(msg.sender, address(this), _ETERNAL_PRICE); _eternal[tokenId] = block.timestamp; ICoin(_coinAddress).burn(_ETERNAL_PRICE); } function returnVirusNum(uint256 tokenId) public view returns (uint256) { require(_exists(tokenId)); uint256 lastFeed = _feed[tokenId]; if (lastFeed == 0 || lastFeed <= _birth[tokenId]) { lastFeed = _birth[tokenId]; } if(_eternal[tokenId] == 0){ return (block.timestamp - lastFeed).div(24 * 60 * 60); }else{ return 0; } } function returnIsAlive(uint256 tokenId) external view returns (bool) { require(_exists(tokenId)); return _isAlive(tokenId); } function returnAge(uint256 tokenId) public view returns (uint256) { require(_exists(tokenId)); if (_isAlive(tokenId)) { return (block.timestamp - _birth[tokenId]).div(24 * 60 * 60); } else { return 0; } } function mintNFT(uint256 nftNum, address toAddress) external payable { require(_tokenIdCounter.current().add(nftNum) <= maxSupply, "Exceeds"); require(nftNum > 0 && nftNum <= 20, "invalid"); // skip for giveaway if (msg.sender != owner()) { require(saleStart != 0 && block.timestamp > saleStart, "yet"); require(salePrice.mul(nftNum) == msg.value, "incorrect eth"); } for (uint256 i = 0; i < nftNum; i++) { uint256 tokenId = _tokenIdCounter.current() + 1; if(msg.sender == owner()) { _safeMint(toAddress, tokenId); }else{ _safeMint(msg.sender, tokenId); } _birth[tokenId] = block.timestamp; _tokenIdCounter.increment(); } } function whitelistMint(uint256 nftNum, uint256 totalAllocation, bytes32 leaf, bytes32[] memory proof) external payable { require(whitelistSaleStart != 0 && block.timestamp > whitelistSaleStart , "yet"); if(!whitelistUsed[msg.sender]){ require(keccak256(abi.encodePacked(msg.sender, totalAllocation)) == leaf, "invalid"); require(MerkleProof.verify(proof, _merkleRoot, leaf), "invalid"); whitelistUsed[msg.sender] = true; whitelistRemaining[msg.sender] = totalAllocation; } require(nftNum > 0); require(salePrice.mul(nftNum) == msg.value, "incorrect eth"); require(_tokenIdCounter.current().add(nftNum) <= maxSupply, "Exceeds"); require(whitelistRemaining[msg.sender] >= nftNum, "Exceeds"); for (uint256 i = 0; i < nftNum; i++) { whitelistRemaining[msg.sender] -= 1; uint256 tokenId = _tokenIdCounter.current() + 1; _safeMint(msg.sender, tokenId); _birth[tokenId] = block.timestamp; _tokenIdCounter.increment(); } } function setAddresses(address coinAddress_, address imageAddress_, address devAddress_) external onlyOwner { _coinAddress = coinAddress_; _imageAddress = imageAddress_; devAddress = devAddress_; } function _isAlive(uint256 tokenId) internal view returns(bool) { if(_eternal[tokenId] == 0) { return returnVirusNum(tokenId) <= 60; } return true; } function returnImage(uint256 tokenId) public view returns (string memory) { require(_exists(tokenId)); if(_isAlive(tokenId) != true || _randomNum == 0) { return IImage(_imageAddress).generateEggSVG(); } // reset item and collar if EggSaurus died uint256 item = _item[tokenId]; if(item < _birth[tokenId]){ item = 0; } uint256 collar = _collar[tokenId]; if(collar < _birth[tokenId]){ collar = 0; } return IImage(_imageAddress).generateSVG((_randomNum - 1).mul(1000).add(tokenId), item, collar); } function makeRandomNum() external onlyOwner{ require(_randomNum == 0); _randomNum = block.timestamp % 3 + 1; } function withdraw() public onlyOwner { uint256 balance = address(this).balance; require(balance > 0); (bool success, ) = devAddress.call{value: address(this).balance}(""); require(success); } function setMerkleRootAndSaleTime(bytes32 merkleRoot_, uint256 whitelistSaleStart_, uint256 saleStart_, uint256 price_, uint256 maxSupply_) public onlyOwner { // max of maxSupply is 3333. require(maxSupply_ <= 3333); _merkleRoot = merkleRoot_; whitelistSaleStart = whitelistSaleStart_; saleStart = saleStart_; salePrice = price_; maxSupply = maxSupply_; } function uint2str(uint _i) internal pure returns (string memory _uintAsString) { if (_i == 0) { return "0"; } uint j = _i; uint len; while (j != 0) { len++; j /= 10; } bytes memory bstr = new bytes(len); uint k = len; while (_i != 0) { k = k-1; uint8 temp = (48 + uint8(_i - _i / 10 * 10)); bytes1 b1 = bytes1(temp); bstr[k] = b1; _i /= 10; } return string(bstr); } } library Base64 { bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ""; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((len + 2) / 3); // Add some extra buffer at the end bytes memory result = new bytes(encodedLen + 32); bytes memory table = TABLE; assembly { let tablePtr := add(table, 1) let resultPtr := add(result, 32) for { let i := 0 } lt(i, len) { } { i := add(i, 3) let input := and(mload(add(data, i)), 0xffffff) let out := mload(add(tablePtr, and(shr(18, input), 0x3F))) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)) out := shl(224, out) mstore(resultPtr, out) resultPtr := add(resultPtr, 4) } switch mod(len, 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } mstore(result, encodedLen) } return string(result); } } 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) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } // Check if the computed hash (root) is equal to the provided root return computedHash == root; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @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 || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: 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 virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @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. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: 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`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * 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 ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), 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.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT 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 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 pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"string","name":"tokenSymbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Feed","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":"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":"buyCollar","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"buyItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"feed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"giveEternalLife","outputs":[],"stateMutability":"nonpayable","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":[],"name":"makeRandomNum","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"nftNum","type":"uint256"},{"internalType":"address","name":"toAddress","type":"address"}],"name":"mintNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"returnAge","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"returnImage","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"returnIsAlive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"returnVirusNum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"revive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"salePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"coinAddress_","type":"address"},{"internalType":"address","name":"imageAddress_","type":"address"},{"internalType":"address","name":"devAddress_","type":"address"}],"name":"setAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"},{"internalType":"uint256","name":"whitelistSaleStart_","type":"uint256"},{"internalType":"uint256","name":"saleStart_","type":"uint256"},{"internalType":"uint256","name":"price_","type":"uint256"},{"internalType":"uint256","name":"maxSupply_","type":"uint256"}],"name":"setMerkleRootAndSaleTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nftNum","type":"uint256"},{"internalType":"uint256","name":"totalAllocation","type":"uint256"},{"internalType":"bytes32","name":"leaf","type":"bytes32"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistRemaining","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSaleStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040527355c650b9b3f15596932ffd5f046ba1bd2e6b3dd4600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555066d529ae9e860000601055610d056011553480156200007757600080fd5b50604051620062303803806200623083398181016040528101906200009d9190620002eb565b81818160009080519060200190620000b7929190620001c9565b508060019080519060200190620000d0929190620001c9565b505050620000f3620000e7620000fb60201b60201c565b6200010360201b60201c565b50506200048f565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001d790620003fb565b90600052602060002090601f016020900481019282620001fb576000855562000247565b82601f106200021657805160ff191683800117855562000247565b8280016001018555821562000247579182015b828111156200024657825182559160200191906001019062000229565b5b5090506200025691906200025a565b5090565b5b80821115620002755760008160009055506001016200025b565b5090565b6000620002906200028a8462000392565b6200035e565b905082815260208101848484011115620002a957600080fd5b620002b6848285620003c5565b509392505050565b600082601f830112620002d057600080fd5b8151620002e284826020860162000279565b91505092915050565b60008060408385031215620002ff57600080fd5b600083015167ffffffffffffffff8111156200031a57600080fd5b6200032885828601620002be565b925050602083015167ffffffffffffffff8111156200034657600080fd5b6200035485828601620002be565b9150509250929050565b6000604051905081810181811067ffffffffffffffff8211171562000388576200038762000460565b5b8060405250919050565b600067ffffffffffffffff821115620003b057620003af62000460565b5b601f19601f8301169050602081019050919050565b60005b83811015620003e5578082015181840152602081019050620003c8565b83811115620003f5576000848401525b50505050565b600060028204905060018216806200041457607f821691505b602082108114156200042b576200042a62000431565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b615d91806200049f6000396000f3fe6080604052600436106102465760003560e01c80638baecc2111610139578063b4b1c150116100b6578063e63ec9471161007a578063e63ec94714610896578063e7fb74c7146108d3578063e985e9c5146108fc578063f2fde38b14610939578063f51f96dd14610962578063f59dfdfb1461098d57610246565b8063b4b1c1501461078b578063b88d4fde146107c8578063c60cc6dd146107f1578063c87b56dd1461082e578063d5abeb011461086b57610246565b80639fa719b5116100fd5780639fa719b5146106cc578063a22cb465146106f7578063ab0bcc4114610720578063acabb1151461074b578063ada847861461076257610246565b80638baecc21146105e75780638da5cb5b146106105780638f9c0ae81461063b57806395d89b41146106645780639f38b2e41461068f57610246565b80633ccfd60b116101c7578063669f5a511161018b578063669f5a511461051157806367b488981461052d57806370a082311461056a578063715018a6146105a757806375ad9398146105be57610246565b80633ccfd60b1461043b57806342842e0e146104525780634f6ccce71461047b5780635bfe024d146104b85780636352211e146104d457610246565b806321328f9e1161020e57806321328f9e1461034457806323b872dd146103815780632f745c59146103aa578063363bf964146103e75780633ad10ef61461041057610246565b806301ffc9a71461024b57806306fdde0314610288578063081812fc146102b3578063095ea7b3146102f057806318160ddd14610319575b600080fd5b34801561025757600080fd5b50610272600480360381019061026d9190614668565b6109b6565b60405161027f9190615457565b60405180910390f35b34801561029457600080fd5b5061029d6109c8565b6040516102aa9190615472565b60405180910390f35b3480156102bf57600080fd5b506102da60048036038101906102d591906146fb565b610a5a565b6040516102e791906153b9565b60405180910390f35b3480156102fc57600080fd5b506103176004803603810190610312919061458c565b610adf565b005b34801561032557600080fd5b5061032e610bf7565b60405161033b9190615774565b60405180910390f35b34801561035057600080fd5b5061036b600480360381019061036691906143d2565b610c04565b6040516103789190615457565b60405180910390f35b34801561038d57600080fd5b506103a860048036038101906103a39190614486565b610c24565b005b3480156103b657600080fd5b506103d160048036038101906103cc919061458c565b610c84565b6040516103de9190615774565b60405180910390f35b3480156103f357600080fd5b5061040e60048036038101906104099190614437565b610d29565b005b34801561041c57600080fd5b50610425610e6d565b60405161043291906153b9565b60405180910390f35b34801561044757600080fd5b50610450610e93565b005b34801561045e57600080fd5b5061047960048036038101906104749190614486565b610fbd565b005b34801561048757600080fd5b506104a2600480360381019061049d91906146fb565b610fdd565b6040516104af9190615774565b60405180910390f35b6104d260048036038101906104cd9190614760565b611074565b005b3480156104e057600080fd5b506104fb60048036038101906104f691906146fb565b611473565b60405161050891906153b9565b60405180910390f35b61052b60048036038101906105269190614724565b611525565b005b34801561053957600080fd5b50610554600480360381019061054f91906146fb565b61176e565b6040516105619190615472565b60405180910390f35b34801561057657600080fd5b50610591600480360381019061058c91906143d2565b6119b3565b60405161059e9190615774565b60405180910390f35b3480156105b357600080fd5b506105bc611a6b565b005b3480156105ca57600080fd5b506105e560048036038101906105e091906146fb565b611af3565b005b3480156105f357600080fd5b5061060e600480360381019061060991906146fb565b611cf5565b005b34801561061c57600080fd5b50610625611ef7565b60405161063291906153b9565b60405180910390f35b34801561064757600080fd5b50610662600480360381019061065d91906146fb565b611f21565b005b34801561067057600080fd5b50610679612133565b6040516106869190615472565b60405180910390f35b34801561069b57600080fd5b506106b660048036038101906106b191906146fb565b6121c5565b6040516106c39190615774565b60405180910390f35b3480156106d857600080fd5b506106e161222c565b6040516106ee9190615774565b60405180910390f35b34801561070357600080fd5b5061071e60048036038101906107199190614550565b612232565b005b34801561072c57600080fd5b506107356123b3565b6040516107429190615774565b60405180910390f35b34801561075757600080fd5b506107606123b9565b005b34801561076e57600080fd5b50610789600480360381019061078491906145f1565b612465565b005b34801561079757600080fd5b506107b260048036038101906107ad91906146fb565b61251a565b6040516107bf9190615774565b60405180910390f35b3480156107d457600080fd5b506107ef60048036038101906107ea91906144d5565b6125d4565b005b3480156107fd57600080fd5b50610818600480360381019061081391906146fb565b612636565b6040516108259190615457565b60405180910390f35b34801561083a57600080fd5b50610855600480360381019061085091906146fb565b61265a565b6040516108629190615472565b60405180910390f35b34801561087757600080fd5b506108806126fe565b60405161088d9190615774565b60405180910390f35b3480156108a257600080fd5b506108bd60048036038101906108b891906143d2565b612704565b6040516108ca9190615774565b60405180910390f35b3480156108df57600080fd5b506108fa60048036038101906108f591906146fb565b61271c565b005b34801561090857600080fd5b50610923600480360381019061091e91906143fb565b61292e565b6040516109309190615457565b60405180910390f35b34801561094557600080fd5b50610960600480360381019061095b91906143d2565b6129c2565b005b34801561096e57600080fd5b50610977612aba565b6040516109849190615774565b60405180910390f35b34801561099957600080fd5b506109b460048036038101906109af91906146fb565b612ac0565b005b60006109c182612ce8565b9050919050565b6060600080546109d790615aea565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0390615aea565b8015610a505780601f10610a2557610100808354040283529160200191610a50565b820191906000526020600020905b815481529060010190602001808311610a3357829003601f168201915b5050505050905090565b6000610a6582612d62565b610aa4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9b90615634565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610aea82611473565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b52906156d4565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b7a612dce565b73ffffffffffffffffffffffffffffffffffffffff161480610ba95750610ba881610ba3612dce565b61292e565b5b610be8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bdf90615594565b60405180910390fd5b610bf28383612dd6565b505050565b6000600880549050905090565b600c6020528060005260406000206000915054906101000a900460ff1681565b610c35610c2f612dce565b82612e8f565b610c74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6b906156f4565b60405180910390fd5b610c7f838383612f6d565b505050565b6000610c8f836119b3565b8210610cd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc790615494565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610d31612dce565b73ffffffffffffffffffffffffffffffffffffffff16610d4f611ef7565b73ffffffffffffffffffffffffffffffffffffffff1614610da5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9c90615654565b60405180910390fd5b82601a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081601b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610e9b612dce565b73ffffffffffffffffffffffffffffffffffffffff16610eb9611ef7565b73ffffffffffffffffffffffffffffffffffffffff1614610f0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0690615654565b60405180910390fd5b600047905060008111610f2157600080fd5b6000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051610f69906153a4565b60006040518083038185875af1925050503d8060008114610fa6576040519150601f19603f3d011682016040523d82523d6000602084013e610fab565b606091505b5050905080610fb957600080fd5b5050565b610fd8838383604051806020016040528060008152506125d4565b505050565b6000610fe7610bf7565b8210611028576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101f90615714565b60405180910390fd5b60088281548110611062577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000600e54141580156110885750600e5442115b6110c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110be90615734565b60405180910390fd5b600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661126b5781338460405160200161112c9291906152b5565b6040516020818303038152906040528051906020012014611182576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117990615754565b60405180910390fd5b61118f81601854846131c9565b6111ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c590615754565b60405180910390fd5b6001600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555082600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000841161127857600080fd5b3461128e856010546132a590919063ffffffff16565b146112ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c5906154d4565b60405180910390fd5b6011546112ed856112df60126132bb565b6132c990919063ffffffff16565b111561132e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611325906155f4565b60405180910390fd5b83600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156113b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a7906155f4565b60405180910390fd5b60005b8481101561146c576001600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461140b91906159e9565b925050819055506000600161142060126132bb565b61142a91906158d1565b905061143633826132df565b42601360008381526020019081526020016000208190555061145860126132fd565b50808061146490615b1c565b9150506113b3565b5050505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561151c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611513906155d4565b60405180910390fd5b80915050919050565b6011546115448361153660126132bb565b6132c990919063ffffffff16565b1115611585576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157c906155f4565b60405180910390fd5b600082118015611596575060148211155b6115d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cc90615754565b60405180910390fd5b6115dd611ef7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146116b9576000600d54141580156116235750600d5442115b611662576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165990615734565b60405180910390fd5b34611678836010546132a590919063ffffffff16565b146116b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116af906154d4565b60405180910390fd5b5b60005b8281101561176957600060016116d260126132bb565b6116dc91906158d1565b90506116e6611ef7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156117285761172383826132df565b611733565b61173233826132df565b5b42601360008381526020019081526020016000208190555061175560126132fd565b50808061176190615b1c565b9150506116bc565b505050565b606061177982612d62565b61178257600080fd5b6001151561178f83613313565b15151415806117a057506000601954145b1561185157601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166390d823186040518163ffffffff1660e01b815260040160006040518083038186803b15801561180d57600080fd5b505afa158015611821573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061184a91906146ba565b90506119ae565b600060156000848152602001908152602001600020549050601360008481526020019081526020016000205481101561188957600090505b60006016600085815260200190815260200160002054905060136000858152602001908152602001600020548110156118c157600090505b601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635364634c611934866119266103e8600160195461191891906159e9565b6132a590919063ffffffff16565b6132c990919063ffffffff16565b84846040518463ffffffff1660e01b81526004016119549392919061578f565b60006040518083038186803b15801561196c57600080fd5b505afa158015611980573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906119a991906146ba565b925050505b919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1b906155b4565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611a73612dce565b73ffffffffffffffffffffffffffffffffffffffff16611a91611ef7565b73ffffffffffffffffffffffffffffffffffffffff1614611ae7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ade90615654565b60405180910390fd5b611af1600061334e565b565b611afc81611473565b73ffffffffffffffffffffffffffffffffffffffff16611b1a612dce565b73ffffffffffffffffffffffffffffffffffffffff1614611b3a57600080fd5b610bb8611b46826121c5565b1015611b87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7e90615754565b60405180910390fd5b601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd333069021e19e0c9bab24000006040518463ffffffff1660e01b8152600401611bf0939291906153d4565b602060405180830381600087803b158015611c0a57600080fd5b505af1158015611c1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c4291906145c8565b50426017600083815260200190815260200160002081905550601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c6869021e19e0c9bab24000006040518263ffffffff1660e01b8152600401611cc09190615774565b600060405180830381600087803b158015611cda57600080fd5b505af1158015611cee573d6000803e3d6000fd5b5050505050565b611cfe81611473565b73ffffffffffffffffffffffffffffffffffffffff16611d1c612dce565b73ffffffffffffffffffffffffffffffffffffffff1614611d3c57600080fd5b60001515611d4982613313565b151514611d8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8290615674565b60405180910390fd5b601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330681b1ae4d6e2ef5000006040518463ffffffff1660e01b8152600401611df3939291906153d4565b602060405180830381600087803b158015611e0d57600080fd5b505af1158015611e21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4591906145c8565b50426013600083815260200190815260200160002081905550601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c68681b1ae4d6e2ef5000006040518263ffffffff1660e01b8152600401611ec29190615774565b600060405180830381600087803b158015611edc57600080fd5b505af1158015611ef0573d6000803e3d6000fd5b5050505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611f2a81611473565b73ffffffffffffffffffffffffffffffffffffffff16611f48612dce565b73ffffffffffffffffffffffffffffffffffffffff1614611f6857600080fd5b611f7181613313565b611fb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa7906156b4565b60405180910390fd5b601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330681043561a88293000006040518463ffffffff1660e01b8152600401612018939291906153d4565b602060405180830381600087803b15801561203257600080fd5b505af1158015612046573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061206a91906145c8565b506006436120789190615b9d565b4261208391906158d1565b6016600083815260200190815260200160002081905550601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c68681043561a88293000006040518263ffffffff1660e01b81526004016120fe9190615774565b600060405180830381600087803b15801561211857600080fd5b505af115801561212c573d6000803e3d6000fd5b5050505050565b60606001805461214290615aea565b80601f016020809104026020016040519081016040528092919081815260200182805461216e90615aea565b80156121bb5780601f10612190576101008083540402835291602001916121bb565b820191906000526020600020905b81548152906001019060200180831161219e57829003601f168201915b5050505050905090565b60006121d082612d62565b6121d957600080fd5b6121e282613313565b156122225761221b6201518060136000858152602001908152602001600020544261220d91906159e9565b61341490919063ffffffff16565b9050612227565b600090505b919050565b600e5481565b61223a612dce565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156122a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229f90615554565b60405180910390fd5b80600560006122b5612dce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612362612dce565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516123a79190615457565b60405180910390a35050565b600d5481565b6123c1612dce565b73ffffffffffffffffffffffffffffffffffffffff166123df611ef7565b73ffffffffffffffffffffffffffffffffffffffff1614612435576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242c90615654565b60405180910390fd5b60006019541461244457600080fd5b60016003426124539190615b9d565b61245d91906158d1565b601981905550565b61246d612dce565b73ffffffffffffffffffffffffffffffffffffffff1661248b611ef7565b73ffffffffffffffffffffffffffffffffffffffff16146124e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d890615654565b60405180910390fd5b610d058111156124f057600080fd5b8460188190555083600e8190555082600d8190555081601081905550806011819055505050505050565b600061252582612d62565b61252e57600080fd5b6000601460008481526020019081526020016000205490506000811480612568575060136000848152602001908152602001600020548111155b1561258457601360008481526020019081526020016000205490505b6000601760008581526020019081526020016000205414156125c9576125c16201518082426125b391906159e9565b61341490919063ffffffff16565b9150506125cf565b60009150505b919050565b6125e56125df612dce565b83612e8f565b612624576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261b906156f4565b60405180910390fd5b6126308484848461342a565b50505050565b600061264182612d62565b61264a57600080fd5b61265382613313565b9050919050565b606061266582612d62565b61266e57600080fd5b60006126798361176e565b905060006126d361268985613486565b8361269b612696886121c5565b613486565b6126ac6126a78961251a565b613486565b6040516020016126bf949392919061530d565b60405160208183030381529060405261365b565b9050806040516020016126e69190615382565b60405160208183030381529060405292505050919050565b60115481565b600b6020528060005260406000206000915090505481565b61272581611473565b73ffffffffffffffffffffffffffffffffffffffff16612743612dce565b73ffffffffffffffffffffffffffffffffffffffff161461276357600080fd5b61276c81613313565b6127ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a2906156b4565b60405180910390fd5b601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd333068056bc75e2d631000006040518463ffffffff1660e01b8152600401612813939291906153d4565b602060405180830381600087803b15801561282d57600080fd5b505af1158015612841573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061286591906145c8565b506008436128739190615b9d565b4261287e91906158d1565b6015600083815260200190815260200160002081905550601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c6868056bc75e2d631000006040518263ffffffff1660e01b81526004016128f99190615774565b600060405180830381600087803b15801561291357600080fd5b505af1158015612927573d6000803e3d6000fd5b5050505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6129ca612dce565b73ffffffffffffffffffffffffffffffffffffffff166129e8611ef7565b73ffffffffffffffffffffffffffffffffffffffff1614612a3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a3590615654565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612aae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aa5906154f4565b60405180910390fd5b612ab78161334e565b50565b60105481565b612ac981611473565b73ffffffffffffffffffffffffffffffffffffffff16612ae7612dce565b73ffffffffffffffffffffffffffffffffffffffff1614612b0757600080fd5b612b1081613313565b612b4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b46906156b4565b60405180910390fd5b601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330680340aad21b3b7000006040518463ffffffff1660e01b8152600401612bb7939291906153d4565b602060405180830381600087803b158015612bd157600080fd5b505af1158015612be5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c0991906145c8565b50426014600083815260200190815260200160002081905550601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c68680340aad21b3b7000006040518263ffffffff1660e01b8152600401612c869190615774565b600060405180830381600087803b158015612ca057600080fd5b505af1158015612cb4573d6000803e3d6000fd5b50505050807faee7b00ca0359ab0727fb54b350e15a1ed46fb12dc0d04ca9bb5f4e7c313249a60405160405180910390a250565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d5b5750612d5a82613819565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612e4983611473565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612e9a82612d62565b612ed9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ed090615574565b60405180910390fd5b6000612ee483611473565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612f5357508373ffffffffffffffffffffffffffffffffffffffff16612f3b84610a5a565b73ffffffffffffffffffffffffffffffffffffffff16145b80612f645750612f63818561292e565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612f8d82611473565b73ffffffffffffffffffffffffffffffffffffffff1614612fe3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fda90615694565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613053576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161304a90615534565b60405180910390fd5b61305e8383836138fb565b613069600082612dd6565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130b991906159e9565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461311091906158d1565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008082905060005b8551811015613297576000868281518110613216577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905080831161325757828160405160200161323a9291906152e1565b604051602081830303815290604052805190602001209250613283565b808360405160200161326a9291906152e1565b6040516020818303038152906040528051906020012092505b50808061328f90615b1c565b9150506131d2565b508381149150509392505050565b600081836132b3919061598f565b905092915050565b600081600001549050919050565b600081836132d791906158d1565b905092915050565b6132f982826040518060200160405280600081525061390b565b5050565b6001816000016000828254019250508190555050565b6000806017600084815260200190815260200160002054141561334457603c61333b8361251a565b11159050613349565b600190505b919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008183613422919061595e565b905092915050565b613435848484612f6d565b61344184848484613966565b613480576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613477906154b4565b60405180910390fd5b50505050565b606060008214156134ce576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613656565b600082905060005b600082146135005780806134e990615b1c565b915050600a826134f9919061595e565b91506134d6565b60008167ffffffffffffffff811115613542577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156135745781602001600182028036833780820191505090505b50905060008290505b6000861461364e5760018161359291906159e9565b90506000600a80886135a4919061595e565b6135ae919061598f565b876135b991906159e9565b60306135c59190615927565b905060008160f81b905080848481518110613609577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a88613645919061595e565b9750505061357d565b819450505050505b919050565b606060008251905060008114156136845760405180602001604052806000815250915050613814565b6000600360028361369591906158d1565b61369f919061595e565b60046136ab919061598f565b905060006020826136bc91906158d1565b67ffffffffffffffff8111156136fb577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561372d5781602001600182028036833780820191505090505b5090506000604051806060016040528060408152602001615d1c604091399050600181016020830160005b868110156137d15760038101905062ffffff818a015116603f8160121c168401518060081b905060ff603f83600c1c1686015116810190508060081b905060ff603f8360061c1686015116810190508060081b905060ff603f831686015116810190508060e01b90508084526004840193505050613758565b5060038606600181146137eb57600281146137fb57613806565b613d3d60f01b6002830352613806565b603d60f81b60018303525b508484525050819450505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806138e457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806138f457506138f382613afd565b5b9050919050565b613906838383613b67565b505050565b6139158383613c7b565b6139226000848484613966565b613961576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613958906154b4565b60405180910390fd5b505050565b60006139878473ffffffffffffffffffffffffffffffffffffffff16613e49565b15613af0578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026139b0612dce565b8786866040518563ffffffff1660e01b81526004016139d2949392919061540b565b602060405180830381600087803b1580156139ec57600080fd5b505af1925050508015613a1d57506040513d601f19601f82011682018060405250810190613a1a9190614691565b60015b613aa0573d8060008114613a4d576040519150601f19603f3d011682016040523d82523d6000602084013e613a52565b606091505b50600081511415613a98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a8f906154b4565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613af5565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b613b72838383613e5c565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613bb557613bb081613e61565b613bf4565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613bf357613bf28382613eaa565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613c3757613c3281614017565b613c76565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613c7557613c74828261415a565b5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613ceb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ce290615614565b60405180910390fd5b613cf481612d62565b15613d34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d2b90615514565b60405180910390fd5b613d40600083836138fb565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613d9091906158d1565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613eb7846119b3565b613ec191906159e9565b9050600060076000848152602001908152602001600020549050818114613fa6576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061402b91906159e9565b9050600060096000848152602001908152602001600020549050600060088381548110614081577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600883815481106140c9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061413e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000614165836119b3565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b60006141ec6141e7846157f7565b6157c6565b9050808382526020820190508285602086028201111561420b57600080fd5b60005b8581101561423b5781614221888261432a565b84526020840193506020830192505060018101905061420e565b5050509392505050565b600061425861425384615823565b6157c6565b90508281526020810184848401111561427057600080fd5b61427b848285615aa8565b509392505050565b600061429661429184615853565b6157c6565b9050828152602081018484840111156142ae57600080fd5b6142b9848285615ab7565b509392505050565b6000813590506142d081615ca8565b92915050565b600082601f8301126142e757600080fd5b81356142f78482602086016141d9565b91505092915050565b60008135905061430f81615cbf565b92915050565b60008151905061432481615cbf565b92915050565b60008135905061433981615cd6565b92915050565b60008135905061434e81615ced565b92915050565b60008151905061436381615ced565b92915050565b600082601f83011261437a57600080fd5b813561438a848260208601614245565b91505092915050565b600082601f8301126143a457600080fd5b81516143b4848260208601614283565b91505092915050565b6000813590506143cc81615d04565b92915050565b6000602082840312156143e457600080fd5b60006143f2848285016142c1565b91505092915050565b6000806040838503121561440e57600080fd5b600061441c858286016142c1565b925050602061442d858286016142c1565b9150509250929050565b60008060006060848603121561444c57600080fd5b600061445a868287016142c1565b935050602061446b868287016142c1565b925050604061447c868287016142c1565b9150509250925092565b60008060006060848603121561449b57600080fd5b60006144a9868287016142c1565b93505060206144ba868287016142c1565b92505060406144cb868287016143bd565b9150509250925092565b600080600080608085870312156144eb57600080fd5b60006144f9878288016142c1565b945050602061450a878288016142c1565b935050604061451b878288016143bd565b925050606085013567ffffffffffffffff81111561453857600080fd5b61454487828801614369565b91505092959194509250565b6000806040838503121561456357600080fd5b6000614571858286016142c1565b925050602061458285828601614300565b9150509250929050565b6000806040838503121561459f57600080fd5b60006145ad858286016142c1565b92505060206145be858286016143bd565b9150509250929050565b6000602082840312156145da57600080fd5b60006145e884828501614315565b91505092915050565b600080600080600060a0868803121561460957600080fd5b60006146178882890161432a565b9550506020614628888289016143bd565b9450506040614639888289016143bd565b935050606061464a888289016143bd565b925050608061465b888289016143bd565b9150509295509295909350565b60006020828403121561467a57600080fd5b60006146888482850161433f565b91505092915050565b6000602082840312156146a357600080fd5b60006146b184828501614354565b91505092915050565b6000602082840312156146cc57600080fd5b600082015167ffffffffffffffff8111156146e657600080fd5b6146f284828501614393565b91505092915050565b60006020828403121561470d57600080fd5b600061471b848285016143bd565b91505092915050565b6000806040838503121561473757600080fd5b6000614745858286016143bd565b9250506020614756858286016142c1565b9150509250929050565b6000806000806080858703121561477657600080fd5b6000614784878288016143bd565b9450506020614795878288016143bd565b93505060406147a68782880161432a565b925050606085013567ffffffffffffffff8111156147c357600080fd5b6147cf878288016142d6565b91505092959194509250565b6147e481615a1d565b82525050565b6147fb6147f682615a1d565b615b65565b82525050565b61480a81615a2f565b82525050565b61482161481c82615a3b565b615b77565b82525050565b600061483282615883565b61483c8185615899565b935061484c818560208601615ab7565b61485581615c8a565b840191505092915050565b600061486b82615883565b61487581856158aa565b9350614885818560208601615ab7565b80840191505092915050565b600061489c8261588e565b6148a681856158b5565b93506148b6818560208601615ab7565b6148bf81615c8a565b840191505092915050565b60006148d58261588e565b6148df81856158c6565b93506148ef818560208601615ab7565b80840191505092915050565b6000614908602b836158b5565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b600061496e6032836158b5565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b60006149d46015836158c6565b91507f7b226e616d65223a2022456767536175727573202300000000000000000000006000830152601582019050919050565b6000614a14600d836158b5565b91507f696e636f727265637420657468000000000000000000000000000000000000006000830152602082019050919050565b6000614a546026836158b5565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614aba601c836158b5565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000614afa6022836158c6565b91507f7d2c7b2274726169745f74797065223a20225669727573222c2276616c75652260008301527f3a200000000000000000000000000000000000000000000000000000000000006020830152602282019050919050565b6000614b606024836158b5565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614bc66019836158b5565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000614c06602c836158b5565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614c6c602f836158c6565b91507f222c2261747472696275746573223a205b7b2274726169745f74797065223a2060008301527f22416765222c2276616c7565223a2000000000000000000000000000000000006020830152602f82019050919050565b6000614cd26038836158b5565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000614d38602a836158b5565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000614d9e6029836158b5565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614e046011836158c6565b91507f222c22696d6167655f64617461223a20220000000000000000000000000000006000830152601182019050919050565b6000614e446007836158b5565b91507f45786365656473000000000000000000000000000000000000000000000000006000830152602082019050919050565b6000614e846020836158b5565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000614ec46003836158c6565b91507f7d5d7d00000000000000000000000000000000000000000000000000000000006000830152600382019050919050565b6000614f04602c836158b5565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614f6a6020836158b5565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614faa6005836158b5565b91507f616c6976650000000000000000000000000000000000000000000000000000006000830152602082019050919050565b6000614fea6029836158b5565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b60006150506004836158b5565b91507f64656164000000000000000000000000000000000000000000000000000000006000830152602082019050919050565b60006150906021836158b5565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006150f6601d836158c6565b91507f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000006000830152601d82019050919050565b60006151366000836158aa565b9150600082019050919050565b60006151506031836158b5565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b60006151b6602c836158b5565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b600061521c6003836158b5565b91507f79657400000000000000000000000000000000000000000000000000000000006000830152602082019050919050565b600061525c6007836158b5565b91507f696e76616c6964000000000000000000000000000000000000000000000000006000830152602082019050919050565b61529881615a91565b82525050565b6152af6152aa82615a91565b615b93565b82525050565b60006152c182856147ea565b6014820191506152d1828461529e565b6020820191508190509392505050565b60006152ed8285614810565b6020820191506152fd8284614810565b6020820191508190509392505050565b6000615318826149c7565b915061532482876148ca565b915061532f82614df7565b915061533b8286614860565b915061534682614c5f565b915061535282856148ca565b915061535d82614aed565b915061536982846148ca565b915061537482614eb7565b915081905095945050505050565b600061538d826150e9565b915061539982846148ca565b915081905092915050565b60006153af82615129565b9150819050919050565b60006020820190506153ce60008301846147db565b92915050565b60006060820190506153e960008301866147db565b6153f660208301856147db565b615403604083018461528f565b949350505050565b600060808201905061542060008301876147db565b61542d60208301866147db565b61543a604083018561528f565b818103606083015261544c8184614827565b905095945050505050565b600060208201905061546c6000830184614801565b92915050565b6000602082019050818103600083015261548c8184614891565b905092915050565b600060208201905081810360008301526154ad816148fb565b9050919050565b600060208201905081810360008301526154cd81614961565b9050919050565b600060208201905081810360008301526154ed81614a07565b9050919050565b6000602082019050818103600083015261550d81614a47565b9050919050565b6000602082019050818103600083015261552d81614aad565b9050919050565b6000602082019050818103600083015261554d81614b53565b9050919050565b6000602082019050818103600083015261556d81614bb9565b9050919050565b6000602082019050818103600083015261558d81614bf9565b9050919050565b600060208201905081810360008301526155ad81614cc5565b9050919050565b600060208201905081810360008301526155cd81614d2b565b9050919050565b600060208201905081810360008301526155ed81614d91565b9050919050565b6000602082019050818103600083015261560d81614e37565b9050919050565b6000602082019050818103600083015261562d81614e77565b9050919050565b6000602082019050818103600083015261564d81614ef7565b9050919050565b6000602082019050818103600083015261566d81614f5d565b9050919050565b6000602082019050818103600083015261568d81614f9d565b9050919050565b600060208201905081810360008301526156ad81614fdd565b9050919050565b600060208201905081810360008301526156cd81615043565b9050919050565b600060208201905081810360008301526156ed81615083565b9050919050565b6000602082019050818103600083015261570d81615143565b9050919050565b6000602082019050818103600083015261572d816151a9565b9050919050565b6000602082019050818103600083015261574d8161520f565b9050919050565b6000602082019050818103600083015261576d8161524f565b9050919050565b6000602082019050615789600083018461528f565b92915050565b60006060820190506157a4600083018661528f565b6157b1602083018561528f565b6157be604083018461528f565b949350505050565b6000604051905081810181811067ffffffffffffffff821117156157ed576157ec615c5b565b5b8060405250919050565b600067ffffffffffffffff82111561581257615811615c5b565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561583e5761583d615c5b565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff82111561586e5761586d615c5b565b5b601f19601f8301169050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006158dc82615a91565b91506158e783615a91565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561591c5761591b615bce565b5b828201905092915050565b600061593282615a9b565b915061593d83615a9b565b92508260ff0382111561595357615952615bce565b5b828201905092915050565b600061596982615a91565b915061597483615a91565b92508261598457615983615bfd565b5b828204905092915050565b600061599a82615a91565b91506159a583615a91565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156159de576159dd615bce565b5b828202905092915050565b60006159f482615a91565b91506159ff83615a91565b925082821015615a1257615a11615bce565b5b828203905092915050565b6000615a2882615a71565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015615ad5578082015181840152602081019050615aba565b83811115615ae4576000848401525b50505050565b60006002820490506001821680615b0257607f821691505b60208210811415615b1657615b15615c2c565b5b50919050565b6000615b2782615a91565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615b5a57615b59615bce565b5b600182019050919050565b6000615b7082615b81565b9050919050565b6000819050919050565b6000615b8c82615c9b565b9050919050565b6000819050919050565b6000615ba882615a91565b9150615bb383615a91565b925082615bc357615bc2615bfd565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b615cb181615a1d565b8114615cbc57600080fd5b50565b615cc881615a2f565b8114615cd357600080fd5b50565b615cdf81615a3b565b8114615cea57600080fd5b50565b615cf681615a45565b8114615d0157600080fd5b50565b615d0d81615a91565b8114615d1857600080fd5b5056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220e8aaf86d7de1945030f1468223ee6782dcb688f4e46a7af20fd57c8c488d053d64736f6c63430008000033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000009456767536175727573000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044547475300000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102465760003560e01c80638baecc2111610139578063b4b1c150116100b6578063e63ec9471161007a578063e63ec94714610896578063e7fb74c7146108d3578063e985e9c5146108fc578063f2fde38b14610939578063f51f96dd14610962578063f59dfdfb1461098d57610246565b8063b4b1c1501461078b578063b88d4fde146107c8578063c60cc6dd146107f1578063c87b56dd1461082e578063d5abeb011461086b57610246565b80639fa719b5116100fd5780639fa719b5146106cc578063a22cb465146106f7578063ab0bcc4114610720578063acabb1151461074b578063ada847861461076257610246565b80638baecc21146105e75780638da5cb5b146106105780638f9c0ae81461063b57806395d89b41146106645780639f38b2e41461068f57610246565b80633ccfd60b116101c7578063669f5a511161018b578063669f5a511461051157806367b488981461052d57806370a082311461056a578063715018a6146105a757806375ad9398146105be57610246565b80633ccfd60b1461043b57806342842e0e146104525780634f6ccce71461047b5780635bfe024d146104b85780636352211e146104d457610246565b806321328f9e1161020e57806321328f9e1461034457806323b872dd146103815780632f745c59146103aa578063363bf964146103e75780633ad10ef61461041057610246565b806301ffc9a71461024b57806306fdde0314610288578063081812fc146102b3578063095ea7b3146102f057806318160ddd14610319575b600080fd5b34801561025757600080fd5b50610272600480360381019061026d9190614668565b6109b6565b60405161027f9190615457565b60405180910390f35b34801561029457600080fd5b5061029d6109c8565b6040516102aa9190615472565b60405180910390f35b3480156102bf57600080fd5b506102da60048036038101906102d591906146fb565b610a5a565b6040516102e791906153b9565b60405180910390f35b3480156102fc57600080fd5b506103176004803603810190610312919061458c565b610adf565b005b34801561032557600080fd5b5061032e610bf7565b60405161033b9190615774565b60405180910390f35b34801561035057600080fd5b5061036b600480360381019061036691906143d2565b610c04565b6040516103789190615457565b60405180910390f35b34801561038d57600080fd5b506103a860048036038101906103a39190614486565b610c24565b005b3480156103b657600080fd5b506103d160048036038101906103cc919061458c565b610c84565b6040516103de9190615774565b60405180910390f35b3480156103f357600080fd5b5061040e60048036038101906104099190614437565b610d29565b005b34801561041c57600080fd5b50610425610e6d565b60405161043291906153b9565b60405180910390f35b34801561044757600080fd5b50610450610e93565b005b34801561045e57600080fd5b5061047960048036038101906104749190614486565b610fbd565b005b34801561048757600080fd5b506104a2600480360381019061049d91906146fb565b610fdd565b6040516104af9190615774565b60405180910390f35b6104d260048036038101906104cd9190614760565b611074565b005b3480156104e057600080fd5b506104fb60048036038101906104f691906146fb565b611473565b60405161050891906153b9565b60405180910390f35b61052b60048036038101906105269190614724565b611525565b005b34801561053957600080fd5b50610554600480360381019061054f91906146fb565b61176e565b6040516105619190615472565b60405180910390f35b34801561057657600080fd5b50610591600480360381019061058c91906143d2565b6119b3565b60405161059e9190615774565b60405180910390f35b3480156105b357600080fd5b506105bc611a6b565b005b3480156105ca57600080fd5b506105e560048036038101906105e091906146fb565b611af3565b005b3480156105f357600080fd5b5061060e600480360381019061060991906146fb565b611cf5565b005b34801561061c57600080fd5b50610625611ef7565b60405161063291906153b9565b60405180910390f35b34801561064757600080fd5b50610662600480360381019061065d91906146fb565b611f21565b005b34801561067057600080fd5b50610679612133565b6040516106869190615472565b60405180910390f35b34801561069b57600080fd5b506106b660048036038101906106b191906146fb565b6121c5565b6040516106c39190615774565b60405180910390f35b3480156106d857600080fd5b506106e161222c565b6040516106ee9190615774565b60405180910390f35b34801561070357600080fd5b5061071e60048036038101906107199190614550565b612232565b005b34801561072c57600080fd5b506107356123b3565b6040516107429190615774565b60405180910390f35b34801561075757600080fd5b506107606123b9565b005b34801561076e57600080fd5b50610789600480360381019061078491906145f1565b612465565b005b34801561079757600080fd5b506107b260048036038101906107ad91906146fb565b61251a565b6040516107bf9190615774565b60405180910390f35b3480156107d457600080fd5b506107ef60048036038101906107ea91906144d5565b6125d4565b005b3480156107fd57600080fd5b50610818600480360381019061081391906146fb565b612636565b6040516108259190615457565b60405180910390f35b34801561083a57600080fd5b50610855600480360381019061085091906146fb565b61265a565b6040516108629190615472565b60405180910390f35b34801561087757600080fd5b506108806126fe565b60405161088d9190615774565b60405180910390f35b3480156108a257600080fd5b506108bd60048036038101906108b891906143d2565b612704565b6040516108ca9190615774565b60405180910390f35b3480156108df57600080fd5b506108fa60048036038101906108f591906146fb565b61271c565b005b34801561090857600080fd5b50610923600480360381019061091e91906143fb565b61292e565b6040516109309190615457565b60405180910390f35b34801561094557600080fd5b50610960600480360381019061095b91906143d2565b6129c2565b005b34801561096e57600080fd5b50610977612aba565b6040516109849190615774565b60405180910390f35b34801561099957600080fd5b506109b460048036038101906109af91906146fb565b612ac0565b005b60006109c182612ce8565b9050919050565b6060600080546109d790615aea565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0390615aea565b8015610a505780601f10610a2557610100808354040283529160200191610a50565b820191906000526020600020905b815481529060010190602001808311610a3357829003601f168201915b5050505050905090565b6000610a6582612d62565b610aa4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9b90615634565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610aea82611473565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b52906156d4565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b7a612dce565b73ffffffffffffffffffffffffffffffffffffffff161480610ba95750610ba881610ba3612dce565b61292e565b5b610be8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bdf90615594565b60405180910390fd5b610bf28383612dd6565b505050565b6000600880549050905090565b600c6020528060005260406000206000915054906101000a900460ff1681565b610c35610c2f612dce565b82612e8f565b610c74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6b906156f4565b60405180910390fd5b610c7f838383612f6d565b505050565b6000610c8f836119b3565b8210610cd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc790615494565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610d31612dce565b73ffffffffffffffffffffffffffffffffffffffff16610d4f611ef7565b73ffffffffffffffffffffffffffffffffffffffff1614610da5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9c90615654565b60405180910390fd5b82601a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081601b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610e9b612dce565b73ffffffffffffffffffffffffffffffffffffffff16610eb9611ef7565b73ffffffffffffffffffffffffffffffffffffffff1614610f0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0690615654565b60405180910390fd5b600047905060008111610f2157600080fd5b6000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051610f69906153a4565b60006040518083038185875af1925050503d8060008114610fa6576040519150601f19603f3d011682016040523d82523d6000602084013e610fab565b606091505b5050905080610fb957600080fd5b5050565b610fd8838383604051806020016040528060008152506125d4565b505050565b6000610fe7610bf7565b8210611028576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101f90615714565b60405180910390fd5b60088281548110611062577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000600e54141580156110885750600e5442115b6110c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110be90615734565b60405180910390fd5b600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661126b5781338460405160200161112c9291906152b5565b6040516020818303038152906040528051906020012014611182576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117990615754565b60405180910390fd5b61118f81601854846131c9565b6111ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c590615754565b60405180910390fd5b6001600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555082600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000841161127857600080fd5b3461128e856010546132a590919063ffffffff16565b146112ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c5906154d4565b60405180910390fd5b6011546112ed856112df60126132bb565b6132c990919063ffffffff16565b111561132e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611325906155f4565b60405180910390fd5b83600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156113b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a7906155f4565b60405180910390fd5b60005b8481101561146c576001600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461140b91906159e9565b925050819055506000600161142060126132bb565b61142a91906158d1565b905061143633826132df565b42601360008381526020019081526020016000208190555061145860126132fd565b50808061146490615b1c565b9150506113b3565b5050505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561151c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611513906155d4565b60405180910390fd5b80915050919050565b6011546115448361153660126132bb565b6132c990919063ffffffff16565b1115611585576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157c906155f4565b60405180910390fd5b600082118015611596575060148211155b6115d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cc90615754565b60405180910390fd5b6115dd611ef7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146116b9576000600d54141580156116235750600d5442115b611662576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165990615734565b60405180910390fd5b34611678836010546132a590919063ffffffff16565b146116b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116af906154d4565b60405180910390fd5b5b60005b8281101561176957600060016116d260126132bb565b6116dc91906158d1565b90506116e6611ef7565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156117285761172383826132df565b611733565b61173233826132df565b5b42601360008381526020019081526020016000208190555061175560126132fd565b50808061176190615b1c565b9150506116bc565b505050565b606061177982612d62565b61178257600080fd5b6001151561178f83613313565b15151415806117a057506000601954145b1561185157601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166390d823186040518163ffffffff1660e01b815260040160006040518083038186803b15801561180d57600080fd5b505afa158015611821573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061184a91906146ba565b90506119ae565b600060156000848152602001908152602001600020549050601360008481526020019081526020016000205481101561188957600090505b60006016600085815260200190815260200160002054905060136000858152602001908152602001600020548110156118c157600090505b601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635364634c611934866119266103e8600160195461191891906159e9565b6132a590919063ffffffff16565b6132c990919063ffffffff16565b84846040518463ffffffff1660e01b81526004016119549392919061578f565b60006040518083038186803b15801561196c57600080fd5b505afa158015611980573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906119a991906146ba565b925050505b919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1b906155b4565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611a73612dce565b73ffffffffffffffffffffffffffffffffffffffff16611a91611ef7565b73ffffffffffffffffffffffffffffffffffffffff1614611ae7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ade90615654565b60405180910390fd5b611af1600061334e565b565b611afc81611473565b73ffffffffffffffffffffffffffffffffffffffff16611b1a612dce565b73ffffffffffffffffffffffffffffffffffffffff1614611b3a57600080fd5b610bb8611b46826121c5565b1015611b87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7e90615754565b60405180910390fd5b601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd333069021e19e0c9bab24000006040518463ffffffff1660e01b8152600401611bf0939291906153d4565b602060405180830381600087803b158015611c0a57600080fd5b505af1158015611c1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c4291906145c8565b50426017600083815260200190815260200160002081905550601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c6869021e19e0c9bab24000006040518263ffffffff1660e01b8152600401611cc09190615774565b600060405180830381600087803b158015611cda57600080fd5b505af1158015611cee573d6000803e3d6000fd5b5050505050565b611cfe81611473565b73ffffffffffffffffffffffffffffffffffffffff16611d1c612dce565b73ffffffffffffffffffffffffffffffffffffffff1614611d3c57600080fd5b60001515611d4982613313565b151514611d8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8290615674565b60405180910390fd5b601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330681b1ae4d6e2ef5000006040518463ffffffff1660e01b8152600401611df3939291906153d4565b602060405180830381600087803b158015611e0d57600080fd5b505af1158015611e21573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4591906145c8565b50426013600083815260200190815260200160002081905550601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c68681b1ae4d6e2ef5000006040518263ffffffff1660e01b8152600401611ec29190615774565b600060405180830381600087803b158015611edc57600080fd5b505af1158015611ef0573d6000803e3d6000fd5b5050505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611f2a81611473565b73ffffffffffffffffffffffffffffffffffffffff16611f48612dce565b73ffffffffffffffffffffffffffffffffffffffff1614611f6857600080fd5b611f7181613313565b611fb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa7906156b4565b60405180910390fd5b601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330681043561a88293000006040518463ffffffff1660e01b8152600401612018939291906153d4565b602060405180830381600087803b15801561203257600080fd5b505af1158015612046573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061206a91906145c8565b506006436120789190615b9d565b4261208391906158d1565b6016600083815260200190815260200160002081905550601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c68681043561a88293000006040518263ffffffff1660e01b81526004016120fe9190615774565b600060405180830381600087803b15801561211857600080fd5b505af115801561212c573d6000803e3d6000fd5b5050505050565b60606001805461214290615aea565b80601f016020809104026020016040519081016040528092919081815260200182805461216e90615aea565b80156121bb5780601f10612190576101008083540402835291602001916121bb565b820191906000526020600020905b81548152906001019060200180831161219e57829003601f168201915b5050505050905090565b60006121d082612d62565b6121d957600080fd5b6121e282613313565b156122225761221b6201518060136000858152602001908152602001600020544261220d91906159e9565b61341490919063ffffffff16565b9050612227565b600090505b919050565b600e5481565b61223a612dce565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156122a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229f90615554565b60405180910390fd5b80600560006122b5612dce565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612362612dce565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516123a79190615457565b60405180910390a35050565b600d5481565b6123c1612dce565b73ffffffffffffffffffffffffffffffffffffffff166123df611ef7565b73ffffffffffffffffffffffffffffffffffffffff1614612435576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242c90615654565b60405180910390fd5b60006019541461244457600080fd5b60016003426124539190615b9d565b61245d91906158d1565b601981905550565b61246d612dce565b73ffffffffffffffffffffffffffffffffffffffff1661248b611ef7565b73ffffffffffffffffffffffffffffffffffffffff16146124e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d890615654565b60405180910390fd5b610d058111156124f057600080fd5b8460188190555083600e8190555082600d8190555081601081905550806011819055505050505050565b600061252582612d62565b61252e57600080fd5b6000601460008481526020019081526020016000205490506000811480612568575060136000848152602001908152602001600020548111155b1561258457601360008481526020019081526020016000205490505b6000601760008581526020019081526020016000205414156125c9576125c16201518082426125b391906159e9565b61341490919063ffffffff16565b9150506125cf565b60009150505b919050565b6125e56125df612dce565b83612e8f565b612624576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261b906156f4565b60405180910390fd5b6126308484848461342a565b50505050565b600061264182612d62565b61264a57600080fd5b61265382613313565b9050919050565b606061266582612d62565b61266e57600080fd5b60006126798361176e565b905060006126d361268985613486565b8361269b612696886121c5565b613486565b6126ac6126a78961251a565b613486565b6040516020016126bf949392919061530d565b60405160208183030381529060405261365b565b9050806040516020016126e69190615382565b60405160208183030381529060405292505050919050565b60115481565b600b6020528060005260406000206000915090505481565b61272581611473565b73ffffffffffffffffffffffffffffffffffffffff16612743612dce565b73ffffffffffffffffffffffffffffffffffffffff161461276357600080fd5b61276c81613313565b6127ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a2906156b4565b60405180910390fd5b601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd333068056bc75e2d631000006040518463ffffffff1660e01b8152600401612813939291906153d4565b602060405180830381600087803b15801561282d57600080fd5b505af1158015612841573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061286591906145c8565b506008436128739190615b9d565b4261287e91906158d1565b6015600083815260200190815260200160002081905550601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c6868056bc75e2d631000006040518263ffffffff1660e01b81526004016128f99190615774565b600060405180830381600087803b15801561291357600080fd5b505af1158015612927573d6000803e3d6000fd5b5050505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6129ca612dce565b73ffffffffffffffffffffffffffffffffffffffff166129e8611ef7565b73ffffffffffffffffffffffffffffffffffffffff1614612a3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a3590615654565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612aae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aa5906154f4565b60405180910390fd5b612ab78161334e565b50565b60105481565b612ac981611473565b73ffffffffffffffffffffffffffffffffffffffff16612ae7612dce565b73ffffffffffffffffffffffffffffffffffffffff1614612b0757600080fd5b612b1081613313565b612b4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b46906156b4565b60405180910390fd5b601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330680340aad21b3b7000006040518463ffffffff1660e01b8152600401612bb7939291906153d4565b602060405180830381600087803b158015612bd157600080fd5b505af1158015612be5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c0991906145c8565b50426014600083815260200190815260200160002081905550601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c68680340aad21b3b7000006040518263ffffffff1660e01b8152600401612c869190615774565b600060405180830381600087803b158015612ca057600080fd5b505af1158015612cb4573d6000803e3d6000fd5b50505050807faee7b00ca0359ab0727fb54b350e15a1ed46fb12dc0d04ca9bb5f4e7c313249a60405160405180910390a250565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d5b5750612d5a82613819565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612e4983611473565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612e9a82612d62565b612ed9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ed090615574565b60405180910390fd5b6000612ee483611473565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612f5357508373ffffffffffffffffffffffffffffffffffffffff16612f3b84610a5a565b73ffffffffffffffffffffffffffffffffffffffff16145b80612f645750612f63818561292e565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612f8d82611473565b73ffffffffffffffffffffffffffffffffffffffff1614612fe3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fda90615694565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613053576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161304a90615534565b60405180910390fd5b61305e8383836138fb565b613069600082612dd6565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130b991906159e9565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461311091906158d1565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008082905060005b8551811015613297576000868281518110613216577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905080831161325757828160405160200161323a9291906152e1565b604051602081830303815290604052805190602001209250613283565b808360405160200161326a9291906152e1565b6040516020818303038152906040528051906020012092505b50808061328f90615b1c565b9150506131d2565b508381149150509392505050565b600081836132b3919061598f565b905092915050565b600081600001549050919050565b600081836132d791906158d1565b905092915050565b6132f982826040518060200160405280600081525061390b565b5050565b6001816000016000828254019250508190555050565b6000806017600084815260200190815260200160002054141561334457603c61333b8361251a565b11159050613349565b600190505b919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008183613422919061595e565b905092915050565b613435848484612f6d565b61344184848484613966565b613480576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613477906154b4565b60405180910390fd5b50505050565b606060008214156134ce576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613656565b600082905060005b600082146135005780806134e990615b1c565b915050600a826134f9919061595e565b91506134d6565b60008167ffffffffffffffff811115613542577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156135745781602001600182028036833780820191505090505b50905060008290505b6000861461364e5760018161359291906159e9565b90506000600a80886135a4919061595e565b6135ae919061598f565b876135b991906159e9565b60306135c59190615927565b905060008160f81b905080848481518110613609577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a88613645919061595e565b9750505061357d565b819450505050505b919050565b606060008251905060008114156136845760405180602001604052806000815250915050613814565b6000600360028361369591906158d1565b61369f919061595e565b60046136ab919061598f565b905060006020826136bc91906158d1565b67ffffffffffffffff8111156136fb577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561372d5781602001600182028036833780820191505090505b5090506000604051806060016040528060408152602001615d1c604091399050600181016020830160005b868110156137d15760038101905062ffffff818a015116603f8160121c168401518060081b905060ff603f83600c1c1686015116810190508060081b905060ff603f8360061c1686015116810190508060081b905060ff603f831686015116810190508060e01b90508084526004840193505050613758565b5060038606600181146137eb57600281146137fb57613806565b613d3d60f01b6002830352613806565b603d60f81b60018303525b508484525050819450505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806138e457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806138f457506138f382613afd565b5b9050919050565b613906838383613b67565b505050565b6139158383613c7b565b6139226000848484613966565b613961576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613958906154b4565b60405180910390fd5b505050565b60006139878473ffffffffffffffffffffffffffffffffffffffff16613e49565b15613af0578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026139b0612dce565b8786866040518563ffffffff1660e01b81526004016139d2949392919061540b565b602060405180830381600087803b1580156139ec57600080fd5b505af1925050508015613a1d57506040513d601f19601f82011682018060405250810190613a1a9190614691565b60015b613aa0573d8060008114613a4d576040519150601f19603f3d011682016040523d82523d6000602084013e613a52565b606091505b50600081511415613a98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a8f906154b4565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613af5565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b613b72838383613e5c565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613bb557613bb081613e61565b613bf4565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613bf357613bf28382613eaa565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613c3757613c3281614017565b613c76565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613c7557613c74828261415a565b5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613ceb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ce290615614565b60405180910390fd5b613cf481612d62565b15613d34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d2b90615514565b60405180910390fd5b613d40600083836138fb565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613d9091906158d1565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613eb7846119b3565b613ec191906159e9565b9050600060076000848152602001908152602001600020549050818114613fa6576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061402b91906159e9565b9050600060096000848152602001908152602001600020549050600060088381548110614081577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600883815481106140c9577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061413e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000614165836119b3565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b60006141ec6141e7846157f7565b6157c6565b9050808382526020820190508285602086028201111561420b57600080fd5b60005b8581101561423b5781614221888261432a565b84526020840193506020830192505060018101905061420e565b5050509392505050565b600061425861425384615823565b6157c6565b90508281526020810184848401111561427057600080fd5b61427b848285615aa8565b509392505050565b600061429661429184615853565b6157c6565b9050828152602081018484840111156142ae57600080fd5b6142b9848285615ab7565b509392505050565b6000813590506142d081615ca8565b92915050565b600082601f8301126142e757600080fd5b81356142f78482602086016141d9565b91505092915050565b60008135905061430f81615cbf565b92915050565b60008151905061432481615cbf565b92915050565b60008135905061433981615cd6565b92915050565b60008135905061434e81615ced565b92915050565b60008151905061436381615ced565b92915050565b600082601f83011261437a57600080fd5b813561438a848260208601614245565b91505092915050565b600082601f8301126143a457600080fd5b81516143b4848260208601614283565b91505092915050565b6000813590506143cc81615d04565b92915050565b6000602082840312156143e457600080fd5b60006143f2848285016142c1565b91505092915050565b6000806040838503121561440e57600080fd5b600061441c858286016142c1565b925050602061442d858286016142c1565b9150509250929050565b60008060006060848603121561444c57600080fd5b600061445a868287016142c1565b935050602061446b868287016142c1565b925050604061447c868287016142c1565b9150509250925092565b60008060006060848603121561449b57600080fd5b60006144a9868287016142c1565b93505060206144ba868287016142c1565b92505060406144cb868287016143bd565b9150509250925092565b600080600080608085870312156144eb57600080fd5b60006144f9878288016142c1565b945050602061450a878288016142c1565b935050604061451b878288016143bd565b925050606085013567ffffffffffffffff81111561453857600080fd5b61454487828801614369565b91505092959194509250565b6000806040838503121561456357600080fd5b6000614571858286016142c1565b925050602061458285828601614300565b9150509250929050565b6000806040838503121561459f57600080fd5b60006145ad858286016142c1565b92505060206145be858286016143bd565b9150509250929050565b6000602082840312156145da57600080fd5b60006145e884828501614315565b91505092915050565b600080600080600060a0868803121561460957600080fd5b60006146178882890161432a565b9550506020614628888289016143bd565b9450506040614639888289016143bd565b935050606061464a888289016143bd565b925050608061465b888289016143bd565b9150509295509295909350565b60006020828403121561467a57600080fd5b60006146888482850161433f565b91505092915050565b6000602082840312156146a357600080fd5b60006146b184828501614354565b91505092915050565b6000602082840312156146cc57600080fd5b600082015167ffffffffffffffff8111156146e657600080fd5b6146f284828501614393565b91505092915050565b60006020828403121561470d57600080fd5b600061471b848285016143bd565b91505092915050565b6000806040838503121561473757600080fd5b6000614745858286016143bd565b9250506020614756858286016142c1565b9150509250929050565b6000806000806080858703121561477657600080fd5b6000614784878288016143bd565b9450506020614795878288016143bd565b93505060406147a68782880161432a565b925050606085013567ffffffffffffffff8111156147c357600080fd5b6147cf878288016142d6565b91505092959194509250565b6147e481615a1d565b82525050565b6147fb6147f682615a1d565b615b65565b82525050565b61480a81615a2f565b82525050565b61482161481c82615a3b565b615b77565b82525050565b600061483282615883565b61483c8185615899565b935061484c818560208601615ab7565b61485581615c8a565b840191505092915050565b600061486b82615883565b61487581856158aa565b9350614885818560208601615ab7565b80840191505092915050565b600061489c8261588e565b6148a681856158b5565b93506148b6818560208601615ab7565b6148bf81615c8a565b840191505092915050565b60006148d58261588e565b6148df81856158c6565b93506148ef818560208601615ab7565b80840191505092915050565b6000614908602b836158b5565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b600061496e6032836158b5565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b60006149d46015836158c6565b91507f7b226e616d65223a2022456767536175727573202300000000000000000000006000830152601582019050919050565b6000614a14600d836158b5565b91507f696e636f727265637420657468000000000000000000000000000000000000006000830152602082019050919050565b6000614a546026836158b5565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614aba601c836158b5565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000614afa6022836158c6565b91507f7d2c7b2274726169745f74797065223a20225669727573222c2276616c75652260008301527f3a200000000000000000000000000000000000000000000000000000000000006020830152602282019050919050565b6000614b606024836158b5565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614bc66019836158b5565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000614c06602c836158b5565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614c6c602f836158c6565b91507f222c2261747472696275746573223a205b7b2274726169745f74797065223a2060008301527f22416765222c2276616c7565223a2000000000000000000000000000000000006020830152602f82019050919050565b6000614cd26038836158b5565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000614d38602a836158b5565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000614d9e6029836158b5565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614e046011836158c6565b91507f222c22696d6167655f64617461223a20220000000000000000000000000000006000830152601182019050919050565b6000614e446007836158b5565b91507f45786365656473000000000000000000000000000000000000000000000000006000830152602082019050919050565b6000614e846020836158b5565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000614ec46003836158c6565b91507f7d5d7d00000000000000000000000000000000000000000000000000000000006000830152600382019050919050565b6000614f04602c836158b5565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614f6a6020836158b5565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614faa6005836158b5565b91507f616c6976650000000000000000000000000000000000000000000000000000006000830152602082019050919050565b6000614fea6029836158b5565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b60006150506004836158b5565b91507f64656164000000000000000000000000000000000000000000000000000000006000830152602082019050919050565b60006150906021836158b5565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006150f6601d836158c6565b91507f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000006000830152601d82019050919050565b60006151366000836158aa565b9150600082019050919050565b60006151506031836158b5565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b60006151b6602c836158b5565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b600061521c6003836158b5565b91507f79657400000000000000000000000000000000000000000000000000000000006000830152602082019050919050565b600061525c6007836158b5565b91507f696e76616c6964000000000000000000000000000000000000000000000000006000830152602082019050919050565b61529881615a91565b82525050565b6152af6152aa82615a91565b615b93565b82525050565b60006152c182856147ea565b6014820191506152d1828461529e565b6020820191508190509392505050565b60006152ed8285614810565b6020820191506152fd8284614810565b6020820191508190509392505050565b6000615318826149c7565b915061532482876148ca565b915061532f82614df7565b915061533b8286614860565b915061534682614c5f565b915061535282856148ca565b915061535d82614aed565b915061536982846148ca565b915061537482614eb7565b915081905095945050505050565b600061538d826150e9565b915061539982846148ca565b915081905092915050565b60006153af82615129565b9150819050919050565b60006020820190506153ce60008301846147db565b92915050565b60006060820190506153e960008301866147db565b6153f660208301856147db565b615403604083018461528f565b949350505050565b600060808201905061542060008301876147db565b61542d60208301866147db565b61543a604083018561528f565b818103606083015261544c8184614827565b905095945050505050565b600060208201905061546c6000830184614801565b92915050565b6000602082019050818103600083015261548c8184614891565b905092915050565b600060208201905081810360008301526154ad816148fb565b9050919050565b600060208201905081810360008301526154cd81614961565b9050919050565b600060208201905081810360008301526154ed81614a07565b9050919050565b6000602082019050818103600083015261550d81614a47565b9050919050565b6000602082019050818103600083015261552d81614aad565b9050919050565b6000602082019050818103600083015261554d81614b53565b9050919050565b6000602082019050818103600083015261556d81614bb9565b9050919050565b6000602082019050818103600083015261558d81614bf9565b9050919050565b600060208201905081810360008301526155ad81614cc5565b9050919050565b600060208201905081810360008301526155cd81614d2b565b9050919050565b600060208201905081810360008301526155ed81614d91565b9050919050565b6000602082019050818103600083015261560d81614e37565b9050919050565b6000602082019050818103600083015261562d81614e77565b9050919050565b6000602082019050818103600083015261564d81614ef7565b9050919050565b6000602082019050818103600083015261566d81614f5d565b9050919050565b6000602082019050818103600083015261568d81614f9d565b9050919050565b600060208201905081810360008301526156ad81614fdd565b9050919050565b600060208201905081810360008301526156cd81615043565b9050919050565b600060208201905081810360008301526156ed81615083565b9050919050565b6000602082019050818103600083015261570d81615143565b9050919050565b6000602082019050818103600083015261572d816151a9565b9050919050565b6000602082019050818103600083015261574d8161520f565b9050919050565b6000602082019050818103600083015261576d8161524f565b9050919050565b6000602082019050615789600083018461528f565b92915050565b60006060820190506157a4600083018661528f565b6157b1602083018561528f565b6157be604083018461528f565b949350505050565b6000604051905081810181811067ffffffffffffffff821117156157ed576157ec615c5b565b5b8060405250919050565b600067ffffffffffffffff82111561581257615811615c5b565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561583e5761583d615c5b565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff82111561586e5761586d615c5b565b5b601f19601f8301169050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006158dc82615a91565b91506158e783615a91565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561591c5761591b615bce565b5b828201905092915050565b600061593282615a9b565b915061593d83615a9b565b92508260ff0382111561595357615952615bce565b5b828201905092915050565b600061596982615a91565b915061597483615a91565b92508261598457615983615bfd565b5b828204905092915050565b600061599a82615a91565b91506159a583615a91565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156159de576159dd615bce565b5b828202905092915050565b60006159f482615a91565b91506159ff83615a91565b925082821015615a1257615a11615bce565b5b828203905092915050565b6000615a2882615a71565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015615ad5578082015181840152602081019050615aba565b83811115615ae4576000848401525b50505050565b60006002820490506001821680615b0257607f821691505b60208210811415615b1657615b15615c2c565b5b50919050565b6000615b2782615a91565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615b5a57615b59615bce565b5b600182019050919050565b6000615b7082615b81565b9050919050565b6000819050919050565b6000615b8c82615c9b565b9050919050565b6000819050919050565b6000615ba882615a91565b9150615bb383615a91565b925082615bc357615bc2615bfd565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b615cb181615a1d565b8114615cbc57600080fd5b50565b615cc881615a2f565b8114615cd357600080fd5b50565b615cdf81615a3b565b8114615cea57600080fd5b50565b615cf681615a45565b8114615d0157600080fd5b50565b615d0d81615a91565b8114615d1857600080fd5b5056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220e8aaf86d7de1945030f1468223ee6782dcb688f4e46a7af20fd57c8c488d053d64736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000009456767536175727573000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044547475300000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : tokenName (string): EggSaurus
Arg [1] : tokenSymbol (string): EGGS
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [3] : 4567675361757275730000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [5] : 4547475300000000000000000000000000000000000000000000000000000000
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.