Feature Tip: Add private address tag to any address under My Name Tag !
Overview
TokenID
90
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 0 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
MouseGangNFT
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* -= Mouse Gang NFT =- */ import "./ERC721Enumerable.sol"; import "./Ownable.sol"; import "./ReentrancyGuard.sol"; import "./SafeMath.sol"; import {ECDSA} from "./ECDSA.sol"; import {Strings} from "./Strings.sol"; import {Counters} from "./Counters.sol"; contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } contract MouseGangNFT is ERC721Enumerable, Ownable, ReentrancyGuard { using SafeMath for uint256; using Counters for Counters.Counter; uint256 public constant MaxNFT = 10000; uint256 public constant MaxMarketingNFT = 200; uint256 public constant SaleMintableMax = 10; uint256 public constant PresaleMintableMax = 1; bool public presale; bool public sale; bool private _singleWithdrawal; bool private _metaUrlLocked; uint256 public price = 0.05 ether; uint256 public saleEndTimestamp; // centralizing Metadata for now to provide extra features such as name change and more string public metaUrl = "https://api.mousegangnft.com/meta/"; address public proxyRegistryAddress; address public mgAddress = 0xFa54DEE863c49290bDF88b1bbFA9b91F9D0C17E4; address public signerAddress = 0x23bb980a09613f502b1346daC1f15c23e31BB386; address private constant _beneficiaryAddress = 0x7F8281Ca10c07dFfE6c34541FDBb7136740bAFCF; Counters.Counter private _tokenIdTracker; constructor(address _proxyRegistryAddress) ERC721("Mouse Gang NFT", "MOUSEG") { proxyRegistryAddress = _proxyRegistryAddress; } // SALE function buy(bool isPresale, bytes memory signature, uint256 timestamp, uint256 amount) external payable nonReentrant { require(isPresale ? presale : sale, "MG_SALE_NOT_LIVE"); require(price.mul(amount) <= msg.value, "MG_NOT_ENOUGH_ETH"); if (isPresale) { require(balanceOf(_msgSender()).add(amount) <= PresaleMintableMax, "MG_LIMIT_REACHED"); } else { require(amount <= SaleMintableMax, "MG_LIMIT_REACHED"); } require(tokenCount().add(amount) <= MaxNFT, "MG_MAX_REACHED"); address signer = _getSigner(_msgSender(), timestamp, signature); require(signerAddress == signer, "MG_FORBIDDEN"); for(uint256 i = 0; i < amount; i++) { if (tokenCount() < MaxNFT) { _safeMint(_msgSender(), tokenCount()); _tokenIdTracker.increment(); } } } function tokenCount() public view returns (uint256) { return _tokenIdTracker.current(); } function isApprovedForAll(address owner_, address operator) override public view returns (bool){ // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner_)) == operator) { return true; } return super.isApprovedForAll(owner_, operator); } // REFUND 50% of price function isRefundActive() public view returns (bool) { return (block.timestamp < (saleEndTimestamp + 30 days)); } function refund(uint256 _tokenId) external nonReentrant { require(mgAddress != address(0), "MG_NULL_ADDRESS"); require(isRefundActive(), "MG_REFUND_EXPIRED"); require(_isApprovedOrOwner(_msgSender(), _tokenId), "MG_FORBIDDEN"); _transfer(_msgSender(), mgAddress, _tokenId); payable(_msgSender()).transfer(price.div(2)); } // ADMIN function setPrice(uint256 _price) external onlyOwner { require(!presale, "MG_PRESALE_LIVE"); require(!sale, "MG_SALE_LIVE"); price = _price; } function toggleState(bool _presale, bool _sale) external onlyOwner { if (_presale) { if (!presale) { require(mgAddress != address(0), "MG_NULL_ADDRESS"); } presale = !presale; } if (_sale) { if (sale) { saleEndTimestamp = block.timestamp; } else { require(mgAddress != address(0), "MG_NULL_ADDRESS"); } sale = !sale; } } function reserve(address addr, uint256 amount, bool marketing) external onlyOwner { require(!presale, "MG_PRESALE_LIVE"); require(!sale, "MG_SALE_LIVE"); uint256 index = tokenCount(); uint256 take = index.add(amount); uint256 max = marketing ? MaxMarketingNFT : MaxNFT; take = take > max ? max : take; for (uint256 i = index; i < take; i++) { _safeMint(addr, tokenCount()); _tokenIdTracker.increment(); } } function withdraw(bool singleHalf) external onlyOwner nonReentrant { if (singleHalf && _singleWithdrawal) return; uint256 balance = address(this).balance; if (balance <= 0) return; if (singleHalf) balance = balance.div(2); require(mgAddress != address(0), "MG_NULL_ADDRESS"); if (!singleHalf) require(!isRefundActive() && !presale && !sale, "MG_REFUND_ACTIVE_OR_SALE"); uint256 beneficiaryBalance = balance.mul(7).div(10); payable(_beneficiaryAddress).transfer(beneficiaryBalance); payable(mgAddress).transfer(balance.sub(beneficiaryBalance)); if (singleHalf) _singleWithdrawal = true; } function setMGAddress(address _address) external onlyOwner { mgAddress = _address; } function setSignerAddress(address _address) external onlyOwner { signerAddress = _address; } function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) { require(_exists(tokenId), "MG_TOKEN_NOT_FOUND"); return string(abi.encodePacked(metaUrl, Strings.toString(tokenId))); } function setBaseURI(string calldata baseURI) external onlyOwner { require(!_metaUrlLocked, "MG_META_LOCKED"); metaUrl = baseURI; } function lockMetadata() external onlyOwner { _metaUrlLocked = true; } function burnMany(uint256[] calldata tokenIds) external onlyOwner { for (uint256 i = 0; i < tokenIds.length; i++) { _burn(tokenIds[i]); } } // HELPERS function _getSigner(address _address, uint256 timestamp, bytes memory signature) private pure returns (address) { bytes32 hash = keccak256(abi.encodePacked( "\x19Ethereum Signed Message:\n32", keccak256(abi.encodePacked(_address, timestamp))) ); return ECDSA.recover(hash, signature); } }
// 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; // 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; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./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; /** * @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; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./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; /** * @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 "./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 "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./IERC721Metadata.sol"; import "./Address.sol"; import "./Context.sol"; import "./Strings.sol"; import "./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 "./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 Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// 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; /** * @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 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); } } } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MaxMarketingNFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MaxNFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PresaleMintableMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SaleMintableMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"burnMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isPresale","type":"bool"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRefundActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"metaUrl","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mgAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"refund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"marketing","type":"bool"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleEndTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setMGAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"bool","name":"_presale","type":"bool"},{"internalType":"bool","name":"_sale","type":"bool"}],"name":"toggleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenCount","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":"bool","name":"singleHalf","type":"bool"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405266b1a2bc2ec50000600d556040518060600160405280602281526020016200640660229139600f908051906020019062000040929190620002fc565b5073fa54dee863c49290bdf88b1bbfa9b91f9d0c17e4601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507323bb980a09613f502b1346dac1f15c23e31bb386601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015620000f857600080fd5b50604051620064283803806200642883398181016040528101906200011e919062000416565b6040518060400160405280600e81526020017f4d6f7573652047616e67204e46540000000000000000000000000000000000008152506040518060400160405280600681526020017f4d4f5553454700000000000000000000000000000000000000000000000000008152508160009080519060200190620001a2929190620002fc565b508060019080519060200190620001bb929190620002fc565b505050620001de620001d26200022e60201b60201c565b6200023660201b60201c565b6001600b8190555080601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050620004ad565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200030a9062000477565b90600052602060002090601f0160209004810192826200032e57600085556200037a565b82601f106200034957805160ff19168380011785556200037a565b828001600101855582156200037a579182015b82811115620003795782518255916020019190600101906200035c565b5b5090506200038991906200038d565b5090565b5b80821115620003a85760008160009055506001016200038e565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620003de82620003b1565b9050919050565b620003f081620003d1565b8114620003fc57600080fd5b50565b6000815190506200041081620003e5565b92915050565b6000602082840312156200042f576200042e620003ac565b5b60006200043f84828501620003ff565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200049057607f821691505b60208210811415620004a757620004a662000448565b5b50919050565b615f4980620004bd6000396000f3fe6080604052600436106102675760003560e01c806391b7f5ed11610144578063c68deb7e116100b6578063e41b759e1161007a578063e41b759e14610908578063e985e9c514610924578063f2fde38b14610961578063f99a4ef31461098a578063fd6dc9dd146109b5578063fdea8e0b146109e057610267565b8063c68deb7e14610823578063c87b56dd1461084e578063cd7c03261461088b578063cf323460146108b6578063dd049c6d146108df57610267565b8063a04482e911610108578063a04482e914610729578063a22cb46514610754578063a810a54c1461077d578063b42bcb99146107a6578063b7e60591146107d1578063b88d4fde146107fa57610267565b806391b7f5ed1461066857806395d89b4114610691578063989bdbb6146106bc5780639f181b5e146106d3578063a035b1fe146106fe57610267565b806341e5a23f116101dd5780635b7633d0116101a15780635b7633d0146105565780636352211e146105815780636ad1fe02146105be57806370a08231146105e9578063715018a6146106265780638da5cb5b1461063d57610267565b806341e5a23f1461047357806342842e0e1461049c5780634f6ccce7146104c557806355f804b3146105025780635aa01ac91461052b57610267565b806318160ddd1161022f57806318160ddd14610363578063234da9b71461038e57806323b872dd146103b9578063267f39ab146103e2578063278ecde11461040d5780632f745c591461043657610267565b806301ffc9a71461026c578063046dc166146102a957806306fdde03146102d2578063081812fc146102fd578063095ea7b31461033a575b600080fd5b34801561027857600080fd5b50610293600480360381019061028e9190613fd8565b610a0b565b6040516102a09190614020565b60405180910390f35b3480156102b557600080fd5b506102d060048036038101906102cb9190614099565b610a85565b005b3480156102de57600080fd5b506102e7610b45565b6040516102f4919061415f565b60405180910390f35b34801561030957600080fd5b50610324600480360381019061031f91906141b7565b610bd7565b60405161033191906141f3565b60405180910390f35b34801561034657600080fd5b50610361600480360381019061035c919061420e565b610c5c565b005b34801561036f57600080fd5b50610378610d74565b604051610385919061425d565b60405180910390f35b34801561039a57600080fd5b506103a3610d81565b6040516103b0919061425d565b60405180910390f35b3480156103c557600080fd5b506103e060048036038101906103db9190614278565b610d86565b005b3480156103ee57600080fd5b506103f7610de6565b6040516104049190614020565b60405180910390f35b34801561041957600080fd5b50610434600480360381019061042f91906141b7565b610e00565b005b34801561044257600080fd5b5061045d6004803603810190610458919061420e565b611019565b60405161046a919061425d565b60405180910390f35b34801561047f57600080fd5b5061049a600480360381019061049591906142f7565b6110be565b005b3480156104a857600080fd5b506104c360048036038101906104be9190614278565b611267565b005b3480156104d157600080fd5b506104ec60048036038101906104e791906141b7565b611287565b6040516104f9919061425d565b60405180910390f35b34801561050e57600080fd5b50610529600480360381019061052491906143af565b6112f8565b005b34801561053757600080fd5b506105406113da565b60405161054d919061425d565b60405180910390f35b34801561056257600080fd5b5061056b6113df565b60405161057891906141f3565b60405180910390f35b34801561058d57600080fd5b506105a860048036038101906105a391906141b7565b611405565b6040516105b591906141f3565b60405180910390f35b3480156105ca57600080fd5b506105d36114b7565b6040516105e09190614020565b60405180910390f35b3480156105f557600080fd5b50610610600480360381019061060b9190614099565b6114ca565b60405161061d919061425d565b60405180910390f35b34801561063257600080fd5b5061063b611582565b005b34801561064957600080fd5b5061065261160a565b60405161065f91906141f3565b60405180910390f35b34801561067457600080fd5b5061068f600480360381019061068a91906141b7565b611634565b005b34801561069d57600080fd5b506106a661175a565b6040516106b3919061415f565b60405180910390f35b3480156106c857600080fd5b506106d16117ec565b005b3480156106df57600080fd5b506106e8611885565b6040516106f5919061425d565b60405180910390f35b34801561070a57600080fd5b50610713611896565b604051610720919061425d565b60405180910390f35b34801561073557600080fd5b5061073e61189c565b60405161074b919061415f565b60405180910390f35b34801561076057600080fd5b5061077b600480360381019061077691906143fc565b61192a565b005b34801561078957600080fd5b506107a4600480360381019061079f919061443c565b611aab565b005b3480156107b257600080fd5b506107bb611e0b565b6040516107c891906141f3565b60405180910390f35b3480156107dd57600080fd5b506107f860048036038101906107f39190614099565b611e31565b005b34801561080657600080fd5b50610821600480360381019061081c9190614599565b611ef1565b005b34801561082f57600080fd5b50610838611f53565b604051610845919061425d565b60405180910390f35b34801561085a57600080fd5b50610875600480360381019061087091906141b7565b611f59565b604051610882919061415f565b60405180910390f35b34801561089757600080fd5b506108a0611fd5565b6040516108ad91906141f3565b60405180910390f35b3480156108c257600080fd5b506108dd60048036038101906108d89190614672565b611ffb565b005b3480156108eb57600080fd5b50610906600480360381019061090191906146bf565b6120bf565b005b610922600480360381019061091d91906146ff565b6122fc565b005b34801561093057600080fd5b5061094b60048036038101906109469190614782565b612626565b6040516109589190614020565b60405180910390f35b34801561096d57600080fd5b5061098860048036038101906109839190614099565b612719565b005b34801561099657600080fd5b5061099f612811565b6040516109ac919061425d565b60405180910390f35b3480156109c157600080fd5b506109ca612816565b6040516109d7919061425d565b60405180910390f35b3480156109ec57600080fd5b506109f561281c565b604051610a029190614020565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a7e5750610a7d8261282f565b5b9050919050565b610a8d612911565b73ffffffffffffffffffffffffffffffffffffffff16610aab61160a565b73ffffffffffffffffffffffffffffffffffffffff1614610b01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af89061480e565b60405180910390fd5b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060008054610b549061485d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b809061485d565b8015610bcd5780601f10610ba257610100808354040283529160200191610bcd565b820191906000526020600020905b815481529060010190602001808311610bb057829003601f168201915b5050505050905090565b6000610be282612919565b610c21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1890614901565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c6782611405565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ccf90614993565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610cf7612911565b73ffffffffffffffffffffffffffffffffffffffff161480610d265750610d2581610d20612911565b612626565b5b610d65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5c90614a25565b60405180910390fd5b610d6f8383612985565b505050565b6000600880549050905090565b60c881565b610d97610d91612911565b82612a3e565b610dd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dcd90614ab7565b60405180910390fd5b610de1838383612b1c565b505050565b600062278d00600e54610df99190614b06565b4210905090565b6002600b541415610e46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3d90614ba8565b60405180910390fd5b6002600b81905550600073ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610ee0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed790614c14565b60405180910390fd5b610ee8610de6565b610f27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1e90614c80565b60405180910390fd5b610f38610f32612911565b82612a3e565b610f77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6e90614cec565b60405180910390fd5b610fab610f82612911565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683612b1c565b610fb3612911565b73ffffffffffffffffffffffffffffffffffffffff166108fc610fe26002600d54612d7890919063ffffffff16565b9081150290604051600060405180830381858888f1935050505015801561100d573d6000803e3d6000fd5b506001600b8190555050565b6000611024836114ca565b8210611065576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105c90614d7e565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6110c6612911565b73ffffffffffffffffffffffffffffffffffffffff166110e461160a565b73ffffffffffffffffffffffffffffffffffffffff161461113a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111319061480e565b60405180910390fd5b600c60009054906101000a900460ff161561118a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118190614dea565b60405180910390fd5b600c60019054906101000a900460ff16156111da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d190614e56565b60405180910390fd5b60006111e4611885565b905060006111fb8483612d8e90919063ffffffff16565b905060008361120c5761271061120f565b60c85b905080821161121e5781611220565b805b915060008390505b8281101561125e576112418761123c611885565b612da4565b61124b6013612dc2565b808061125690614e76565b915050611228565b50505050505050565b61128283838360405180602001604052806000815250611ef1565b505050565b6000611291610d74565b82106112d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c990614f31565b60405180910390fd5b600882815481106112e6576112e5614f51565b5b90600052602060002001549050919050565b611300612911565b73ffffffffffffffffffffffffffffffffffffffff1661131e61160a565b73ffffffffffffffffffffffffffffffffffffffff1614611374576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136b9061480e565b60405180910390fd5b600c60039054906101000a900460ff16156113c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113bb90614fcc565b60405180910390fd5b8181600f91906113d5929190613ec9565b505050565b600181565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156114ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a59061505e565b60405180910390fd5b80915050919050565b600c60019054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561153b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611532906150f0565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61158a612911565b73ffffffffffffffffffffffffffffffffffffffff166115a861160a565b73ffffffffffffffffffffffffffffffffffffffff16146115fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f59061480e565b60405180910390fd5b6116086000612dd8565b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61163c612911565b73ffffffffffffffffffffffffffffffffffffffff1661165a61160a565b73ffffffffffffffffffffffffffffffffffffffff16146116b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a79061480e565b60405180910390fd5b600c60009054906101000a900460ff1615611700576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f790614dea565b60405180910390fd5b600c60019054906101000a900460ff1615611750576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174790614e56565b60405180910390fd5b80600d8190555050565b6060600180546117699061485d565b80601f01602080910402602001604051908101604052809291908181526020018280546117959061485d565b80156117e25780601f106117b7576101008083540402835291602001916117e2565b820191906000526020600020905b8154815290600101906020018083116117c557829003601f168201915b5050505050905090565b6117f4612911565b73ffffffffffffffffffffffffffffffffffffffff1661181261160a565b73ffffffffffffffffffffffffffffffffffffffff1614611868576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185f9061480e565b60405180910390fd5b6001600c60036101000a81548160ff021916908315150217905550565b60006118916013612e9e565b905090565b600d5481565b600f80546118a99061485d565b80601f01602080910402602001604051908101604052809291908181526020018280546118d59061485d565b80156119225780601f106118f757610100808354040283529160200191611922565b820191906000526020600020905b81548152906001019060200180831161190557829003601f168201915b505050505081565b611932612911565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119a0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119979061515c565b60405180910390fd5b80600560006119ad612911565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611a5a612911565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611a9f9190614020565b60405180910390a35050565b611ab3612911565b73ffffffffffffffffffffffffffffffffffffffff16611ad161160a565b73ffffffffffffffffffffffffffffffffffffffff1614611b27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1e9061480e565b60405180910390fd5b6002600b541415611b6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6490614ba8565b60405180910390fd5b6002600b81905550808015611b8e5750600c60029054906101000a900460ff165b15611b9857611e00565b600047905060008111611bab5750611e00565b8115611bc857611bc5600282612d7890919063ffffffff16565b90505b600073ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611c5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5190614c14565b60405180910390fd5b81611cda57611c67610de6565b158015611c815750600c60009054906101000a900460ff16155b8015611c9a5750600c60019054906101000a900460ff16155b611cd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd0906151c8565b60405180910390fd5b5b6000611d03600a611cf5600785612eac90919063ffffffff16565b612d7890919063ffffffff16565b9050737f8281ca10c07dffe6c34541fdbb7136740bafcf73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611d5f573d6000803e3d6000fd5b50601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc611daf8385612ec290919063ffffffff16565b9081150290604051600060405180830381858888f19350505050158015611dda573d6000803e3d6000fd5b508215611dfd576001600c60026101000a81548160ff0219169083151502179055505b50505b6001600b8190555050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611e39612911565b73ffffffffffffffffffffffffffffffffffffffff16611e5761160a565b73ffffffffffffffffffffffffffffffffffffffff1614611ead576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea49061480e565b60405180910390fd5b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611f02611efc612911565b83612a3e565b611f41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3890614ab7565b60405180910390fd5b611f4d84848484612ed8565b50505050565b600e5481565b6060611f6482612919565b611fa3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9a90615234565b60405180910390fd5b600f611fae83612f34565b604051602001611fbf929190615324565b6040516020818303038152906040529050919050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b612003612911565b73ffffffffffffffffffffffffffffffffffffffff1661202161160a565b73ffffffffffffffffffffffffffffffffffffffff1614612077576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206e9061480e565b60405180910390fd5b60005b828290508110156120ba576120a783838381811061209b5761209a614f51565b5b90506020020135613095565b80806120b290614e76565b91505061207a565b505050565b6120c7612911565b73ffffffffffffffffffffffffffffffffffffffff166120e561160a565b73ffffffffffffffffffffffffffffffffffffffff161461213b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121329061480e565b60405180910390fd5b811561221357600c60009054906101000a900460ff166121e857600073ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156121e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121de90614c14565b60405180910390fd5b5b600c60009054906101000a900460ff1615600c60006101000a81548160ff0219169083151502179055505b80156122f857600c60019054906101000a900460ff161561223a5742600e819055506122cd565b600073ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156122cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c390614c14565b60405180910390fd5b5b600c60019054906101000a900460ff1615600c60016101000a81548160ff0219169083151502179055505b5050565b6002600b541415612342576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233990614ba8565b60405180910390fd5b6002600b819055508361236457600c60019054906101000a900460ff16612375565b600c60009054906101000a900460ff165b6123b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ab90615394565b60405180910390fd5b346123ca82600d54612eac90919063ffffffff16565b111561240b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240290615400565b60405180910390fd5b831561247b57600161243582612427612422612911565b6114ca565b612d8e90919063ffffffff16565b1115612476576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246d9061546c565b60405180910390fd5b6124c0565b600a8111156124bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b69061546c565b60405180910390fd5b5b6127106124dd826124cf611885565b612d8e90919063ffffffff16565b111561251e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612515906154d8565b60405180910390fd5b600061253261252b612911565b84866131a6565b90508073ffffffffffffffffffffffffffffffffffffffff16601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146125c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125bb90614cec565b60405180910390fd5b60005b82811015612616576127106125da611885565b1015612603576125f86125eb612911565b6125f3611885565b612da4565b6126026013612dc2565b5b808061260e90614e76565b9150506125c7565b50506001600b8190555050505050565b600080601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b815260040161269e91906141f3565b602060405180830381865afa1580156126bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126df9190615536565b73ffffffffffffffffffffffffffffffffffffffff161415612705576001915050612713565b61270f848461320e565b9150505b92915050565b612721612911565b73ffffffffffffffffffffffffffffffffffffffff1661273f61160a565b73ffffffffffffffffffffffffffffffffffffffff1614612795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278c9061480e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612805576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127fc906155d5565b60405180910390fd5b61280e81612dd8565b50565b600a81565b61271081565b600c60009054906101000a900460ff1681565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806128fa57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061290a5750612909826132a2565b5b9050919050565b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166129f883611405565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612a4982612919565b612a88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7f90615667565b60405180910390fd5b6000612a9383611405565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612b0257508373ffffffffffffffffffffffffffffffffffffffff16612aea84610bd7565b73ffffffffffffffffffffffffffffffffffffffff16145b80612b135750612b128185612626565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612b3c82611405565b73ffffffffffffffffffffffffffffffffffffffff1614612b92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b89906156f9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612c02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bf99061578b565b60405180910390fd5b612c0d83838361330c565b612c18600082612985565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c6891906157ab565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612cbf9190614b06565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008183612d86919061580e565b905092915050565b60008183612d9c9190614b06565b905092915050565b612dbe828260405180602001604052806000815250613420565b5050565b6001816000016000828254019250508190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081600001549050919050565b60008183612eba919061583f565b905092915050565b60008183612ed091906157ab565b905092915050565b612ee3848484612b1c565b612eef8484848461347b565b612f2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f259061590b565b60405180910390fd5b50505050565b60606000821415612f7c576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613090565b600082905060005b60008214612fae578080612f9790614e76565b915050600a82612fa7919061580e565b9150612f84565b60008167ffffffffffffffff811115612fca57612fc961446e565b5b6040519080825280601f01601f191660200182016040528015612ffc5781602001600182028036833780820191505090505b5090505b600085146130895760018261301591906157ab565b9150600a85613024919061592b565b60306130309190614b06565b60f81b81838151811061304657613045614f51565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613082919061580e565b9450613000565b8093505050505b919050565b60006130a082611405565b90506130ae8160008461330c565b6130b9600083612985565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461310991906157ab565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60008084846040516020016131bc9291906159c5565b604051602081830303815290604052805190602001206040516020016131e29190615a68565b6040516020818303038152906040528051906020012090506132048184613603565b9150509392505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61331783838361362a565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561335a576133558161362f565b613399565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613398576133978382613678565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156133dc576133d7816137e5565b61341b565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461341a5761341982826138b6565b5b5b505050565b61342a8383613935565b613437600084848461347b565b613476576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161346d9061590b565b60405180910390fd5b505050565b600061349c8473ffffffffffffffffffffffffffffffffffffffff16613b03565b156135f6578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026134c5612911565b8786866040518563ffffffff1660e01b81526004016134e79493929190615ae3565b6020604051808303816000875af192505050801561352357506040513d601f19601f820116820180604052508101906135209190615b44565b60015b6135a6573d8060008114613553576040519150601f19603f3d011682016040523d82523d6000602084013e613558565b606091505b5060008151141561359e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135959061590b565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506135fb565b600190505b949350505050565b60008060006136128585613b16565b9150915061361f81613b99565b819250505092915050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613685846114ca565b61368f91906157ab565b9050600060076000848152602001908152602001600020549050818114613774576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506137f991906157ab565b905060006009600084815260200190815260200160002054905060006008838154811061382957613828614f51565b5b90600052602060002001549050806008838154811061384b5761384a614f51565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061389a57613899615b71565b5b6001900381819060005260206000200160009055905550505050565b60006138c1836114ca565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156139a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161399c90615bec565b60405180910390fd5b6139ae81612919565b156139ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139e590615c58565b60405180910390fd5b6139fa6000838361330c565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613a4a9190614b06565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b600080604183511415613b585760008060006020860151925060408601519150606086015160001a9050613b4c87828585613d6e565b94509450505050613b92565b604083511415613b89576000806020850151915060408501519050613b7e868383613e7b565b935093505050613b92565b60006002915091505b9250929050565b60006004811115613bad57613bac615c78565b5b816004811115613bc057613bbf615c78565b5b1415613bcb57613d6b565b60016004811115613bdf57613bde615c78565b5b816004811115613bf257613bf1615c78565b5b1415613c33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c2a90615cf3565b60405180910390fd5b60026004811115613c4757613c46615c78565b5b816004811115613c5a57613c59615c78565b5b1415613c9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c9290615d5f565b60405180910390fd5b60036004811115613caf57613cae615c78565b5b816004811115613cc257613cc1615c78565b5b1415613d03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613cfa90615df1565b60405180910390fd5b600480811115613d1657613d15615c78565b5b816004811115613d2957613d28615c78565b5b1415613d6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d6190615e83565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613da9576000600391509150613e72565b601b8560ff1614158015613dc15750601c8560ff1614155b15613dd3576000600491509150613e72565b600060018787878760405160008152602001604052604051613df89493929190615ece565b6020604051602081039080840390855afa158015613e1a573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613e6957600060019250925050613e72565b80600092509250505b94509492505050565b6000806000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85169150601b8560ff1c019050613ebb87828885613d6e565b935093505050935093915050565b828054613ed59061485d565b90600052602060002090601f016020900481019282613ef75760008555613f3e565b82601f10613f1057803560ff1916838001178555613f3e565b82800160010185558215613f3e579182015b82811115613f3d578235825591602001919060010190613f22565b5b509050613f4b9190613f4f565b5090565b5b80821115613f68576000816000905550600101613f50565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613fb581613f80565b8114613fc057600080fd5b50565b600081359050613fd281613fac565b92915050565b600060208284031215613fee57613fed613f76565b5b6000613ffc84828501613fc3565b91505092915050565b60008115159050919050565b61401a81614005565b82525050565b60006020820190506140356000830184614011565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006140668261403b565b9050919050565b6140768161405b565b811461408157600080fd5b50565b6000813590506140938161406d565b92915050565b6000602082840312156140af576140ae613f76565b5b60006140bd84828501614084565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156141005780820151818401526020810190506140e5565b8381111561410f576000848401525b50505050565b6000601f19601f8301169050919050565b6000614131826140c6565b61413b81856140d1565b935061414b8185602086016140e2565b61415481614115565b840191505092915050565b600060208201905081810360008301526141798184614126565b905092915050565b6000819050919050565b61419481614181565b811461419f57600080fd5b50565b6000813590506141b18161418b565b92915050565b6000602082840312156141cd576141cc613f76565b5b60006141db848285016141a2565b91505092915050565b6141ed8161405b565b82525050565b600060208201905061420860008301846141e4565b92915050565b6000806040838503121561422557614224613f76565b5b600061423385828601614084565b9250506020614244858286016141a2565b9150509250929050565b61425781614181565b82525050565b6000602082019050614272600083018461424e565b92915050565b60008060006060848603121561429157614290613f76565b5b600061429f86828701614084565b93505060206142b086828701614084565b92505060406142c1868287016141a2565b9150509250925092565b6142d481614005565b81146142df57600080fd5b50565b6000813590506142f1816142cb565b92915050565b6000806000606084860312156143105761430f613f76565b5b600061431e86828701614084565b935050602061432f868287016141a2565b9250506040614340868287016142e2565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f84011261436f5761436e61434a565b5b8235905067ffffffffffffffff81111561438c5761438b61434f565b5b6020830191508360018202830111156143a8576143a7614354565b5b9250929050565b600080602083850312156143c6576143c5613f76565b5b600083013567ffffffffffffffff8111156143e4576143e3613f7b565b5b6143f085828601614359565b92509250509250929050565b6000806040838503121561441357614412613f76565b5b600061442185828601614084565b9250506020614432858286016142e2565b9150509250929050565b60006020828403121561445257614451613f76565b5b6000614460848285016142e2565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6144a682614115565b810181811067ffffffffffffffff821117156144c5576144c461446e565b5b80604052505050565b60006144d8613f6c565b90506144e4828261449d565b919050565b600067ffffffffffffffff8211156145045761450361446e565b5b61450d82614115565b9050602081019050919050565b82818337600083830152505050565b600061453c614537846144e9565b6144ce565b90508281526020810184848401111561455857614557614469565b5b61456384828561451a565b509392505050565b600082601f8301126145805761457f61434a565b5b8135614590848260208601614529565b91505092915050565b600080600080608085870312156145b3576145b2613f76565b5b60006145c187828801614084565b94505060206145d287828801614084565b93505060406145e3878288016141a2565b925050606085013567ffffffffffffffff81111561460457614603613f7b565b5b6146108782880161456b565b91505092959194509250565b60008083601f8401126146325761463161434a565b5b8235905067ffffffffffffffff81111561464f5761464e61434f565b5b60208301915083602082028301111561466b5761466a614354565b5b9250929050565b6000806020838503121561468957614688613f76565b5b600083013567ffffffffffffffff8111156146a7576146a6613f7b565b5b6146b38582860161461c565b92509250509250929050565b600080604083850312156146d6576146d5613f76565b5b60006146e4858286016142e2565b92505060206146f5858286016142e2565b9150509250929050565b6000806000806080858703121561471957614718613f76565b5b6000614727878288016142e2565b945050602085013567ffffffffffffffff81111561474857614747613f7b565b5b6147548782880161456b565b9350506040614765878288016141a2565b9250506060614776878288016141a2565b91505092959194509250565b6000806040838503121561479957614798613f76565b5b60006147a785828601614084565b92505060206147b885828601614084565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006147f86020836140d1565b9150614803826147c2565b602082019050919050565b60006020820190508181036000830152614827816147eb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061487557607f821691505b602082108114156148895761488861482e565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006148eb602c836140d1565b91506148f68261488f565b604082019050919050565b6000602082019050818103600083015261491a816148de565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061497d6021836140d1565b915061498882614921565b604082019050919050565b600060208201905081810360008301526149ac81614970565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000614a0f6038836140d1565b9150614a1a826149b3565b604082019050919050565b60006020820190508181036000830152614a3e81614a02565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000614aa16031836140d1565b9150614aac82614a45565b604082019050919050565b60006020820190508181036000830152614ad081614a94565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614b1182614181565b9150614b1c83614181565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614b5157614b50614ad7565b5b828201905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614b92601f836140d1565b9150614b9d82614b5c565b602082019050919050565b60006020820190508181036000830152614bc181614b85565b9050919050565b7f4d475f4e554c4c5f414444524553530000000000000000000000000000000000600082015250565b6000614bfe600f836140d1565b9150614c0982614bc8565b602082019050919050565b60006020820190508181036000830152614c2d81614bf1565b9050919050565b7f4d475f524546554e445f45585049524544000000000000000000000000000000600082015250565b6000614c6a6011836140d1565b9150614c7582614c34565b602082019050919050565b60006020820190508181036000830152614c9981614c5d565b9050919050565b7f4d475f464f5242494444454e0000000000000000000000000000000000000000600082015250565b6000614cd6600c836140d1565b9150614ce182614ca0565b602082019050919050565b60006020820190508181036000830152614d0581614cc9565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614d68602b836140d1565b9150614d7382614d0c565b604082019050919050565b60006020820190508181036000830152614d9781614d5b565b9050919050565b7f4d475f50524553414c455f4c4956450000000000000000000000000000000000600082015250565b6000614dd4600f836140d1565b9150614ddf82614d9e565b602082019050919050565b60006020820190508181036000830152614e0381614dc7565b9050919050565b7f4d475f53414c455f4c4956450000000000000000000000000000000000000000600082015250565b6000614e40600c836140d1565b9150614e4b82614e0a565b602082019050919050565b60006020820190508181036000830152614e6f81614e33565b9050919050565b6000614e8182614181565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614eb457614eb3614ad7565b5b600182019050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614f1b602c836140d1565b9150614f2682614ebf565b604082019050919050565b60006020820190508181036000830152614f4a81614f0e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4d475f4d4554415f4c4f434b4544000000000000000000000000000000000000600082015250565b6000614fb6600e836140d1565b9150614fc182614f80565b602082019050919050565b60006020820190508181036000830152614fe581614fa9565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b60006150486029836140d1565b915061505382614fec565b604082019050919050565b600060208201905081810360008301526150778161503b565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b60006150da602a836140d1565b91506150e58261507e565b604082019050919050565b60006020820190508181036000830152615109816150cd565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006151466019836140d1565b915061515182615110565b602082019050919050565b6000602082019050818103600083015261517581615139565b9050919050565b7f4d475f524546554e445f4143544956455f4f525f53414c450000000000000000600082015250565b60006151b26018836140d1565b91506151bd8261517c565b602082019050919050565b600060208201905081810360008301526151e1816151a5565b9050919050565b7f4d475f544f4b454e5f4e4f545f464f554e440000000000000000000000000000600082015250565b600061521e6012836140d1565b9150615229826151e8565b602082019050919050565b6000602082019050818103600083015261524d81615211565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b600081546152818161485d565b61528b8186615254565b945060018216600081146152a657600181146152b7576152ea565b60ff198316865281860193506152ea565b6152c08561525f565b60005b838110156152e2578154818901526001820191506020810190506152c3565b838801955050505b50505092915050565b60006152fe826140c6565b6153088185615254565b93506153188185602086016140e2565b80840191505092915050565b60006153308285615274565b915061533c82846152f3565b91508190509392505050565b7f4d475f53414c455f4e4f545f4c49564500000000000000000000000000000000600082015250565b600061537e6010836140d1565b915061538982615348565b602082019050919050565b600060208201905081810360008301526153ad81615371565b9050919050565b7f4d475f4e4f545f454e4f5547485f455448000000000000000000000000000000600082015250565b60006153ea6011836140d1565b91506153f5826153b4565b602082019050919050565b60006020820190508181036000830152615419816153dd565b9050919050565b7f4d475f4c494d49545f5245414348454400000000000000000000000000000000600082015250565b60006154566010836140d1565b915061546182615420565b602082019050919050565b6000602082019050818103600083015261548581615449565b9050919050565b7f4d475f4d41585f52454143484544000000000000000000000000000000000000600082015250565b60006154c2600e836140d1565b91506154cd8261548c565b602082019050919050565b600060208201905081810360008301526154f1816154b5565b9050919050565b60006155038261405b565b9050919050565b615513816154f8565b811461551e57600080fd5b50565b6000815190506155308161550a565b92915050565b60006020828403121561554c5761554b613f76565b5b600061555a84828501615521565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006155bf6026836140d1565b91506155ca82615563565b604082019050919050565b600060208201905081810360008301526155ee816155b2565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000615651602c836140d1565b915061565c826155f5565b604082019050919050565b6000602082019050818103600083015261568081615644565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b60006156e36029836140d1565b91506156ee82615687565b604082019050919050565b60006020820190508181036000830152615712816156d6565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006157756024836140d1565b915061578082615719565b604082019050919050565b600060208201905081810360008301526157a481615768565b9050919050565b60006157b682614181565b91506157c183614181565b9250828210156157d4576157d3614ad7565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061581982614181565b915061582483614181565b925082615834576158336157df565b5b828204905092915050565b600061584a82614181565b915061585583614181565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561588e5761588d614ad7565b5b828202905092915050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006158f56032836140d1565b915061590082615899565b604082019050919050565b60006020820190508181036000830152615924816158e8565b9050919050565b600061593682614181565b915061594183614181565b925082615951576159506157df565b5b828206905092915050565b60008160601b9050919050565b60006159748261595c565b9050919050565b600061598682615969565b9050919050565b61599e6159998261405b565b61597b565b82525050565b6000819050919050565b6159bf6159ba82614181565b6159a4565b82525050565b60006159d1828561598d565b6014820191506159e182846159ae565b6020820191508190509392505050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000615a27601c83615254565b9150615a32826159f1565b601c82019050919050565b6000819050919050565b6000819050919050565b615a62615a5d82615a3d565b615a47565b82525050565b6000615a7382615a1a565b9150615a7f8284615a51565b60208201915081905092915050565b600081519050919050565b600082825260208201905092915050565b6000615ab582615a8e565b615abf8185615a99565b9350615acf8185602086016140e2565b615ad881614115565b840191505092915050565b6000608082019050615af860008301876141e4565b615b0560208301866141e4565b615b12604083018561424e565b8181036060830152615b248184615aaa565b905095945050505050565b600081519050615b3e81613fac565b92915050565b600060208284031215615b5a57615b59613f76565b5b6000615b6884828501615b2f565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615bd66020836140d1565b9150615be182615ba0565b602082019050919050565b60006020820190508181036000830152615c0581615bc9565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615c42601c836140d1565b9150615c4d82615c0c565b602082019050919050565b60006020820190508181036000830152615c7181615c35565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000615cdd6018836140d1565b9150615ce882615ca7565b602082019050919050565b60006020820190508181036000830152615d0c81615cd0565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615d49601f836140d1565b9150615d5482615d13565b602082019050919050565b60006020820190508181036000830152615d7881615d3c565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615ddb6022836140d1565b9150615de682615d7f565b604082019050919050565b60006020820190508181036000830152615e0a81615dce565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615e6d6022836140d1565b9150615e7882615e11565b604082019050919050565b60006020820190508181036000830152615e9c81615e60565b9050919050565b615eac81615a3d565b82525050565b600060ff82169050919050565b615ec881615eb2565b82525050565b6000608082019050615ee36000830187615ea3565b615ef06020830186615ebf565b615efd6040830185615ea3565b615f0a6060830184615ea3565b9594505050505056fea2646970667358221220ce5ac22dcf15f2d0a24aaad8d705e48c26023f10c5418c96daed9a42774a804a64736f6c634300080a003368747470733a2f2f6170692e6d6f75736567616e676e66742e636f6d2f6d6574612f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Deployed Bytecode
0x6080604052600436106102675760003560e01c806391b7f5ed11610144578063c68deb7e116100b6578063e41b759e1161007a578063e41b759e14610908578063e985e9c514610924578063f2fde38b14610961578063f99a4ef31461098a578063fd6dc9dd146109b5578063fdea8e0b146109e057610267565b8063c68deb7e14610823578063c87b56dd1461084e578063cd7c03261461088b578063cf323460146108b6578063dd049c6d146108df57610267565b8063a04482e911610108578063a04482e914610729578063a22cb46514610754578063a810a54c1461077d578063b42bcb99146107a6578063b7e60591146107d1578063b88d4fde146107fa57610267565b806391b7f5ed1461066857806395d89b4114610691578063989bdbb6146106bc5780639f181b5e146106d3578063a035b1fe146106fe57610267565b806341e5a23f116101dd5780635b7633d0116101a15780635b7633d0146105565780636352211e146105815780636ad1fe02146105be57806370a08231146105e9578063715018a6146106265780638da5cb5b1461063d57610267565b806341e5a23f1461047357806342842e0e1461049c5780634f6ccce7146104c557806355f804b3146105025780635aa01ac91461052b57610267565b806318160ddd1161022f57806318160ddd14610363578063234da9b71461038e57806323b872dd146103b9578063267f39ab146103e2578063278ecde11461040d5780632f745c591461043657610267565b806301ffc9a71461026c578063046dc166146102a957806306fdde03146102d2578063081812fc146102fd578063095ea7b31461033a575b600080fd5b34801561027857600080fd5b50610293600480360381019061028e9190613fd8565b610a0b565b6040516102a09190614020565b60405180910390f35b3480156102b557600080fd5b506102d060048036038101906102cb9190614099565b610a85565b005b3480156102de57600080fd5b506102e7610b45565b6040516102f4919061415f565b60405180910390f35b34801561030957600080fd5b50610324600480360381019061031f91906141b7565b610bd7565b60405161033191906141f3565b60405180910390f35b34801561034657600080fd5b50610361600480360381019061035c919061420e565b610c5c565b005b34801561036f57600080fd5b50610378610d74565b604051610385919061425d565b60405180910390f35b34801561039a57600080fd5b506103a3610d81565b6040516103b0919061425d565b60405180910390f35b3480156103c557600080fd5b506103e060048036038101906103db9190614278565b610d86565b005b3480156103ee57600080fd5b506103f7610de6565b6040516104049190614020565b60405180910390f35b34801561041957600080fd5b50610434600480360381019061042f91906141b7565b610e00565b005b34801561044257600080fd5b5061045d6004803603810190610458919061420e565b611019565b60405161046a919061425d565b60405180910390f35b34801561047f57600080fd5b5061049a600480360381019061049591906142f7565b6110be565b005b3480156104a857600080fd5b506104c360048036038101906104be9190614278565b611267565b005b3480156104d157600080fd5b506104ec60048036038101906104e791906141b7565b611287565b6040516104f9919061425d565b60405180910390f35b34801561050e57600080fd5b50610529600480360381019061052491906143af565b6112f8565b005b34801561053757600080fd5b506105406113da565b60405161054d919061425d565b60405180910390f35b34801561056257600080fd5b5061056b6113df565b60405161057891906141f3565b60405180910390f35b34801561058d57600080fd5b506105a860048036038101906105a391906141b7565b611405565b6040516105b591906141f3565b60405180910390f35b3480156105ca57600080fd5b506105d36114b7565b6040516105e09190614020565b60405180910390f35b3480156105f557600080fd5b50610610600480360381019061060b9190614099565b6114ca565b60405161061d919061425d565b60405180910390f35b34801561063257600080fd5b5061063b611582565b005b34801561064957600080fd5b5061065261160a565b60405161065f91906141f3565b60405180910390f35b34801561067457600080fd5b5061068f600480360381019061068a91906141b7565b611634565b005b34801561069d57600080fd5b506106a661175a565b6040516106b3919061415f565b60405180910390f35b3480156106c857600080fd5b506106d16117ec565b005b3480156106df57600080fd5b506106e8611885565b6040516106f5919061425d565b60405180910390f35b34801561070a57600080fd5b50610713611896565b604051610720919061425d565b60405180910390f35b34801561073557600080fd5b5061073e61189c565b60405161074b919061415f565b60405180910390f35b34801561076057600080fd5b5061077b600480360381019061077691906143fc565b61192a565b005b34801561078957600080fd5b506107a4600480360381019061079f919061443c565b611aab565b005b3480156107b257600080fd5b506107bb611e0b565b6040516107c891906141f3565b60405180910390f35b3480156107dd57600080fd5b506107f860048036038101906107f39190614099565b611e31565b005b34801561080657600080fd5b50610821600480360381019061081c9190614599565b611ef1565b005b34801561082f57600080fd5b50610838611f53565b604051610845919061425d565b60405180910390f35b34801561085a57600080fd5b50610875600480360381019061087091906141b7565b611f59565b604051610882919061415f565b60405180910390f35b34801561089757600080fd5b506108a0611fd5565b6040516108ad91906141f3565b60405180910390f35b3480156108c257600080fd5b506108dd60048036038101906108d89190614672565b611ffb565b005b3480156108eb57600080fd5b50610906600480360381019061090191906146bf565b6120bf565b005b610922600480360381019061091d91906146ff565b6122fc565b005b34801561093057600080fd5b5061094b60048036038101906109469190614782565b612626565b6040516109589190614020565b60405180910390f35b34801561096d57600080fd5b5061098860048036038101906109839190614099565b612719565b005b34801561099657600080fd5b5061099f612811565b6040516109ac919061425d565b60405180910390f35b3480156109c157600080fd5b506109ca612816565b6040516109d7919061425d565b60405180910390f35b3480156109ec57600080fd5b506109f561281c565b604051610a029190614020565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a7e5750610a7d8261282f565b5b9050919050565b610a8d612911565b73ffffffffffffffffffffffffffffffffffffffff16610aab61160a565b73ffffffffffffffffffffffffffffffffffffffff1614610b01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af89061480e565b60405180910390fd5b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060008054610b549061485d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b809061485d565b8015610bcd5780601f10610ba257610100808354040283529160200191610bcd565b820191906000526020600020905b815481529060010190602001808311610bb057829003601f168201915b5050505050905090565b6000610be282612919565b610c21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1890614901565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c6782611405565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cd8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ccf90614993565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610cf7612911565b73ffffffffffffffffffffffffffffffffffffffff161480610d265750610d2581610d20612911565b612626565b5b610d65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5c90614a25565b60405180910390fd5b610d6f8383612985565b505050565b6000600880549050905090565b60c881565b610d97610d91612911565b82612a3e565b610dd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dcd90614ab7565b60405180910390fd5b610de1838383612b1c565b505050565b600062278d00600e54610df99190614b06565b4210905090565b6002600b541415610e46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3d90614ba8565b60405180910390fd5b6002600b81905550600073ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610ee0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed790614c14565b60405180910390fd5b610ee8610de6565b610f27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1e90614c80565b60405180910390fd5b610f38610f32612911565b82612a3e565b610f77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6e90614cec565b60405180910390fd5b610fab610f82612911565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683612b1c565b610fb3612911565b73ffffffffffffffffffffffffffffffffffffffff166108fc610fe26002600d54612d7890919063ffffffff16565b9081150290604051600060405180830381858888f1935050505015801561100d573d6000803e3d6000fd5b506001600b8190555050565b6000611024836114ca565b8210611065576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105c90614d7e565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6110c6612911565b73ffffffffffffffffffffffffffffffffffffffff166110e461160a565b73ffffffffffffffffffffffffffffffffffffffff161461113a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111319061480e565b60405180910390fd5b600c60009054906101000a900460ff161561118a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118190614dea565b60405180910390fd5b600c60019054906101000a900460ff16156111da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d190614e56565b60405180910390fd5b60006111e4611885565b905060006111fb8483612d8e90919063ffffffff16565b905060008361120c5761271061120f565b60c85b905080821161121e5781611220565b805b915060008390505b8281101561125e576112418761123c611885565b612da4565b61124b6013612dc2565b808061125690614e76565b915050611228565b50505050505050565b61128283838360405180602001604052806000815250611ef1565b505050565b6000611291610d74565b82106112d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c990614f31565b60405180910390fd5b600882815481106112e6576112e5614f51565b5b90600052602060002001549050919050565b611300612911565b73ffffffffffffffffffffffffffffffffffffffff1661131e61160a565b73ffffffffffffffffffffffffffffffffffffffff1614611374576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136b9061480e565b60405180910390fd5b600c60039054906101000a900460ff16156113c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113bb90614fcc565b60405180910390fd5b8181600f91906113d5929190613ec9565b505050565b600181565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156114ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a59061505e565b60405180910390fd5b80915050919050565b600c60019054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561153b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611532906150f0565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61158a612911565b73ffffffffffffffffffffffffffffffffffffffff166115a861160a565b73ffffffffffffffffffffffffffffffffffffffff16146115fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f59061480e565b60405180910390fd5b6116086000612dd8565b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61163c612911565b73ffffffffffffffffffffffffffffffffffffffff1661165a61160a565b73ffffffffffffffffffffffffffffffffffffffff16146116b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a79061480e565b60405180910390fd5b600c60009054906101000a900460ff1615611700576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f790614dea565b60405180910390fd5b600c60019054906101000a900460ff1615611750576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174790614e56565b60405180910390fd5b80600d8190555050565b6060600180546117699061485d565b80601f01602080910402602001604051908101604052809291908181526020018280546117959061485d565b80156117e25780601f106117b7576101008083540402835291602001916117e2565b820191906000526020600020905b8154815290600101906020018083116117c557829003601f168201915b5050505050905090565b6117f4612911565b73ffffffffffffffffffffffffffffffffffffffff1661181261160a565b73ffffffffffffffffffffffffffffffffffffffff1614611868576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185f9061480e565b60405180910390fd5b6001600c60036101000a81548160ff021916908315150217905550565b60006118916013612e9e565b905090565b600d5481565b600f80546118a99061485d565b80601f01602080910402602001604051908101604052809291908181526020018280546118d59061485d565b80156119225780601f106118f757610100808354040283529160200191611922565b820191906000526020600020905b81548152906001019060200180831161190557829003601f168201915b505050505081565b611932612911565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119a0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119979061515c565b60405180910390fd5b80600560006119ad612911565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611a5a612911565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611a9f9190614020565b60405180910390a35050565b611ab3612911565b73ffffffffffffffffffffffffffffffffffffffff16611ad161160a565b73ffffffffffffffffffffffffffffffffffffffff1614611b27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1e9061480e565b60405180910390fd5b6002600b541415611b6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6490614ba8565b60405180910390fd5b6002600b81905550808015611b8e5750600c60029054906101000a900460ff165b15611b9857611e00565b600047905060008111611bab5750611e00565b8115611bc857611bc5600282612d7890919063ffffffff16565b90505b600073ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611c5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5190614c14565b60405180910390fd5b81611cda57611c67610de6565b158015611c815750600c60009054906101000a900460ff16155b8015611c9a5750600c60019054906101000a900460ff16155b611cd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd0906151c8565b60405180910390fd5b5b6000611d03600a611cf5600785612eac90919063ffffffff16565b612d7890919063ffffffff16565b9050737f8281ca10c07dffe6c34541fdbb7136740bafcf73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611d5f573d6000803e3d6000fd5b50601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc611daf8385612ec290919063ffffffff16565b9081150290604051600060405180830381858888f19350505050158015611dda573d6000803e3d6000fd5b508215611dfd576001600c60026101000a81548160ff0219169083151502179055505b50505b6001600b8190555050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611e39612911565b73ffffffffffffffffffffffffffffffffffffffff16611e5761160a565b73ffffffffffffffffffffffffffffffffffffffff1614611ead576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea49061480e565b60405180910390fd5b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611f02611efc612911565b83612a3e565b611f41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3890614ab7565b60405180910390fd5b611f4d84848484612ed8565b50505050565b600e5481565b6060611f6482612919565b611fa3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9a90615234565b60405180910390fd5b600f611fae83612f34565b604051602001611fbf929190615324565b6040516020818303038152906040529050919050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b612003612911565b73ffffffffffffffffffffffffffffffffffffffff1661202161160a565b73ffffffffffffffffffffffffffffffffffffffff1614612077576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206e9061480e565b60405180910390fd5b60005b828290508110156120ba576120a783838381811061209b5761209a614f51565b5b90506020020135613095565b80806120b290614e76565b91505061207a565b505050565b6120c7612911565b73ffffffffffffffffffffffffffffffffffffffff166120e561160a565b73ffffffffffffffffffffffffffffffffffffffff161461213b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121329061480e565b60405180910390fd5b811561221357600c60009054906101000a900460ff166121e857600073ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156121e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121de90614c14565b60405180910390fd5b5b600c60009054906101000a900460ff1615600c60006101000a81548160ff0219169083151502179055505b80156122f857600c60019054906101000a900460ff161561223a5742600e819055506122cd565b600073ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156122cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c390614c14565b60405180910390fd5b5b600c60019054906101000a900460ff1615600c60016101000a81548160ff0219169083151502179055505b5050565b6002600b541415612342576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233990614ba8565b60405180910390fd5b6002600b819055508361236457600c60019054906101000a900460ff16612375565b600c60009054906101000a900460ff165b6123b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ab90615394565b60405180910390fd5b346123ca82600d54612eac90919063ffffffff16565b111561240b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240290615400565b60405180910390fd5b831561247b57600161243582612427612422612911565b6114ca565b612d8e90919063ffffffff16565b1115612476576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246d9061546c565b60405180910390fd5b6124c0565b600a8111156124bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b69061546c565b60405180910390fd5b5b6127106124dd826124cf611885565b612d8e90919063ffffffff16565b111561251e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612515906154d8565b60405180910390fd5b600061253261252b612911565b84866131a6565b90508073ffffffffffffffffffffffffffffffffffffffff16601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146125c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125bb90614cec565b60405180910390fd5b60005b82811015612616576127106125da611885565b1015612603576125f86125eb612911565b6125f3611885565b612da4565b6126026013612dc2565b5b808061260e90614e76565b9150506125c7565b50506001600b8190555050505050565b600080601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b815260040161269e91906141f3565b602060405180830381865afa1580156126bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126df9190615536565b73ffffffffffffffffffffffffffffffffffffffff161415612705576001915050612713565b61270f848461320e565b9150505b92915050565b612721612911565b73ffffffffffffffffffffffffffffffffffffffff1661273f61160a565b73ffffffffffffffffffffffffffffffffffffffff1614612795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278c9061480e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612805576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127fc906155d5565b60405180910390fd5b61280e81612dd8565b50565b600a81565b61271081565b600c60009054906101000a900460ff1681565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806128fa57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061290a5750612909826132a2565b5b9050919050565b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166129f883611405565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612a4982612919565b612a88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7f90615667565b60405180910390fd5b6000612a9383611405565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612b0257508373ffffffffffffffffffffffffffffffffffffffff16612aea84610bd7565b73ffffffffffffffffffffffffffffffffffffffff16145b80612b135750612b128185612626565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612b3c82611405565b73ffffffffffffffffffffffffffffffffffffffff1614612b92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b89906156f9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612c02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bf99061578b565b60405180910390fd5b612c0d83838361330c565b612c18600082612985565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c6891906157ab565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612cbf9190614b06565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008183612d86919061580e565b905092915050565b60008183612d9c9190614b06565b905092915050565b612dbe828260405180602001604052806000815250613420565b5050565b6001816000016000828254019250508190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081600001549050919050565b60008183612eba919061583f565b905092915050565b60008183612ed091906157ab565b905092915050565b612ee3848484612b1c565b612eef8484848461347b565b612f2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f259061590b565b60405180910390fd5b50505050565b60606000821415612f7c576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613090565b600082905060005b60008214612fae578080612f9790614e76565b915050600a82612fa7919061580e565b9150612f84565b60008167ffffffffffffffff811115612fca57612fc961446e565b5b6040519080825280601f01601f191660200182016040528015612ffc5781602001600182028036833780820191505090505b5090505b600085146130895760018261301591906157ab565b9150600a85613024919061592b565b60306130309190614b06565b60f81b81838151811061304657613045614f51565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613082919061580e565b9450613000565b8093505050505b919050565b60006130a082611405565b90506130ae8160008461330c565b6130b9600083612985565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461310991906157ab565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60008084846040516020016131bc9291906159c5565b604051602081830303815290604052805190602001206040516020016131e29190615a68565b6040516020818303038152906040528051906020012090506132048184613603565b9150509392505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61331783838361362a565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561335a576133558161362f565b613399565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613398576133978382613678565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156133dc576133d7816137e5565b61341b565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461341a5761341982826138b6565b5b5b505050565b61342a8383613935565b613437600084848461347b565b613476576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161346d9061590b565b60405180910390fd5b505050565b600061349c8473ffffffffffffffffffffffffffffffffffffffff16613b03565b156135f6578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026134c5612911565b8786866040518563ffffffff1660e01b81526004016134e79493929190615ae3565b6020604051808303816000875af192505050801561352357506040513d601f19601f820116820180604052508101906135209190615b44565b60015b6135a6573d8060008114613553576040519150601f19603f3d011682016040523d82523d6000602084013e613558565b606091505b5060008151141561359e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135959061590b565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506135fb565b600190505b949350505050565b60008060006136128585613b16565b9150915061361f81613b99565b819250505092915050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613685846114ca565b61368f91906157ab565b9050600060076000848152602001908152602001600020549050818114613774576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506137f991906157ab565b905060006009600084815260200190815260200160002054905060006008838154811061382957613828614f51565b5b90600052602060002001549050806008838154811061384b5761384a614f51565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061389a57613899615b71565b5b6001900381819060005260206000200160009055905550505050565b60006138c1836114ca565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156139a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161399c90615bec565b60405180910390fd5b6139ae81612919565b156139ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139e590615c58565b60405180910390fd5b6139fa6000838361330c565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613a4a9190614b06565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b600080604183511415613b585760008060006020860151925060408601519150606086015160001a9050613b4c87828585613d6e565b94509450505050613b92565b604083511415613b89576000806020850151915060408501519050613b7e868383613e7b565b935093505050613b92565b60006002915091505b9250929050565b60006004811115613bad57613bac615c78565b5b816004811115613bc057613bbf615c78565b5b1415613bcb57613d6b565b60016004811115613bdf57613bde615c78565b5b816004811115613bf257613bf1615c78565b5b1415613c33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c2a90615cf3565b60405180910390fd5b60026004811115613c4757613c46615c78565b5b816004811115613c5a57613c59615c78565b5b1415613c9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c9290615d5f565b60405180910390fd5b60036004811115613caf57613cae615c78565b5b816004811115613cc257613cc1615c78565b5b1415613d03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613cfa90615df1565b60405180910390fd5b600480811115613d1657613d15615c78565b5b816004811115613d2957613d28615c78565b5b1415613d6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d6190615e83565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613da9576000600391509150613e72565b601b8560ff1614158015613dc15750601c8560ff1614155b15613dd3576000600491509150613e72565b600060018787878760405160008152602001604052604051613df89493929190615ece565b6020604051602081039080840390855afa158015613e1a573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613e6957600060019250925050613e72565b80600092509250505b94509492505050565b6000806000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85169150601b8560ff1c019050613ebb87828885613d6e565b935093505050935093915050565b828054613ed59061485d565b90600052602060002090601f016020900481019282613ef75760008555613f3e565b82601f10613f1057803560ff1916838001178555613f3e565b82800160010185558215613f3e579182015b82811115613f3d578235825591602001919060010190613f22565b5b509050613f4b9190613f4f565b5090565b5b80821115613f68576000816000905550600101613f50565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613fb581613f80565b8114613fc057600080fd5b50565b600081359050613fd281613fac565b92915050565b600060208284031215613fee57613fed613f76565b5b6000613ffc84828501613fc3565b91505092915050565b60008115159050919050565b61401a81614005565b82525050565b60006020820190506140356000830184614011565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006140668261403b565b9050919050565b6140768161405b565b811461408157600080fd5b50565b6000813590506140938161406d565b92915050565b6000602082840312156140af576140ae613f76565b5b60006140bd84828501614084565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156141005780820151818401526020810190506140e5565b8381111561410f576000848401525b50505050565b6000601f19601f8301169050919050565b6000614131826140c6565b61413b81856140d1565b935061414b8185602086016140e2565b61415481614115565b840191505092915050565b600060208201905081810360008301526141798184614126565b905092915050565b6000819050919050565b61419481614181565b811461419f57600080fd5b50565b6000813590506141b18161418b565b92915050565b6000602082840312156141cd576141cc613f76565b5b60006141db848285016141a2565b91505092915050565b6141ed8161405b565b82525050565b600060208201905061420860008301846141e4565b92915050565b6000806040838503121561422557614224613f76565b5b600061423385828601614084565b9250506020614244858286016141a2565b9150509250929050565b61425781614181565b82525050565b6000602082019050614272600083018461424e565b92915050565b60008060006060848603121561429157614290613f76565b5b600061429f86828701614084565b93505060206142b086828701614084565b92505060406142c1868287016141a2565b9150509250925092565b6142d481614005565b81146142df57600080fd5b50565b6000813590506142f1816142cb565b92915050565b6000806000606084860312156143105761430f613f76565b5b600061431e86828701614084565b935050602061432f868287016141a2565b9250506040614340868287016142e2565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f84011261436f5761436e61434a565b5b8235905067ffffffffffffffff81111561438c5761438b61434f565b5b6020830191508360018202830111156143a8576143a7614354565b5b9250929050565b600080602083850312156143c6576143c5613f76565b5b600083013567ffffffffffffffff8111156143e4576143e3613f7b565b5b6143f085828601614359565b92509250509250929050565b6000806040838503121561441357614412613f76565b5b600061442185828601614084565b9250506020614432858286016142e2565b9150509250929050565b60006020828403121561445257614451613f76565b5b6000614460848285016142e2565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6144a682614115565b810181811067ffffffffffffffff821117156144c5576144c461446e565b5b80604052505050565b60006144d8613f6c565b90506144e4828261449d565b919050565b600067ffffffffffffffff8211156145045761450361446e565b5b61450d82614115565b9050602081019050919050565b82818337600083830152505050565b600061453c614537846144e9565b6144ce565b90508281526020810184848401111561455857614557614469565b5b61456384828561451a565b509392505050565b600082601f8301126145805761457f61434a565b5b8135614590848260208601614529565b91505092915050565b600080600080608085870312156145b3576145b2613f76565b5b60006145c187828801614084565b94505060206145d287828801614084565b93505060406145e3878288016141a2565b925050606085013567ffffffffffffffff81111561460457614603613f7b565b5b6146108782880161456b565b91505092959194509250565b60008083601f8401126146325761463161434a565b5b8235905067ffffffffffffffff81111561464f5761464e61434f565b5b60208301915083602082028301111561466b5761466a614354565b5b9250929050565b6000806020838503121561468957614688613f76565b5b600083013567ffffffffffffffff8111156146a7576146a6613f7b565b5b6146b38582860161461c565b92509250509250929050565b600080604083850312156146d6576146d5613f76565b5b60006146e4858286016142e2565b92505060206146f5858286016142e2565b9150509250929050565b6000806000806080858703121561471957614718613f76565b5b6000614727878288016142e2565b945050602085013567ffffffffffffffff81111561474857614747613f7b565b5b6147548782880161456b565b9350506040614765878288016141a2565b9250506060614776878288016141a2565b91505092959194509250565b6000806040838503121561479957614798613f76565b5b60006147a785828601614084565b92505060206147b885828601614084565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006147f86020836140d1565b9150614803826147c2565b602082019050919050565b60006020820190508181036000830152614827816147eb565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061487557607f821691505b602082108114156148895761488861482e565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006148eb602c836140d1565b91506148f68261488f565b604082019050919050565b6000602082019050818103600083015261491a816148de565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b600061497d6021836140d1565b915061498882614921565b604082019050919050565b600060208201905081810360008301526149ac81614970565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000614a0f6038836140d1565b9150614a1a826149b3565b604082019050919050565b60006020820190508181036000830152614a3e81614a02565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000614aa16031836140d1565b9150614aac82614a45565b604082019050919050565b60006020820190508181036000830152614ad081614a94565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614b1182614181565b9150614b1c83614181565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614b5157614b50614ad7565b5b828201905092915050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614b92601f836140d1565b9150614b9d82614b5c565b602082019050919050565b60006020820190508181036000830152614bc181614b85565b9050919050565b7f4d475f4e554c4c5f414444524553530000000000000000000000000000000000600082015250565b6000614bfe600f836140d1565b9150614c0982614bc8565b602082019050919050565b60006020820190508181036000830152614c2d81614bf1565b9050919050565b7f4d475f524546554e445f45585049524544000000000000000000000000000000600082015250565b6000614c6a6011836140d1565b9150614c7582614c34565b602082019050919050565b60006020820190508181036000830152614c9981614c5d565b9050919050565b7f4d475f464f5242494444454e0000000000000000000000000000000000000000600082015250565b6000614cd6600c836140d1565b9150614ce182614ca0565b602082019050919050565b60006020820190508181036000830152614d0581614cc9565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614d68602b836140d1565b9150614d7382614d0c565b604082019050919050565b60006020820190508181036000830152614d9781614d5b565b9050919050565b7f4d475f50524553414c455f4c4956450000000000000000000000000000000000600082015250565b6000614dd4600f836140d1565b9150614ddf82614d9e565b602082019050919050565b60006020820190508181036000830152614e0381614dc7565b9050919050565b7f4d475f53414c455f4c4956450000000000000000000000000000000000000000600082015250565b6000614e40600c836140d1565b9150614e4b82614e0a565b602082019050919050565b60006020820190508181036000830152614e6f81614e33565b9050919050565b6000614e8182614181565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614eb457614eb3614ad7565b5b600182019050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614f1b602c836140d1565b9150614f2682614ebf565b604082019050919050565b60006020820190508181036000830152614f4a81614f0e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4d475f4d4554415f4c4f434b4544000000000000000000000000000000000000600082015250565b6000614fb6600e836140d1565b9150614fc182614f80565b602082019050919050565b60006020820190508181036000830152614fe581614fa9565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b60006150486029836140d1565b915061505382614fec565b604082019050919050565b600060208201905081810360008301526150778161503b565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b60006150da602a836140d1565b91506150e58261507e565b604082019050919050565b60006020820190508181036000830152615109816150cd565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006151466019836140d1565b915061515182615110565b602082019050919050565b6000602082019050818103600083015261517581615139565b9050919050565b7f4d475f524546554e445f4143544956455f4f525f53414c450000000000000000600082015250565b60006151b26018836140d1565b91506151bd8261517c565b602082019050919050565b600060208201905081810360008301526151e1816151a5565b9050919050565b7f4d475f544f4b454e5f4e4f545f464f554e440000000000000000000000000000600082015250565b600061521e6012836140d1565b9150615229826151e8565b602082019050919050565b6000602082019050818103600083015261524d81615211565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b600081546152818161485d565b61528b8186615254565b945060018216600081146152a657600181146152b7576152ea565b60ff198316865281860193506152ea565b6152c08561525f565b60005b838110156152e2578154818901526001820191506020810190506152c3565b838801955050505b50505092915050565b60006152fe826140c6565b6153088185615254565b93506153188185602086016140e2565b80840191505092915050565b60006153308285615274565b915061533c82846152f3565b91508190509392505050565b7f4d475f53414c455f4e4f545f4c49564500000000000000000000000000000000600082015250565b600061537e6010836140d1565b915061538982615348565b602082019050919050565b600060208201905081810360008301526153ad81615371565b9050919050565b7f4d475f4e4f545f454e4f5547485f455448000000000000000000000000000000600082015250565b60006153ea6011836140d1565b91506153f5826153b4565b602082019050919050565b60006020820190508181036000830152615419816153dd565b9050919050565b7f4d475f4c494d49545f5245414348454400000000000000000000000000000000600082015250565b60006154566010836140d1565b915061546182615420565b602082019050919050565b6000602082019050818103600083015261548581615449565b9050919050565b7f4d475f4d41585f52454143484544000000000000000000000000000000000000600082015250565b60006154c2600e836140d1565b91506154cd8261548c565b602082019050919050565b600060208201905081810360008301526154f1816154b5565b9050919050565b60006155038261405b565b9050919050565b615513816154f8565b811461551e57600080fd5b50565b6000815190506155308161550a565b92915050565b60006020828403121561554c5761554b613f76565b5b600061555a84828501615521565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006155bf6026836140d1565b91506155ca82615563565b604082019050919050565b600060208201905081810360008301526155ee816155b2565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000615651602c836140d1565b915061565c826155f5565b604082019050919050565b6000602082019050818103600083015261568081615644565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b60006156e36029836140d1565b91506156ee82615687565b604082019050919050565b60006020820190508181036000830152615712816156d6565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006157756024836140d1565b915061578082615719565b604082019050919050565b600060208201905081810360008301526157a481615768565b9050919050565b60006157b682614181565b91506157c183614181565b9250828210156157d4576157d3614ad7565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061581982614181565b915061582483614181565b925082615834576158336157df565b5b828204905092915050565b600061584a82614181565b915061585583614181565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561588e5761588d614ad7565b5b828202905092915050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006158f56032836140d1565b915061590082615899565b604082019050919050565b60006020820190508181036000830152615924816158e8565b9050919050565b600061593682614181565b915061594183614181565b925082615951576159506157df565b5b828206905092915050565b60008160601b9050919050565b60006159748261595c565b9050919050565b600061598682615969565b9050919050565b61599e6159998261405b565b61597b565b82525050565b6000819050919050565b6159bf6159ba82614181565b6159a4565b82525050565b60006159d1828561598d565b6014820191506159e182846159ae565b6020820191508190509392505050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000615a27601c83615254565b9150615a32826159f1565b601c82019050919050565b6000819050919050565b6000819050919050565b615a62615a5d82615a3d565b615a47565b82525050565b6000615a7382615a1a565b9150615a7f8284615a51565b60208201915081905092915050565b600081519050919050565b600082825260208201905092915050565b6000615ab582615a8e565b615abf8185615a99565b9350615acf8185602086016140e2565b615ad881614115565b840191505092915050565b6000608082019050615af860008301876141e4565b615b0560208301866141e4565b615b12604083018561424e565b8181036060830152615b248184615aaa565b905095945050505050565b600081519050615b3e81613fac565b92915050565b600060208284031215615b5a57615b59613f76565b5b6000615b6884828501615b2f565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615bd66020836140d1565b9150615be182615ba0565b602082019050919050565b60006020820190508181036000830152615c0581615bc9565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615c42601c836140d1565b9150615c4d82615c0c565b602082019050919050565b60006020820190508181036000830152615c7181615c35565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000615cdd6018836140d1565b9150615ce882615ca7565b602082019050919050565b60006020820190508181036000830152615d0c81615cd0565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615d49601f836140d1565b9150615d5482615d13565b602082019050919050565b60006020820190508181036000830152615d7881615d3c565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615ddb6022836140d1565b9150615de682615d7f565b604082019050919050565b60006020820190508181036000830152615e0a81615dce565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615e6d6022836140d1565b9150615e7882615e11565b604082019050919050565b60006020820190508181036000830152615e9c81615e60565b9050919050565b615eac81615a3d565b82525050565b600060ff82169050919050565b615ec881615eb2565b82525050565b6000608082019050615ee36000830187615ea3565b615ef06020830186615ebf565b615efd6040830185615ea3565b615f0a6060830184615ea3565b9594505050505056fea2646970667358221220ce5ac22dcf15f2d0a24aaad8d705e48c26023f10c5418c96daed9a42774a804a64736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Loading...
Loading
Loading...
Loading
[ 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.