Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
253 COEFP
Holders
160
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
4 COEFPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
COEFounderPacks
Compiler Version
v0.8.13+commit.abaa5c0e
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 "./DefaultOperatorFilterer.sol"; contract COEFounderPacks 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("COEFounderPacks", "COEFP") { customBaseURI = customBaseURI_; _royaltyAmount = 250; _mintPrice = 0.1 ether; maxSupply = 3000; maxMintableAL = 2; //start token ID at 1 _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 _mintPrice; uint256 public maxSupply; uint256 public maxMintableAL; 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, uint256 amount ) public payable whenNotPaused { require(totalSupply() + amount <= maxSupply, "Amount exceeds supply."); require(msg.value >= _mintPrice * amount, "Not enough ETH sent."); if (msg.sender != owner() && _isAllowListOnly) { require(amount <= maxMintableAL, "Amount exceeds max mintable AL."); 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, amount); for (uint256 i; i < amount; i++) { _safeMint(msg.sender, _tokenIdCounter.current()); _tokenIdCounter.increment(); } addressMinted[msg.sender] += amount; } function setMintPrice(uint256 newPrice) external onlyOwner { _mintPrice = newPrice; } /** 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), "ERC721Metadata: 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":"_mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"maxMintableAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"},{"internalType":"uint256","name":"amount","type":"uint256"}],"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":"newPrice","type":"uint256"}],"name":"setMintPrice","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
60806040526001600c60006101000a81548160ff0219169083151502179055503480156200002c57600080fd5b5060405162005d6538038062005d658339818101604052810190620000529190620007bc565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600f81526020017f434f45466f756e6465725061636b7300000000000000000000000000000000008152506040518060400160405280600581526020017f434f4546500000000000000000000000000000000000000000000000000000008152508160009080519060200190620000ed9291906200056f565b508060019080519060200190620001069291906200056f565b5050506000600a60006101000a81548160ff0219169083151502179055506200014462000138620003aa60201b60201c565b620003b260201b60201c565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111562000339578015620001ff576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b8152600401620001c592919062000852565b600060405180830381600087803b158015620001e057600080fd5b505af1158015620001f5573d6000803e3d6000fd5b5050505062000338565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614620002b9576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200027f92919062000852565b600060405180830381600087803b1580156200029a57600080fd5b505af1158015620002af573d6000803e3d6000fd5b5050505062000337565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b81526004016200030291906200087f565b600060405180830381600087803b1580156200031d57600080fd5b505af115801562000332573d6000803e3d6000fd5b505050505b5b5b50508060129080519060200190620003539291906200056f565b5060fa60138190555067016345785d8a0000600e81905550610bb8600f81905550600260108190555062000393600b6200047860201b62001cc51760201c565b620003a36200048e60201b60201c565b5062000983565b600033905090565b6000600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6001816000016000828254019250508190555050565b6200049e6200050360201b60201c565b6001600a60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620004ea620003aa60201b60201c565b604051620004f991906200087f565b60405180910390a1565b620005136200055860201b60201c565b1562000556576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200054d90620008fd565b60405180910390fd5b565b6000600a60009054906101000a900460ff16905090565b8280546200057d906200094e565b90600052602060002090601f016020900481019282620005a15760008555620005ed565b82601f10620005bc57805160ff1916838001178555620005ed565b82800160010185558215620005ed579182015b82811115620005ec578251825591602001919060010190620005cf565b5b509050620005fc919062000600565b5090565b5b808211156200061b57600081600090555060010162000601565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62000688826200063d565b810181811067ffffffffffffffff82111715620006aa57620006a96200064e565b5b80604052505050565b6000620006bf6200061f565b9050620006cd82826200067d565b919050565b600067ffffffffffffffff821115620006f057620006ef6200064e565b5b620006fb826200063d565b9050602081019050919050565b60005b83811015620007285780820151818401526020810190506200070b565b8381111562000738576000848401525b50505050565b6000620007556200074f84620006d2565b620006b3565b90508281526020810184848401111562000774576200077362000638565b5b6200078184828562000708565b509392505050565b600082601f830112620007a157620007a062000633565b5b8151620007b38482602086016200073e565b91505092915050565b600060208284031215620007d557620007d462000629565b5b600082015167ffffffffffffffff811115620007f657620007f56200062e565b5b620008048482850162000789565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200083a826200080d565b9050919050565b6200084c816200082d565b82525050565b600060408201905062000869600083018562000841565b62000878602083018462000841565b9392505050565b600060208201905062000896600083018462000841565b92915050565b600082825260208201905092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000620008e56010836200089c565b9150620008f282620008ad565b602082019050919050565b600060208201905081810360008301526200091881620008d6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200096757607f821691505b6020821081036200097d576200097c6200091f565b5b50919050565b6153d280620009936000396000f3fe6080604052600436106102255760003560e01c80635c975abb116101235780638da5cb5b116100ab578063d5abeb011161006f578063d5abeb01146107d3578063e985e9c5146107fe578063f2fde38b1461083b578063f4a0a52814610864578063fa30297e1461088d57610225565b80638da5cb5b146106ee57806395d89b4114610719578063a22cb46514610744578063b88d4fde1461076d578063c87b56dd1461079657610225565b806370a08231116100f257806370a082311461062f578063715018a61461066c5780638456cb5914610683578063889a3f191461069a5780638cd370ed146106c557610225565b80635c975abb14610580578063631c1c5a146105ab5780636352211e146105c757806369b538241461060457610225565b80632f745c59116101b157806342966c681161017557806342966c681461049d5780634e91cf1d146104c65780634f07de09146104f15780634f6ccce71461051a57806355f804b31461055757610225565b80632f745c59146103e0578063375a069a1461041d5780633ccfd60b146104465780633f4ba83a1461045d57806342842e0e1461047457610225565b8063095ea7b3116101f8578063095ea7b3146102fa57806318160ddd1461032357806323b872dd1461034e5780632a55205a146103775780632ca4e74e146103b557610225565b806301ffc9a71461022a5780630387da421461026757806306fdde0314610292578063081812fc146102bd575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c91906137ba565b6108ca565b60405161025e9190613802565b60405180910390f35b34801561027357600080fd5b5061027c610944565b6040516102899190613836565b60405180910390f35b34801561029e57600080fd5b506102a761094a565b6040516102b491906138ea565b60405180910390f35b3480156102c957600080fd5b506102e460048036038101906102df9190613938565b6109dc565b6040516102f191906139a6565b60405180910390f35b34801561030657600080fd5b50610321600480360381019061031c91906139ed565b610a22565b005b34801561032f57600080fd5b50610338610b39565b6040516103459190613836565b60405180910390f35b34801561035a57600080fd5b5061037560048036038101906103709190613a2d565b610b46565b005b34801561038357600080fd5b5061039e60048036038101906103999190613a80565b610d28565b6040516103ac929190613ac0565b60405180910390f35b3480156103c157600080fd5b506103ca610d59565b6040516103d79190613836565b60405180910390f35b3480156103ec57600080fd5b50610407600480360381019061040291906139ed565b610d5f565b6040516104149190613836565b60405180910390f35b34801561042957600080fd5b50610444600480360381019061043f9190613938565b610e04565b005b34801561045257600080fd5b5061045b610ea2565b005b34801561046957600080fd5b50610472610f3d565b005b34801561048057600080fd5b5061049b60048036038101906104969190613a2d565b610f4f565b005b3480156104a957600080fd5b506104c460048036038101906104bf9190613938565b611131565b005b3480156104d257600080fd5b506104db61118d565b6040516104e89190613802565b60405180910390f35b3480156104fd57600080fd5b5061051860048036038101906105139190613938565b6111a0565b005b34801561052657600080fd5b50610541600480360381019061053c9190613938565b6111b2565b60405161054e9190613836565b60405180910390f35b34801561056357600080fd5b5061057e60048036038101906105799190613c1e565b611223565b005b34801561058c57600080fd5b50610595611245565b6040516105a29190613802565b60405180910390f35b6105c560048036038101906105c09190613d3e565b61125c565b005b3480156105d357600080fd5b506105ee60048036038101906105e99190613938565b6115a1565b6040516105fb91906139a6565b60405180910390f35b34801561061057600080fd5b50610619611652565b6040516106269190613836565b60405180910390f35b34801561063b57600080fd5b5061065660048036038101906106519190613dad565b611658565b6040516106639190613836565b60405180910390f35b34801561067857600080fd5b5061068161170f565b005b34801561068f57600080fd5b50610698611723565b005b3480156106a657600080fd5b506106af611735565b6040516106bc91906138ea565b60405180910390f35b3480156106d157600080fd5b506106ec60048036038101906106e79190613e06565b6117c3565b005b3480156106fa57600080fd5b5061070361181f565b60405161071091906139a6565b60405180910390f35b34801561072557600080fd5b5061072e611849565b60405161073b91906138ea565b60405180910390f35b34801561075057600080fd5b5061076b60048036038101906107669190613e33565b6118db565b005b34801561077957600080fd5b50610794600480360381019061078f9190613e73565b6118f1565b005b3480156107a257600080fd5b506107bd60048036038101906107b89190613938565b611ad6565b6040516107ca91906138ea565b60405180910390f35b3480156107df57600080fd5b506107e8611b7e565b6040516107f59190613836565b60405180910390f35b34801561080a57600080fd5b5061082560048036038101906108209190613ef6565b611b84565b6040516108329190613802565b60405180910390f35b34801561084757600080fd5b50610862600480360381019061085d9190613dad565b611c18565b005b34801561087057600080fd5b5061088b60048036038101906108869190613938565b611c9b565b005b34801561089957600080fd5b506108b460048036038101906108af9190613dad565b611cad565b6040516108c19190613836565b60405180910390f35b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061093d575061093c82611cdb565b5b9050919050565b600e5481565b60606000805461095990613f65565b80601f016020809104026020016040519081016040528092919081815260200182805461098590613f65565b80156109d25780601f106109a7576101008083540402835291602001916109d2565b820191906000526020600020905b8154815290600101906020018083116109b557829003601f168201915b5050505050905090565b60006109e782611d55565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a2d826115a1565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9490614008565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610abc611da0565b73ffffffffffffffffffffffffffffffffffffffff161480610aeb5750610aea81610ae5611da0565b611b84565b5b610b2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b219061409a565b60405180910390fd5b610b348383611da8565b505050565b6000600880549050905090565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610d16573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610bb857610bb3848484611e61565b610d22565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610c019291906140ba565b602060405180830381865afa158015610c1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4291906140f8565b8015610cd457506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401610c929291906140ba565b602060405180830381865afa158015610caf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd391906140f8565b5b610d1557336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610d0c91906139a6565b60405180910390fd5b5b610d21848484611e61565b5b50505050565b600080610d3361181f565b61271060135485610d449190614154565b610d4e91906141dd565b915091509250929050565b60105481565b6000610d6a83611658565b8210610dab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da290614280565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610e0c611ec1565b600f5481610e18610b39565b610e2291906142a0565b1115610e63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5a90614342565b60405180910390fd5b60005b81811015610e9e57610e8133610e7c600b611f3f565b611f4d565b610e8b600b611cc5565b8080610e9690614362565b915050610e66565b5050565b610eaa611ec1565b60004711610eed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee4906143f6565b60405180910390fd5b610ef561181f565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610f3a573d6000803e3d6000fd5b50565b610f45611ec1565b610f4d611f6b565b565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111561111f573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610fc157610fbc848484611fce565b61112b565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b815260040161100a9291906140ba565b602060405180830381865afa158015611027573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104b91906140f8565b80156110dd57506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b815260040161109b9291906140ba565b602060405180830381865afa1580156110b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110dc91906140f8565b5b61111e57336040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161111591906139a6565b60405180910390fd5b5b61112a848484611fce565b5b50505050565b61114261113c611da0565b82611fee565b611181576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117890614488565b60405180910390fd5b61118a81612083565b50565b600c60009054906101000a900460ff1681565b6111a8611ec1565b8060138190555050565b60006111bc610b39565b82106111fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f49061451a565b60405180910390fd5b600882815481106112115761121061453a565b5b90600052602060002001549050919050565b61122b611ec1565b80601290805190602001906112419291906136ab565b5050565b6000600a60009054906101000a900460ff16905090565b6112646121a0565b600f5481611270610b39565b61127a91906142a0565b11156112bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b290614342565b60405180910390fd5b80600e546112c99190614154565b34101561130b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611302906145b5565b60405180910390fd5b61131361181f565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415801561135a5750600c60009054906101000a900460ff165b156114c6576010548111156113a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139b90614621565b60405180910390fd5b6113ac61181f565b73ffffffffffffffffffffffffffffffffffffffff166113cc84846121ea565b73ffffffffffffffffffffffffffffffffffffffff1614611422576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114199061468d565b60405180910390fd5b600d8260405161143291906146f4565b908152602001604051809103902060009054906101000a900460ff161561148e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148590614757565b60405180910390fd5b6001600d836040516114a091906146f4565b908152602001604051809103902060006101000a81548160ff0219169083151502179055505b7f4e3883c75cc9c752bb1db2e406a822e4a75067ae77ad9a0a4d179f2709b9e1f66114f1600b611f3f565b338360405161150293929190614777565b60405180910390a160005b818110156115455761152833611523600b611f3f565b611f4d565b611532600b611cc5565b808061153d90614362565b91505061150d565b5080601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461159591906142a0565b92505081905550505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611649576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611640906147fa565b60405180910390fd5b80915050919050565b60135481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116bf9061488c565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611717611ec1565b6117216000612229565b565b61172b611ec1565b6117336122ef565b565b6012805461174290613f65565b80601f016020809104026020016040519081016040528092919081815260200182805461176e90613f65565b80156117bb5780601f10611790576101008083540402835291602001916117bb565b820191906000526020600020905b81548152906001019060200180831161179e57829003601f168201915b505050505081565b6117cb611ec1565b80600c60006101000a81548160ff0219169083151502179055507faa9f43701634eb888afd902fdec2daacfc955083394317e5a51836691f31eae9816040516118149190613802565b60405180910390a150565b6000600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461185890613f65565b80601f016020809104026020016040519081016040528092919081815260200182805461188490613f65565b80156118d15780601f106118a6576101008083540402835291602001916118d1565b820191906000526020600020905b8154815290600101906020018083116118b457829003601f168201915b5050505050905090565b6118ed6118e6611da0565b8383612352565b5050565b8360006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611ac2573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119645761195f858585856124be565b611acf565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b81526004016119ad9291906140ba565b602060405180830381865afa1580156119ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ee91906140f8565b8015611a8057506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611a3e9291906140ba565b602060405180830381865afa158015611a5b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a7f91906140f8565b5b611ac157336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401611ab891906139a6565b60405180910390fd5b5b611ace858585856124be565b5b5050505050565b6060611ae182612520565b611b20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b179061491e565b60405180910390fd5b600060128054611b2f90613f65565b905011611b4b5760405180602001604052806000815250611b77565b6012611b568361258c565b604051602001611b67929190614a0e565b6040516020818303038152906040525b9050919050565b600f5481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611c20611ec1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8690614aa4565b60405180910390fd5b611c9881612229565b50565b611ca3611ec1565b80600e8190555050565b60116020528060005260406000206000915090505481565b6001816000016000828254019250508190555050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d4e5750611d4d826126ec565b5b9050919050565b611d5e81612520565b611d9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d94906147fa565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611e1b836115a1565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611e72611e6c611da0565b82611fee565b611eb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea890614488565b60405180910390fd5b611ebc8383836127ce565b505050565b611ec9611da0565b73ffffffffffffffffffffffffffffffffffffffff16611ee761181f565b73ffffffffffffffffffffffffffffffffffffffff1614611f3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3490614b10565b60405180910390fd5b565b600081600001549050919050565b611f67828260405180602001604052806000815250612a34565b5050565b611f73612a8f565b6000600a60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611fb7611da0565b604051611fc491906139a6565b60405180910390a1565b611fe9838383604051806020016040528060008152506118f1565b505050565b600080611ffa836115a1565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061203c575061203b8185611b84565b5b8061207a57508373ffffffffffffffffffffffffffffffffffffffff16612062846109dc565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b600061208e826115a1565b905061209c81600084612ad8565b6120a7600083611da8565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120f79190614b30565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461219c81600084612af0565b5050565b6121a8611245565b156121e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121df90614bb0565b60405180910390fd5b565b600080836040516020016121fe9190614c3d565b6040516020818303038152906040528051906020012090506122208184612af5565b91505092915050565b6000600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6122f76121a0565b6001600a60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861233b611da0565b60405161234891906139a6565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036123c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b790614caf565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516124b19190613802565b60405180910390a3505050565b6124cf6124c9611da0565b83611fee565b61250e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250590614488565b60405180910390fd5b61251a84848484612b1c565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6060600082036125d3576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506126e7565b600082905060005b600082146126055780806125ee90614362565b915050600a826125fe91906141dd565b91506125db565b60008167ffffffffffffffff81111561262157612620613af3565b5b6040519080825280601f01601f1916602001820160405280156126535781602001600182028036833780820191505090505b5090505b600085146126e05760018261266c9190614b30565b9150600a8561267b9190614ccf565b603061268791906142a0565b60f81b81838151811061269d5761269c61453a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856126d991906141dd565b9450612657565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806127b757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806127c757506127c682612b78565b5b9050919050565b8273ffffffffffffffffffffffffffffffffffffffff166127ee826115a1565b73ffffffffffffffffffffffffffffffffffffffff1614612844576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283b90614d72565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036128b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128aa90614e04565b60405180910390fd5b6128be838383612ad8565b6128c9600082611da8565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129199190614b30565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461297091906142a0565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a2f838383612af0565b505050565b612a3e8383612be2565b612a4b6000848484612dbb565b612a8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a8190614e96565b60405180910390fd5b505050565b612a97611245565b612ad6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612acd90614f02565b60405180910390fd5b565b612ae06121a0565b612aeb838383612f42565b505050565b505050565b6000806000612b048585613054565b91509150612b11816130a5565b819250505092915050565b612b278484846127ce565b612b3384848484612dbb565b612b72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6990614e96565b60405180910390fd5b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612c51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c4890614f6e565b60405180910390fd5b612c5a81612520565b15612c9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c9190614fda565b60405180910390fd5b612ca660008383612ad8565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612cf691906142a0565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612db760008383612af0565b5050565b6000612ddc8473ffffffffffffffffffffffffffffffffffffffff16613271565b15612f35578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612e05611da0565b8786866040518563ffffffff1660e01b8152600401612e279493929190615044565b6020604051808303816000875af1925050508015612e6357506040513d601f19601f82011682018060405250810190612e6091906150a5565b60015b612ee5573d8060008114612e93576040519150601f19603f3d011682016040523d82523d6000602084013e612e98565b606091505b506000815103612edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ed490614e96565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612f3a565b600190505b949350505050565b612f4d838383613294565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612f8f57612f8a81613299565b612fce565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612fcd57612fcc83826132e2565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036130105761300b8161344f565b61304f565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461304e5761304d8282613520565b5b5b505050565b60008060418351036130955760008060006020860151925060408601519150606086015160001a90506130898782858561359f565b9450945050505061309e565b60006002915091505b9250929050565b600060048111156130b9576130b86150d2565b5b8160048111156130cc576130cb6150d2565b5b031561326e57600160048111156130e6576130e56150d2565b5b8160048111156130f9576130f86150d2565b5b03613139576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131309061514d565b60405180910390fd5b6002600481111561314d5761314c6150d2565b5b8160048111156131605761315f6150d2565b5b036131a0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613197906151b9565b60405180910390fd5b600360048111156131b4576131b36150d2565b5b8160048111156131c7576131c66150d2565b5b03613207576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131fe9061524b565b60405180910390fd5b60048081111561321a576132196150d2565b5b81600481111561322d5761322c6150d2565b5b0361326d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613264906152dd565b60405180910390fd5b5b50565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016132ef84611658565b6132f99190614b30565b90506000600760008481526020019081526020016000205490508181146133de576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506134639190614b30565b90506000600960008481526020019081526020016000205490506000600883815481106134935761349261453a565b5b9060005260206000200154905080600883815481106134b5576134b461453a565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613504576135036152fd565b5b6001900381819060005260206000200160009055905550505050565b600061352b83611658565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156135da5760006003915091506136a2565b601b8560ff16141580156135f25750601c8560ff1614155b156136045760006004915091506136a2565b6000600187878787604051600081526020016040526040516136299493929190615357565b6020604051602081039080840390855afa15801561364b573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613699576000600192509250506136a2565b80600092509250505b94509492505050565b8280546136b790613f65565b90600052602060002090601f0160209004810192826136d95760008555613720565b82601f106136f257805160ff1916838001178555613720565b82800160010185558215613720579182015b8281111561371f578251825591602001919060010190613704565b5b50905061372d9190613731565b5090565b5b8082111561374a576000816000905550600101613732565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61379781613762565b81146137a257600080fd5b50565b6000813590506137b48161378e565b92915050565b6000602082840312156137d0576137cf613758565b5b60006137de848285016137a5565b91505092915050565b60008115159050919050565b6137fc816137e7565b82525050565b600060208201905061381760008301846137f3565b92915050565b6000819050919050565b6138308161381d565b82525050565b600060208201905061384b6000830184613827565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561388b578082015181840152602081019050613870565b8381111561389a576000848401525b50505050565b6000601f19601f8301169050919050565b60006138bc82613851565b6138c6818561385c565b93506138d681856020860161386d565b6138df816138a0565b840191505092915050565b6000602082019050818103600083015261390481846138b1565b905092915050565b6139158161381d565b811461392057600080fd5b50565b6000813590506139328161390c565b92915050565b60006020828403121561394e5761394d613758565b5b600061395c84828501613923565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061399082613965565b9050919050565b6139a081613985565b82525050565b60006020820190506139bb6000830184613997565b92915050565b6139ca81613985565b81146139d557600080fd5b50565b6000813590506139e7816139c1565b92915050565b60008060408385031215613a0457613a03613758565b5b6000613a12858286016139d8565b9250506020613a2385828601613923565b9150509250929050565b600080600060608486031215613a4657613a45613758565b5b6000613a54868287016139d8565b9350506020613a65868287016139d8565b9250506040613a7686828701613923565b9150509250925092565b60008060408385031215613a9757613a96613758565b5b6000613aa585828601613923565b9250506020613ab685828601613923565b9150509250929050565b6000604082019050613ad56000830185613997565b613ae26020830184613827565b9392505050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613b2b826138a0565b810181811067ffffffffffffffff82111715613b4a57613b49613af3565b5b80604052505050565b6000613b5d61374e565b9050613b698282613b22565b919050565b600067ffffffffffffffff821115613b8957613b88613af3565b5b613b92826138a0565b9050602081019050919050565b82818337600083830152505050565b6000613bc1613bbc84613b6e565b613b53565b905082815260208101848484011115613bdd57613bdc613aee565b5b613be8848285613b9f565b509392505050565b600082601f830112613c0557613c04613ae9565b5b8135613c15848260208601613bae565b91505092915050565b600060208284031215613c3457613c33613758565b5b600082013567ffffffffffffffff811115613c5257613c5161375d565b5b613c5e84828501613bf0565b91505092915050565b6000819050919050565b613c7a81613c67565b8114613c8557600080fd5b50565b600081359050613c9781613c71565b92915050565b600067ffffffffffffffff821115613cb857613cb7613af3565b5b613cc1826138a0565b9050602081019050919050565b6000613ce1613cdc84613c9d565b613b53565b905082815260208101848484011115613cfd57613cfc613aee565b5b613d08848285613b9f565b509392505050565b600082601f830112613d2557613d24613ae9565b5b8135613d35848260208601613cce565b91505092915050565b600080600060608486031215613d5757613d56613758565b5b6000613d6586828701613c88565b935050602084013567ffffffffffffffff811115613d8657613d8561375d565b5b613d9286828701613d10565b9250506040613da386828701613923565b9150509250925092565b600060208284031215613dc357613dc2613758565b5b6000613dd1848285016139d8565b91505092915050565b613de3816137e7565b8114613dee57600080fd5b50565b600081359050613e0081613dda565b92915050565b600060208284031215613e1c57613e1b613758565b5b6000613e2a84828501613df1565b91505092915050565b60008060408385031215613e4a57613e49613758565b5b6000613e58858286016139d8565b9250506020613e6985828601613df1565b9150509250929050565b60008060008060808587031215613e8d57613e8c613758565b5b6000613e9b878288016139d8565b9450506020613eac878288016139d8565b9350506040613ebd87828801613923565b925050606085013567ffffffffffffffff811115613ede57613edd61375d565b5b613eea87828801613d10565b91505092959194509250565b60008060408385031215613f0d57613f0c613758565b5b6000613f1b858286016139d8565b9250506020613f2c858286016139d8565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613f7d57607f821691505b602082108103613f9057613f8f613f36565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613ff260218361385c565b9150613ffd82613f96565b604082019050919050565b6000602082019050818103600083015261402181613fe5565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000614084603e8361385c565b915061408f82614028565b604082019050919050565b600060208201905081810360008301526140b381614077565b9050919050565b60006040820190506140cf6000830185613997565b6140dc6020830184613997565b9392505050565b6000815190506140f281613dda565b92915050565b60006020828403121561410e5761410d613758565b5b600061411c848285016140e3565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061415f8261381d565b915061416a8361381d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156141a3576141a2614125565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006141e88261381d565b91506141f38361381d565b925082614203576142026141ae565b5b828204905092915050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b600061426a602b8361385c565b91506142758261420e565b604082019050919050565b600060208201905081810360008301526142998161425d565b9050919050565b60006142ab8261381d565b91506142b68361381d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156142eb576142ea614125565b5b828201905092915050565b7f416d6f756e74206578636565647320737570706c792e00000000000000000000600082015250565b600061432c60168361385c565b9150614337826142f6565b602082019050919050565b6000602082019050818103600083015261435b8161431f565b9050919050565b600061436d8261381d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361439f5761439e614125565b5b600182019050919050565b7f42616c616e6365206973207a65726f0000000000000000000000000000000000600082015250565b60006143e0600f8361385c565b91506143eb826143aa565b602082019050919050565b6000602082019050818103600083015261440f816143d3565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000614472602e8361385c565b915061447d82614416565b604082019050919050565b600060208201905081810360008301526144a181614465565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614504602c8361385c565b915061450f826144a8565b604082019050919050565b60006020820190508181036000830152614533816144f7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e6f7420656e6f756768204554482073656e742e000000000000000000000000600082015250565b600061459f60148361385c565b91506145aa82614569565b602082019050919050565b600060208201905081810360008301526145ce81614592565b9050919050565b7f416d6f756e742065786365656473206d6178206d696e7461626c6520414c2e00600082015250565b600061460b601f8361385c565b9150614616826145d5565b602082019050919050565b6000602082019050818103600083015261463a816145fe565b9050919050565b7f41646472657373206973206e6f7420616c6c6f776c6973746564000000000000600082015250565b6000614677601a8361385c565b915061468282614641565b602082019050919050565b600060208201905081810360008301526146a68161466a565b9050919050565b600081519050919050565b600081905092915050565b60006146ce826146ad565b6146d881856146b8565b93506146e881856020860161386d565b80840191505092915050565b600061470082846146c3565b915081905092915050565b7f5369676e61747572652068617320616c7265616479206265656e20757365642e600082015250565b600061474160208361385c565b915061474c8261470b565b602082019050919050565b6000602082019050818103600083015261477081614734565b9050919050565b600060608201905061478c6000830186613827565b6147996020830185613997565b6147a66040830184613827565b949350505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006147e460188361385c565b91506147ef826147ae565b602082019050919050565b60006020820190508181036000830152614813816147d7565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b600061487660298361385c565b91506148818261481a565b604082019050919050565b600060208201905081810360008301526148a581614869565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614908602f8361385c565b9150614913826148ac565b604082019050919050565b60006020820190508181036000830152614937816148fb565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b6000815461496b81613f65565b614975818661493e565b9450600182166000811461499057600181146149a1576149d4565b60ff198316865281860193506149d4565b6149aa85614949565b60005b838110156149cc578154818901526001820191506020810190506149ad565b838801955050505b50505092915050565b60006149e882613851565b6149f2818561493e565b9350614a0281856020860161386d565b80840191505092915050565b6000614a1a828561495e565b9150614a2682846149dd565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614a8e60268361385c565b9150614a9982614a32565b604082019050919050565b60006020820190508181036000830152614abd81614a81565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614afa60208361385c565b9150614b0582614ac4565b602082019050919050565b60006020820190508181036000830152614b2981614aed565b9050919050565b6000614b3b8261381d565b9150614b468361381d565b925082821015614b5957614b58614125565b5b828203905092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000614b9a60108361385c565b9150614ba582614b64565b602082019050919050565b60006020820190508181036000830152614bc981614b8d565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000614c06601c8361493e565b9150614c1182614bd0565b601c82019050919050565b6000819050919050565b614c37614c3282613c67565b614c1c565b82525050565b6000614c4882614bf9565b9150614c548284614c26565b60208201915081905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614c9960198361385c565b9150614ca482614c63565b602082019050919050565b60006020820190508181036000830152614cc881614c8c565b9050919050565b6000614cda8261381d565b9150614ce58361381d565b925082614cf557614cf46141ae565b5b828206905092915050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614d5c60258361385c565b9150614d6782614d00565b604082019050919050565b60006020820190508181036000830152614d8b81614d4f565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614dee60248361385c565b9150614df982614d92565b604082019050919050565b60006020820190508181036000830152614e1d81614de1565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614e8060328361385c565b9150614e8b82614e24565b604082019050919050565b60006020820190508181036000830152614eaf81614e73565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614eec60148361385c565b9150614ef782614eb6565b602082019050919050565b60006020820190508181036000830152614f1b81614edf565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614f5860208361385c565b9150614f6382614f22565b602082019050919050565b60006020820190508181036000830152614f8781614f4b565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614fc4601c8361385c565b9150614fcf82614f8e565b602082019050919050565b60006020820190508181036000830152614ff381614fb7565b9050919050565b600082825260208201905092915050565b6000615016826146ad565b6150208185614ffa565b935061503081856020860161386d565b615039816138a0565b840191505092915050565b60006080820190506150596000830187613997565b6150666020830186613997565b6150736040830185613827565b8181036060830152615085818461500b565b905095945050505050565b60008151905061509f8161378e565b92915050565b6000602082840312156150bb576150ba613758565b5b60006150c984828501615090565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b600061513760188361385c565b915061514282615101565b602082019050919050565b600060208201905081810360008301526151668161512a565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006151a3601f8361385c565b91506151ae8261516d565b602082019050919050565b600060208201905081810360008301526151d281615196565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b600061523560228361385c565b9150615240826151d9565b604082019050919050565b6000602082019050818103600083015261526481615228565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006152c760228361385c565b91506152d28261526b565b604082019050919050565b600060208201905081810360008301526152f6816152ba565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b61533581613c67565b82525050565b600060ff82169050919050565b6153518161533b565b82525050565b600060808201905061536c600083018761532c565b6153796020830186615348565b615386604083018561532c565b615393606083018461532c565b9594505050505056fea2646970667358221220792e42f3e2e509b010fd1abf36aeba0008f5edf16615ae0e97d9e51fe8ce315864736f6c634300080d00330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003068747470733a2f2f6170692e61657468657267616d65732e696f2f6765742f666f756e6465727061636b735f6574682f00000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102255760003560e01c80635c975abb116101235780638da5cb5b116100ab578063d5abeb011161006f578063d5abeb01146107d3578063e985e9c5146107fe578063f2fde38b1461083b578063f4a0a52814610864578063fa30297e1461088d57610225565b80638da5cb5b146106ee57806395d89b4114610719578063a22cb46514610744578063b88d4fde1461076d578063c87b56dd1461079657610225565b806370a08231116100f257806370a082311461062f578063715018a61461066c5780638456cb5914610683578063889a3f191461069a5780638cd370ed146106c557610225565b80635c975abb14610580578063631c1c5a146105ab5780636352211e146105c757806369b538241461060457610225565b80632f745c59116101b157806342966c681161017557806342966c681461049d5780634e91cf1d146104c65780634f07de09146104f15780634f6ccce71461051a57806355f804b31461055757610225565b80632f745c59146103e0578063375a069a1461041d5780633ccfd60b146104465780633f4ba83a1461045d57806342842e0e1461047457610225565b8063095ea7b3116101f8578063095ea7b3146102fa57806318160ddd1461032357806323b872dd1461034e5780632a55205a146103775780632ca4e74e146103b557610225565b806301ffc9a71461022a5780630387da421461026757806306fdde0314610292578063081812fc146102bd575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c91906137ba565b6108ca565b60405161025e9190613802565b60405180910390f35b34801561027357600080fd5b5061027c610944565b6040516102899190613836565b60405180910390f35b34801561029e57600080fd5b506102a761094a565b6040516102b491906138ea565b60405180910390f35b3480156102c957600080fd5b506102e460048036038101906102df9190613938565b6109dc565b6040516102f191906139a6565b60405180910390f35b34801561030657600080fd5b50610321600480360381019061031c91906139ed565b610a22565b005b34801561032f57600080fd5b50610338610b39565b6040516103459190613836565b60405180910390f35b34801561035a57600080fd5b5061037560048036038101906103709190613a2d565b610b46565b005b34801561038357600080fd5b5061039e60048036038101906103999190613a80565b610d28565b6040516103ac929190613ac0565b60405180910390f35b3480156103c157600080fd5b506103ca610d59565b6040516103d79190613836565b60405180910390f35b3480156103ec57600080fd5b50610407600480360381019061040291906139ed565b610d5f565b6040516104149190613836565b60405180910390f35b34801561042957600080fd5b50610444600480360381019061043f9190613938565b610e04565b005b34801561045257600080fd5b5061045b610ea2565b005b34801561046957600080fd5b50610472610f3d565b005b34801561048057600080fd5b5061049b60048036038101906104969190613a2d565b610f4f565b005b3480156104a957600080fd5b506104c460048036038101906104bf9190613938565b611131565b005b3480156104d257600080fd5b506104db61118d565b6040516104e89190613802565b60405180910390f35b3480156104fd57600080fd5b5061051860048036038101906105139190613938565b6111a0565b005b34801561052657600080fd5b50610541600480360381019061053c9190613938565b6111b2565b60405161054e9190613836565b60405180910390f35b34801561056357600080fd5b5061057e60048036038101906105799190613c1e565b611223565b005b34801561058c57600080fd5b50610595611245565b6040516105a29190613802565b60405180910390f35b6105c560048036038101906105c09190613d3e565b61125c565b005b3480156105d357600080fd5b506105ee60048036038101906105e99190613938565b6115a1565b6040516105fb91906139a6565b60405180910390f35b34801561061057600080fd5b50610619611652565b6040516106269190613836565b60405180910390f35b34801561063b57600080fd5b5061065660048036038101906106519190613dad565b611658565b6040516106639190613836565b60405180910390f35b34801561067857600080fd5b5061068161170f565b005b34801561068f57600080fd5b50610698611723565b005b3480156106a657600080fd5b506106af611735565b6040516106bc91906138ea565b60405180910390f35b3480156106d157600080fd5b506106ec60048036038101906106e79190613e06565b6117c3565b005b3480156106fa57600080fd5b5061070361181f565b60405161071091906139a6565b60405180910390f35b34801561072557600080fd5b5061072e611849565b60405161073b91906138ea565b60405180910390f35b34801561075057600080fd5b5061076b60048036038101906107669190613e33565b6118db565b005b34801561077957600080fd5b50610794600480360381019061078f9190613e73565b6118f1565b005b3480156107a257600080fd5b506107bd60048036038101906107b89190613938565b611ad6565b6040516107ca91906138ea565b60405180910390f35b3480156107df57600080fd5b506107e8611b7e565b6040516107f59190613836565b60405180910390f35b34801561080a57600080fd5b5061082560048036038101906108209190613ef6565b611b84565b6040516108329190613802565b60405180910390f35b34801561084757600080fd5b50610862600480360381019061085d9190613dad565b611c18565b005b34801561087057600080fd5b5061088b60048036038101906108869190613938565b611c9b565b005b34801561089957600080fd5b506108b460048036038101906108af9190613dad565b611cad565b6040516108c19190613836565b60405180910390f35b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061093d575061093c82611cdb565b5b9050919050565b600e5481565b60606000805461095990613f65565b80601f016020809104026020016040519081016040528092919081815260200182805461098590613f65565b80156109d25780601f106109a7576101008083540402835291602001916109d2565b820191906000526020600020905b8154815290600101906020018083116109b557829003601f168201915b5050505050905090565b60006109e782611d55565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a2d826115a1565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9490614008565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610abc611da0565b73ffffffffffffffffffffffffffffffffffffffff161480610aeb5750610aea81610ae5611da0565b611b84565b5b610b2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b219061409a565b60405180910390fd5b610b348383611da8565b505050565b6000600880549050905090565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610d16573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610bb857610bb3848484611e61565b610d22565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610c019291906140ba565b602060405180830381865afa158015610c1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4291906140f8565b8015610cd457506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401610c929291906140ba565b602060405180830381865afa158015610caf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd391906140f8565b5b610d1557336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610d0c91906139a6565b60405180910390fd5b5b610d21848484611e61565b5b50505050565b600080610d3361181f565b61271060135485610d449190614154565b610d4e91906141dd565b915091509250929050565b60105481565b6000610d6a83611658565b8210610dab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da290614280565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610e0c611ec1565b600f5481610e18610b39565b610e2291906142a0565b1115610e63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5a90614342565b60405180910390fd5b60005b81811015610e9e57610e8133610e7c600b611f3f565b611f4d565b610e8b600b611cc5565b8080610e9690614362565b915050610e66565b5050565b610eaa611ec1565b60004711610eed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee4906143f6565b60405180910390fd5b610ef561181f565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610f3a573d6000803e3d6000fd5b50565b610f45611ec1565b610f4d611f6b565b565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111561111f573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610fc157610fbc848484611fce565b61112b565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b815260040161100a9291906140ba565b602060405180830381865afa158015611027573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104b91906140f8565b80156110dd57506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b815260040161109b9291906140ba565b602060405180830381865afa1580156110b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110dc91906140f8565b5b61111e57336040517fede71dcc00000000000000000000000000000000000000000000000000000000815260040161111591906139a6565b60405180910390fd5b5b61112a848484611fce565b5b50505050565b61114261113c611da0565b82611fee565b611181576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117890614488565b60405180910390fd5b61118a81612083565b50565b600c60009054906101000a900460ff1681565b6111a8611ec1565b8060138190555050565b60006111bc610b39565b82106111fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f49061451a565b60405180910390fd5b600882815481106112115761121061453a565b5b90600052602060002001549050919050565b61122b611ec1565b80601290805190602001906112419291906136ab565b5050565b6000600a60009054906101000a900460ff16905090565b6112646121a0565b600f5481611270610b39565b61127a91906142a0565b11156112bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b290614342565b60405180910390fd5b80600e546112c99190614154565b34101561130b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611302906145b5565b60405180910390fd5b61131361181f565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415801561135a5750600c60009054906101000a900460ff165b156114c6576010548111156113a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139b90614621565b60405180910390fd5b6113ac61181f565b73ffffffffffffffffffffffffffffffffffffffff166113cc84846121ea565b73ffffffffffffffffffffffffffffffffffffffff1614611422576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114199061468d565b60405180910390fd5b600d8260405161143291906146f4565b908152602001604051809103902060009054906101000a900460ff161561148e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148590614757565b60405180910390fd5b6001600d836040516114a091906146f4565b908152602001604051809103902060006101000a81548160ff0219169083151502179055505b7f4e3883c75cc9c752bb1db2e406a822e4a75067ae77ad9a0a4d179f2709b9e1f66114f1600b611f3f565b338360405161150293929190614777565b60405180910390a160005b818110156115455761152833611523600b611f3f565b611f4d565b611532600b611cc5565b808061153d90614362565b91505061150d565b5080601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461159591906142a0565b92505081905550505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611649576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611640906147fa565b60405180910390fd5b80915050919050565b60135481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116bf9061488c565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611717611ec1565b6117216000612229565b565b61172b611ec1565b6117336122ef565b565b6012805461174290613f65565b80601f016020809104026020016040519081016040528092919081815260200182805461176e90613f65565b80156117bb5780601f10611790576101008083540402835291602001916117bb565b820191906000526020600020905b81548152906001019060200180831161179e57829003601f168201915b505050505081565b6117cb611ec1565b80600c60006101000a81548160ff0219169083151502179055507faa9f43701634eb888afd902fdec2daacfc955083394317e5a51836691f31eae9816040516118149190613802565b60405180910390a150565b6000600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461185890613f65565b80601f016020809104026020016040519081016040528092919081815260200182805461188490613f65565b80156118d15780601f106118a6576101008083540402835291602001916118d1565b820191906000526020600020905b8154815290600101906020018083116118b457829003601f168201915b5050505050905090565b6118ed6118e6611da0565b8383612352565b5050565b8360006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611ac2573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119645761195f858585856124be565b611acf565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b81526004016119ad9291906140ba565b602060405180830381865afa1580156119ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ee91906140f8565b8015611a8057506daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401611a3e9291906140ba565b602060405180830381865afa158015611a5b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a7f91906140f8565b5b611ac157336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401611ab891906139a6565b60405180910390fd5b5b611ace858585856124be565b5b5050505050565b6060611ae182612520565b611b20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b179061491e565b60405180910390fd5b600060128054611b2f90613f65565b905011611b4b5760405180602001604052806000815250611b77565b6012611b568361258c565b604051602001611b67929190614a0e565b6040516020818303038152906040525b9050919050565b600f5481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611c20611ec1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8690614aa4565b60405180910390fd5b611c9881612229565b50565b611ca3611ec1565b80600e8190555050565b60116020528060005260406000206000915090505481565b6001816000016000828254019250508190555050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d4e5750611d4d826126ec565b5b9050919050565b611d5e81612520565b611d9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d94906147fa565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611e1b836115a1565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611e72611e6c611da0565b82611fee565b611eb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea890614488565b60405180910390fd5b611ebc8383836127ce565b505050565b611ec9611da0565b73ffffffffffffffffffffffffffffffffffffffff16611ee761181f565b73ffffffffffffffffffffffffffffffffffffffff1614611f3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3490614b10565b60405180910390fd5b565b600081600001549050919050565b611f67828260405180602001604052806000815250612a34565b5050565b611f73612a8f565b6000600a60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611fb7611da0565b604051611fc491906139a6565b60405180910390a1565b611fe9838383604051806020016040528060008152506118f1565b505050565b600080611ffa836115a1565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061203c575061203b8185611b84565b5b8061207a57508373ffffffffffffffffffffffffffffffffffffffff16612062846109dc565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b600061208e826115a1565b905061209c81600084612ad8565b6120a7600083611da8565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120f79190614b30565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461219c81600084612af0565b5050565b6121a8611245565b156121e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121df90614bb0565b60405180910390fd5b565b600080836040516020016121fe9190614c3d565b6040516020818303038152906040528051906020012090506122208184612af5565b91505092915050565b6000600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6122f76121a0565b6001600a60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861233b611da0565b60405161234891906139a6565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036123c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b790614caf565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516124b19190613802565b60405180910390a3505050565b6124cf6124c9611da0565b83611fee565b61250e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250590614488565b60405180910390fd5b61251a84848484612b1c565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6060600082036125d3576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506126e7565b600082905060005b600082146126055780806125ee90614362565b915050600a826125fe91906141dd565b91506125db565b60008167ffffffffffffffff81111561262157612620613af3565b5b6040519080825280601f01601f1916602001820160405280156126535781602001600182028036833780820191505090505b5090505b600085146126e05760018261266c9190614b30565b9150600a8561267b9190614ccf565b603061268791906142a0565b60f81b81838151811061269d5761269c61453a565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856126d991906141dd565b9450612657565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806127b757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806127c757506127c682612b78565b5b9050919050565b8273ffffffffffffffffffffffffffffffffffffffff166127ee826115a1565b73ffffffffffffffffffffffffffffffffffffffff1614612844576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283b90614d72565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036128b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128aa90614e04565b60405180910390fd5b6128be838383612ad8565b6128c9600082611da8565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129199190614b30565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461297091906142a0565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a2f838383612af0565b505050565b612a3e8383612be2565b612a4b6000848484612dbb565b612a8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a8190614e96565b60405180910390fd5b505050565b612a97611245565b612ad6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612acd90614f02565b60405180910390fd5b565b612ae06121a0565b612aeb838383612f42565b505050565b505050565b6000806000612b048585613054565b91509150612b11816130a5565b819250505092915050565b612b278484846127ce565b612b3384848484612dbb565b612b72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6990614e96565b60405180910390fd5b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612c51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c4890614f6e565b60405180910390fd5b612c5a81612520565b15612c9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c9190614fda565b60405180910390fd5b612ca660008383612ad8565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612cf691906142a0565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612db760008383612af0565b5050565b6000612ddc8473ffffffffffffffffffffffffffffffffffffffff16613271565b15612f35578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612e05611da0565b8786866040518563ffffffff1660e01b8152600401612e279493929190615044565b6020604051808303816000875af1925050508015612e6357506040513d601f19601f82011682018060405250810190612e6091906150a5565b60015b612ee5573d8060008114612e93576040519150601f19603f3d011682016040523d82523d6000602084013e612e98565b606091505b506000815103612edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ed490614e96565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612f3a565b600190505b949350505050565b612f4d838383613294565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612f8f57612f8a81613299565b612fce565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612fcd57612fcc83826132e2565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036130105761300b8161344f565b61304f565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461304e5761304d8282613520565b5b5b505050565b60008060418351036130955760008060006020860151925060408601519150606086015160001a90506130898782858561359f565b9450945050505061309e565b60006002915091505b9250929050565b600060048111156130b9576130b86150d2565b5b8160048111156130cc576130cb6150d2565b5b031561326e57600160048111156130e6576130e56150d2565b5b8160048111156130f9576130f86150d2565b5b03613139576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131309061514d565b60405180910390fd5b6002600481111561314d5761314c6150d2565b5b8160048111156131605761315f6150d2565b5b036131a0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613197906151b9565b60405180910390fd5b600360048111156131b4576131b36150d2565b5b8160048111156131c7576131c66150d2565b5b03613207576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131fe9061524b565b60405180910390fd5b60048081111561321a576132196150d2565b5b81600481111561322d5761322c6150d2565b5b0361326d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613264906152dd565b60405180910390fd5b5b50565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016132ef84611658565b6132f99190614b30565b90506000600760008481526020019081526020016000205490508181146133de576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506134639190614b30565b90506000600960008481526020019081526020016000205490506000600883815481106134935761349261453a565b5b9060005260206000200154905080600883815481106134b5576134b461453a565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613504576135036152fd565b5b6001900381819060005260206000200160009055905550505050565b600061352b83611658565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156135da5760006003915091506136a2565b601b8560ff16141580156135f25750601c8560ff1614155b156136045760006004915091506136a2565b6000600187878787604051600081526020016040526040516136299493929190615357565b6020604051602081039080840390855afa15801561364b573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613699576000600192509250506136a2565b80600092509250505b94509492505050565b8280546136b790613f65565b90600052602060002090601f0160209004810192826136d95760008555613720565b82601f106136f257805160ff1916838001178555613720565b82800160010185558215613720579182015b8281111561371f578251825591602001919060010190613704565b5b50905061372d9190613731565b5090565b5b8082111561374a576000816000905550600101613732565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61379781613762565b81146137a257600080fd5b50565b6000813590506137b48161378e565b92915050565b6000602082840312156137d0576137cf613758565b5b60006137de848285016137a5565b91505092915050565b60008115159050919050565b6137fc816137e7565b82525050565b600060208201905061381760008301846137f3565b92915050565b6000819050919050565b6138308161381d565b82525050565b600060208201905061384b6000830184613827565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561388b578082015181840152602081019050613870565b8381111561389a576000848401525b50505050565b6000601f19601f8301169050919050565b60006138bc82613851565b6138c6818561385c565b93506138d681856020860161386d565b6138df816138a0565b840191505092915050565b6000602082019050818103600083015261390481846138b1565b905092915050565b6139158161381d565b811461392057600080fd5b50565b6000813590506139328161390c565b92915050565b60006020828403121561394e5761394d613758565b5b600061395c84828501613923565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061399082613965565b9050919050565b6139a081613985565b82525050565b60006020820190506139bb6000830184613997565b92915050565b6139ca81613985565b81146139d557600080fd5b50565b6000813590506139e7816139c1565b92915050565b60008060408385031215613a0457613a03613758565b5b6000613a12858286016139d8565b9250506020613a2385828601613923565b9150509250929050565b600080600060608486031215613a4657613a45613758565b5b6000613a54868287016139d8565b9350506020613a65868287016139d8565b9250506040613a7686828701613923565b9150509250925092565b60008060408385031215613a9757613a96613758565b5b6000613aa585828601613923565b9250506020613ab685828601613923565b9150509250929050565b6000604082019050613ad56000830185613997565b613ae26020830184613827565b9392505050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613b2b826138a0565b810181811067ffffffffffffffff82111715613b4a57613b49613af3565b5b80604052505050565b6000613b5d61374e565b9050613b698282613b22565b919050565b600067ffffffffffffffff821115613b8957613b88613af3565b5b613b92826138a0565b9050602081019050919050565b82818337600083830152505050565b6000613bc1613bbc84613b6e565b613b53565b905082815260208101848484011115613bdd57613bdc613aee565b5b613be8848285613b9f565b509392505050565b600082601f830112613c0557613c04613ae9565b5b8135613c15848260208601613bae565b91505092915050565b600060208284031215613c3457613c33613758565b5b600082013567ffffffffffffffff811115613c5257613c5161375d565b5b613c5e84828501613bf0565b91505092915050565b6000819050919050565b613c7a81613c67565b8114613c8557600080fd5b50565b600081359050613c9781613c71565b92915050565b600067ffffffffffffffff821115613cb857613cb7613af3565b5b613cc1826138a0565b9050602081019050919050565b6000613ce1613cdc84613c9d565b613b53565b905082815260208101848484011115613cfd57613cfc613aee565b5b613d08848285613b9f565b509392505050565b600082601f830112613d2557613d24613ae9565b5b8135613d35848260208601613cce565b91505092915050565b600080600060608486031215613d5757613d56613758565b5b6000613d6586828701613c88565b935050602084013567ffffffffffffffff811115613d8657613d8561375d565b5b613d9286828701613d10565b9250506040613da386828701613923565b9150509250925092565b600060208284031215613dc357613dc2613758565b5b6000613dd1848285016139d8565b91505092915050565b613de3816137e7565b8114613dee57600080fd5b50565b600081359050613e0081613dda565b92915050565b600060208284031215613e1c57613e1b613758565b5b6000613e2a84828501613df1565b91505092915050565b60008060408385031215613e4a57613e49613758565b5b6000613e58858286016139d8565b9250506020613e6985828601613df1565b9150509250929050565b60008060008060808587031215613e8d57613e8c613758565b5b6000613e9b878288016139d8565b9450506020613eac878288016139d8565b9350506040613ebd87828801613923565b925050606085013567ffffffffffffffff811115613ede57613edd61375d565b5b613eea87828801613d10565b91505092959194509250565b60008060408385031215613f0d57613f0c613758565b5b6000613f1b858286016139d8565b9250506020613f2c858286016139d8565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613f7d57607f821691505b602082108103613f9057613f8f613f36565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613ff260218361385c565b9150613ffd82613f96565b604082019050919050565b6000602082019050818103600083015261402181613fe5565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000614084603e8361385c565b915061408f82614028565b604082019050919050565b600060208201905081810360008301526140b381614077565b9050919050565b60006040820190506140cf6000830185613997565b6140dc6020830184613997565b9392505050565b6000815190506140f281613dda565b92915050565b60006020828403121561410e5761410d613758565b5b600061411c848285016140e3565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061415f8261381d565b915061416a8361381d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156141a3576141a2614125565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006141e88261381d565b91506141f38361381d565b925082614203576142026141ae565b5b828204905092915050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b600061426a602b8361385c565b91506142758261420e565b604082019050919050565b600060208201905081810360008301526142998161425d565b9050919050565b60006142ab8261381d565b91506142b68361381d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156142eb576142ea614125565b5b828201905092915050565b7f416d6f756e74206578636565647320737570706c792e00000000000000000000600082015250565b600061432c60168361385c565b9150614337826142f6565b602082019050919050565b6000602082019050818103600083015261435b8161431f565b9050919050565b600061436d8261381d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361439f5761439e614125565b5b600182019050919050565b7f42616c616e6365206973207a65726f0000000000000000000000000000000000600082015250565b60006143e0600f8361385c565b91506143eb826143aa565b602082019050919050565b6000602082019050818103600083015261440f816143d3565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000614472602e8361385c565b915061447d82614416565b604082019050919050565b600060208201905081810360008301526144a181614465565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614504602c8361385c565b915061450f826144a8565b604082019050919050565b60006020820190508181036000830152614533816144f7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e6f7420656e6f756768204554482073656e742e000000000000000000000000600082015250565b600061459f60148361385c565b91506145aa82614569565b602082019050919050565b600060208201905081810360008301526145ce81614592565b9050919050565b7f416d6f756e742065786365656473206d6178206d696e7461626c6520414c2e00600082015250565b600061460b601f8361385c565b9150614616826145d5565b602082019050919050565b6000602082019050818103600083015261463a816145fe565b9050919050565b7f41646472657373206973206e6f7420616c6c6f776c6973746564000000000000600082015250565b6000614677601a8361385c565b915061468282614641565b602082019050919050565b600060208201905081810360008301526146a68161466a565b9050919050565b600081519050919050565b600081905092915050565b60006146ce826146ad565b6146d881856146b8565b93506146e881856020860161386d565b80840191505092915050565b600061470082846146c3565b915081905092915050565b7f5369676e61747572652068617320616c7265616479206265656e20757365642e600082015250565b600061474160208361385c565b915061474c8261470b565b602082019050919050565b6000602082019050818103600083015261477081614734565b9050919050565b600060608201905061478c6000830186613827565b6147996020830185613997565b6147a66040830184613827565b949350505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006147e460188361385c565b91506147ef826147ae565b602082019050919050565b60006020820190508181036000830152614813816147d7565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b600061487660298361385c565b91506148818261481a565b604082019050919050565b600060208201905081810360008301526148a581614869565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614908602f8361385c565b9150614913826148ac565b604082019050919050565b60006020820190508181036000830152614937816148fb565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b6000815461496b81613f65565b614975818661493e565b9450600182166000811461499057600181146149a1576149d4565b60ff198316865281860193506149d4565b6149aa85614949565b60005b838110156149cc578154818901526001820191506020810190506149ad565b838801955050505b50505092915050565b60006149e882613851565b6149f2818561493e565b9350614a0281856020860161386d565b80840191505092915050565b6000614a1a828561495e565b9150614a2682846149dd565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614a8e60268361385c565b9150614a9982614a32565b604082019050919050565b60006020820190508181036000830152614abd81614a81565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614afa60208361385c565b9150614b0582614ac4565b602082019050919050565b60006020820190508181036000830152614b2981614aed565b9050919050565b6000614b3b8261381d565b9150614b468361381d565b925082821015614b5957614b58614125565b5b828203905092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000614b9a60108361385c565b9150614ba582614b64565b602082019050919050565b60006020820190508181036000830152614bc981614b8d565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000614c06601c8361493e565b9150614c1182614bd0565b601c82019050919050565b6000819050919050565b614c37614c3282613c67565b614c1c565b82525050565b6000614c4882614bf9565b9150614c548284614c26565b60208201915081905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614c9960198361385c565b9150614ca482614c63565b602082019050919050565b60006020820190508181036000830152614cc881614c8c565b9050919050565b6000614cda8261381d565b9150614ce58361381d565b925082614cf557614cf46141ae565b5b828206905092915050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614d5c60258361385c565b9150614d6782614d00565b604082019050919050565b60006020820190508181036000830152614d8b81614d4f565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614dee60248361385c565b9150614df982614d92565b604082019050919050565b60006020820190508181036000830152614e1d81614de1565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614e8060328361385c565b9150614e8b82614e24565b604082019050919050565b60006020820190508181036000830152614eaf81614e73565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614eec60148361385c565b9150614ef782614eb6565b602082019050919050565b60006020820190508181036000830152614f1b81614edf565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614f5860208361385c565b9150614f6382614f22565b602082019050919050565b60006020820190508181036000830152614f8781614f4b565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614fc4601c8361385c565b9150614fcf82614f8e565b602082019050919050565b60006020820190508181036000830152614ff381614fb7565b9050919050565b600082825260208201905092915050565b6000615016826146ad565b6150208185614ffa565b935061503081856020860161386d565b615039816138a0565b840191505092915050565b60006080820190506150596000830187613997565b6150666020830186613997565b6150736040830185613827565b8181036060830152615085818461500b565b905095945050505050565b60008151905061509f8161378e565b92915050565b6000602082840312156150bb576150ba613758565b5b60006150c984828501615090565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b600061513760188361385c565b915061514282615101565b602082019050919050565b600060208201905081810360008301526151668161512a565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006151a3601f8361385c565b91506151ae8261516d565b602082019050919050565b600060208201905081810360008301526151d281615196565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b600061523560228361385c565b9150615240826151d9565b604082019050919050565b6000602082019050818103600083015261526481615228565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006152c760228361385c565b91506152d28261526b565b604082019050919050565b600060208201905081810360008301526152f6816152ba565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b61533581613c67565b82525050565b600060ff82169050919050565b6153518161533b565b82525050565b600060808201905061536c600083018761532c565b6153796020830186615348565b615386604083018561532c565b615393606083018461532c565b9594505050505056fea2646970667358221220792e42f3e2e509b010fd1abf36aeba0008f5edf16615ae0e97d9e51fe8ce315864736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003068747470733a2f2f6170692e61657468657267616d65732e696f2f6765742f666f756e6465727061636b735f6574682f00000000000000000000000000000000
-----Decoded View---------------
Arg [0] : customBaseURI_ (string): https://api.aethergames.io/get/founderpacks_eth/
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000030
Arg [2] : 68747470733a2f2f6170692e61657468657267616d65732e696f2f6765742f66
Arg [3] : 6f756e6465727061636b735f6574682f00000000000000000000000000000000
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.