Address Details
contract
0x5e23985717c8a1fbB7e076C3606e5664A152D431
- Contract Name
- EgoNFT
- Creator
- 0x53a374–231c76 at 0xe3418f–9b8659
- Balance
- 0 CELO ( )
- Locked CELO Balance
- 0.00 CELO
- Voting CELO Balance
- 0.00 CELO
- Pending Unlocked Gold
- 0.00 CELO
- Tokens
-
Fetching tokens...
- Transactions
- 1 Transactions
- Transfers
- 0 Transfers
- Gas Used
- 3,000,000
- Last Balance Update
- 14570012
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- EgoNFT
- Optimization enabled
- false
- Compiler version
- v0.8.7+commit.e28d00a7
- EVM Version
- london
- Verified at
- 2023-01-26T22:17:04.360933Z
NFT HOME WORKS./celo.sol
// File: ado-contracts/contracts/interfaces/IERC2362.sol pragma solidity >=0.5.0 <0.9.0; /** * @dev EIP2362 Interface for pull oracles * https://github.com/adoracles/EIPs/blob/erc-2362/EIPS/eip-2362.md */ interface IERC2362 { /** * @dev Exposed function pertaining to EIP standards * @param _id bytes32 ID of the query * @return int,uint,uint returns the value, timestamp, and status code of query */ function valueFor(bytes32 _id) external view returns(int256,uint256,uint256); } // File: witnet-solidity-bridge/contracts/interfaces/IWitnetPriceRouter.sol pragma solidity >=0.7.0 <0.9.0; // SPDX-License-Identifier: MIT import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol"; contract EgoNFT is ERC721Enumerable, Ownable { using Strings for uint256; string baseURI; string public baseExtension = ".json"; bool public paused = false; bool public revealed = false; string public notRevealedUri; uint256 cost; uint256 maxSupply; uint256 maxMintAmount; constructor ( string memory _name, string memory _symbol, uint256 _initialPrice, uint256 _initialSupply, uint256 maxntno, string memory _initBaseURI, string memory _initNotRevealedUri ) ERC721(_name, _symbol) { setPrice(_initialPrice); setmaxMintAmount(maxntno); setSupply(_initialSupply); setBaseURI(_initBaseURI); setNotRevealedURI(_initNotRevealedUri); } // internal function _baseURI() internal view virtual override returns (string memory) { return baseURI; } // public function mint(uint256 _mintAmount) public payable { uint256 supply = totalSupply(); require(!paused); require(_mintAmount >0 && _mintAmount <= maxMintAmount ); require(supply + _mintAmount <= maxSupply); if (msg.sender != owner()) { //require( msg.value) >= cost * _mintAmount, "not enough Celo"); } for (uint256 i = 1; i <= _mintAmount; i++) { _safeMint(msg.sender, supply + i); } } function walletOfOwner(address _owner) public view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory tokenIds = new uint256[](ownerTokenCount); for (uint256 i; i < ownerTokenCount; i++) { tokenIds[i] = tokenOfOwnerByIndex(_owner, i); } return tokenIds; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); if(revealed == false) { return notRevealedUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension)) : ""; } //only owner function reveal() public onlyOwner { revealed = true; } function setPrice(uint256 _newPrice) public onlyOwner() { cost = _newPrice; } function setSupply(uint256 _newSupply) public onlyOwner() { maxSupply = _newSupply; } function getSupply() public view returns (uint256) { return maxSupply; } function setmaxMintAmount(uint256 _newmaxMintAmount) public onlyOwner { maxMintAmount = _newmaxMintAmount; } function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner { notRevealedUri = _notRevealedURI; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function setBaseExtension(string memory _newBaseExtension) public onlyOwner { baseExtension = _newBaseExtension; } function pause(bool _state) public onlyOwner { paused = _state; } }
/_openzeppelin/contracts/access/Ownable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
/_openzeppelin/contracts/interfaces/IERC1271.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC1271.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC1271 standard signature validation method for * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271]. * * _Available since v4.1._ */ interface IERC1271 { /** * @dev Should return whether the signature provided is valid for the provided data * @param hash Hash of the data to be signed * @param signature Signature byte array associated with _data */ function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue); }
/_openzeppelin/contracts/token/ERC721/ERC721.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); 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: invalid token ID"); 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) { _requireMinted(tokenId); 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 overridden 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 token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_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: caller is not token 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: caller is not token 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) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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); _afterTokenTransfer(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); _afterTokenTransfer(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 from incorrect owner"); 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); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @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 { /// @solidity memory-safe-assembly 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 {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
/_openzeppelin/contracts/token/ERC721/IERC721.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: 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 Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
/_openzeppelin/contracts/token/ERC721/IERC721Receiver.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
/_openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) 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(); } }
/_openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
/_openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
/_openzeppelin/contracts/utils/Address.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
/_openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
/_openzeppelin/contracts/utils/Strings.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // 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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
/_openzeppelin/contracts/utils/cryptography/ECDSA.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @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) { 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. /// @solidity memory-safe-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 { 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 = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 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 Message, created from `s`. 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(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @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)); } }
/_openzeppelin/contracts/utils/cryptography/SignatureChecker.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.1) (utils/cryptography/SignatureChecker.sol) pragma solidity ^0.8.0; import "./ECDSA.sol"; import "../Address.sol"; import "../../interfaces/IERC1271.sol"; /** * @dev Signature verification helper that can be used instead of `ECDSA.recover` to seamlessly support both ECDSA * signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets like * Argent and Gnosis Safe. * * _Available since v4.1._ */ library SignatureChecker { /** * @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the * signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECDSA.recover`. * * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus * change through time. It could return true at block N and false at block N+1 (or the opposite). */ function isValidSignatureNow( address signer, bytes32 hash, bytes memory signature ) internal view returns (bool) { (address recovered, ECDSA.RecoverError error) = ECDSA.tryRecover(hash, signature); if (error == ECDSA.RecoverError.NoError && recovered == signer) { return true; } (bool success, bytes memory result) = signer.staticcall( abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, signature) ); return (success && result.length == 32 && abi.decode(result, (bytes32)) == bytes32(IERC1271.isValidSignature.selector)); } }
/_openzeppelin/contracts/utils/cryptography/draft-EIP712.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol) pragma solidity ^0.8.0; import "./ECDSA.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; address private immutable _CACHED_THIS; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } }
/_openzeppelin/contracts/utils/introspection/ERC165.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
/_openzeppelin/contracts/utils/introspection/IERC165.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"string","name":"_name","internalType":"string"},{"type":"string","name":"_symbol","internalType":"string"},{"type":"uint256","name":"_initialPrice","internalType":"uint256"},{"type":"uint256","name":"_initialSupply","internalType":"uint256"},{"type":"uint256","name":"maxntno","internalType":"uint256"},{"type":"string","name":"_initBaseURI","internalType":"string"},{"type":"string","name":"_initNotRevealedUri","internalType":"string"}]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"approved","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"ApprovalForAll","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"operator","internalType":"address","indexed":true},{"type":"bool","name":"approved","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"approve","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"baseExtension","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getApproved","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getSupply","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isApprovedForAll","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"operator","internalType":"address"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"mint","inputs":[{"type":"uint256","name":"_mintAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"notRevealedUri","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"ownerOf","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"pause","inputs":[{"type":"bool","name":"_state","internalType":"bool"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"paused","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"reveal","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"revealed","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setApprovalForAll","inputs":[{"type":"address","name":"operator","internalType":"address"},{"type":"bool","name":"approved","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBaseExtension","inputs":[{"type":"string","name":"_newBaseExtension","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBaseURI","inputs":[{"type":"string","name":"_newBaseURI","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setNotRevealedURI","inputs":[{"type":"string","name":"_notRevealedURI","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPrice","inputs":[{"type":"uint256","name":"_newPrice","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSupply","inputs":[{"type":"uint256","name":"_newSupply","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setmaxMintAmount","inputs":[{"type":"uint256","name":"_newmaxMintAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenByIndex","inputs":[{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenOfOwnerByIndex","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"tokenURI","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[]","name":"","internalType":"uint256[]"}],"name":"walletOfOwner","inputs":[{"type":"address","name":"_owner","internalType":"address"}]}]
Contract Creation Code
0x60806040526040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600c908051906020019062000051929190620003a2565b506000600d60006101000a81548160ff0219169083151502179055506000600d60016101000a81548160ff0219169083151502179055503480156200009557600080fd5b5060405162004521380380620045218339818101604052810190620000bb9190620004e7565b86868160009080519060200190620000d5929190620003a2565b508060019080519060200190620000ee929190620003a2565b50505062000111620001056200017360201b60201c565b6200017b60201b60201c565b62000122856200024160201b60201c565b62000133836200025b60201b60201c565b62000144846200027560201b60201c565b62000155826200028f60201b60201c565b6200016681620002bb60201b60201c565b5050505050505062000841565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b62000251620002e760201b60201c565b80600f8190555050565b6200026b620002e760201b60201c565b8060118190555050565b62000285620002e760201b60201c565b8060108190555050565b6200029f620002e760201b60201c565b80600b9080519060200190620002b7929190620003a2565b5050565b620002cb620002e760201b60201c565b80600e9080519060200190620002e3929190620003a2565b5050565b620002f76200017360201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166200031d6200037860201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000376576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200036d906200063d565b60405180910390fd5b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620003b0906200070f565b90600052602060002090601f016020900481019282620003d4576000855562000420565b82601f10620003ef57805160ff191683800117855562000420565b8280016001018555821562000420579182015b828111156200041f57825182559160200191906001019062000402565b5b5090506200042f919062000433565b5090565b5b808211156200044e57600081600090555060010162000434565b5090565b600062000469620004638462000688565b6200065f565b905082815260208101848484011115620004885762000487620007de565b5b62000495848285620006d9565b509392505050565b600082601f830112620004b557620004b4620007d9565b5b8151620004c784826020860162000452565b91505092915050565b600081519050620004e18162000827565b92915050565b600080600080600080600060e0888a031215620005095762000508620007e8565b5b600088015167ffffffffffffffff8111156200052a5762000529620007e3565b5b620005388a828b016200049d565b975050602088015167ffffffffffffffff8111156200055c576200055b620007e3565b5b6200056a8a828b016200049d565b96505060406200057d8a828b01620004d0565b9550506060620005908a828b01620004d0565b9450506080620005a38a828b01620004d0565b93505060a088015167ffffffffffffffff811115620005c757620005c6620007e3565b5b620005d58a828b016200049d565b92505060c088015167ffffffffffffffff811115620005f957620005f8620007e3565b5b620006078a828b016200049d565b91505092959891949750929550565b600062000625602083620006be565b91506200063282620007fe565b602082019050919050565b60006020820190508181036000830152620006588162000616565b9050919050565b60006200066b6200067e565b905062000679828262000745565b919050565b6000604051905090565b600067ffffffffffffffff821115620006a657620006a5620007aa565b5b620006b182620007ed565b9050602081019050919050565b600082825260208201905092915050565b6000819050919050565b60005b83811015620006f9578082015181840152602081019050620006dc565b8381111562000709576000848401525b50505050565b600060028204905060018216806200072857607f821691505b602082108114156200073f576200073e6200077b565b5b50919050565b6200075082620007ed565b810181811067ffffffffffffffff82111715620007725762000771620007aa565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6200083281620006cf565b81146200083e57600080fd5b50565b613cd080620008516000396000f3fe6080604052600436106101f95760003560e01c80636c9c2faf1161010d578063a22cb465116100a0578063c87b56dd1161006f578063c87b56dd14610710578063da3ef23f1461074d578063e985e9c514610776578063f2c4ce1e146107b3578063f2fde38b146107dc576101f9565b8063a22cb4651461067c578063a475b5dd146106a5578063b88d4fde146106bc578063c6682862146106e5576101f9565b80638da5cb5b116100dc5780638da5cb5b146105e157806391b7f5ed1461060c57806395d89b4114610635578063a0712d6814610660576101f9565b80636c9c2faf1461053957806370a0823114610564578063715018a6146105a15780637f00c7a6146105b8576101f9565b80632f745c59116101905780634f6ccce71161015f5780634f6ccce714610440578063518302271461047d57806355f804b3146104a85780635c975abb146104d15780636352211e146104fc576101f9565b80632f745c59146103745780633b4c4b25146103b157806342842e0e146103da578063438b630014610403576101f9565b8063081c8c44116101cc578063081c8c44146102cc578063095ea7b3146102f757806318160ddd1461032057806323b872dd1461034b576101f9565b806301ffc9a7146101fe57806302329a291461023b57806306fdde0314610264578063081812fc1461028f575b600080fd5b34801561020a57600080fd5b5061022560048036038101906102209190612b81565b610805565b604051610232919061310f565b60405180910390f35b34801561024757600080fd5b50610262600480360381019061025d9190612b54565b61087f565b005b34801561027057600080fd5b506102796108a4565b604051610286919061312a565b60405180910390f35b34801561029b57600080fd5b506102b660048036038101906102b19190612c24565b610936565b6040516102c39190613086565b60405180910390f35b3480156102d857600080fd5b506102e161097c565b6040516102ee919061312a565b60405180910390f35b34801561030357600080fd5b5061031e60048036038101906103199190612b14565b610a0a565b005b34801561032c57600080fd5b50610335610b22565b604051610342919061334c565b60405180910390f35b34801561035757600080fd5b50610372600480360381019061036d91906129fe565b610b2f565b005b34801561038057600080fd5b5061039b60048036038101906103969190612b14565b610b8f565b6040516103a8919061334c565b60405180910390f35b3480156103bd57600080fd5b506103d860048036038101906103d39190612c24565b610c34565b005b3480156103e657600080fd5b5061040160048036038101906103fc91906129fe565b610c46565b005b34801561040f57600080fd5b5061042a60048036038101906104259190612991565b610c66565b60405161043791906130ed565b60405180910390f35b34801561044c57600080fd5b5061046760048036038101906104629190612c24565b610d14565b604051610474919061334c565b60405180910390f35b34801561048957600080fd5b50610492610d85565b60405161049f919061310f565b60405180910390f35b3480156104b457600080fd5b506104cf60048036038101906104ca9190612bdb565b610d98565b005b3480156104dd57600080fd5b506104e6610dba565b6040516104f3919061310f565b60405180910390f35b34801561050857600080fd5b50610523600480360381019061051e9190612c24565b610dcd565b6040516105309190613086565b60405180910390f35b34801561054557600080fd5b5061054e610e7f565b60405161055b919061334c565b60405180910390f35b34801561057057600080fd5b5061058b60048036038101906105869190612991565b610e89565b604051610598919061334c565b60405180910390f35b3480156105ad57600080fd5b506105b6610f41565b005b3480156105c457600080fd5b506105df60048036038101906105da9190612c24565b610f55565b005b3480156105ed57600080fd5b506105f6610f67565b6040516106039190613086565b60405180910390f35b34801561061857600080fd5b50610633600480360381019061062e9190612c24565b610f91565b005b34801561064157600080fd5b5061064a610fa3565b604051610657919061312a565b60405180910390f35b61067a60048036038101906106759190612c24565b611035565b005b34801561068857600080fd5b506106a3600480360381019061069e9190612ad4565b6110d4565b005b3480156106b157600080fd5b506106ba6110ea565b005b3480156106c857600080fd5b506106e360048036038101906106de9190612a51565b61110f565b005b3480156106f157600080fd5b506106fa611171565b604051610707919061312a565b60405180910390f35b34801561071c57600080fd5b5061073760048036038101906107329190612c24565b6111ff565b604051610744919061312a565b60405180910390f35b34801561075957600080fd5b50610774600480360381019061076f9190612bdb565b611358565b005b34801561078257600080fd5b5061079d600480360381019061079891906129be565b61137a565b6040516107aa919061310f565b60405180910390f35b3480156107bf57600080fd5b506107da60048036038101906107d59190612bdb565b61140e565b005b3480156107e857600080fd5b5061080360048036038101906107fe9190612991565b611430565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108785750610877826114b4565b5b9050919050565b610887611596565b80600d60006101000a81548160ff02191690831515021790555050565b6060600080546108b3906135f0565b80601f01602080910402602001604051908101604052809291908181526020018280546108df906135f0565b801561092c5780601f106109015761010080835404028352916020019161092c565b820191906000526020600020905b81548152906001019060200180831161090f57829003601f168201915b5050505050905090565b600061094182611614565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600e8054610989906135f0565b80601f01602080910402602001604051908101604052809291908181526020018280546109b5906135f0565b8015610a025780601f106109d757610100808354040283529160200191610a02565b820191906000526020600020905b8154815290600101906020018083116109e557829003601f168201915b505050505081565b6000610a1582610dcd565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7d906132ec565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610aa561165f565b73ffffffffffffffffffffffffffffffffffffffff161480610ad45750610ad381610ace61165f565b61137a565b5b610b13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0a9061324c565b60405180910390fd5b610b1d8383611667565b505050565b6000600880549050905090565b610b40610b3a61165f565b82611720565b610b7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b769061332c565b60405180910390fd5b610b8a8383836117b5565b505050565b6000610b9a83610e89565b8210610bdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd29061314c565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c3c611596565b8060108190555050565b610c618383836040518060200160405280600081525061110f565b505050565b60606000610c7383610e89565b905060008167ffffffffffffffff811115610c9157610c906137b8565b5b604051908082528060200260200182016040528015610cbf5781602001602082028036833780820191505090505b50905060005b82811015610d0957610cd78582610b8f565b828281518110610cea57610ce9613789565b5b6020026020010181815250508080610d0190613653565b915050610cc5565b508092505050919050565b6000610d1e610b22565b8210610d5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d569061330c565b60405180910390fd5b60088281548110610d7357610d72613789565b5b90600052602060002001549050919050565b600d60019054906101000a900460ff1681565b610da0611596565b80600b9080519060200190610db69291906127a5565b5050565b600d60009054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6d906132cc565b60405180910390fd5b80915050919050565b6000601054905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610efa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef19061322c565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610f49611596565b610f536000611a1c565b565b610f5d611596565b8060118190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610f99611596565b80600f8190555050565b606060018054610fb2906135f0565b80601f0160208091040260200160405190810160405280929190818152602001828054610fde906135f0565b801561102b5780601f106110005761010080835404028352916020019161102b565b820191906000526020600020905b81548152906001019060200180831161100e57829003601f168201915b5050505050905090565b600061103f610b22565b9050600d60009054906101000a900460ff161561105b57600080fd5b60008211801561106d57506011548211155b61107657600080fd5b6010548282611085919061347f565b111561109057600080fd5b611098610f67565b506000600190505b8281116110cf576110bc3382846110b7919061347f565b611ae2565b80806110c790613653565b9150506110a0565b505050565b6110e66110df61165f565b8383611b00565b5050565b6110f2611596565b6001600d60016101000a81548160ff021916908315150217905550565b61112061111a61165f565b83611720565b61115f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111569061332c565b60405180910390fd5b61116b84848484611c6d565b50505050565b600c805461117e906135f0565b80601f01602080910402602001604051908101604052809291908181526020018280546111aa906135f0565b80156111f75780601f106111cc576101008083540402835291602001916111f7565b820191906000526020600020905b8154815290600101906020018083116111da57829003601f168201915b505050505081565b606061120a82611cc9565b611249576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611240906132ac565b60405180910390fd5b60001515600d60019054906101000a900460ff16151514156112f757600e8054611272906135f0565b80601f016020809104026020016040519081016040528092919081815260200182805461129e906135f0565b80156112eb5780601f106112c0576101008083540402835291602001916112eb565b820191906000526020600020905b8154815290600101906020018083116112ce57829003601f168201915b50505050509050611353565b6000611301611d35565b90506000815111611321576040518060200160405280600081525061134f565b8061132b84611dc7565b600c60405160200161133f93929190613055565b6040516020818303038152906040525b9150505b919050565b611360611596565b80600c90805190602001906113769291906127a5565b5050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611416611596565b80600e908051906020019061142c9291906127a5565b5050565b611438611596565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156114a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149f9061318c565b60405180910390fd5b6114b181611a1c565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061157f57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061158f575061158e82611f28565b5b9050919050565b61159e61165f565b73ffffffffffffffffffffffffffffffffffffffff166115bc610f67565b73ffffffffffffffffffffffffffffffffffffffff1614611612576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116099061328c565b60405180910390fd5b565b61161d81611cc9565b61165c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611653906132cc565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166116da83610dcd565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061172c83610dcd565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061176e575061176d818561137a565b5b806117ac57508373ffffffffffffffffffffffffffffffffffffffff1661179484610936565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166117d582610dcd565b73ffffffffffffffffffffffffffffffffffffffff161461182b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611822906131ac565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561189b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611892906131ec565b60405180910390fd5b6118a6838383611f92565b6118b1600082611667565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119019190613506565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611958919061347f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611a178383836120a6565b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611afc8282604051806020016040528060008152506120ab565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611b6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b669061320c565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611c60919061310f565b60405180910390a3505050565b611c788484846117b5565b611c8484848484612106565b611cc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cba9061316c565b60405180910390fd5b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6060600b8054611d44906135f0565b80601f0160208091040260200160405190810160405280929190818152602001828054611d70906135f0565b8015611dbd5780601f10611d9257610100808354040283529160200191611dbd565b820191906000526020600020905b815481529060010190602001808311611da057829003601f168201915b5050505050905090565b60606000821415611e0f576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611f23565b600082905060005b60008214611e41578080611e2a90613653565b915050600a82611e3a91906134d5565b9150611e17565b60008167ffffffffffffffff811115611e5d57611e5c6137b8565b5b6040519080825280601f01601f191660200182016040528015611e8f5781602001600182028036833780820191505090505b5090505b60008514611f1c57600182611ea89190613506565b9150600a85611eb7919061369c565b6030611ec3919061347f565b60f81b818381518110611ed957611ed8613789565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611f1591906134d5565b9450611e93565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611f9d83838361229d565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611fe057611fdb816122a2565b61201f565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461201e5761201d83826122eb565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156120625761205d81612458565b6120a1565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146120a05761209f8282612529565b5b5b505050565b505050565b6120b583836125a8565b6120c26000848484612106565b612101576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f89061316c565b60405180910390fd5b505050565b60006121278473ffffffffffffffffffffffffffffffffffffffff16612782565b15612290578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261215061165f565b8786866040518563ffffffff1660e01b815260040161217294939291906130a1565b602060405180830381600087803b15801561218c57600080fd5b505af19250505080156121bd57506040513d601f19601f820116820180604052508101906121ba9190612bae565b60015b612240573d80600081146121ed576040519150601f19603f3d011682016040523d82523d6000602084013e6121f2565b606091505b50600081511415612238576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222f9061316c565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612295565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016122f884610e89565b6123029190613506565b90506000600760008481526020019081526020016000205490508181146123e7576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061246c9190613506565b905060006009600084815260200190815260200160002054905060006008838154811061249c5761249b613789565b5b9060005260206000200154905080600883815481106124be576124bd613789565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061250d5761250c61375a565b5b6001900381819060005260206000200160009055905550505050565b600061253483610e89565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612618576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260f9061326c565b60405180910390fd5b61262181611cc9565b15612661576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612658906131cc565b60405180910390fd5b61266d60008383611f92565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126bd919061347f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461277e600083836120a6565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b8280546127b1906135f0565b90600052602060002090601f0160209004810192826127d3576000855561281a565b82601f106127ec57805160ff191683800117855561281a565b8280016001018555821561281a579182015b828111156128195782518255916020019190600101906127fe565b5b509050612827919061282b565b5090565b5b8082111561284457600081600090555060010161282c565b5090565b600061285b6128568461338c565b613367565b905082815260208101848484011115612877576128766137ec565b5b6128828482856135ae565b509392505050565b600061289d612898846133bd565b613367565b9050828152602081018484840111156128b9576128b86137ec565b5b6128c48482856135ae565b509392505050565b6000813590506128db81613c3e565b92915050565b6000813590506128f081613c55565b92915050565b60008135905061290581613c6c565b92915050565b60008151905061291a81613c6c565b92915050565b600082601f830112612935576129346137e7565b5b8135612945848260208601612848565b91505092915050565b600082601f830112612963576129626137e7565b5b813561297384826020860161288a565b91505092915050565b60008135905061298b81613c83565b92915050565b6000602082840312156129a7576129a66137f6565b5b60006129b5848285016128cc565b91505092915050565b600080604083850312156129d5576129d46137f6565b5b60006129e3858286016128cc565b92505060206129f4858286016128cc565b9150509250929050565b600080600060608486031215612a1757612a166137f6565b5b6000612a25868287016128cc565b9350506020612a36868287016128cc565b9250506040612a478682870161297c565b9150509250925092565b60008060008060808587031215612a6b57612a6a6137f6565b5b6000612a79878288016128cc565b9450506020612a8a878288016128cc565b9350506040612a9b8782880161297c565b925050606085013567ffffffffffffffff811115612abc57612abb6137f1565b5b612ac887828801612920565b91505092959194509250565b60008060408385031215612aeb57612aea6137f6565b5b6000612af9858286016128cc565b9250506020612b0a858286016128e1565b9150509250929050565b60008060408385031215612b2b57612b2a6137f6565b5b6000612b39858286016128cc565b9250506020612b4a8582860161297c565b9150509250929050565b600060208284031215612b6a57612b696137f6565b5b6000612b78848285016128e1565b91505092915050565b600060208284031215612b9757612b966137f6565b5b6000612ba5848285016128f6565b91505092915050565b600060208284031215612bc457612bc36137f6565b5b6000612bd28482850161290b565b91505092915050565b600060208284031215612bf157612bf06137f6565b5b600082013567ffffffffffffffff811115612c0f57612c0e6137f1565b5b612c1b8482850161294e565b91505092915050565b600060208284031215612c3a57612c396137f6565b5b6000612c488482850161297c565b91505092915050565b6000612c5d8383613037565b60208301905092915050565b612c728161353a565b82525050565b6000612c8382613413565b612c8d8185613441565b9350612c98836133ee565b8060005b83811015612cc9578151612cb08882612c51565b9750612cbb83613434565b925050600181019050612c9c565b5085935050505092915050565b612cdf8161354c565b82525050565b6000612cf08261341e565b612cfa8185613452565b9350612d0a8185602086016135bd565b612d13816137fb565b840191505092915050565b6000612d2982613429565b612d338185613463565b9350612d438185602086016135bd565b612d4c816137fb565b840191505092915050565b6000612d6282613429565b612d6c8185613474565b9350612d7c8185602086016135bd565b80840191505092915050565b60008154612d95816135f0565b612d9f8186613474565b94506001821660008114612dba5760018114612dcb57612dfe565b60ff19831686528186019350612dfe565b612dd4856133fe565b60005b83811015612df657815481890152600182019150602081019050612dd7565b838801955050505b50505092915050565b6000612e14602b83613463565b9150612e1f8261380c565b604082019050919050565b6000612e37603283613463565b9150612e428261385b565b604082019050919050565b6000612e5a602683613463565b9150612e65826138aa565b604082019050919050565b6000612e7d602583613463565b9150612e88826138f9565b604082019050919050565b6000612ea0601c83613463565b9150612eab82613948565b602082019050919050565b6000612ec3602483613463565b9150612ece82613971565b604082019050919050565b6000612ee6601983613463565b9150612ef1826139c0565b602082019050919050565b6000612f09602983613463565b9150612f14826139e9565b604082019050919050565b6000612f2c603e83613463565b9150612f3782613a38565b604082019050919050565b6000612f4f602083613463565b9150612f5a82613a87565b602082019050919050565b6000612f72602083613463565b9150612f7d82613ab0565b602082019050919050565b6000612f95602f83613463565b9150612fa082613ad9565b604082019050919050565b6000612fb8601883613463565b9150612fc382613b28565b602082019050919050565b6000612fdb602183613463565b9150612fe682613b51565b604082019050919050565b6000612ffe602c83613463565b915061300982613ba0565b604082019050919050565b6000613021602e83613463565b915061302c82613bef565b604082019050919050565b613040816135a4565b82525050565b61304f816135a4565b82525050565b60006130618286612d57565b915061306d8285612d57565b91506130798284612d88565b9150819050949350505050565b600060208201905061309b6000830184612c69565b92915050565b60006080820190506130b66000830187612c69565b6130c36020830186612c69565b6130d06040830185613046565b81810360608301526130e28184612ce5565b905095945050505050565b600060208201905081810360008301526131078184612c78565b905092915050565b60006020820190506131246000830184612cd6565b92915050565b600060208201905081810360008301526131448184612d1e565b905092915050565b6000602082019050818103600083015261316581612e07565b9050919050565b6000602082019050818103600083015261318581612e2a565b9050919050565b600060208201905081810360008301526131a581612e4d565b9050919050565b600060208201905081810360008301526131c581612e70565b9050919050565b600060208201905081810360008301526131e581612e93565b9050919050565b6000602082019050818103600083015261320581612eb6565b9050919050565b6000602082019050818103600083015261322581612ed9565b9050919050565b6000602082019050818103600083015261324581612efc565b9050919050565b6000602082019050818103600083015261326581612f1f565b9050919050565b6000602082019050818103600083015261328581612f42565b9050919050565b600060208201905081810360008301526132a581612f65565b9050919050565b600060208201905081810360008301526132c581612f88565b9050919050565b600060208201905081810360008301526132e581612fab565b9050919050565b6000602082019050818103600083015261330581612fce565b9050919050565b6000602082019050818103600083015261332581612ff1565b9050919050565b6000602082019050818103600083015261334581613014565b9050919050565b60006020820190506133616000830184613046565b92915050565b6000613371613382565b905061337d8282613622565b919050565b6000604051905090565b600067ffffffffffffffff8211156133a7576133a66137b8565b5b6133b0826137fb565b9050602081019050919050565b600067ffffffffffffffff8211156133d8576133d76137b8565b5b6133e1826137fb565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061348a826135a4565b9150613495836135a4565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156134ca576134c96136cd565b5b828201905092915050565b60006134e0826135a4565b91506134eb836135a4565b9250826134fb576134fa6136fc565b5b828204905092915050565b6000613511826135a4565b915061351c836135a4565b92508282101561352f5761352e6136cd565b5b828203905092915050565b600061354582613584565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156135db5780820151818401526020810190506135c0565b838111156135ea576000848401525b50505050565b6000600282049050600182168061360857607f821691505b6020821081141561361c5761361b61372b565b5b50919050565b61362b826137fb565b810181811067ffffffffffffffff8211171561364a576136496137b8565b5b80604052505050565b600061365e826135a4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613691576136906136cd565b5b600182019050919050565b60006136a7826135a4565b91506136b2836135a4565b9250826136c2576136c16136fc565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b613c478161353a565b8114613c5257600080fd5b50565b613c5e8161354c565b8114613c6957600080fd5b50565b613c7581613558565b8114613c8057600080fd5b50565b613c8c816135a4565b8114613c9757600080fd5b5056fea264697066735822122028e30a40229eae422c820b0e0b760f2eae96f96b29493ac3e1a0cafeeb1f99e564736f6c6343000807003300000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000009896800000000000000000000000000000000000000000000000000000000000989680000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000009436f777279204e465400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004434e46540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed ByteCode
0x6080604052600436106101f95760003560e01c80636c9c2faf1161010d578063a22cb465116100a0578063c87b56dd1161006f578063c87b56dd14610710578063da3ef23f1461074d578063e985e9c514610776578063f2c4ce1e146107b3578063f2fde38b146107dc576101f9565b8063a22cb4651461067c578063a475b5dd146106a5578063b88d4fde146106bc578063c6682862146106e5576101f9565b80638da5cb5b116100dc5780638da5cb5b146105e157806391b7f5ed1461060c57806395d89b4114610635578063a0712d6814610660576101f9565b80636c9c2faf1461053957806370a0823114610564578063715018a6146105a15780637f00c7a6146105b8576101f9565b80632f745c59116101905780634f6ccce71161015f5780634f6ccce714610440578063518302271461047d57806355f804b3146104a85780635c975abb146104d15780636352211e146104fc576101f9565b80632f745c59146103745780633b4c4b25146103b157806342842e0e146103da578063438b630014610403576101f9565b8063081c8c44116101cc578063081c8c44146102cc578063095ea7b3146102f757806318160ddd1461032057806323b872dd1461034b576101f9565b806301ffc9a7146101fe57806302329a291461023b57806306fdde0314610264578063081812fc1461028f575b600080fd5b34801561020a57600080fd5b5061022560048036038101906102209190612b81565b610805565b604051610232919061310f565b60405180910390f35b34801561024757600080fd5b50610262600480360381019061025d9190612b54565b61087f565b005b34801561027057600080fd5b506102796108a4565b604051610286919061312a565b60405180910390f35b34801561029b57600080fd5b506102b660048036038101906102b19190612c24565b610936565b6040516102c39190613086565b60405180910390f35b3480156102d857600080fd5b506102e161097c565b6040516102ee919061312a565b60405180910390f35b34801561030357600080fd5b5061031e60048036038101906103199190612b14565b610a0a565b005b34801561032c57600080fd5b50610335610b22565b604051610342919061334c565b60405180910390f35b34801561035757600080fd5b50610372600480360381019061036d91906129fe565b610b2f565b005b34801561038057600080fd5b5061039b60048036038101906103969190612b14565b610b8f565b6040516103a8919061334c565b60405180910390f35b3480156103bd57600080fd5b506103d860048036038101906103d39190612c24565b610c34565b005b3480156103e657600080fd5b5061040160048036038101906103fc91906129fe565b610c46565b005b34801561040f57600080fd5b5061042a60048036038101906104259190612991565b610c66565b60405161043791906130ed565b60405180910390f35b34801561044c57600080fd5b5061046760048036038101906104629190612c24565b610d14565b604051610474919061334c565b60405180910390f35b34801561048957600080fd5b50610492610d85565b60405161049f919061310f565b60405180910390f35b3480156104b457600080fd5b506104cf60048036038101906104ca9190612bdb565b610d98565b005b3480156104dd57600080fd5b506104e6610dba565b6040516104f3919061310f565b60405180910390f35b34801561050857600080fd5b50610523600480360381019061051e9190612c24565b610dcd565b6040516105309190613086565b60405180910390f35b34801561054557600080fd5b5061054e610e7f565b60405161055b919061334c565b60405180910390f35b34801561057057600080fd5b5061058b60048036038101906105869190612991565b610e89565b604051610598919061334c565b60405180910390f35b3480156105ad57600080fd5b506105b6610f41565b005b3480156105c457600080fd5b506105df60048036038101906105da9190612c24565b610f55565b005b3480156105ed57600080fd5b506105f6610f67565b6040516106039190613086565b60405180910390f35b34801561061857600080fd5b50610633600480360381019061062e9190612c24565b610f91565b005b34801561064157600080fd5b5061064a610fa3565b604051610657919061312a565b60405180910390f35b61067a60048036038101906106759190612c24565b611035565b005b34801561068857600080fd5b506106a3600480360381019061069e9190612ad4565b6110d4565b005b3480156106b157600080fd5b506106ba6110ea565b005b3480156106c857600080fd5b506106e360048036038101906106de9190612a51565b61110f565b005b3480156106f157600080fd5b506106fa611171565b604051610707919061312a565b60405180910390f35b34801561071c57600080fd5b5061073760048036038101906107329190612c24565b6111ff565b604051610744919061312a565b60405180910390f35b34801561075957600080fd5b50610774600480360381019061076f9190612bdb565b611358565b005b34801561078257600080fd5b5061079d600480360381019061079891906129be565b61137a565b6040516107aa919061310f565b60405180910390f35b3480156107bf57600080fd5b506107da60048036038101906107d59190612bdb565b61140e565b005b3480156107e857600080fd5b5061080360048036038101906107fe9190612991565b611430565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108785750610877826114b4565b5b9050919050565b610887611596565b80600d60006101000a81548160ff02191690831515021790555050565b6060600080546108b3906135f0565b80601f01602080910402602001604051908101604052809291908181526020018280546108df906135f0565b801561092c5780601f106109015761010080835404028352916020019161092c565b820191906000526020600020905b81548152906001019060200180831161090f57829003601f168201915b5050505050905090565b600061094182611614565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600e8054610989906135f0565b80601f01602080910402602001604051908101604052809291908181526020018280546109b5906135f0565b8015610a025780601f106109d757610100808354040283529160200191610a02565b820191906000526020600020905b8154815290600101906020018083116109e557829003601f168201915b505050505081565b6000610a1582610dcd565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7d906132ec565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610aa561165f565b73ffffffffffffffffffffffffffffffffffffffff161480610ad45750610ad381610ace61165f565b61137a565b5b610b13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b0a9061324c565b60405180910390fd5b610b1d8383611667565b505050565b6000600880549050905090565b610b40610b3a61165f565b82611720565b610b7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b769061332c565b60405180910390fd5b610b8a8383836117b5565b505050565b6000610b9a83610e89565b8210610bdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd29061314c565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c3c611596565b8060108190555050565b610c618383836040518060200160405280600081525061110f565b505050565b60606000610c7383610e89565b905060008167ffffffffffffffff811115610c9157610c906137b8565b5b604051908082528060200260200182016040528015610cbf5781602001602082028036833780820191505090505b50905060005b82811015610d0957610cd78582610b8f565b828281518110610cea57610ce9613789565b5b6020026020010181815250508080610d0190613653565b915050610cc5565b508092505050919050565b6000610d1e610b22565b8210610d5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d569061330c565b60405180910390fd5b60088281548110610d7357610d72613789565b5b90600052602060002001549050919050565b600d60019054906101000a900460ff1681565b610da0611596565b80600b9080519060200190610db69291906127a5565b5050565b600d60009054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6d906132cc565b60405180910390fd5b80915050919050565b6000601054905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610efa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef19061322c565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610f49611596565b610f536000611a1c565b565b610f5d611596565b8060118190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610f99611596565b80600f8190555050565b606060018054610fb2906135f0565b80601f0160208091040260200160405190810160405280929190818152602001828054610fde906135f0565b801561102b5780601f106110005761010080835404028352916020019161102b565b820191906000526020600020905b81548152906001019060200180831161100e57829003601f168201915b5050505050905090565b600061103f610b22565b9050600d60009054906101000a900460ff161561105b57600080fd5b60008211801561106d57506011548211155b61107657600080fd5b6010548282611085919061347f565b111561109057600080fd5b611098610f67565b506000600190505b8281116110cf576110bc3382846110b7919061347f565b611ae2565b80806110c790613653565b9150506110a0565b505050565b6110e66110df61165f565b8383611b00565b5050565b6110f2611596565b6001600d60016101000a81548160ff021916908315150217905550565b61112061111a61165f565b83611720565b61115f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111569061332c565b60405180910390fd5b61116b84848484611c6d565b50505050565b600c805461117e906135f0565b80601f01602080910402602001604051908101604052809291908181526020018280546111aa906135f0565b80156111f75780601f106111cc576101008083540402835291602001916111f7565b820191906000526020600020905b8154815290600101906020018083116111da57829003601f168201915b505050505081565b606061120a82611cc9565b611249576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611240906132ac565b60405180910390fd5b60001515600d60019054906101000a900460ff16151514156112f757600e8054611272906135f0565b80601f016020809104026020016040519081016040528092919081815260200182805461129e906135f0565b80156112eb5780601f106112c0576101008083540402835291602001916112eb565b820191906000526020600020905b8154815290600101906020018083116112ce57829003601f168201915b50505050509050611353565b6000611301611d35565b90506000815111611321576040518060200160405280600081525061134f565b8061132b84611dc7565b600c60405160200161133f93929190613055565b6040516020818303038152906040525b9150505b919050565b611360611596565b80600c90805190602001906113769291906127a5565b5050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611416611596565b80600e908051906020019061142c9291906127a5565b5050565b611438611596565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156114a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149f9061318c565b60405180910390fd5b6114b181611a1c565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061157f57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061158f575061158e82611f28565b5b9050919050565b61159e61165f565b73ffffffffffffffffffffffffffffffffffffffff166115bc610f67565b73ffffffffffffffffffffffffffffffffffffffff1614611612576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116099061328c565b60405180910390fd5b565b61161d81611cc9565b61165c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611653906132cc565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166116da83610dcd565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061172c83610dcd565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061176e575061176d818561137a565b5b806117ac57508373ffffffffffffffffffffffffffffffffffffffff1661179484610936565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166117d582610dcd565b73ffffffffffffffffffffffffffffffffffffffff161461182b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611822906131ac565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561189b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611892906131ec565b60405180910390fd5b6118a6838383611f92565b6118b1600082611667565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546119019190613506565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611958919061347f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611a178383836120a6565b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611afc8282604051806020016040528060008152506120ab565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611b6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b669061320c565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611c60919061310f565b60405180910390a3505050565b611c788484846117b5565b611c8484848484612106565b611cc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cba9061316c565b60405180910390fd5b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6060600b8054611d44906135f0565b80601f0160208091040260200160405190810160405280929190818152602001828054611d70906135f0565b8015611dbd5780601f10611d9257610100808354040283529160200191611dbd565b820191906000526020600020905b815481529060010190602001808311611da057829003601f168201915b5050505050905090565b60606000821415611e0f576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611f23565b600082905060005b60008214611e41578080611e2a90613653565b915050600a82611e3a91906134d5565b9150611e17565b60008167ffffffffffffffff811115611e5d57611e5c6137b8565b5b6040519080825280601f01601f191660200182016040528015611e8f5781602001600182028036833780820191505090505b5090505b60008514611f1c57600182611ea89190613506565b9150600a85611eb7919061369c565b6030611ec3919061347f565b60f81b818381518110611ed957611ed8613789565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611f1591906134d5565b9450611e93565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611f9d83838361229d565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611fe057611fdb816122a2565b61201f565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461201e5761201d83826122eb565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156120625761205d81612458565b6120a1565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146120a05761209f8282612529565b5b5b505050565b505050565b6120b583836125a8565b6120c26000848484612106565b612101576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f89061316c565b60405180910390fd5b505050565b60006121278473ffffffffffffffffffffffffffffffffffffffff16612782565b15612290578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261215061165f565b8786866040518563ffffffff1660e01b815260040161217294939291906130a1565b602060405180830381600087803b15801561218c57600080fd5b505af19250505080156121bd57506040513d601f19601f820116820180604052508101906121ba9190612bae565b60015b612240573d80600081146121ed576040519150601f19603f3d011682016040523d82523d6000602084013e6121f2565b606091505b50600081511415612238576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222f9061316c565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612295565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016122f884610e89565b6123029190613506565b90506000600760008481526020019081526020016000205490508181146123e7576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061246c9190613506565b905060006009600084815260200190815260200160002054905060006008838154811061249c5761249b613789565b5b9060005260206000200154905080600883815481106124be576124bd613789565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061250d5761250c61375a565b5b6001900381819060005260206000200160009055905550505050565b600061253483610e89565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612618576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260f9061326c565b60405180910390fd5b61262181611cc9565b15612661576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612658906131cc565b60405180910390fd5b61266d60008383611f92565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126bd919061347f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461277e600083836120a6565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b8280546127b1906135f0565b90600052602060002090601f0160209004810192826127d3576000855561281a565b82601f106127ec57805160ff191683800117855561281a565b8280016001018555821561281a579182015b828111156128195782518255916020019190600101906127fe565b5b509050612827919061282b565b5090565b5b8082111561284457600081600090555060010161282c565b5090565b600061285b6128568461338c565b613367565b905082815260208101848484011115612877576128766137ec565b5b6128828482856135ae565b509392505050565b600061289d612898846133bd565b613367565b9050828152602081018484840111156128b9576128b86137ec565b5b6128c48482856135ae565b509392505050565b6000813590506128db81613c3e565b92915050565b6000813590506128f081613c55565b92915050565b60008135905061290581613c6c565b92915050565b60008151905061291a81613c6c565b92915050565b600082601f830112612935576129346137e7565b5b8135612945848260208601612848565b91505092915050565b600082601f830112612963576129626137e7565b5b813561297384826020860161288a565b91505092915050565b60008135905061298b81613c83565b92915050565b6000602082840312156129a7576129a66137f6565b5b60006129b5848285016128cc565b91505092915050565b600080604083850312156129d5576129d46137f6565b5b60006129e3858286016128cc565b92505060206129f4858286016128cc565b9150509250929050565b600080600060608486031215612a1757612a166137f6565b5b6000612a25868287016128cc565b9350506020612a36868287016128cc565b9250506040612a478682870161297c565b9150509250925092565b60008060008060808587031215612a6b57612a6a6137f6565b5b6000612a79878288016128cc565b9450506020612a8a878288016128cc565b9350506040612a9b8782880161297c565b925050606085013567ffffffffffffffff811115612abc57612abb6137f1565b5b612ac887828801612920565b91505092959194509250565b60008060408385031215612aeb57612aea6137f6565b5b6000612af9858286016128cc565b9250506020612b0a858286016128e1565b9150509250929050565b60008060408385031215612b2b57612b2a6137f6565b5b6000612b39858286016128cc565b9250506020612b4a8582860161297c565b9150509250929050565b600060208284031215612b6a57612b696137f6565b5b6000612b78848285016128e1565b91505092915050565b600060208284031215612b9757612b966137f6565b5b6000612ba5848285016128f6565b91505092915050565b600060208284031215612bc457612bc36137f6565b5b6000612bd28482850161290b565b91505092915050565b600060208284031215612bf157612bf06137f6565b5b600082013567ffffffffffffffff811115612c0f57612c0e6137f1565b5b612c1b8482850161294e565b91505092915050565b600060208284031215612c3a57612c396137f6565b5b6000612c488482850161297c565b91505092915050565b6000612c5d8383613037565b60208301905092915050565b612c728161353a565b82525050565b6000612c8382613413565b612c8d8185613441565b9350612c98836133ee565b8060005b83811015612cc9578151612cb08882612c51565b9750612cbb83613434565b925050600181019050612c9c565b5085935050505092915050565b612cdf8161354c565b82525050565b6000612cf08261341e565b612cfa8185613452565b9350612d0a8185602086016135bd565b612d13816137fb565b840191505092915050565b6000612d2982613429565b612d338185613463565b9350612d438185602086016135bd565b612d4c816137fb565b840191505092915050565b6000612d6282613429565b612d6c8185613474565b9350612d7c8185602086016135bd565b80840191505092915050565b60008154612d95816135f0565b612d9f8186613474565b94506001821660008114612dba5760018114612dcb57612dfe565b60ff19831686528186019350612dfe565b612dd4856133fe565b60005b83811015612df657815481890152600182019150602081019050612dd7565b838801955050505b50505092915050565b6000612e14602b83613463565b9150612e1f8261380c565b604082019050919050565b6000612e37603283613463565b9150612e428261385b565b604082019050919050565b6000612e5a602683613463565b9150612e65826138aa565b604082019050919050565b6000612e7d602583613463565b9150612e88826138f9565b604082019050919050565b6000612ea0601c83613463565b9150612eab82613948565b602082019050919050565b6000612ec3602483613463565b9150612ece82613971565b604082019050919050565b6000612ee6601983613463565b9150612ef1826139c0565b602082019050919050565b6000612f09602983613463565b9150612f14826139e9565b604082019050919050565b6000612f2c603e83613463565b9150612f3782613a38565b604082019050919050565b6000612f4f602083613463565b9150612f5a82613a87565b602082019050919050565b6000612f72602083613463565b9150612f7d82613ab0565b602082019050919050565b6000612f95602f83613463565b9150612fa082613ad9565b604082019050919050565b6000612fb8601883613463565b9150612fc382613b28565b602082019050919050565b6000612fdb602183613463565b9150612fe682613b51565b604082019050919050565b6000612ffe602c83613463565b915061300982613ba0565b604082019050919050565b6000613021602e83613463565b915061302c82613bef565b604082019050919050565b613040816135a4565b82525050565b61304f816135a4565b82525050565b60006130618286612d57565b915061306d8285612d57565b91506130798284612d88565b9150819050949350505050565b600060208201905061309b6000830184612c69565b92915050565b60006080820190506130b66000830187612c69565b6130c36020830186612c69565b6130d06040830185613046565b81810360608301526130e28184612ce5565b905095945050505050565b600060208201905081810360008301526131078184612c78565b905092915050565b60006020820190506131246000830184612cd6565b92915050565b600060208201905081810360008301526131448184612d1e565b905092915050565b6000602082019050818103600083015261316581612e07565b9050919050565b6000602082019050818103600083015261318581612e2a565b9050919050565b600060208201905081810360008301526131a581612e4d565b9050919050565b600060208201905081810360008301526131c581612e70565b9050919050565b600060208201905081810360008301526131e581612e93565b9050919050565b6000602082019050818103600083015261320581612eb6565b9050919050565b6000602082019050818103600083015261322581612ed9565b9050919050565b6000602082019050818103600083015261324581612efc565b9050919050565b6000602082019050818103600083015261326581612f1f565b9050919050565b6000602082019050818103600083015261328581612f42565b9050919050565b600060208201905081810360008301526132a581612f65565b9050919050565b600060208201905081810360008301526132c581612f88565b9050919050565b600060208201905081810360008301526132e581612fab565b9050919050565b6000602082019050818103600083015261330581612fce565b9050919050565b6000602082019050818103600083015261332581612ff1565b9050919050565b6000602082019050818103600083015261334581613014565b9050919050565b60006020820190506133616000830184613046565b92915050565b6000613371613382565b905061337d8282613622565b919050565b6000604051905090565b600067ffffffffffffffff8211156133a7576133a66137b8565b5b6133b0826137fb565b9050602081019050919050565b600067ffffffffffffffff8211156133d8576133d76137b8565b5b6133e1826137fb565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061348a826135a4565b9150613495836135a4565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156134ca576134c96136cd565b5b828201905092915050565b60006134e0826135a4565b91506134eb836135a4565b9250826134fb576134fa6136fc565b5b828204905092915050565b6000613511826135a4565b915061351c836135a4565b92508282101561352f5761352e6136cd565b5b828203905092915050565b600061354582613584565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156135db5780820151818401526020810190506135c0565b838111156135ea576000848401525b50505050565b6000600282049050600182168061360857607f821691505b6020821081141561361c5761361b61372b565b5b50919050565b61362b826137fb565b810181811067ffffffffffffffff8211171561364a576136496137b8565b5b80604052505050565b600061365e826135a4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613691576136906136cd565b5b600182019050919050565b60006136a7826135a4565b91506136b2836135a4565b9250826136c2576136c16136fc565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b613c478161353a565b8114613c5257600080fd5b50565b613c5e8161354c565b8114613c6957600080fd5b50565b613c7581613558565b8114613c8057600080fd5b50565b613c8c816135a4565b8114613c9757600080fd5b5056fea264697066735822122028e30a40229eae422c820b0e0b760f2eae96f96b29493ac3e1a0cafeeb1f99e564736f6c63430008070033