ERC-721
Overview
Max Total Supply
333 GOEE1
Holders
283
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 GOEE1Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
GOEEmotes
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // solhint-disable-next-line pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "./OS/DefaultOperatorFilterer.sol"; contract GOEEmotes is ERC721, IERC2981, ERC721Enumerable, ERC721Burnable, Pausable, Ownable, DefaultOperatorFilterer { using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; event Mint(uint256 _tokenId, address sender, uint256 amount); event AllowList(bool isAllowListOnly); constructor(string memory customBaseURI_) ERC721("GOEEmotes", "GOEE1") { customBaseURI = customBaseURI_; _royaltyAmount = 500; maxSupply = 2000; _tokenIdCounter.increment(); _pause(); } /** Allowlist **/ bool public _isAllowListOnly = true; mapping(bytes => bool) private signatureUsed; function setAllowListOnly(bool isAllowListOnlyActive) external onlyOwner { _isAllowListOnly = isAllowListOnlyActive; emit AllowList(isAllowListOnlyActive); } function recoverSigner(bytes32 hash, bytes memory signature) private pure returns (address) { bytes32 messageDigest = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); return ECDSA.recover(messageDigest, signature); } /** MINTING **/ uint256 public maxSupply; mapping(address => uint256) public addressMinted; function devMint(uint256 amount) public onlyOwner { require(totalSupply() + amount <= maxSupply, "Amount exceeds supply."); for (uint256 i = 0; i < amount; i++) { _safeMint(msg.sender, _tokenIdCounter.current()); _tokenIdCounter.increment(); } } function mint(bytes32 hash, bytes memory signature) public payable whenNotPaused { require(totalSupply() + 1 <= maxSupply, "Amount exceeds supply."); if (_isAllowListOnly) { require(recoverSigner(hash, signature) == owner(), "Address is not allowlisted"); require(!signatureUsed[signature], "Signature has already been used."); signatureUsed[signature] = true; } emit Mint(_tokenIdCounter.current(), msg.sender, 1); _safeMint(msg.sender, _tokenIdCounter.current()); _tokenIdCounter.increment(); addressMinted[msg.sender]++; } /** ACTIVATION **/ function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } /** URI HANDLING **/ string public customBaseURI; function setBaseURI(string memory customBaseURI_) external onlyOwner { customBaseURI = customBaseURI_; } function _baseURI() internal view virtual override returns (string memory) { return customBaseURI; } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "URI query for nonexistent token"); return bytes(customBaseURI).length > 0 ? string(abi.encodePacked(customBaseURI, Strings.toString(tokenId))) : ""; } /** ROYALTIES **/ uint256 public _royaltyAmount; function setRoyaltyAmount(uint256 _amount) external onlyOwner { _royaltyAmount = _amount; } function royaltyInfo(uint256, uint256 salePrice) external view override returns (address receiver, uint256 royaltyAmount) { return (owner(), (salePrice * _royaltyAmount) / 10000); } function withdraw() public onlyOwner { require(address(this).balance > 0, "Balance is zero"); payable(owner()).transfer(address(this).balance); } /** OVERRIDES **/ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override(ERC721, ERC721Enumerable) whenNotPaused { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, IERC165, ERC721Enumerable) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** OPENSEA TOOLKIT OVERRIDES **/ function transferFrom( address from, address to, uint256 tokenId ) public override(ERC721, IERC721) onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public override(ERC721, IERC721) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public override(ERC721, IERC721) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// 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 {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _burn(tokenId); } }
// 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(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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); } } } }
// 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // 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)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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); } }
// SPDX-License-Identifier: MIT // solhint-disable-next-line pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT // solhint-disable-next-line pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator( address registrant, address operator, bool filtered ) external; function updateOperators( address registrant, address[] calldata operators, bool filtered ) external; function updateCodeHash( address registrant, bytes32 codehash, bool filtered ) external; function updateCodeHashes( address registrant, bytes32[] calldata codeHashes, bool filtered ) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT // solhint-disable-next-line pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from == msg.sender) { _; return; } if ( !(OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), msg.sender) && OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), from)) ) { revert OperatorNotAllowed(msg.sender); } } _; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"customBaseURI_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isAllowListOnly","type":"bool"}],"name":"AllowList","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"_isAllowListOnly","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_royaltyAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"customBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isAllowListOnlyActive","type":"bool"}],"name":"setAllowListOnly","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"customBaseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setRoyaltyAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526001600c60006101000a81548160ff0219169083151502179055503480156200002c57600080fd5b5060405162005e4738038062005e478339818101604052810190620000529190620006d7565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600981526020017f474f45456d6f74657300000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f474f4545310000000000000000000000000000000000000000000000000000008152508160009081620000e6919062000973565b508060019081620000f8919062000973565b5050506000600a60006101000a81548160ff021916908315150217905550620001366200012a6200037f60201b60201c565b6200038760201b60201c565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156200032b578015620001f1576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b8152600401620001b792919062000a9f565b600060405180830381600087803b158015620001d257600080fd5b505af1158015620001e7573d6000803e3d6000fd5b505050506200032a565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614620002ab576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200027192919062000a9f565b600060405180830381600087803b1580156200028c57600080fd5b505af1158015620002a1573d6000803e3d6000fd5b5050505062000329565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620002f4919062000acc565b600060405180830381600087803b1580156200030f57600080fd5b505af115801562000324573d6000803e3d6000fd5b505050505b5b5b505080601090816200033e919062000973565b506101f46011819055506107d0600e8190555062000368600b6200044d60201b62001b0d1760201c565b620003786200046360201b60201c565b5062000b6c565b600033905090565b6000600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6001816000016000828254019250508190555050565b62000473620004d860201b60201c565b6001600a60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620004bf6200037f60201b60201c565b604051620004ce919062000acc565b60405180910390a1565b620004e86200052d60201b60201c565b156200052b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005229062000b4a565b60405180910390fd5b565b6000600a60009054906101000a900460ff16905090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620005ad8262000562565b810181811067ffffffffffffffff82111715620005cf57620005ce62000573565b5b80604052505050565b6000620005e462000544565b9050620005f28282620005a2565b919050565b600067ffffffffffffffff82111562000615576200061462000573565b5b620006208262000562565b9050602081019050919050565b60005b838110156200064d57808201518184015260208101905062000630565b60008484015250505050565b6000620006706200066a84620005f7565b620005d8565b9050828152602081018484840111156200068f576200068e6200055d565b5b6200069c8482856200062d565b509392505050565b600082601f830112620006bc57620006bb62000558565b5b8151620006ce84826020860162000659565b91505092915050565b600060208284031215620006f057620006ef6200054e565b5b600082015167ffffffffffffffff81111562000711576200071062000553565b5b6200071f84828501620006a4565b91505092915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200077b57607f821691505b60208210810362000791576200079062000733565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620007fb7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620007bc565b620008078683620007bc565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620008546200084e62000848846200081f565b62000829565b6200081f565b9050919050565b6000819050919050565b620008708362000833565b620008886200087f826200085b565b848454620007c9565b825550505050565b600090565b6200089f62000890565b620008ac81848462000865565b505050565b5b81811015620008d457620008c860008262000895565b600181019050620008b2565b5050565b601f8211156200092357620008ed8162000797565b620008f884620007ac565b8101602085101562000908578190505b620009206200091785620007ac565b830182620008b1565b50505b505050565b600082821c905092915050565b6000620009486000198460080262000928565b1980831691505092915050565b600062000963838362000935565b9150826002028217905092915050565b6200097e8262000728565b67ffffffffffffffff8111156200099a576200099962000573565b5b620009a6825462000762565b620009b3828285620008d8565b600060209050601f831160018114620009eb5760008415620009d6578287015190505b620009e2858262000955565b86555062000a52565b601f198416620009fb8662000797565b60005b8281101562000a2557848901518255600182019150602085019450602081019050620009fe565b8683101562000a45578489015162000a41601f89168262000935565b8355505b6001600288020188555050505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000a878262000a5a565b9050919050565b62000a998162000a7a565b82525050565b600060408201905062000ab6600083018562000a8e565b62000ac5602083018462000a8e565b9392505050565b600060208201905062000ae3600083018462000a8e565b92915050565b600082825260208201905092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600062000b3260108362000ae9565b915062000b3f8262000afa565b602082019050919050565b6000602082019050818103600083015262000b658162000b23565b9050919050565b6152cb8062000b7c6000396000f3fe6080604052600436106102045760003560e01c80635c975abb1161011857806395d89b41116100a0578063c87b56dd1161006f578063c87b56dd1461071f578063d5abeb011461075c578063e985e9c514610787578063f2fde38b146107c4578063fa30297e146107ed57610204565b806395d89b4114610686578063a22cb465146106b1578063acd379cc146106da578063b88d4fde146106f657610204565b8063715018a6116100e7578063715018a6146105d95780638456cb59146105f0578063889a3f19146106075780638cd370ed146106325780638da5cb5b1461065b57610204565b80635c975abb146105095780636352211e1461053457806369b538241461057157806370a082311461059c57610204565b8063375a069a1161019b57806342966c681161016a57806342966c68146104265780634e91cf1d1461044f5780634f07de091461047a5780634f6ccce7146104a357806355f804b3146104e057610204565b8063375a069a146103a65780633ccfd60b146103cf5780633f4ba83a146103e657806342842e0e146103fd57610204565b806318160ddd116101d757806318160ddd146102d757806323b872dd146103025780632a55205a1461032b5780632f745c591461036957610204565b806301ffc9a71461020957806306fdde0314610246578063081812fc14610271578063095ea7b3146102ae575b600080fd5b34801561021557600080fd5b50610230600480360381019061022b919061355f565b61082a565b60405161023d91906135a7565b60405180910390f35b34801561025257600080fd5b5061025b6108a4565b6040516102689190613652565b60405180910390f35b34801561027d57600080fd5b50610298600480360381019061029391906136aa565b610936565b6040516102a59190613718565b60405180910390f35b3480156102ba57600080fd5b506102d560048036038101906102d0919061375f565b61097c565b005b3480156102e357600080fd5b506102ec610a93565b6040516102f991906137ae565b60405180910390f35b34801561030e57600080fd5b50610329600480360381019061032491906137c9565b610aa0565b005b34801561033757600080fd5b50610352600480360381019061034d919061381c565b610c82565b60405161036092919061385c565b60405180910390f35b34801561037557600080fd5b50610390600480360381019061038b919061375f565b610cb3565b60405161039d91906137ae565b60405180910390f35b3480156103b257600080fd5b506103cd60048036038101906103c891906136aa565b610d58565b005b3480156103db57600080fd5b506103e4610df6565b005b3480156103f257600080fd5b506103fb610e91565b005b34801561040957600080fd5b50610424600480360381019061041f91906137c9565b610ea3565b005b34801561043257600080fd5b5061044d600480360381019061044891906136aa565b611085565b005b34801561045b57600080fd5b506104646110e1565b60405161047191906135a7565b60405180910390f35b34801561048657600080fd5b506104a1600480360381019061049c91906136aa565b6110f4565b005b3480156104af57600080fd5b506104ca60048036038101906104c591906136aa565b611106565b6040516104d791906137ae565b60405180910390f35b3480156104ec57600080fd5b50610507600480360381019061050291906139ba565b611177565b005b34801561051557600080fd5b5061051e611192565b60405161052b91906135a7565b60405180910390f35b34801561054057600080fd5b5061055b600480360381019061055691906136aa565b6111a9565b6040516105689190613718565b60405180910390f35b34801561057d57600080fd5b5061058661125a565b60405161059391906137ae565b60405180910390f35b3480156105a857600080fd5b506105c360048036038101906105be9190613a03565b611260565b6040516105d091906137ae565b60405180910390f35b3480156105e557600080fd5b506105ee611317565b005b3480156105fc57600080fd5b5061060561132b565b005b34801561061357600080fd5b5061061c61133d565b6040516106299190613652565b60405180910390f35b34801561063e57600080fd5b5061065960048036038101906106549190613a5c565b6113cb565b005b34801561066757600080fd5b50610670611427565b60405161067d9190613718565b60405180910390f35b34801561069257600080fd5b5061069b611451565b6040516106a89190613652565b60405180910390f35b3480156106bd57600080fd5b506106d860048036038101906106d39190613a89565b6114e3565b005b6106f460048036038101906106ef9190613ba0565b6114f9565b005b34801561070257600080fd5b5061071d60048036038101906107189190613bfc565b61174b565b005b34801561072b57600080fd5b50610746600480360381019061074191906136aa565b611930565b6040516107539190613652565b60405180910390f35b34801561076857600080fd5b506107716119d8565b60405161077e91906137ae565b60405180910390f35b34801561079357600080fd5b506107ae60048036038101906107a99190613c7f565b6119de565b6040516107bb91906135a7565b60405180910390f35b3480156107d057600080fd5b506107eb60048036038101906107e69190613a03565b611a72565b005b3480156107f957600080fd5b50610814600480360381019061080f9190613a03565b611af5565b60405161082191906137ae565b60405180910390f35b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061089d575061089c82611b23565b5b9050919050565b6060600080546108b390613cee565b80601f01602080910402602001604051908101604052809291908181526020018280546108df90613cee565b801561092c5780601f106109015761010080835404028352916020019161092c565b820191906000526020600020905b81548152906001019060200180831161090f57829003601f168201915b5050505050905090565b600061094182611b9d565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610987826111a9565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036109f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ee90613d91565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a16611be8565b73ffffffffffffffffffffffffffffffffffffffff161480610a455750610a4481610a3f611be8565b6119de565b5b610a84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7b90613e23565b60405180910390fd5b610a8e8383611bf0565b505050565b6000600880549050905090565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610c70573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b1257610b0d848484611ca9565b610c7c565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610b5b929190613e43565b602060405180830381865afa158015610b78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9c9190613e81565b8015610c2e57506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401610bec929190613e43565b602060405180830381865afa158015610c09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2d9190613e81565b5b610c6f57336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610c669190613718565b60405180910390fd5b5b610c7b848484611ca9565b5b50505050565b600080610c8d611427565b61271060115485610c9e9190613edd565b610ca89190613f4e565b915091509250929050565b6000610cbe83611260565b8210610cff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf690613ff1565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610d60611d09565b600e5481610d6c610a93565b610d769190614011565b1115610db7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dae90614091565b60405180910390fd5b60005b81811015610df257610dd533610dd0600b611d87565b611d95565b610ddf600b611b0d565b8080610dea906140b1565b915050610dba565b5050565b610dfe611d09565b60004711610e41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3890614145565b60405180910390fd5b610e49611427565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610e8e573d6000803e3d6000fd5b50565b610e99611d09565b610ea1611db3565b565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611073573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f1557610f10848484611e16565b61107f565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610f5e929190613e43565b602060405180830381865afa158015610f7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9f9190613e81565b801561103157506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401610fef929190613e43565b602060405180830381865afa15801561100c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110309190613e81565b5b61107257336040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016110699190613718565b60405180910390fd5b5b61107e848484611e16565b5b50505050565b611096611090611be8565b82611e36565b6110d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110cc906141d7565b60405180910390fd5b6110de81611ecb565b50565b600c60009054906101000a900460ff1681565b6110fc611d09565b8060118190555050565b6000611110610a93565b8210611151576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114890614269565b60405180910390fd5b6008828154811061116557611164614289565b5b90600052602060002001549050919050565b61117f611d09565b806010908161118e9190614464565b5050565b6000600a60009054906101000a900460ff16905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611251576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124890614582565b60405180910390fd5b80915050919050565b60115481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036112d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c790614614565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61131f611d09565b6113296000611fe8565b565b611333611d09565b61133b6120ae565b565b6010805461134a90613cee565b80601f016020809104026020016040519081016040528092919081815260200182805461137690613cee565b80156113c35780601f10611398576101008083540402835291602001916113c3565b820191906000526020600020905b8154815290600101906020018083116113a657829003601f168201915b505050505081565b6113d3611d09565b80600c60006101000a81548160ff0219169083151502179055507faa9f43701634eb888afd902fdec2daacfc955083394317e5a51836691f31eae98160405161141c91906135a7565b60405180910390a150565b6000600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461146090613cee565b80601f016020809104026020016040519081016040528092919081815260200182805461148c90613cee565b80156114d95780601f106114ae576101008083540402835291602001916114d9565b820191906000526020600020905b8154815290600101906020018083116114bc57829003601f168201915b5050505050905090565b6114f56114ee611be8565b8383612111565b5050565b61150161227d565b600e54600161150e610a93565b6115189190614011565b1115611559576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155090614091565b60405180910390fd5b600c60009054906101000a900460ff161561169057611576611427565b73ffffffffffffffffffffffffffffffffffffffff1661159683836122c7565b73ffffffffffffffffffffffffffffffffffffffff16146115ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e390614680565b60405180910390fd5b600d816040516115fc91906146e7565b908152602001604051809103902060009054906101000a900460ff1615611658576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164f9061474a565b60405180910390fd5b6001600d8260405161166a91906146e7565b908152602001604051809103902060006101000a81548160ff0219169083151502179055505b7f4e3883c75cc9c752bb1db2e406a822e4a75067ae77ad9a0a4d179f2709b9e1f66116bb600b611d87565b3360016040516116cd939291906147a5565b60405180910390a16116e8336116e3600b611d87565b611d95565b6116f2600b611b0d565b600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190611742906140b1565b91905055505050565b8360006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111561191c573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036117be576117b985858585612306565b611929565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401611807929190613e43565b602060405180830381865afa158015611824573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118489190613e81565b80156118da57506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611898929190613e43565b602060405180830381865afa1580156118b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d99190613e81565b5b61191b57336040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016119129190613718565b60405180910390fd5b5b61192885858585612306565b5b5050505050565b606061193b82612368565b61197a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197190614828565b60405180910390fd5b60006010805461198990613cee565b9050116119a557604051806020016040528060008152506119d1565b60106119b0836123d4565b6040516020016119c1929190614907565b6040516020818303038152906040525b9050919050565b600e5481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a7a611d09565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ae9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae09061499d565b60405180910390fd5b611af281611fe8565b50565b600f6020528060005260406000206000915090505481565b6001816000016000828254019250508190555050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611b965750611b9582612534565b5b9050919050565b611ba681612368565b611be5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bdc90614582565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611c63836111a9565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611cba611cb4611be8565b82611e36565b611cf9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf0906141d7565b60405180910390fd5b611d04838383612616565b505050565b611d11611be8565b73ffffffffffffffffffffffffffffffffffffffff16611d2f611427565b73ffffffffffffffffffffffffffffffffffffffff1614611d85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7c90614a09565b60405180910390fd5b565b600081600001549050919050565b611daf82826040518060200160405280600081525061287c565b5050565b611dbb6128d7565b6000600a60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611dff611be8565b604051611e0c9190613718565b60405180910390a1565b611e318383836040518060200160405280600081525061174b565b505050565b600080611e42836111a9565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611e845750611e8381856119de565b5b80611ec257508373ffffffffffffffffffffffffffffffffffffffff16611eaa84610936565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b6000611ed6826111a9565b9050611ee481600084612920565b611eef600083611bf0565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f3f9190614a29565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611fe481600084612938565b5050565b6000600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6120b661227d565b6001600a60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120fa611be8565b6040516121079190613718565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361217f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217690614aa9565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161227091906135a7565b60405180910390a3505050565b612285611192565b156122c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122bc90614b15565b60405180910390fd5b565b600080836040516020016122db9190614ba2565b6040516020818303038152906040528051906020012090506122fd818461293d565b91505092915050565b612317612311611be8565b83611e36565b612356576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161234d906141d7565b60405180910390fd5b61236284848484612964565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60606000820361241b576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061252f565b600082905060005b6000821461244d578080612436906140b1565b915050600a826124469190613f4e565b9150612423565b60008167ffffffffffffffff8111156124695761246861388f565b5b6040519080825280601f01601f19166020018201604052801561249b5781602001600182028036833780820191505090505b5090505b60008514612528576001826124b49190614a29565b9150600a856124c39190614bc8565b60306124cf9190614011565b60f81b8183815181106124e5576124e4614289565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856125219190613f4e565b945061249f565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806125ff57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061260f575061260e826129c0565b5b9050919050565b8273ffffffffffffffffffffffffffffffffffffffff16612636826111a9565b73ffffffffffffffffffffffffffffffffffffffff161461268c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161268390614c6b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036126fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f290614cfd565b60405180910390fd5b612706838383612920565b612711600082611bf0565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127619190614a29565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127b89190614011565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612877838383612938565b505050565b6128868383612a2a565b6128936000848484612c03565b6128d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c990614d8f565b60405180910390fd5b505050565b6128df611192565b61291e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161291590614dfb565b60405180910390fd5b565b61292861227d565b612933838383612d8a565b505050565b505050565b600080600061294c8585612e9c565b9150915061295981612eed565b819250505092915050565b61296f848484612616565b61297b84848484612c03565b6129ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129b190614d8f565b60405180910390fd5b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612a99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9090614e67565b60405180910390fd5b612aa281612368565b15612ae2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ad990614ed3565b60405180910390fd5b612aee60008383612920565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b3e9190614011565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612bff60008383612938565b5050565b6000612c248473ffffffffffffffffffffffffffffffffffffffff166130b9565b15612d7d578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612c4d611be8565b8786866040518563ffffffff1660e01b8152600401612c6f9493929190614f3d565b6020604051808303816000875af1925050508015612cab57506040513d601f19601f82011682018060405250810190612ca89190614f9e565b60015b612d2d573d8060008114612cdb576040519150601f19603f3d011682016040523d82523d6000602084013e612ce0565b606091505b506000815103612d25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1c90614d8f565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612d82565b600190505b949350505050565b612d958383836130dc565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612dd757612dd2816130e1565b612e16565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612e1557612e14838261312a565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612e5857612e5381613297565b612e97565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612e9657612e958282613368565b5b5b505050565b6000806041835103612edd5760008060006020860151925060408601519150606086015160001a9050612ed1878285856133e7565b94509450505050612ee6565b60006002915091505b9250929050565b60006004811115612f0157612f00614fcb565b5b816004811115612f1457612f13614fcb565b5b03156130b65760016004811115612f2e57612f2d614fcb565b5b816004811115612f4157612f40614fcb565b5b03612f81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f7890615046565b60405180910390fd5b60026004811115612f9557612f94614fcb565b5b816004811115612fa857612fa7614fcb565b5b03612fe8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fdf906150b2565b60405180910390fd5b60036004811115612ffc57612ffb614fcb565b5b81600481111561300f5761300e614fcb565b5b0361304f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161304690615144565b60405180910390fd5b60048081111561306257613061614fcb565b5b81600481111561307557613074614fcb565b5b036130b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130ac906151d6565b60405180910390fd5b5b50565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161313784611260565b6131419190614a29565b9050600060076000848152602001908152602001600020549050818114613226576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506132ab9190614a29565b90506000600960008481526020019081526020016000205490506000600883815481106132db576132da614289565b5b9060005260206000200154905080600883815481106132fd576132fc614289565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061334c5761334b6151f6565b5b6001900381819060005260206000200160009055905550505050565b600061337383611260565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156134225760006003915091506134ea565b601b8560ff161415801561343a5750601c8560ff1614155b1561344c5760006004915091506134ea565b6000600187878787604051600081526020016040526040516134719493929190615250565b6020604051602081039080840390855afa158015613493573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036134e1576000600192509250506134ea565b80600092509250505b94509492505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61353c81613507565b811461354757600080fd5b50565b60008135905061355981613533565b92915050565b600060208284031215613575576135746134fd565b5b60006135838482850161354a565b91505092915050565b60008115159050919050565b6135a18161358c565b82525050565b60006020820190506135bc6000830184613598565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156135fc5780820151818401526020810190506135e1565b60008484015250505050565b6000601f19601f8301169050919050565b6000613624826135c2565b61362e81856135cd565b935061363e8185602086016135de565b61364781613608565b840191505092915050565b6000602082019050818103600083015261366c8184613619565b905092915050565b6000819050919050565b61368781613674565b811461369257600080fd5b50565b6000813590506136a48161367e565b92915050565b6000602082840312156136c0576136bf6134fd565b5b60006136ce84828501613695565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613702826136d7565b9050919050565b613712816136f7565b82525050565b600060208201905061372d6000830184613709565b92915050565b61373c816136f7565b811461374757600080fd5b50565b60008135905061375981613733565b92915050565b60008060408385031215613776576137756134fd565b5b60006137848582860161374a565b925050602061379585828601613695565b9150509250929050565b6137a881613674565b82525050565b60006020820190506137c3600083018461379f565b92915050565b6000806000606084860312156137e2576137e16134fd565b5b60006137f08682870161374a565b93505060206138018682870161374a565b925050604061381286828701613695565b9150509250925092565b60008060408385031215613833576138326134fd565b5b600061384185828601613695565b925050602061385285828601613695565b9150509250929050565b60006040820190506138716000830185613709565b61387e602083018461379f565b9392505050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6138c782613608565b810181811067ffffffffffffffff821117156138e6576138e561388f565b5b80604052505050565b60006138f96134f3565b905061390582826138be565b919050565b600067ffffffffffffffff8211156139255761392461388f565b5b61392e82613608565b9050602081019050919050565b82818337600083830152505050565b600061395d6139588461390a565b6138ef565b9050828152602081018484840111156139795761397861388a565b5b61398484828561393b565b509392505050565b600082601f8301126139a1576139a0613885565b5b81356139b184826020860161394a565b91505092915050565b6000602082840312156139d0576139cf6134fd565b5b600082013567ffffffffffffffff8111156139ee576139ed613502565b5b6139fa8482850161398c565b91505092915050565b600060208284031215613a1957613a186134fd565b5b6000613a278482850161374a565b91505092915050565b613a398161358c565b8114613a4457600080fd5b50565b600081359050613a5681613a30565b92915050565b600060208284031215613a7257613a716134fd565b5b6000613a8084828501613a47565b91505092915050565b60008060408385031215613aa057613a9f6134fd565b5b6000613aae8582860161374a565b9250506020613abf85828601613a47565b9150509250929050565b6000819050919050565b613adc81613ac9565b8114613ae757600080fd5b50565b600081359050613af981613ad3565b92915050565b600067ffffffffffffffff821115613b1a57613b1961388f565b5b613b2382613608565b9050602081019050919050565b6000613b43613b3e84613aff565b6138ef565b905082815260208101848484011115613b5f57613b5e61388a565b5b613b6a84828561393b565b509392505050565b600082601f830112613b8757613b86613885565b5b8135613b97848260208601613b30565b91505092915050565b60008060408385031215613bb757613bb66134fd565b5b6000613bc585828601613aea565b925050602083013567ffffffffffffffff811115613be657613be5613502565b5b613bf285828601613b72565b9150509250929050565b60008060008060808587031215613c1657613c156134fd565b5b6000613c248782880161374a565b9450506020613c358782880161374a565b9350506040613c4687828801613695565b925050606085013567ffffffffffffffff811115613c6757613c66613502565b5b613c7387828801613b72565b91505092959194509250565b60008060408385031215613c9657613c956134fd565b5b6000613ca48582860161374a565b9250506020613cb58582860161374a565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613d0657607f821691505b602082108103613d1957613d18613cbf565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613d7b6021836135cd565b9150613d8682613d1f565b604082019050919050565b60006020820190508181036000830152613daa81613d6e565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613e0d603e836135cd565b9150613e1882613db1565b604082019050919050565b60006020820190508181036000830152613e3c81613e00565b9050919050565b6000604082019050613e586000830185613709565b613e656020830184613709565b9392505050565b600081519050613e7b81613a30565b92915050565b600060208284031215613e9757613e966134fd565b5b6000613ea584828501613e6c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613ee882613674565b9150613ef383613674565b9250828202613f0181613674565b91508282048414831517613f1857613f17613eae565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613f5982613674565b9150613f6483613674565b925082613f7457613f73613f1f565b5b828204905092915050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613fdb602b836135cd565b9150613fe682613f7f565b604082019050919050565b6000602082019050818103600083015261400a81613fce565b9050919050565b600061401c82613674565b915061402783613674565b925082820190508082111561403f5761403e613eae565b5b92915050565b7f416d6f756e74206578636565647320737570706c792e00000000000000000000600082015250565b600061407b6016836135cd565b915061408682614045565b602082019050919050565b600060208201905081810360008301526140aa8161406e565b9050919050565b60006140bc82613674565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036140ee576140ed613eae565b5b600182019050919050565b7f42616c616e6365206973207a65726f0000000000000000000000000000000000600082015250565b600061412f600f836135cd565b915061413a826140f9565b602082019050919050565b6000602082019050818103600083015261415e81614122565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b60006141c1602e836135cd565b91506141cc82614165565b604082019050919050565b600060208201905081810360008301526141f0816141b4565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614253602c836135cd565b915061425e826141f7565b604082019050919050565b6000602082019050818103600083015261428281614246565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261431a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826142dd565b61432486836142dd565b95508019841693508086168417925050509392505050565b6000819050919050565b600061436161435c61435784613674565b61433c565b613674565b9050919050565b6000819050919050565b61437b83614346565b61438f61438782614368565b8484546142ea565b825550505050565b600090565b6143a4614397565b6143af818484614372565b505050565b5b818110156143d3576143c860008261439c565b6001810190506143b5565b5050565b601f821115614418576143e9816142b8565b6143f2846142cd565b81016020851015614401578190505b61441561440d856142cd565b8301826143b4565b50505b505050565b600082821c905092915050565b600061443b6000198460080261441d565b1980831691505092915050565b6000614454838361442a565b9150826002028217905092915050565b61446d826135c2565b67ffffffffffffffff8111156144865761448561388f565b5b6144908254613cee565b61449b8282856143d7565b600060209050601f8311600181146144ce57600084156144bc578287015190505b6144c68582614448565b86555061452e565b601f1984166144dc866142b8565b60005b82811015614504578489015182556001820191506020850194506020810190506144df565b86831015614521578489015161451d601f89168261442a565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b600061456c6018836135cd565b915061457782614536565b602082019050919050565b6000602082019050818103600083015261459b8161455f565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006145fe6029836135cd565b9150614609826145a2565b604082019050919050565b6000602082019050818103600083015261462d816145f1565b9050919050565b7f41646472657373206973206e6f7420616c6c6f776c6973746564000000000000600082015250565b600061466a601a836135cd565b915061467582614634565b602082019050919050565b600060208201905081810360008301526146998161465d565b9050919050565b600081519050919050565b600081905092915050565b60006146c1826146a0565b6146cb81856146ab565b93506146db8185602086016135de565b80840191505092915050565b60006146f382846146b6565b915081905092915050565b7f5369676e61747572652068617320616c7265616479206265656e20757365642e600082015250565b60006147346020836135cd565b915061473f826146fe565b602082019050919050565b6000602082019050818103600083015261476381614727565b9050919050565b6000819050919050565b600061478f61478a6147858461476a565b61433c565b613674565b9050919050565b61479f81614774565b82525050565b60006060820190506147ba600083018661379f565b6147c76020830185613709565b6147d46040830184614796565b949350505050565b7f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00600082015250565b6000614812601f836135cd565b915061481d826147dc565b602082019050919050565b6000602082019050818103600083015261484181614805565b9050919050565b600081905092915050565b6000815461486081613cee565b61486a8186614848565b94506001821660008114614885576001811461489a576148cd565b60ff19831686528115158202860193506148cd565b6148a3856142b8565b60005b838110156148c5578154818901526001820191506020810190506148a6565b838801955050505b50505092915050565b60006148e1826135c2565b6148eb8185614848565b93506148fb8185602086016135de565b80840191505092915050565b60006149138285614853565b915061491f82846148d6565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006149876026836135cd565b91506149928261492b565b604082019050919050565b600060208201905081810360008301526149b68161497a565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006149f36020836135cd565b91506149fe826149bd565b602082019050919050565b60006020820190508181036000830152614a22816149e6565b9050919050565b6000614a3482613674565b9150614a3f83613674565b9250828203905081811115614a5757614a56613eae565b5b92915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614a936019836135cd565b9150614a9e82614a5d565b602082019050919050565b60006020820190508181036000830152614ac281614a86565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000614aff6010836135cd565b9150614b0a82614ac9565b602082019050919050565b60006020820190508181036000830152614b2e81614af2565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000614b6b601c83614848565b9150614b7682614b35565b601c82019050919050565b6000819050919050565b614b9c614b9782613ac9565b614b81565b82525050565b6000614bad82614b5e565b9150614bb98284614b8b565b60208201915081905092915050565b6000614bd382613674565b9150614bde83613674565b925082614bee57614bed613f1f565b5b828206905092915050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614c556025836135cd565b9150614c6082614bf9565b604082019050919050565b60006020820190508181036000830152614c8481614c48565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614ce76024836135cd565b9150614cf282614c8b565b604082019050919050565b60006020820190508181036000830152614d1681614cda565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614d796032836135cd565b9150614d8482614d1d565b604082019050919050565b60006020820190508181036000830152614da881614d6c565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614de56014836135cd565b9150614df082614daf565b602082019050919050565b60006020820190508181036000830152614e1481614dd8565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614e516020836135cd565b9150614e5c82614e1b565b602082019050919050565b60006020820190508181036000830152614e8081614e44565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614ebd601c836135cd565b9150614ec882614e87565b602082019050919050565b60006020820190508181036000830152614eec81614eb0565b9050919050565b600082825260208201905092915050565b6000614f0f826146a0565b614f198185614ef3565b9350614f298185602086016135de565b614f3281613608565b840191505092915050565b6000608082019050614f526000830187613709565b614f5f6020830186613709565b614f6c604083018561379f565b8181036060830152614f7e8184614f04565b905095945050505050565b600081519050614f9881613533565b92915050565b600060208284031215614fb457614fb36134fd565b5b6000614fc284828501614f89565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006150306018836135cd565b915061503b82614ffa565b602082019050919050565b6000602082019050818103600083015261505f81615023565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b600061509c601f836135cd565b91506150a782615066565b602082019050919050565b600060208201905081810360008301526150cb8161508f565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b600061512e6022836135cd565b9150615139826150d2565b604082019050919050565b6000602082019050818103600083015261515d81615121565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006151c06022836135cd565b91506151cb82615164565b604082019050919050565b600060208201905081810360008301526151ef816151b3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b61522e81613ac9565b82525050565b600060ff82169050919050565b61524a81615234565b82525050565b60006080820190506152656000830187615225565b6152726020830186615241565b61527f6040830185615225565b61528c6060830184615225565b9594505050505056fea2646970667358221220050e744ad5ada2b3214534efcbcb7f2df32a3dd2a6e736ab74bbafbb534280ac64736f6c634300081100330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002a68747470733a2f2f6170692e61657468657267616d65732e696f2f6765742f656d6f7465735f6574682f00000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102045760003560e01c80635c975abb1161011857806395d89b41116100a0578063c87b56dd1161006f578063c87b56dd1461071f578063d5abeb011461075c578063e985e9c514610787578063f2fde38b146107c4578063fa30297e146107ed57610204565b806395d89b4114610686578063a22cb465146106b1578063acd379cc146106da578063b88d4fde146106f657610204565b8063715018a6116100e7578063715018a6146105d95780638456cb59146105f0578063889a3f19146106075780638cd370ed146106325780638da5cb5b1461065b57610204565b80635c975abb146105095780636352211e1461053457806369b538241461057157806370a082311461059c57610204565b8063375a069a1161019b57806342966c681161016a57806342966c68146104265780634e91cf1d1461044f5780634f07de091461047a5780634f6ccce7146104a357806355f804b3146104e057610204565b8063375a069a146103a65780633ccfd60b146103cf5780633f4ba83a146103e657806342842e0e146103fd57610204565b806318160ddd116101d757806318160ddd146102d757806323b872dd146103025780632a55205a1461032b5780632f745c591461036957610204565b806301ffc9a71461020957806306fdde0314610246578063081812fc14610271578063095ea7b3146102ae575b600080fd5b34801561021557600080fd5b50610230600480360381019061022b919061355f565b61082a565b60405161023d91906135a7565b60405180910390f35b34801561025257600080fd5b5061025b6108a4565b6040516102689190613652565b60405180910390f35b34801561027d57600080fd5b50610298600480360381019061029391906136aa565b610936565b6040516102a59190613718565b60405180910390f35b3480156102ba57600080fd5b506102d560048036038101906102d0919061375f565b61097c565b005b3480156102e357600080fd5b506102ec610a93565b6040516102f991906137ae565b60405180910390f35b34801561030e57600080fd5b50610329600480360381019061032491906137c9565b610aa0565b005b34801561033757600080fd5b50610352600480360381019061034d919061381c565b610c82565b60405161036092919061385c565b60405180910390f35b34801561037557600080fd5b50610390600480360381019061038b919061375f565b610cb3565b60405161039d91906137ae565b60405180910390f35b3480156103b257600080fd5b506103cd60048036038101906103c891906136aa565b610d58565b005b3480156103db57600080fd5b506103e4610df6565b005b3480156103f257600080fd5b506103fb610e91565b005b34801561040957600080fd5b50610424600480360381019061041f91906137c9565b610ea3565b005b34801561043257600080fd5b5061044d600480360381019061044891906136aa565b611085565b005b34801561045b57600080fd5b506104646110e1565b60405161047191906135a7565b60405180910390f35b34801561048657600080fd5b506104a1600480360381019061049c91906136aa565b6110f4565b005b3480156104af57600080fd5b506104ca60048036038101906104c591906136aa565b611106565b6040516104d791906137ae565b60405180910390f35b3480156104ec57600080fd5b50610507600480360381019061050291906139ba565b611177565b005b34801561051557600080fd5b5061051e611192565b60405161052b91906135a7565b60405180910390f35b34801561054057600080fd5b5061055b600480360381019061055691906136aa565b6111a9565b6040516105689190613718565b60405180910390f35b34801561057d57600080fd5b5061058661125a565b60405161059391906137ae565b60405180910390f35b3480156105a857600080fd5b506105c360048036038101906105be9190613a03565b611260565b6040516105d091906137ae565b60405180910390f35b3480156105e557600080fd5b506105ee611317565b005b3480156105fc57600080fd5b5061060561132b565b005b34801561061357600080fd5b5061061c61133d565b6040516106299190613652565b60405180910390f35b34801561063e57600080fd5b5061065960048036038101906106549190613a5c565b6113cb565b005b34801561066757600080fd5b50610670611427565b60405161067d9190613718565b60405180910390f35b34801561069257600080fd5b5061069b611451565b6040516106a89190613652565b60405180910390f35b3480156106bd57600080fd5b506106d860048036038101906106d39190613a89565b6114e3565b005b6106f460048036038101906106ef9190613ba0565b6114f9565b005b34801561070257600080fd5b5061071d60048036038101906107189190613bfc565b61174b565b005b34801561072b57600080fd5b50610746600480360381019061074191906136aa565b611930565b6040516107539190613652565b60405180910390f35b34801561076857600080fd5b506107716119d8565b60405161077e91906137ae565b60405180910390f35b34801561079357600080fd5b506107ae60048036038101906107a99190613c7f565b6119de565b6040516107bb91906135a7565b60405180910390f35b3480156107d057600080fd5b506107eb60048036038101906107e69190613a03565b611a72565b005b3480156107f957600080fd5b50610814600480360381019061080f9190613a03565b611af5565b60405161082191906137ae565b60405180910390f35b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061089d575061089c82611b23565b5b9050919050565b6060600080546108b390613cee565b80601f01602080910402602001604051908101604052809291908181526020018280546108df90613cee565b801561092c5780601f106109015761010080835404028352916020019161092c565b820191906000526020600020905b81548152906001019060200180831161090f57829003601f168201915b5050505050905090565b600061094182611b9d565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610987826111a9565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036109f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ee90613d91565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a16611be8565b73ffffffffffffffffffffffffffffffffffffffff161480610a455750610a4481610a3f611be8565b6119de565b5b610a84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7b90613e23565b60405180910390fd5b610a8e8383611bf0565b505050565b6000600880549050905090565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610c70573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b1257610b0d848484611ca9565b610c7c565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610b5b929190613e43565b602060405180830381865afa158015610b78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9c9190613e81565b8015610c2e57506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401610bec929190613e43565b602060405180830381865afa158015610c09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2d9190613e81565b5b610c6f57336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610c669190613718565b60405180910390fd5b5b610c7b848484611ca9565b5b50505050565b600080610c8d611427565b61271060115485610c9e9190613edd565b610ca89190613f4e565b915091509250929050565b6000610cbe83611260565b8210610cff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf690613ff1565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610d60611d09565b600e5481610d6c610a93565b610d769190614011565b1115610db7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dae90614091565b60405180910390fd5b60005b81811015610df257610dd533610dd0600b611d87565b611d95565b610ddf600b611b0d565b8080610dea906140b1565b915050610dba565b5050565b610dfe611d09565b60004711610e41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3890614145565b60405180910390fd5b610e49611427565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610e8e573d6000803e3d6000fd5b50565b610e99611d09565b610ea1611db3565b565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611073573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f1557610f10848484611e16565b61107f565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610f5e929190613e43565b602060405180830381865afa158015610f7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9f9190613e81565b801561103157506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401610fef929190613e43565b602060405180830381865afa15801561100c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110309190613e81565b5b61107257336040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016110699190613718565b60405180910390fd5b5b61107e848484611e16565b5b50505050565b611096611090611be8565b82611e36565b6110d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110cc906141d7565b60405180910390fd5b6110de81611ecb565b50565b600c60009054906101000a900460ff1681565b6110fc611d09565b8060118190555050565b6000611110610a93565b8210611151576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114890614269565b60405180910390fd5b6008828154811061116557611164614289565b5b90600052602060002001549050919050565b61117f611d09565b806010908161118e9190614464565b5050565b6000600a60009054906101000a900460ff16905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611251576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124890614582565b60405180910390fd5b80915050919050565b60115481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036112d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c790614614565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61131f611d09565b6113296000611fe8565b565b611333611d09565b61133b6120ae565b565b6010805461134a90613cee565b80601f016020809104026020016040519081016040528092919081815260200182805461137690613cee565b80156113c35780601f10611398576101008083540402835291602001916113c3565b820191906000526020600020905b8154815290600101906020018083116113a657829003601f168201915b505050505081565b6113d3611d09565b80600c60006101000a81548160ff0219169083151502179055507faa9f43701634eb888afd902fdec2daacfc955083394317e5a51836691f31eae98160405161141c91906135a7565b60405180910390a150565b6000600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461146090613cee565b80601f016020809104026020016040519081016040528092919081815260200182805461148c90613cee565b80156114d95780601f106114ae576101008083540402835291602001916114d9565b820191906000526020600020905b8154815290600101906020018083116114bc57829003601f168201915b5050505050905090565b6114f56114ee611be8565b8383612111565b5050565b61150161227d565b600e54600161150e610a93565b6115189190614011565b1115611559576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155090614091565b60405180910390fd5b600c60009054906101000a900460ff161561169057611576611427565b73ffffffffffffffffffffffffffffffffffffffff1661159683836122c7565b73ffffffffffffffffffffffffffffffffffffffff16146115ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e390614680565b60405180910390fd5b600d816040516115fc91906146e7565b908152602001604051809103902060009054906101000a900460ff1615611658576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164f9061474a565b60405180910390fd5b6001600d8260405161166a91906146e7565b908152602001604051809103902060006101000a81548160ff0219169083151502179055505b7f4e3883c75cc9c752bb1db2e406a822e4a75067ae77ad9a0a4d179f2709b9e1f66116bb600b611d87565b3360016040516116cd939291906147a5565b60405180910390a16116e8336116e3600b611d87565b611d95565b6116f2600b611b0d565b600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190611742906140b1565b91905055505050565b8360006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111561191c573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036117be576117b985858585612306565b611929565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401611807929190613e43565b602060405180830381865afa158015611824573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118489190613e81565b80156118da57506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611898929190613e43565b602060405180830381865afa1580156118b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d99190613e81565b5b61191b57336040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016119129190613718565b60405180910390fd5b5b61192885858585612306565b5b5050505050565b606061193b82612368565b61197a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197190614828565b60405180910390fd5b60006010805461198990613cee565b9050116119a557604051806020016040528060008152506119d1565b60106119b0836123d4565b6040516020016119c1929190614907565b6040516020818303038152906040525b9050919050565b600e5481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a7a611d09565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611ae9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae09061499d565b60405180910390fd5b611af281611fe8565b50565b600f6020528060005260406000206000915090505481565b6001816000016000828254019250508190555050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611b965750611b9582612534565b5b9050919050565b611ba681612368565b611be5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bdc90614582565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611c63836111a9565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611cba611cb4611be8565b82611e36565b611cf9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf0906141d7565b60405180910390fd5b611d04838383612616565b505050565b611d11611be8565b73ffffffffffffffffffffffffffffffffffffffff16611d2f611427565b73ffffffffffffffffffffffffffffffffffffffff1614611d85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7c90614a09565b60405180910390fd5b565b600081600001549050919050565b611daf82826040518060200160405280600081525061287c565b5050565b611dbb6128d7565b6000600a60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611dff611be8565b604051611e0c9190613718565b60405180910390a1565b611e318383836040518060200160405280600081525061174b565b505050565b600080611e42836111a9565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611e845750611e8381856119de565b5b80611ec257508373ffffffffffffffffffffffffffffffffffffffff16611eaa84610936565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b6000611ed6826111a9565b9050611ee481600084612920565b611eef600083611bf0565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f3f9190614a29565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611fe481600084612938565b5050565b6000600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6120b661227d565b6001600a60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120fa611be8565b6040516121079190613718565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361217f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217690614aa9565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161227091906135a7565b60405180910390a3505050565b612285611192565b156122c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122bc90614b15565b60405180910390fd5b565b600080836040516020016122db9190614ba2565b6040516020818303038152906040528051906020012090506122fd818461293d565b91505092915050565b612317612311611be8565b83611e36565b612356576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161234d906141d7565b60405180910390fd5b61236284848484612964565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60606000820361241b576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061252f565b600082905060005b6000821461244d578080612436906140b1565b915050600a826124469190613f4e565b9150612423565b60008167ffffffffffffffff8111156124695761246861388f565b5b6040519080825280601f01601f19166020018201604052801561249b5781602001600182028036833780820191505090505b5090505b60008514612528576001826124b49190614a29565b9150600a856124c39190614bc8565b60306124cf9190614011565b60f81b8183815181106124e5576124e4614289565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856125219190613f4e565b945061249f565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806125ff57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061260f575061260e826129c0565b5b9050919050565b8273ffffffffffffffffffffffffffffffffffffffff16612636826111a9565b73ffffffffffffffffffffffffffffffffffffffff161461268c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161268390614c6b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036126fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f290614cfd565b60405180910390fd5b612706838383612920565b612711600082611bf0565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127619190614a29565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127b89190614011565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612877838383612938565b505050565b6128868383612a2a565b6128936000848484612c03565b6128d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c990614d8f565b60405180910390fd5b505050565b6128df611192565b61291e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161291590614dfb565b60405180910390fd5b565b61292861227d565b612933838383612d8a565b505050565b505050565b600080600061294c8585612e9c565b9150915061295981612eed565b819250505092915050565b61296f848484612616565b61297b84848484612c03565b6129ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129b190614d8f565b60405180910390fd5b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612a99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9090614e67565b60405180910390fd5b612aa281612368565b15612ae2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ad990614ed3565b60405180910390fd5b612aee60008383612920565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b3e9190614011565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612bff60008383612938565b5050565b6000612c248473ffffffffffffffffffffffffffffffffffffffff166130b9565b15612d7d578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612c4d611be8565b8786866040518563ffffffff1660e01b8152600401612c6f9493929190614f3d565b6020604051808303816000875af1925050508015612cab57506040513d601f19601f82011682018060405250810190612ca89190614f9e565b60015b612d2d573d8060008114612cdb576040519150601f19603f3d011682016040523d82523d6000602084013e612ce0565b606091505b506000815103612d25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d1c90614d8f565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612d82565b600190505b949350505050565b612d958383836130dc565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612dd757612dd2816130e1565b612e16565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612e1557612e14838261312a565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612e5857612e5381613297565b612e97565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612e9657612e958282613368565b5b5b505050565b6000806041835103612edd5760008060006020860151925060408601519150606086015160001a9050612ed1878285856133e7565b94509450505050612ee6565b60006002915091505b9250929050565b60006004811115612f0157612f00614fcb565b5b816004811115612f1457612f13614fcb565b5b03156130b65760016004811115612f2e57612f2d614fcb565b5b816004811115612f4157612f40614fcb565b5b03612f81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f7890615046565b60405180910390fd5b60026004811115612f9557612f94614fcb565b5b816004811115612fa857612fa7614fcb565b5b03612fe8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fdf906150b2565b60405180910390fd5b60036004811115612ffc57612ffb614fcb565b5b81600481111561300f5761300e614fcb565b5b0361304f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161304690615144565b60405180910390fd5b60048081111561306257613061614fcb565b5b81600481111561307557613074614fcb565b5b036130b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130ac906151d6565b60405180910390fd5b5b50565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161313784611260565b6131419190614a29565b9050600060076000848152602001908152602001600020549050818114613226576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506132ab9190614a29565b90506000600960008481526020019081526020016000205490506000600883815481106132db576132da614289565b5b9060005260206000200154905080600883815481106132fd576132fc614289565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061334c5761334b6151f6565b5b6001900381819060005260206000200160009055905550505050565b600061337383611260565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156134225760006003915091506134ea565b601b8560ff161415801561343a5750601c8560ff1614155b1561344c5760006004915091506134ea565b6000600187878787604051600081526020016040526040516134719493929190615250565b6020604051602081039080840390855afa158015613493573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036134e1576000600192509250506134ea565b80600092509250505b94509492505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61353c81613507565b811461354757600080fd5b50565b60008135905061355981613533565b92915050565b600060208284031215613575576135746134fd565b5b60006135838482850161354a565b91505092915050565b60008115159050919050565b6135a18161358c565b82525050565b60006020820190506135bc6000830184613598565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156135fc5780820151818401526020810190506135e1565b60008484015250505050565b6000601f19601f8301169050919050565b6000613624826135c2565b61362e81856135cd565b935061363e8185602086016135de565b61364781613608565b840191505092915050565b6000602082019050818103600083015261366c8184613619565b905092915050565b6000819050919050565b61368781613674565b811461369257600080fd5b50565b6000813590506136a48161367e565b92915050565b6000602082840312156136c0576136bf6134fd565b5b60006136ce84828501613695565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613702826136d7565b9050919050565b613712816136f7565b82525050565b600060208201905061372d6000830184613709565b92915050565b61373c816136f7565b811461374757600080fd5b50565b60008135905061375981613733565b92915050565b60008060408385031215613776576137756134fd565b5b60006137848582860161374a565b925050602061379585828601613695565b9150509250929050565b6137a881613674565b82525050565b60006020820190506137c3600083018461379f565b92915050565b6000806000606084860312156137e2576137e16134fd565b5b60006137f08682870161374a565b93505060206138018682870161374a565b925050604061381286828701613695565b9150509250925092565b60008060408385031215613833576138326134fd565b5b600061384185828601613695565b925050602061385285828601613695565b9150509250929050565b60006040820190506138716000830185613709565b61387e602083018461379f565b9392505050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6138c782613608565b810181811067ffffffffffffffff821117156138e6576138e561388f565b5b80604052505050565b60006138f96134f3565b905061390582826138be565b919050565b600067ffffffffffffffff8211156139255761392461388f565b5b61392e82613608565b9050602081019050919050565b82818337600083830152505050565b600061395d6139588461390a565b6138ef565b9050828152602081018484840111156139795761397861388a565b5b61398484828561393b565b509392505050565b600082601f8301126139a1576139a0613885565b5b81356139b184826020860161394a565b91505092915050565b6000602082840312156139d0576139cf6134fd565b5b600082013567ffffffffffffffff8111156139ee576139ed613502565b5b6139fa8482850161398c565b91505092915050565b600060208284031215613a1957613a186134fd565b5b6000613a278482850161374a565b91505092915050565b613a398161358c565b8114613a4457600080fd5b50565b600081359050613a5681613a30565b92915050565b600060208284031215613a7257613a716134fd565b5b6000613a8084828501613a47565b91505092915050565b60008060408385031215613aa057613a9f6134fd565b5b6000613aae8582860161374a565b9250506020613abf85828601613a47565b9150509250929050565b6000819050919050565b613adc81613ac9565b8114613ae757600080fd5b50565b600081359050613af981613ad3565b92915050565b600067ffffffffffffffff821115613b1a57613b1961388f565b5b613b2382613608565b9050602081019050919050565b6000613b43613b3e84613aff565b6138ef565b905082815260208101848484011115613b5f57613b5e61388a565b5b613b6a84828561393b565b509392505050565b600082601f830112613b8757613b86613885565b5b8135613b97848260208601613b30565b91505092915050565b60008060408385031215613bb757613bb66134fd565b5b6000613bc585828601613aea565b925050602083013567ffffffffffffffff811115613be657613be5613502565b5b613bf285828601613b72565b9150509250929050565b60008060008060808587031215613c1657613c156134fd565b5b6000613c248782880161374a565b9450506020613c358782880161374a565b9350506040613c4687828801613695565b925050606085013567ffffffffffffffff811115613c6757613c66613502565b5b613c7387828801613b72565b91505092959194509250565b60008060408385031215613c9657613c956134fd565b5b6000613ca48582860161374a565b9250506020613cb58582860161374a565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613d0657607f821691505b602082108103613d1957613d18613cbf565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613d7b6021836135cd565b9150613d8682613d1f565b604082019050919050565b60006020820190508181036000830152613daa81613d6e565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613e0d603e836135cd565b9150613e1882613db1565b604082019050919050565b60006020820190508181036000830152613e3c81613e00565b9050919050565b6000604082019050613e586000830185613709565b613e656020830184613709565b9392505050565b600081519050613e7b81613a30565b92915050565b600060208284031215613e9757613e966134fd565b5b6000613ea584828501613e6c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613ee882613674565b9150613ef383613674565b9250828202613f0181613674565b91508282048414831517613f1857613f17613eae565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613f5982613674565b9150613f6483613674565b925082613f7457613f73613f1f565b5b828204905092915050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613fdb602b836135cd565b9150613fe682613f7f565b604082019050919050565b6000602082019050818103600083015261400a81613fce565b9050919050565b600061401c82613674565b915061402783613674565b925082820190508082111561403f5761403e613eae565b5b92915050565b7f416d6f756e74206578636565647320737570706c792e00000000000000000000600082015250565b600061407b6016836135cd565b915061408682614045565b602082019050919050565b600060208201905081810360008301526140aa8161406e565b9050919050565b60006140bc82613674565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036140ee576140ed613eae565b5b600182019050919050565b7f42616c616e6365206973207a65726f0000000000000000000000000000000000600082015250565b600061412f600f836135cd565b915061413a826140f9565b602082019050919050565b6000602082019050818103600083015261415e81614122565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b60006141c1602e836135cd565b91506141cc82614165565b604082019050919050565b600060208201905081810360008301526141f0816141b4565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614253602c836135cd565b915061425e826141f7565b604082019050919050565b6000602082019050818103600083015261428281614246565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830261431a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826142dd565b61432486836142dd565b95508019841693508086168417925050509392505050565b6000819050919050565b600061436161435c61435784613674565b61433c565b613674565b9050919050565b6000819050919050565b61437b83614346565b61438f61438782614368565b8484546142ea565b825550505050565b600090565b6143a4614397565b6143af818484614372565b505050565b5b818110156143d3576143c860008261439c565b6001810190506143b5565b5050565b601f821115614418576143e9816142b8565b6143f2846142cd565b81016020851015614401578190505b61441561440d856142cd565b8301826143b4565b50505b505050565b600082821c905092915050565b600061443b6000198460080261441d565b1980831691505092915050565b6000614454838361442a565b9150826002028217905092915050565b61446d826135c2565b67ffffffffffffffff8111156144865761448561388f565b5b6144908254613cee565b61449b8282856143d7565b600060209050601f8311600181146144ce57600084156144bc578287015190505b6144c68582614448565b86555061452e565b601f1984166144dc866142b8565b60005b82811015614504578489015182556001820191506020850194506020810190506144df565b86831015614521578489015161451d601f89168261442a565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b600061456c6018836135cd565b915061457782614536565b602082019050919050565b6000602082019050818103600083015261459b8161455f565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006145fe6029836135cd565b9150614609826145a2565b604082019050919050565b6000602082019050818103600083015261462d816145f1565b9050919050565b7f41646472657373206973206e6f7420616c6c6f776c6973746564000000000000600082015250565b600061466a601a836135cd565b915061467582614634565b602082019050919050565b600060208201905081810360008301526146998161465d565b9050919050565b600081519050919050565b600081905092915050565b60006146c1826146a0565b6146cb81856146ab565b93506146db8185602086016135de565b80840191505092915050565b60006146f382846146b6565b915081905092915050565b7f5369676e61747572652068617320616c7265616479206265656e20757365642e600082015250565b60006147346020836135cd565b915061473f826146fe565b602082019050919050565b6000602082019050818103600083015261476381614727565b9050919050565b6000819050919050565b600061478f61478a6147858461476a565b61433c565b613674565b9050919050565b61479f81614774565b82525050565b60006060820190506147ba600083018661379f565b6147c76020830185613709565b6147d46040830184614796565b949350505050565b7f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00600082015250565b6000614812601f836135cd565b915061481d826147dc565b602082019050919050565b6000602082019050818103600083015261484181614805565b9050919050565b600081905092915050565b6000815461486081613cee565b61486a8186614848565b94506001821660008114614885576001811461489a576148cd565b60ff19831686528115158202860193506148cd565b6148a3856142b8565b60005b838110156148c5578154818901526001820191506020810190506148a6565b838801955050505b50505092915050565b60006148e1826135c2565b6148eb8185614848565b93506148fb8185602086016135de565b80840191505092915050565b60006149138285614853565b915061491f82846148d6565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006149876026836135cd565b91506149928261492b565b604082019050919050565b600060208201905081810360008301526149b68161497a565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006149f36020836135cd565b91506149fe826149bd565b602082019050919050565b60006020820190508181036000830152614a22816149e6565b9050919050565b6000614a3482613674565b9150614a3f83613674565b9250828203905081811115614a5757614a56613eae565b5b92915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614a936019836135cd565b9150614a9e82614a5d565b602082019050919050565b60006020820190508181036000830152614ac281614a86565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000614aff6010836135cd565b9150614b0a82614ac9565b602082019050919050565b60006020820190508181036000830152614b2e81614af2565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000614b6b601c83614848565b9150614b7682614b35565b601c82019050919050565b6000819050919050565b614b9c614b9782613ac9565b614b81565b82525050565b6000614bad82614b5e565b9150614bb98284614b8b565b60208201915081905092915050565b6000614bd382613674565b9150614bde83613674565b925082614bee57614bed613f1f565b5b828206905092915050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614c556025836135cd565b9150614c6082614bf9565b604082019050919050565b60006020820190508181036000830152614c8481614c48565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614ce76024836135cd565b9150614cf282614c8b565b604082019050919050565b60006020820190508181036000830152614d1681614cda565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614d796032836135cd565b9150614d8482614d1d565b604082019050919050565b60006020820190508181036000830152614da881614d6c565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614de56014836135cd565b9150614df082614daf565b602082019050919050565b60006020820190508181036000830152614e1481614dd8565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614e516020836135cd565b9150614e5c82614e1b565b602082019050919050565b60006020820190508181036000830152614e8081614e44565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614ebd601c836135cd565b9150614ec882614e87565b602082019050919050565b60006020820190508181036000830152614eec81614eb0565b9050919050565b600082825260208201905092915050565b6000614f0f826146a0565b614f198185614ef3565b9350614f298185602086016135de565b614f3281613608565b840191505092915050565b6000608082019050614f526000830187613709565b614f5f6020830186613709565b614f6c604083018561379f565b8181036060830152614f7e8184614f04565b905095945050505050565b600081519050614f9881613533565b92915050565b600060208284031215614fb457614fb36134fd565b5b6000614fc284828501614f89565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006150306018836135cd565b915061503b82614ffa565b602082019050919050565b6000602082019050818103600083015261505f81615023565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b600061509c601f836135cd565b91506150a782615066565b602082019050919050565b600060208201905081810360008301526150cb8161508f565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b600061512e6022836135cd565b9150615139826150d2565b604082019050919050565b6000602082019050818103600083015261515d81615121565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006151c06022836135cd565b91506151cb82615164565b604082019050919050565b600060208201905081810360008301526151ef816151b3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b61522e81613ac9565b82525050565b600060ff82169050919050565b61524a81615234565b82525050565b60006080820190506152656000830187615225565b6152726020830186615241565b61527f6040830185615225565b61528c6060830184615225565b9594505050505056fea2646970667358221220050e744ad5ada2b3214534efcbcb7f2df32a3dd2a6e736ab74bbafbb534280ac64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002a68747470733a2f2f6170692e61657468657267616d65732e696f2f6765742f656d6f7465735f6574682f00000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : customBaseURI_ (string): https://api.aethergames.io/get/emotes_eth/
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000002a
Arg [2] : 68747470733a2f2f6170692e61657468657267616d65732e696f2f6765742f65
Arg [3] : 6d6f7465735f6574682f00000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.