ERC-721
Overview
Max Total Supply
6,666 ⚉
Holders
1,923
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 ⚉Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Edgehogs
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/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); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol pragma solidity ^0.8.0; /** * @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; } } pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol pragma solidity ^0.8.0; /** * @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); } // File: @openzeppelin/contracts/utils/Strings.sol pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } // File: @openzeppelin/contracts/utils/Address.sol pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/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 `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts/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; } } // File: @openzeppelin/contracts/token/ERC721/ERC721.sol pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} } // File: @openzeppelin/contracts/access/Ownable.sol pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // Creator: Chiru Labs pragma solidity ^0.8.4; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerQueryForNonexistentToken(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @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 override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr && curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _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 { _transfer(from, to, tokenId); if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex != end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex != end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // OpenZeppelin Contracts v4.4.0 (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } } ///////////////////////////////////////// /////🦔INTERFACES🦔///////////////////// //////////////////////////////////////// contract OwnableDelegateProxy {} contract OpenSeaProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } pragma solidity ^0.8.12; interface InterfaceDescriptor { function renderBottom(uint256 _bottom) external view returns (bytes memory); function renderClothes(uint256 _clothes) external view returns (bytes memory); function renderBack(uint256 _back) external view returns (bytes memory); function renderAccessory(uint256 _accessory) external view returns (bytes memory); function renderHeadgear(uint256 _headgear) external view returns (bytes memory); function renderMouth(uint256 _mouth) external view returns (bytes memory); function renderBackground(uint256 _background) external view returns (bytes memory); function renderEyes(uint256 _eyes) external view returns (bytes memory); function renderLegendary(uint256 _legendary) external view returns (bytes memory); } // File: contracts/edgehogs.sol // (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((( // (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((( // (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((( // (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((( // (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((( // (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((( // (((((((((((((((((((((((((((((((((%%%(((%%%(((%%%(((%%%%%%((((((((((((((((((((((((((((((((((((((( // (((((((((((((((((((((((((((((((((@@@(((@@@(((@@@(((@@@@@@((((((((((((((((((((((((((((((((((((((( // ((((((((((((((((((((((((@@@(((@@@&&&@@@&&&@@@%%%@@@%%%%%%@@@(((((((((((((((((((((((((((((((((((( // ((((((((((((((((((((((((@@@@@@&&&%%%&&&%%%%%%###%%%###%%%###@@@((((((((((((((((((((((((((((((((( // (((((((((((((((((((((@@@&&&%%%######%%%%%%######%%%###%%%###%%%@@@(((((((((((((((((((((((((((((( // ((((((((((((((((((@@@&&&&&&&&&%%%###%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@@@((((((((((((((((((((((((((( // ((((((((((((######&&&&&&%%%&&&%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@@@#########(((((((((((((((((( // ((((((((((((@@@@@@&&&&&&###@@@@@@@@@###%%%%%%%%%%%%%%%%%%%%%%%%%%%@@@@@@@@@@@@(((((((((((((((((( // (((((((((((((((@@@&&&%%%###@@@******%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@@@******&@@(((((((((((((((((( // (((((((((((((((@@@&&&%%%###%%%@@@***%%%///,,,,,,,,,%%%%%%*,,,,,,,,///***&@@((((((((((((((((((((( // (((((((((@@@@@@&&&&&&&&&%%%%%%%%%@@@(//,,,,,,,,,,,,,,,,,,,,,,,,//////###@@@((((((((((((((((((((( // ((((((((((((@@@&&&%%%%%%%%%%%%%%%@@@(//,,,,,,@@@ ,,,,,,,,,///@@@ ###@@@((((((((((((((((((((( // ((((((((((((@@@&&&%%%%%%%%%%%%%%%@@@(//,,,,,,@@@ ,,,,,,,,,///@@@ ###@@@((((((((((((((((((((( // (((((((((@@@@@@%%%&&&%%%%%%%%%%%%@@@(//,,,,,,@@@@@@*,,,,,,,,,,,@@@@@@###@@@((((((((((((((((((((( // ((((((((((((@@@&&&&&&%%%###%%%%%%@@@(//////////////,,,,,,,,,,,,//////&@@(((((((((((((((((((((((( // (((((((((@@@&&&%%%&&&%%%%%%%%%@@@###//////,,,,,,,,,,,,,,,,,,@@@@@@(//&@@(((((((((((((((((((((((( // (((((((((@@@&&&&&&&&&%%%###@@@#########@@@(///////////,,,@@@@@@@@@@@@((((((((((((((((((((((((((( // (((((((((@@@&&&%%%&&&&&&###@@@###//////###@@@@@@@@@@@@@@@@@@@@@@@@(((((((((((((((((((((((((((((( // (((((((((@@@&&&%%%&&&&&&###@@@###//////###@@@@@@@@@@@@@@@@@@@@@@@@(((((((((((((((((((((((((((((( // (((((((((@@@&&&%%%######@@@###///////////////###############@@@((((((((((((((((((((((((((((((((( // ((((((@@@&&&&&&%%%&&&###@@@###/////////,,,,,,,,,,,,//////###@@@((((((((((((((((((((((((((((((((( // (((((((((@@@&&&%%%&&&@@@###/////////,,,,,,,,,,,,,,,,,,//////&@@@@@(((((((((((((((((((((((((((((( // ((((((@@@&&&&&&%%%###@@@###/////////,,,,,,,,,,,,,,,,,,,,,///&@@(//&@@((((((((((((((((((((((((((( // (((((((((@@@&&&%%%###@@@######@@@(//,,,,,,,,,,,,,,,,,,,,,///&@@(//&@@((((((((((((((((((((((((((( // (((((((((@@@&&&%%%###@@@######@@@(//,,,,,,,,,,,,,,,,,,,,,///&@@(//&@@((((((((((((((((((((((((((( // (((((((((@@@&&&&&&&&&@@@###///@@@(//,,,,,,,,,,,,,,,,,,,,,///&@@(//&@@((((((((((((((((((((((((((( // ((((((@@@&&&&&&&&&###@@@###///@@@(//,,,,,,,,,,,,,,,,,,//////&@@(//&@@((((((((((((((((((((((((((( // (((((((((@@@&&&&&&%%%###@@@@@@(////////,,,,,,,,,,,,,,,//////&@@@@@(((((((((((((((((((((((((((((( // ((((((((((((@@@&&&%%%%%%@@@###////////////,,,,,,,,,/////////&@@((((((((((((((((((((((((((((((((( // (((((((((((((((@@@######@@@###///////////////////////////&@@(((((((((((((((((((((((((((((((((((( // (((((((((((((((@@@######@@@###///////////////////////////&@@(((((((((((((((((((((((((((((((((((( // ((((((((((((((((((@@@@@@@@@###///@@@@@@@@@@@@@@@###///&@@(((((((((((((((@spiridono(((((((((((((( // ((((((((((((((((((((((((@@@###///@@@(((((((((@@@###///&@@((((((((((((((((((((((((((((((((((((((( contract Edgehogs is Ownable, ERC721A { uint256 public MAX = 6666; uint256 public MAX_FREE = 696; uint256 public MAX_REROLLS = 1000; uint256 public PURCHASE_LIMIT = 10; uint256 public PRICE = 0.025 ether; uint256 public REROLL_PRICE = 0.01 ether; uint256 public mintedTokens; uint256 public rerollsMade; uint256 public freeClaimed; uint8 public saleState = 0; // = DEV, 1 = SALE, 2 = REROLL, 3 = CLOSED // OpenSea auto approve is live bool public isOpenSeaApproved; //Legendaries status bool public legendariesSet = false; // OpenSea proxy registry contract OpenSeaProxyRegistry public openSeaProxyRegistry; // withdraw addresses address t1 = 0x392D50fCFDd5b36E6DdDB22bcB84AA80B8105890; // address t2 = 0xE0b76103Ec5d8159939572A61286bD3291DB8a43; //Steve Aoki addrress address steveAoki = 0xe4bBCbFf51e61D0D95FcC5016609aC8354B177C4; //Save seed for traits for each token mapping(uint256 => uint256) public tokenSeed; // amount minted by address in presale mapping(address => uint256) public whitelistMints; InterfaceDescriptor public descriptor; uint16[][8] rarities; string[][9] traitsByName; uint256[] legendaryList; // Mapping from token ID to name mapping (uint256 => string) private _tokenName; // Mapping if certain name string has already been reserved mapping (string => bool) private _nameReserved; // presale merkle tree root bytes32 internal _merkleRoot; //SVG-parts shared by all Edgehogs string private constant svgStart = "<svg id='edgehog' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' width='640' height='640'>"; string private constant svgEnd = "<style>#edgehog{shape-rendering: crispedges; image-rendering: -moz-crisp-edges; image-rendering: optimizeSpeed; image-rendering: -webkit-crisp-edges; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated; -ms-interpolation-mode: nearest-neighbor;}.vibe { animation: 0.5s vibe infinite alternate ease-in-out; } @keyframes vibe { from { transform: translateY(0px); } to { transform: translateY(1.5%); } }</style></svg>"; string private constant _body = "<image href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEABAMAAACuXLVVAAAAD1BMVEUAAACTg2rLtaEnDQhZVlIUtesvAAAAAXRSTlMAQObYZgAAAMhJREFUeNrt2bENxCAQRUG3QAvXAi24/5oOS15hmdNB6vVMQkDwXwwbAAAAAAAAAAAAAAAAAAAAAMCq2uzNtkiAAAG5AmI8bBMCBAjIG1BOswgBAgTkCujjo/2H2ggQICB/wOemnAQIEJAvYD4+RtSTAAEC3hdwiIA4BQgQkCfgUBsBAgS8N6A0AgQIEDALKI0AAQJyBoRysfpAIUCAgOcH/Pu4vI+HGBcgQED+gG4cFyBAQN6AOoi7Pi5AgID8Adc7AQIEpAj4AjgSOK7j5zUdAAAAAElFTkSuQmCC'/>"; string private constant _head = "<g class='vibe'><image href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEABAMAAACuXLVVAAAAFVBMVEUAAADLtaEnDQiTg2rsmJkAAABZVlL0LlrIAAAAAXRSTlMAQObYZgAAALBJREFUeNrt1s0JwzAMgNGukBWyQlfoCl2h+4/QGCwQAZOfm5X3rpHQdwp+AQAAAAAAAAAAAJyxJnf3BAgQMH/Ap7uyFzsCBAiYPyBHvLsliZklaTP5uAABAuYPiIh0fCgifxsBAgQ8LyB/FyBAwDMDGgECBNQP2Bs9SOK4AAEC6gQ0o6Ph2wkQIKBuwOiHFMdDPi5AgIB6Ac16YD8vQICAegEAAAAAAAAAAAAAAEAZf88p+dDBeVtDAAAAAElFTkSuQmCC'/></g>"; constructor( InterfaceDescriptor descriptor_, OpenSeaProxyRegistry openSeaProxyRegistry_, bytes32 merkleRoot_ ) ERC721A("EDGEHOGS", unicode"⚉") { //Solidity 0.8.12 does not seem to support Unicode 10.0 emojis as of now, otherwise it would have been 🦔 ofc // Initializing variables descriptor = descriptor_; openSeaProxyRegistry = openSeaProxyRegistry_; _merkleRoot = merkleRoot_; //sum of rarities values must be equal to the mod used in _getRandomIndex, 10000 in our case rarities[0] = [0, 200, 2000, 2000, 2000, 2000, 900, 900 ]; //backgrounds rarities[1] = [ 0, 1000, 850, 700, 700, 700, 600, 600, 500, 500, 400, 400, 300, 300, 300, 300, 300, 300, 200, 200, 200, 200, 200, 100, 100, 50 ]; //backs rarities[2] = [ 0, 550, 550, 550, 550, 550, 550, 550, 550, 550, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 50 ]; //bottoms rarities[3] = [ 0, 550, 550, 550, 550, 550, 550, 550, 550, 550, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 50 ]; //clothes rarities[4] = [ 0, 1000, 800, 800, 800, 600, 600, 500, 500, 400, 400, 400, 400, 400, 300, 300, 300, 300, 300, 200, 200, 200, 150, 100, 50 ]; //mouths rarities[5] = [ 0, 800, 600, 600, 600, 600, 600, 400, 400, 400, 400, 300, 300, 300, 300, 300, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 100, 100, 100, 100, 100, 100, 100, 50, 50, 50, 50 ]; //headgears rarities[6] = [ 0, 850, 800, 800, 600, 600, 600, 400, 400, 400, 400, 300, 300, 300, 300, 300, 200, 200, 200, 200, 200, 200, 200, 200, 200, 100, 100, 100, 100, 100, 100, 100, 100, 50 ]; //eyes rarities[7] = [ 0, 800, 700, 700, 700, 700, 500, 500, 500, 500, 500, 500, 500, 400, 400, 400, 300, 200, 200, 200, 200, 200, 100, 100, 100, 50, 50 ]; //accessories //traits //backgrounds traitsByName[0] = [ "n/a", "Psychedelic", "Purple", "Orange", "Green", "Pink", "Pink-Blue", "Blue-Green" ]; //backs traitsByName[1] = [ "n/a", "Edgehog", "Firework", "Black", "Neon Sparks", "Shoomery", "Pirate", "Punk", "Grant us Eyes", "Rainbow", "Neon Punk", "Psychedelic", "Slime", "Spotty", "Christmas", "Brainiac", "Cyberhog", "Bubble gum", "Skellyhog", "TNT", "Biohazard", "Robohog", "Hellhog", "Virus", "Pure Gold", "Diamond" ]; //bottoms traitsByName[2] = [ "n/a", "Fancy", "Padre", "Joker", "Vault Dweller", "Santa", "Torn Jeans", "Fishnets", "Bikini", "Green", "Pajamas", "BDSM", "Mime", "Pink", "Jungle", "Rainbow", "Elvis", "Bathog", "Partyhog", "Skelly", "Pure Gold" ]; //clothes traitsByName[3] = [ "n/a", "Pink", "Joker", "Vault Dweller", "Padre", "Santa", "Freddy", "Pierced Nips", "Bikini", "Punk", "Pajamas", "BDSM", "Mime", "Rapper", "Buff", "Rainbow", "Elvis", "Bathog", "Partyhog", "Skelly", "Pure Gold" ]; //mouths traitsByName[4] = [ "None", "Plain", "Smile", "Drooling", "Tongue", "Pipe", "Party", "Love", "Zombie", "Rabid", "Blush", "Mime", "Bubble gum", "Blunt", "Bloody", "Licker", "Vampire", "Blotter", "Virus", "Red Beard", "Golden tooth", "TNT", "Hannibal", "Biohazard", "Laser" ]; //headgears traitsByName[5] = [ "n/a", "None", "Beanie", "Fastfood", "Apple", "Frying pan", "Tinfoil hat", "Arrow", "Punk", "Rabbit ears", "Doc", "Pizza", "Anntennae", "Horny", "Pretty bow", "Eye", "Devil", "Skull", "Toad", "Unicorn", "Kamikaze", "Santa", "Pirate", "Alien eyes", "Demon", "Crown", "Chief", "Zombie hand", "Fake halo", "Brainz", "Strawberry cap", "Russian hat", "Frankenhog", "Plunger", "Sroomhead", "Octopus", "Plague Doctor", "VR" ]; //eyes traitsByName[6] = [ "n/a", "Plain", "Sus", "Green", "Crosseyed", "Angry", "Kawaii", "Tired", "Grumpy", "Red goggles", "Green goggles", "Bloodshot", "Goomba", "Eye patch", "Squinty", "Insane", "Vampire", "Pop out", "Popeye", "Dizzy", "Triple eye", "Hearts", "XX", "Alien", "VR goggles", "Cyclops", "Rainbow goggles", "Cyborg", "Cyberhog", "Demon", "Hogminator", "Steampunk", "Deal with it", "Lasers" ]; //accessories traitsByName[7] = [ "n/a", "None", "Coffee", "Sausage", "Sorcerer staff", "Mana potion", "Bong", "Pirate flag", "Whip", "Beer", "Steel claws", "Trident", "Knife", "Club", "Balloon", "Shocker", "Biohazard", "Lightsaber", "Master Sword", "Doggy", "Rose", "Gun", "Pee", "Chainsaw", "Scythe", "Dildo", "Minigun" ]; traitsByName[8] = [ "n/a", "Nude Dude", "Dark Entity", "Acid Hog", "Zombie Hog", "Hog Spirit", "Lava Hog", "Why So Serious", "Robohog", "Very Fast Blue Hog", "Retrohog" ]; } //Get the attribute name for the properties of the token by its index function _getTrait(uint256 _trait, uint256 index) internal view returns (string memory) { return traitsByName[_trait][index]; } //////////////////////////////////////////////////////////// /////🦔GENERATE TRAITS AND SVG BASED ON SEED🦔///////////// /////////////////////////////////////////////////////////// //Get randomized values for each different trait with a single pseudorandom seed // note: we are generating both traits and SVG on the fly based on the seed which is the the only parameter saved in memory // Not writing a whole struct allows for serious gas savings on mint, but has a downside that we can't easily address or change a single trait function getTraits(uint256 seed) public view returns (string memory svg, string memory properties) { uint16[] memory randomInputs = expand(seed, 8); uint16[] memory traits = new uint16[](9); /** traits[0] bg traits[1] back traits[2] bottom traits[3] clothes traits[4] mouth traits[5] headgear traits[6] eyes traits[7] accessory traits[8] legendary */ if (seed > 100) { traits[0] = getRandomIndex(rarities[0], randomInputs[0]); traits[1] = getRandomIndex(rarities[1], randomInputs[1]); traits[2] = getRandomIndex(rarities[2], randomInputs[2]); traits[3] = getRandomIndex(rarities[3], randomInputs[3]); traits[4] = getRandomIndex(rarities[4], randomInputs[4]); traits[5] = getRandomIndex(rarities[5], randomInputs[5]); traits[6] = getRandomIndex(rarities[6], randomInputs[6]); traits[7] = getRandomIndex(rarities[7], randomInputs[7]); traits[8] = 0; //handling compatibility exceptions //tnt //hellhog if (traits[1] == 19 || traits[1] == 22) { traits[5] = 1; } //tnt if (traits[4] == 21) { traits[7] = 0; } //staff //scythe //plain if (traits[7] == 4 || traits[7] == 24) { traits[4] = 1; } //VR if (traits[5] == 37) { traits[6] = 1; } //Plague if (traits[5] == 36) { traits[6] = 1; traits[4] = 0; } } else { traits[0] = 0; traits[1] = 0; traits[2] = 0; traits[3] = 0; traits[4] = 0; traits[5] = 0; traits[6] = 0; traits[7] = 0; traits[8] = uint16(seed); } // render svg bytes memory _svg = renderEdgehog( traits[0], traits[1], traits[2], traits[3], traits[4], traits[5], traits[6], traits[7], traits[8] ); svg = base64(_svg); // pack properties, put 1 after the last property for JSON to be formed correctly (no comma after the last one) if (seed > 100) { bytes memory _properties = abi.encodePacked( packMetaData("background", _getTrait(0, traits[0]), 0), packMetaData("back", _getTrait(1, traits[1]), 0), packMetaData("bottom", _getTrait(2, traits[2]), 0), packMetaData("clothes", _getTrait(3, traits[3]), 0), packMetaData("mouth", _getTrait(4, traits[4]), 0), packMetaData("headgear", _getTrait(5, traits[5]), 0), packMetaData("eyes", _getTrait(6, traits[6]), 0), packMetaData("accessory", _getTrait(7, traits[7]), 1) ); properties = string(abi.encodePacked(_properties)); } else { bytes memory _properties = abi.encodePacked( packMetaData("legendary", _getTrait(8, seed), 1) ); properties = string(abi.encodePacked(_properties)); } return (svg, properties); } // Get a random attribute using the rarities defined // Shout out to Anonymice for the logic function getRandomIndex( uint16[] memory attributeRarities, uint256 randomNumber ) private pure returns (uint16 index) { uint16 random10k = uint16(randomNumber % 10000); uint16 lowerBound; for (uint16 i = 1; i <= attributeRarities.length; i++) { uint16 percentage = attributeRarities[i]; if (random10k < percentage + lowerBound && random10k >= lowerBound) { return i; } lowerBound = lowerBound + percentage; } revert(); } //Get attribute svg for each different property of the token function renderEdgehog( uint16 _background, uint16 _back, uint16 _bottom, uint16 _clothes, uint16 _mouth, uint16 _headgear, uint16 _eyes, uint16 _accessory, uint16 _legendary ) public view returns (bytes memory) { bytes memory start = abi.encodePacked( svgStart, descriptor.renderBackground(_background), descriptor.renderBack(_back), _body, descriptor.renderBottom(_bottom) ); return abi.encodePacked( start, descriptor.renderClothes(_clothes), _head, descriptor.renderAccessory(_accessory), descriptor.renderHeadgear(_headgear), descriptor.renderEyes(_eyes), descriptor.renderMouth(_mouth), descriptor.renderLegendary(_legendary), svgEnd ); } ///////////////////////////////////// /////🦔GENERATE METADATA🦔////////// //////////////////////////////////// //Get the metadata for a token in base64 format function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "Token not found"); (string memory svg, string memory properties) = getTraits( tokenSeed[tokenId] ); return string( abi.encodePacked( "data:application/json;base64,", base64( abi.encodePacked( '{"name":"Edgehog #', uint2str(tokenId),' ',_tokenName[tokenId], '", "description": "Edgehogs live on the cutting edge of Ethereum blockchain and are edgy as hell.", "traits": [', properties, '], "image":"data:image/svg+xml;base64,', svg, '"}' ) ) ) ); } // Bundle metadata so it follows the standard function packMetaData( string memory name, string memory svg, uint256 last ) private pure returns (bytes memory) { string memory comma = ","; if (last > 0) comma = ""; return abi.encodePacked( '{"trait_type": "', name, '", "value": "', svg, '"}', comma ); } ///////////////////////////////////// /////🦔MINTING🦔//////////////////// //////////////////////////////////// //giveaways are nice function gift(uint256 numberOfTokens, address recipient) external onlyOwner { uint256 supply = totalSupply(); require(supply + numberOfTokens <= MAX, "Would exceed max supply"); for (uint256 i = 0; i < numberOfTokens; i++) { tokenSeed[supply + i] = uint256( keccak256(abi.encodePacked(block.timestamp, msg.sender, supply + i)) ); } delete supply; _safeMint(recipient, numberOfTokens); } //mint Edgehog function mint(uint256 numberOfTokens) external payable { uint256 supply = totalSupply(); require(saleState == 1, "Sale inactive"); require(msg.sender != steveAoki, "No Steve Aoki!"); require(numberOfTokens <= PURCHASE_LIMIT, "Too many"); require(supply + numberOfTokens <= MAX - MAX_FREE + freeClaimed, "Would exceed max public supply"); require(PRICE * numberOfTokens == msg.value, "Wrong ETH amount"); for (uint256 i = 0; i < numberOfTokens; i++) { tokenSeed[supply + i] = uint256( keccak256(abi.encodePacked(block.timestamp, msg.sender, supply + i)) ); } delete supply; _safeMint(msg.sender, numberOfTokens); } //free mint, 1 per transaction, 1 per wallet, address must be whtelisted function presaleMint(bytes32[] calldata proof_) external { uint256 supply = totalSupply(); require(saleState == 1, "Sale inactive"); require(supply + 1 <= MAX, "Would exceed max supply"); require(isWhitelisted(msg.sender, proof_), "Not on the list"); require(whitelistMints[msg.sender] == 0, "Already minted"); freeClaimed++; whitelistMints[msg.sender]++; tokenSeed[supply] = uint256( keccak256(abi.encodePacked(block.timestamp, msg.sender, supply)) ); delete supply; _safeMint(msg.sender, 1); } //rerolls a common edgehog function reroll(uint256 _tokenId) external payable { require(saleState == 2, "Reroll inactive"); require(rerollsMade < MAX_REROLLS, "No more rerolls"); require(msg.sender == ownerOf(_tokenId), "Only owner can reroll"); require(!isLegendary(_tokenId), "Can't be rerolled"); require(REROLL_PRICE == msg.value, "Wrong ETH amount"); rerollsMade = rerollsMade + 1; tokenSeed[_tokenId] = uint256( keccak256(abi.encodePacked(block.timestamp, msg.sender, _tokenId + 1)) ); } //puts a legendary edgehog in place of a common function rollLegendary(uint256 _tokenId, uint256 _legendaryId) public onlyOwner { //can only make regulars legendaries require(!isLegendary(_tokenId), "Can't be upgraded"); tokenSeed[_tokenId] = _legendaryId; addLegendaryNumber(_legendaryId); } //checks if an edgehog is legendary function isLegendary(uint256 _tokenId) public view returns (bool) { if (tokenSeed[_tokenId] <=100) { return true; } else { return false; } } //set legendaries function setLegendaries(uint256 _legendarySeed) public onlyOwner { require(legendariesSet == false, "Legendaries already set"); uint256 s = totalSupply(); uint256 n = _legendarySeed; for (uint256 i = 1; i <= 10; i++) { uint256 randomNumber = uint256(keccak256(abi.encodePacked(block.timestamp,msg.sender,n))) % s; if (!isLegendary(randomNumber)) { tokenSeed[randomNumber] = i; addLegendaryNumber(randomNumber); n = n * 6; } } delete s; delete n; legendariesSet = true; } ///////////////////////////////////// /////🦔RENAMING🦔/////////////////// //////////////////////////////////// // Shout out to Hashmasks //Changes the name for Edgehog tokenId function changeName(uint256 tokenId, string memory newName) public { address owner = ownerOf(tokenId); require(_msgSender() == owner, "ERC721: caller is not the owner"); require(validateName(newName) == true, "Not a valid new name"); require(sha256(bytes(newName)) != sha256(bytes(_tokenName[tokenId])), "New name is same as the current one"); require(isNameReserved(newName) == false, "Name already reserved"); // If already named, dereserve old name if (bytes(_tokenName[tokenId]).length > 0) { toggleReserveName(_tokenName[tokenId], false); } toggleReserveName(newName, true); _tokenName[tokenId] = newName; emit NameChange(tokenId, newName); } // Events event NameChange (uint256 indexed edgehogId, string newName); //Returns name of the NFT at index. function tokenNameByIndex(uint256 index) public view returns (string memory) { return _tokenName[index]; } //Returns if the name has been reserved. function isNameReserved(string memory nameString) public view returns (bool) { return _nameReserved[toLower(nameString)]; } //Reserves the name if isReserve is set to true, de-reserves if set to false function toggleReserveName(string memory str, bool isReserve) internal { _nameReserved[toLower(str)] = isReserve; } //Check if the name string is valid (Alphanumeric and spaces without leading or trailing space) function validateName(string memory str) public pure returns (bool){ bytes memory b = bytes(str); if(b.length < 1) return false; if(b.length > 25) return false; // Cannot be longer than 25 characters if(b[0] == 0x20) return false; // Leading space if (b[b.length - 1] == 0x20) return false; // Trailing space bytes1 lastChar = b[0]; for(uint i; i<b.length; i++){ bytes1 char = b[i]; if (char == 0x20 && lastChar == 0x20) return false; // Cannot contain continous spaces if( !(char >= 0x30 && char <= 0x39) && //9-0 !(char >= 0x41 && char <= 0x5A) && //A-Z !(char >= 0x61 && char <= 0x7A) && //a-z !(char == 0x20) //space ) return false; lastChar = char; } return true; } //Converts the string to lowercase function toLower(string memory str) public pure returns (string memory){ bytes memory bStr = bytes(str); bytes memory bLower = new bytes(bStr.length); for (uint i = 0; i < bStr.length; i++) { // Uppercase character if ((uint8(bStr[i]) >= 65) && (uint8(bStr[i]) <= 90)) { bLower[i] = bytes1(uint8(bStr[i]) + 32); } else { bLower[i] = bStr[i]; } } return string(bLower); } /////////////////////////////////// /////🦔ADMIN🦔//////////////////// ////////////////////////////////// //Gets the token pre-approved for trading on OpenSea - saves gas for the end users function setOpenSeaProxyRegistry(OpenSeaProxyRegistry openSeaProxyRegistry_) external onlyOwner { openSeaProxyRegistry = openSeaProxyRegistry_; } function flipOpenSeaApproved() external onlyOwner { isOpenSeaApproved = !isOpenSeaApproved; } function flipSaleState() external onlyOwner { require(saleState < 3, "Sale state is already closed"); saleState++; } function setMaxSupply(uint256 _supply) public onlyOwner { MAX = _supply; } function setFreeSupply(uint256 _supply) public onlyOwner { MAX_FREE = _supply; } function setPrice(uint256 _newPrice) external onlyOwner { PRICE = _newPrice; } // Withdraw to the team according to shares function withdrawAll() public payable onlyOwner { uint256 _share = address(this).balance / 100; require(payable(t1).send(_share * 90)); require(payable(t2).send(_share * 10)); } /////////////////////////////////// /////🦔HELPERS🦔////////////////// ////////////////////////////////// function isApprovedForAll(address _owner, address operator) public view override returns (bool) { return (isOpenSeaApproved && address(openSeaProxyRegistry.proxies(_owner)) == operator) || super.isApprovedForAll(_owner, operator); } // Check if the address is whitelisted function isWhitelisted(address account_, bytes32[] calldata proof_) public view returns (bool) { return _verify(_leaf(account_), proof_); } // Set Merckle root function setMerkleRoot(bytes32 merkleRoot_) public onlyOwner { _merkleRoot = merkleRoot_; } // Encode Merckle leaf from address function _leaf(address account_) internal pure returns (bytes32) { return keccak256(abi.encodePacked(account_)); } // verify proof function _verify(bytes32 leaf_, bytes32[] memory proof_) internal view returns (bool) { return MerkleProof.verify(proof_, _merkleRoot, leaf_); } ///set attributes libraries function setDescriptor(address source) external onlyOwner { descriptor = InterfaceDescriptor(source); } //generates random numbers based on a random number function expand(uint256 _randomNumber, uint256 n) private pure returns (uint16[] memory expandedValues) { expandedValues = new uint16[](n); for (uint256 i = 0; i < n; i++) { expandedValues[i] = bytes2uint(keccak256(abi.encode(_randomNumber, i))); } return expandedValues; } //converts uint256 to uint16 function bytes2uint(bytes32 _a) private pure returns (uint16) { return uint16(uint256(_a)); } function freeClaimedCount() external view returns (uint256) { return freeClaimed; } function rerollsMadeCount() external view returns (uint256) { return rerollsMade; } //adds a legendary edgehog's id to the list of legendaties function addLegendaryNumber(uint256 _legendaryId) public onlyOwner { legendaryList.push(_legendaryId); } //returns ids of legendary edgehogs function legendariesList() external view returns (uint256[] memory) { return legendaryList; } //adds a new name to the legendaries array function addNewLegendary(string memory _legendaryName) public onlyOwner { traitsByName[8].push(_legendaryName); } //returns number of tokens owned function tokensOfOwner(address address_) public virtual view returns (uint256[] memory) { uint256 _balance = balanceOf(address_); uint256[] memory _tokens = new uint256[] (_balance); uint256 _index; uint256 _loopThrough = totalSupply(); for (uint256 i = 0; i < _loopThrough; i++) { bool _exists = _exists(i); if (_exists) { if (ownerOf(i) == address_) { _tokens[_index] = i; _index++; } } else if (!_exists && _tokens[_balance - 1] == 0) { _loopThrough++; } } return _tokens; } //Helper function to convert uint to string function uint2str(uint256 _i) internal pure returns (string memory _uintAsString) { if (_i == 0) { return "0"; } uint256 j = _i; uint256 len; while (j != 0) { len++; j /= 10; } bytes memory bstr = new bytes(len); uint256 k = len; while (_i != 0) { k = k - 1; uint8 temp = (48 + uint8(_i - (_i / 10) * 10)); bytes1 b1 = bytes1(temp); bstr[k] = b1; _i /= 10; } return string(bstr); } // Base64 by Brecht Devos - <[email protected]> // Provides a function for encoding some bytes in base64 string internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; function base64(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ''; // load the table into memory string memory table = TABLE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for {} lt(dataPtr, endPtr) {} { dataPtr := add(dataPtr, 3) // read 3 bytes let input := mload(dataPtr) // write 4 characters mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F))))) resultPtr := add(resultPtr, 1) mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F))))) resultPtr := add(resultPtr, 1) mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr( 6, input), 0x3F))))) resultPtr := add(resultPtr, 1) mstore(resultPtr, shl(248, mload(add(tablePtr, and( input, 0x3F))))) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } //if you are reading this, you are a true blockchain nerd. Much love - @spiridono! 🦔 }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract InterfaceDescriptor","name":"descriptor_","type":"address"},{"internalType":"contract OpenSeaProxyRegistry","name":"openSeaProxyRegistry_","type":"address"},{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"edgehogId","type":"uint256"},{"indexed":false,"internalType":"string","name":"newName","type":"string"}],"name":"NameChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FREE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_REROLLS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PURCHASE_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REROLL_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_legendaryId","type":"uint256"}],"name":"addLegendaryNumber","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_legendaryName","type":"string"}],"name":"addNewLegendary","outputs":[],"stateMutability":"nonpayable","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"},{"internalType":"string","name":"newName","type":"string"}],"name":"changeName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"descriptor","outputs":[{"internalType":"contract InterfaceDescriptor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipOpenSeaApproved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeClaimedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"seed","type":"uint256"}],"name":"getTraits","outputs":[{"internalType":"string","name":"svg","type":"string"},{"internalType":"string","name":"properties","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isLegendary","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"nameString","type":"string"}],"name":"isNameReserved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOpenSeaApproved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account_","type":"address"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"legendariesList","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"legendariesSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openSeaProxyRegistry","outputs":[{"internalType":"contract OpenSeaProxyRegistry","name":"","type":"address"}],"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":[{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_background","type":"uint16"},{"internalType":"uint16","name":"_back","type":"uint16"},{"internalType":"uint16","name":"_bottom","type":"uint16"},{"internalType":"uint16","name":"_clothes","type":"uint16"},{"internalType":"uint16","name":"_mouth","type":"uint16"},{"internalType":"uint16","name":"_headgear","type":"uint16"},{"internalType":"uint16","name":"_eyes","type":"uint16"},{"internalType":"uint16","name":"_accessory","type":"uint16"},{"internalType":"uint16","name":"_legendary","type":"uint16"}],"name":"renderEdgehog","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"reroll","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"rerollsMade","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rerollsMadeCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_legendaryId","type":"uint256"}],"name":"rollLegendary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"source","type":"address"}],"name":"setDescriptor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setFreeSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_legendarySeed","type":"uint256"}],"name":"setLegendaries","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot_","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract OpenSeaProxyRegistry","name":"openSeaProxyRegistry_","type":"address"}],"name":"setOpenSeaProxyRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","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":"string","name":"str","type":"string"}],"name":"toLower","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenNameByIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenSeed","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":[{"internalType":"address","name":"address_","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"validateName","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
6080604052611a0a6009556102b8600a9081556103e8600b55600c556658d15e17628000600d55662386f26fc10000600e556012805462ff00ff19169055601380546001600160a01b031990811673392d50fcfdd5b36e6dddb22bcb84aa80b81058901790915560148054821673e0b76103ec5d8159939572a61286bd3291db8a431790556015805490911673e4bbcbff51e61d0d95fcc5016609ac8354b177c4179055348015620000b057600080fd5b506040516200840c3803806200840c833981016040819052620000d3916200290a565b6040518060400160405280600881526020016745444745484f475360c01b81525060405180604001604052806003815260200162e29a8960e81b8152506200012a620001246200244e60201b60201c565b62002452565b81516200013f906003906020850190620024a2565b50805162000155906004906020840190620024a2565b5060006001555050601880546001600160a01b0319166001600160a01b0385811691909117909155601280546301000000600160b81b031916630100000092851692909202919091179055602d81905560408051610100810182526000815260c860208201526107d0918101829052606081018290526080810182905260a081019190915261038460c0820181905260e0820152620001f990601990600862002531565b506040805161034081018252600081526103e86020820152610352918101919091526102bc606082018190526080820181905260a082015261025860c0820181905260e08201526101f46101008201819052610120820152610190610140820181905261016082015261012c61018082018190526101a082018190526101c082018190526101e08201819052610200820181905261022082015260c86102408201819052610260820181905261028082018190526102a082018190526102c082015260646102e082018190526103008201526032610320820152620002e290601a908162002531565b50604080516102a0810182526000815261022660208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810182905261010081018290526101208101919091526101f46101408201819052610160820181905261018082018190526101a082018190526101c082018190526101e0820181905261020082018190526102208201819052610240820181905261026082015260326102808201526200039f90601b90601562002531565b50604080516102a0810182526000815261022660208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810182905261010081018290526101208101919091526101f46101408201819052610160820181905261018082018190526101a082018190526101c082018190526101e0820181905261020082018190526102208201819052610240820181905261026082015260326102808201526200045c90601c90601562002531565b50604080516103208082018352600082526103e8602083015291810182905260608101829052608081019190915261025860a0820181905260c08201526101f460e0820181905261010082015261019061012082018190526101408201819052610160820181905261018082018190526101a082015261012c6101c082018190526101e082018190526102008201819052610220820181905261024082015260c8610260820181905261028082018190526102a082015260966102c082015260646102e082015260326103008201526200053b90601d90601962002531565b50604080516104c0810182526000815261032060208201819052610258928201839052606082018390526080820183905260a0820183905260c082019290925261019060e082018190526101008201819052610120820181905261014082015261012c610160820181905261018082018190526101a082018190526101c082018190526101e082015260c8610200820181905261022082018190526102408201819052610260820181905261028082018190526102a082018190526102c082018190526102e0820181905261030082018190529181018290526103408101919091526064610360820181905261038082018190526103a082018190526103c082018190526103e08201819052610400820181905261042082015260326104408201819052610460820181905261048082018190526104a08201526200068590601e90602662002531565b506040805161044081018252600081526103526020820152610320918101829052606081018290526102586080820181905260a0820181905260c082015261019060e082018190526101008201819052610120820181905261014082015261012c610160820181905261018082018190526101a082018190526101c082018190526101e082015260c8610200820181905261022082018190526102408201819052610260820181905261028082018190526102a082018190526102c082018190526102e0820181905261030082015260649181018290526103408101829052610360810182905261038081018290526103a081018290526103c081018290526103e081018290526104008101919091526032610420820152620007ad90601f90602262002531565b5060408051610360810182526000815261032060208083018290526102bc938301849052606083018490526080830184905260a08301939093526101f460c0830181905260e0830181905261010083018190526101208301819052610140830181905261016083018190526101808301526101906101a083018190526101c083018190526101e083015261012c61020083015260c861022083018190526102408301819052610260830181905261028083018190526102a083015260646102c083018190526102e0830181905261030083015260329082018190526103408201526200089c9190601b62002531565b50604080516101408101825260036101008201908152626e2f6160e81b610120830152815281518083018352600b81526a50737963686564656c696360a81b6020808301919091528083019190915282518084018452600680825265507572706c6560d01b828401528385019190915283518085018552908152654f72616e676560d01b81830152606083015282518084018452600581526423b932b2b760d91b81830152608083015282518084018452600481526350696e6b60e01b8183015260a083015282518084018452600981526850696e6b2d426c756560b81b8183015260c08301528251808401909352600a83526921363ab296a3b932b2b760b11b9083015260e0810191909152620009b9906021906008620025dc565b50604080516103808101825260036103408201818152626e2f6160e81b61036084015282528251808401845260078082526645646765686f6760c81b602080840191909152808501929092528451808601865260088082526746697265776f726b60c01b828501528587019190915285518087018752600580825264426c61636b60d81b82860152606087019190915286518088018852600b8082526a4e656f6e20537061726b7360a81b828701526080880191909152875180890189528381526753686f6f6d65727960c01b8187015260a08801528751808901895260068082526550697261746560d01b8288015260c08901919091528851808a018a52600481526350756e6b60e01b8188015260e08901528851808a018a52600d81526c4772616e74207573204579657360981b818801526101008901528851808a018a52858152665261696e626f7760c81b818801526101208901528851808a018a526009808252684e656f6e2050756e6b60b81b828901526101408a01919091528951808b018b529283526a50737963686564656c696360a81b838801526101608901929092528851808a018a5283815264536c696d6560d81b818801526101808901528851808a018a529081526553706f74747960d01b818701526101a088015287518089018952818152684368726973746d617360b81b818701526101c08801528751808901895283815267427261696e69616360c01b818701526101e088015287518089018952928352674379626572686f6760c01b8386015261020087019290925286518088018852600a815269427562626c652067756d60b01b818601526102208701528651808801885282815268536b656c6c79686f6760b81b81860152610240870152865180880188529485526215139560ea1b858501526102608601949094528551808701875281815268109a5bda185e985c9960ba1b818501526102808601528551808701875282815266526f626f686f6760c81b818501526102a0860152855180870187528281526648656c6c686f6760c81b818501526102c08601528551808701875293845264566972757360d81b848401526102e08501939093528451808601865292835268141d5c994811dbdb1960ba1b83830152610300840192909252835180850190945290835266111a585b5bdb9960ca1b9083015261032081019190915262000d3590602290601a6200263c565b50604080516102e08101825260036102a08201908152626e2f6160e81b6102c083015281528151808301835260058082526446616e637960d81b602080840191909152808401929092528351808501855281815264506164726560d81b818401528385015283518085018552818152642537b5b2b960d91b81840152606084015283518085018552600d81526c2b30bab63a10223bb2b63632b960991b818401526080840152835180850185528181526453616e746160d81b8184015260a084015283518085018552600a815269546f726e204a65616e7360b01b8184015260c084015283518085018552600880825267466973686e65747360c01b8285015260e08501919091528451808601865260068082526542696b696e6960d01b82860152610100860191909152855180870187528381526423b932b2b760d91b818601526101208601528551808701875260078082526650616a616d617360c81b82870152610140870191909152865180880188526004808252634244534d60e01b8288015261016088019190915287518089018952818152634d696d6560e01b81880152610180880152875180890189529081526350696e6b60e01b818701526101a087015286518088018852828152654a756e676c6560d01b818701526101c087015286518088018852908152665261696e626f7760c81b818601526101e08601528551808701875292835264456c76697360d81b838501526102008501929092528451808601865282815265426174686f6760d01b8185015261022085015284518086018652908152675061727479686f6760c01b818401526102408401528351808501855290815265536b656c6c7960d01b8183015261026083015282518084019093526009835268141d5c994811dbdb1960ba1b9083015261028081019190915262000fe99060239060156200268e565b50604080516102e08101825260036102a08201908152626e2f6160e81b6102c083015281528151808301835260048082526350696e6b60e01b60208084019190915280840192909252835180850185526005808252642537b5b2b960d91b828501528486019190915284518086018652600d81526c2b30bab63a10223bb2b63632b960991b8185015260608501528451808601865281815264506164726560d81b818501526080850152845180860186528181526453616e746160d81b8185015260a08501528451808601865260068082526546726564647960d01b8286015260c086019190915285518087018752600c81526b50696572636564204e69707360a01b8186015260e0860152855180870187528181526542696b696e6960d01b81860152610100860152855180870187528381526350756e6b60e01b818601526101208601528551808701875260078082526650616a616d617360c81b8287015261014087019190915286518088018852848152634244534d60e01b8187015261016087015286518088018852848152634d696d6560e01b8187015261018087015286518088018852828152652930b83832b960d11b818701526101a08701528651808801885293845263213ab33360e11b848601526101c086019390935285518087018752928352665261696e626f7760c81b838501526101e08501929092528451808601865290815264456c76697360d81b818401526102008401528351808501855281815265426174686f6760d01b818401526102208401528351808501855260088152675061727479686f6760c01b818401526102408401528351808501855290815265536b656c6c7960d01b8183015261026083015282518084019093526009835268141d5c994811dbdb1960ba1b908301526102808101919091526200129a9060249060156200268e565b50604080516103608101825260046103208201818152634e6f6e6560e01b610340840152825282518084018452600580825264283630b4b760d91b602083810191909152808501929092528451808601865281815264536d696c6560d81b81840152848601528451808601865260088082526744726f6f6c696e6760c01b82850152606086019190915285518087018752600680825265546f6e67756560d01b82860152608087019190915286518088018852858152635069706560e01b8186015260a08701528651808801885283815264506172747960d81b8186015260c087015286518088018852858152634c6f766560e01b8186015260e087015286518088018852818152655a6f6d62696560d01b8186015261010087015286518088018852838152641498589a5960da1b818601526101208701528651808801885283815264084d8eae6d60db1b8186015261014087015286518088018852858152634d696d6560e01b8186015261016087015286518088018852600a815269427562626c652067756d60b01b818601526101808701528651808801885283815264109b1d5b9d60da1b818601526101a08701528651808801885281815265426c6f6f647960d01b818601526101c087015286518088018852908152652634b1b5b2b960d11b818501526101e08601528551808701875260078082526656616d7069726560c81b828601526102008701919091528651808801885290815266213637ba3a32b960c91b818501526102208601528551808701875282815264566972757360d81b8185015261024086015285518087018752600980825268149959081099585c9960ba1b8286015261026087019190915286518088018852600c81526b08eded8c8cadc40e8dedee8d60a31b8186015261028087015286518088018852600381526215139560ea1b818601526102a0870152865180880188529182526712185b9b9a58985b60c21b828501526102c08601919091528551808701875290815268109a5bda185e985c9960ba1b818401526102e085015284518086019095528452642630b9b2b960d91b9084015261030082019290925290602190620015c7929101906019620026e0565b50604080516105008101825260036104c08201818152626e2f6160e81b6104e08401528252825180840184526004808252634e6f6e6560e01b60208084019190915280850192909252845180860186526006808252654265616e696560d01b82850152858701919091528551808701875260088082526711985cdd199bdbd960c21b828601526060870191909152865180880188526005808252644170706c6560d81b82870152608088019190915287518089018952600a8082526923393cb4b733903830b760b11b8288015260a08901919091528851808a018a52600b8082526a151a5b999bda5b081a185d60aa1b8289015260c08a01919091528951808b018b52838152644172726f7760d81b8189015260e08a01528951808b018b528681526350756e6b60e01b818901526101008a01528951808b018b528181526a526162626974206561727360a81b818901526101208a01528951808b018b5288815262446f6360e81b818901526101408a01528951808b018b528381526450697a7a6160d81b818901526101608a01528951808b018b52600980825268416e6e74656e6e616560b81b828a01526101808b01919091528a51808c018c5284815264486f726e7960d81b818a01526101a08b01528a51808c018c528381526950726574747920626f7760b01b818a01526101c08b01528a51808c018c529889526245796560e81b898901526101e08a01989098528951808b018b528381526411195d9a5b60da1b818901526102008a01528951808b018b528381526414dadd5b1b60da1b818901526102208a01528951808b018b5295865263151bd85960e21b868801526102408901959095528851808a018a526007808252662ab734b1b7b93760c91b828901526102608a01919091528951808b018b52938452674b616d696b617a6560c01b848801526102808901939093528851808a018a528281526453616e746160d81b818801526102a08901528851808a018a528481526550697261746560d01b818801526102c08901528851808a018a5281815269416c69656e206579657360b01b818801526102e08901528851808a018a52828152642232b6b7b760d91b818801526103008901528851808a018a528281526421b937bbb760d91b818801526103208901528851808a018a529182526421b434b2b360d91b82870152610340880191909152875180890189528481526a169bdb589a59481a185b9960aa1b81870152610360880152875180890189528681526846616b652068616c6f60b81b818701526103808801528751808901895292835265213930b4b73d60d11b838601526103a087019290925286518088018852600e81526d053747261776265727279206361760941b818601526103c0870152865180880188529283526a149d5cdcda585b881a185d60aa1b838501526103e086019290925285518087018752908152694672616e6b656e686f6760b01b81840152610400850152845180860186528181526628363ab733b2b960c91b81840152610420850152845180860186529283526814dc9bdbdb5a19585960ba1b8383015261044084019290925283518085018552918252664f63746f70757360c81b8282015261046083019190915282518084018452600d81526c283630b3bab2902237b1ba37b960991b81830152610480830152825180840190935260028352612b2960f11b908301526104a081019190915262001abd906026908162002732565b50604080516104808101825260036104408201818152626e2f6160e81b610460840152825282518084018452600580825264283630b4b760d91b60208084019190915280850192909252845180860186529283526253757360e81b8383015283850192909252835180850185528281526423b932b2b760d91b8183015260608401528351808501855260098082526810dc9bdcdcd95e595960ba1b8284015260808501919091528451808601865283815264416e67727960d81b8184015260a0850152845180860186526006808252654b617761696960d01b8285015260c08601919091528551808701875284815264151a5c995960da1b8185015260e086015285518087018752818152654772756d707960d01b8185015261010086015285518087018752600b81526a52656420676f67676c657360a81b8185015261012086015285518087018752600d81526c477265656e20676f67676c657360981b818501526101408601528551808701875282815268109b1bdbd91cda1bdd60ba1b818501526101608601528551808701875281815265476f6f6d626160d01b81850152610180860152855180870187528281526808af2ca40e0c2e8c6d60bb1b818501526101a086015285518087018752600780825266537175696e747960c81b828601526101c08701919091528651808801885282815265496e73616e6560d01b818601526101e0870152865180880188528181526656616d7069726560c81b818601526102008701528651808801885281815266141bdc081bdd5d60ca1b818601526102208701528651808801885282815265506f7065796560d01b81860152610240870152865180880188528581526444697a7a7960d81b8186015261026087015286518088018852600a80825269547269706c652065796560b01b82870152610280880191909152875180890189528381526548656172747360d01b818701526102a08801528751808901895260028152610b0b60f31b818701526102c0880152875180890189528681526420b634b2b760d91b818701526102e08801528751808901895281815269565220676f67676c657360b01b8187015261030088015287518089018952918252664379636c6f707360c81b8286015261032087019190915286518088018852600f81526e5261696e626f7720676f67676c657360881b8186015261034087015286518088018852828152654379626f726760d01b818601526103608701528651808801885260088152674379626572686f6760c01b8186015261038087015286518088018852948552642232b6b7b760d91b858501526103a086019490945285518087018752938452692437b3b6b4b730ba37b960b11b848401526103c08501939093528451808601865290815268537465616d70756e6b60b81b818301526103e084015283518085018552600c81526b1119585b081dda5d1a081a5d60a21b818301526104008401528351808501909452908352654c617365727360d01b9083015261042081019190915262001f2690602790602262002784565b50604080516103a08101825260036103608201818152626e2f6160e81b6103808401528252825180840184526004808252634e6f6e6560e01b6020808401919091528085019290925284518086018652600680825265436f6666656560d01b8285015285870191909152855180870187526007808252665361757361676560c81b82860152606087019190915286518088018852600e81526d29b7b931b2b932b91039ba30b33360911b81860152608087015286518088018852600b8082526a26b0b730903837ba34b7b760a91b8287015260a08801919091528751808901895284815263426f6e6760e01b8187015260c0880152875180890189528181526a50697261746520666c616760a81b8187015260e088015287518089018952848152630576869760e41b8187015261010088015287518089018952848152632132b2b960e11b81870152610120880152875180890189529081526a537465656c20636c61777360a81b818601526101408701528651808801885281815266151c9a59195b9d60ca1b81860152610160870152865180880188526005808252644b6e69666560d81b82870152610180880191909152875180890189528481526321b63ab160e11b818701526101a088015287518089018952828152662130b63637b7b760c91b818701526101c0880152875180890189528281526629b437b1b5b2b960c91b818701526101e0880152875180890189526009815268109a5bda185e985c9960ba1b8187015261020088015287518089018952600a8152692634b3b43a39b0b132b960b11b8187015261022088015287518089018952600c81526b13585cdd195c8814dddbdc9960a21b818701526102408801528751808901895281815264446f67677960d81b818701526102608801528751808901895293845263526f736560e01b84860152610280870193909352865180880188528581526223bab760e91b818601526102a0870152865180880188529485526250656560e81b858501526102c0860194909452855180870187526008815267436861696e73617760c01b818501526102e0860152855180870187529081526553637974686560d01b81840152610300850152845180860186529081526444696c646f60d81b8183015261032084015283518085019094529083526626b4b734b3bab760c91b90830152610340810191909152620022a190602890601b620027d6565b50604080516101a08101825260036101608201908152626e2f6160e81b61018083015281528151808301835260098152684e756465204475646560b81b6020808301919091528083019190915282518084018452600b8082526a4461726b20456e7469747960a81b8284015283850191909152835180850185526008808252674163696420486f6760c01b82850152606085019190915284518086018652600a808252695a6f6d62696520486f6760b01b8286015260808601919091528551808701875290815269121bd9c814dc1a5c9a5d60b21b8185015260a085015284518086018652818152674c61766120486f6760c01b8185015260c085015284518086018652600e81526d57687920536f20536572696f757360901b8185015260e0850152845180860186526007815266526f626f686f6760c81b8185015261010085015284518086018652601281527156657279204661737420426c756520486f6760701b818501526101208501528451808601909552845267526574726f686f6760c01b9184019190915261014082019290925262002444916029919062002828565b505050506200298f565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620024b09062002952565b90600052602060002090601f016020900481019282620024d457600085556200251f565b82601f10620024ef57805160ff19168380011785556200251f565b828001600101855582156200251f579182015b828111156200251f57825182559160200191906001019062002502565b506200252d9291506200287a565b5090565b82805482825590600052602060002090600f016010900481019282156200251f5791602002820160005b838211156200259d57835183826101000a81548161ffff021916908361ffff16021790555092602001926002016020816001010492830192600103026200255b565b8015620025cd5782816101000a81549061ffff02191690556002016020816001010492830192600103026200259d565b50506200252d9291506200287a565b8280548282559060005260206000209081019282156200262e579160200282015b828111156200262e57825180516200261d918491602090910190620024a2565b5091602001919060010190620025fd565b506200252d92915062002891565b8280548282559060005260206000209081019282156200262e579160200282015b828111156200262e57825180516200267d918491602090910190620024a2565b50916020019190600101906200265d565b8280548282559060005260206000209081019282156200262e579160200282015b828111156200262e5782518051620026cf918491602090910190620024a2565b5091602001919060010190620026af565b8280548282559060005260206000209081019282156200262e579160200282015b828111156200262e578251805162002721918491602090910190620024a2565b509160200191906001019062002701565b8280548282559060005260206000209081019282156200262e579160200282015b828111156200262e578251805162002773918491602090910190620024a2565b509160200191906001019062002753565b8280548282559060005260206000209081019282156200262e579160200282015b828111156200262e5782518051620027c5918491602090910190620024a2565b5091602001919060010190620027a5565b8280548282559060005260206000209081019282156200262e579160200282015b828111156200262e578251805162002817918491602090910190620024a2565b5091602001919060010190620027f7565b8280548282559060005260206000209081019282156200262e579160200282015b828111156200262e578251805162002869918491602090910190620024a2565b509160200191906001019062002849565b5b808211156200252d57600081556001016200287b565b808211156200252d576000620028a88282620028b2565b5060010162002891565b508054620028c09062002952565b6000825580601f10620028d1575050565b601f016020900490600052602060002090810190620028f191906200287a565b50565b6001600160a01b0381168114620028f157600080fd5b6000806000606084860312156200292057600080fd5b83516200292d81620028f4565b60208501519093506200294081620028f4565b80925050604084015190509250925092565b600181811c908216806200296757607f821691505b602082108114156200298957634e487b7160e01b600052602260045260246000fd5b50919050565b615a6d806200299f6000396000f3fe6080604052600436106103b75760003560e01c80638462151c116101f2578063a647f0cf1161010d578063e1dc0761116100a0578063f2fde38b1161006f578063f2fde38b14610acb578063f676308a14610aeb578063fa26acef14610b0b578063fa57416114610b2b57600080fd5b8063e1dc076114610a47578063e985e9c514610a75578063ed6661c214610a95578063edc0c72c14610aab57600080fd5b8063c87b56dd116100dc578063c87b56dd146109db578063cff47679146109fb578063d49d518114610a1b578063d75e611014610a3157600080fd5b8063a647f0cf14610965578063b88d4fde1461097b578063c39cbef11461099b578063c5a991f8146109bb57600080fd5b80639a1b74b611610185578063a0712d6811610154578063a0712d68146108f2578063a22cb46514610905578063a232ef7714610925578063a4d925f11461094557600080fd5b80639a1b74b6146108875780639a77a89e146108a75780639f51758e146108bc5780639ffdb65a146108d257600080fd5b80638da5cb5b116101c15780638da5cb5b1461081457806391b7f5ed146108325780639416b4231461085257806395d89b411461087257600080fd5b80638462151c146107c0578063853828b6146107e05780638d75fe05146107e85780638d859f3e146107fe57600080fd5b8063303e74df116102e25780636352211e11610275578063715018a611610244578063715018a6146107565780637636821e1461076b5780637cb647591461078057806383a076be146107a057600080fd5b80636352211e146106d65780636d522418146106f65780636f8b44b01461071657806370a082311461073657600080fd5b8063509045b5116102b1578063509045b51461063d5780635a23dd991461065d5780635f5168361461067d578063603f4d52146106aa57600080fd5b8063303e74df146105c157806334918dfd146105e157806342842e0e146105f65780635025b5481461061657600080fd5b806312e70e3e1161035a5780631c19c215116103295780631c19c2151461054d57806323b872dd146105605780632add59c6146105805780632c5c05e81461059f57600080fd5b806312e70e3e146104de57806315b56d10146104fe57806318160ddd1461051e5780631b47ec3a1461053757600080fd5b806306fdde031161039657806306fdde031461044e578063081812fc1461047057806308d49f82146104a8578063095ea7b3146104be57600080fd5b80628af2e6146103bc57806301b9a397146103fc57806301ffc9a71461041e575b600080fd5b3480156103c857600080fd5b506103e96103d73660046146f6565b60176020526000908152604090205481565b6040519081526020015b60405180910390f35b34801561040857600080fd5b5061041c6104173660046146f6565b610b40565b005b34801561042a57600080fd5b5061043e610439366004614729565b610b95565b60405190151581526020016103f3565b34801561045a57600080fd5b50610463610be7565b6040516103f3919061479e565b34801561047c57600080fd5b5061049061048b3660046147b1565b610c79565b6040516001600160a01b0390911681526020016103f3565b3480156104b457600080fd5b506103e9600b5481565b3480156104ca57600080fd5b5061041c6104d93660046147ca565b610cbd565b3480156104ea57600080fd5b5061041c6104f93660046147b1565b610d4b565b34801561050a57600080fd5b5061043e6105193660046148c1565b610daa565b34801561052a57600080fd5b50600254600154036103e9565b34801561054357600080fd5b506103e960115481565b61041c61055b3660046147b1565b610ddd565b34801561056c57600080fd5b5061041c61057b3660046148f5565b610fb0565b34801561058c57600080fd5b5060125461043e90610100900460ff1681565b3480156105ab57600080fd5b506105b4610fbb565b6040516103f39190614936565b3480156105cd57600080fd5b50601854610490906001600160a01b031681565b3480156105ed57600080fd5b5061041c611012565b34801561060257600080fd5b5061041c6106113660046148f5565b6110c1565b34801561062257600080fd5b5060125461049090630100000090046001600160a01b031681565b34801561064957600080fd5b5061041c61065836600461497a565b6110dc565b34801561066957600080fd5b5061043e6106783660046149e7565b61116e565b34801561068957600080fd5b506103e96106983660046147b1565b60166020526000908152604090205481565b3480156106b657600080fd5b506012546106c49060ff1681565b60405160ff90911681526020016103f3565b3480156106e257600080fd5b506104906106f13660046147b1565b6111f7565b34801561070257600080fd5b506104636107113660046147b1565b611209565b34801561072257600080fd5b5061041c6107313660046147b1565b6112ab565b34801561074257600080fd5b506103e96107513660046146f6565b6112da565b34801561076257600080fd5b5061041c611328565b34801561077757600080fd5b5061041c61135e565b34801561078c57600080fd5b5061041c61079b3660046147b1565b6113a5565b3480156107ac57600080fd5b5061041c6107bb366004614a3b565b6113d4565b3480156107cc57600080fd5b506105b46107db3660046146f6565b6114e6565b61041c611620565b3480156107f457600080fd5b506103e9600f5481565b34801561080a57600080fd5b506103e9600d5481565b34801561082057600080fd5b506000546001600160a01b0316610490565b34801561083e57600080fd5b5061041c61084d3660046147b1565b6116d1565b34801561085e57600080fd5b5061046361086d3660046148c1565b611700565b34801561087e57600080fd5b50610463611862565b34801561089357600080fd5b5061041c6108a23660046148c1565b611871565b3480156108b357600080fd5b506010546103e9565b3480156108c857600080fd5b506103e9600e5481565b3480156108de57600080fd5b5061043e6108ed3660046148c1565b6118de565b61041c6109003660046147b1565b611aed565b34801561091157600080fd5b5061041c610920366004614a6b565b611d12565b34801561093157600080fd5b5061041c6109403660046147b1565b611da8565b34801561095157600080fd5b5061041c6109603660046146f6565b611ee4565b34801561097157600080fd5b506103e960105481565b34801561098757600080fd5b5061041c610996366004614a9e565b611f3a565b3480156109a757600080fd5b5061041c6109b6366004614b1d565b611f8b565b3480156109c757600080fd5b5061043e6109d63660046147b1565b6122c3565b3480156109e757600080fd5b506104636109f63660046147b1565b6122ee565b348015610a0757600080fd5b5060125461043e9062010000900460ff1681565b348015610a2757600080fd5b506103e960095481565b348015610a3d57600080fd5b506103e9600c5481565b348015610a5357600080fd5b50610a67610a623660046147b1565b6123c1565b6040516103f3929190614b63565b348015610a8157600080fd5b5061043e610a90366004614b91565b613151565b348015610aa157600080fd5b506103e9600a5481565b348015610ab757600080fd5b5061041c610ac6366004614bbf565b61321f565b348015610ad757600080fd5b5061041c610ae63660046146f6565b6133dd565b348015610af757600080fd5b5061041c610b063660046147b1565b613475565b348015610b1757600080fd5b50610463610b26366004614c12565b6134a4565b348015610b3757600080fd5b506011546103e9565b6000546001600160a01b03163314610b735760405162461bcd60e51b8152600401610b6a90614cba565b60405180910390fd5b601880546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982166380ac58cd60e01b1480610bc657506001600160e01b03198216635b5e139f60e01b145b80610be157506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060038054610bf690614cef565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2290614cef565b8015610c6f5780601f10610c4457610100808354040283529160200191610c6f565b820191906000526020600020905b815481529060010190602001808311610c5257829003601f168201915b5050505050905090565b6000610c8482613987565b610ca1576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610cc8826111f7565b9050806001600160a01b0316836001600160a01b03161415610cfd5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610d1d5750610d1b8133613151565b155b15610d3b576040516367d9dca160e11b815260040160405180910390fd5b610d468383836139b3565b505050565b6000546001600160a01b03163314610d755760405162461bcd60e51b8152600401610b6a90614cba565b602a80546001810182556000919091527fbeced09521047d05b8960b7e7bcc1d1292cf3e4b2a6b63f48335cbde5f7545d20155565b6000602c610db783611700565b604051610dc49190614d2a565b9081526040519081900360200190205460ff1692915050565b60125460ff16600214610e245760405162461bcd60e51b815260206004820152600f60248201526e5265726f6c6c20696e61637469766560881b6044820152606401610b6a565b600b5460105410610e695760405162461bcd60e51b815260206004820152600f60248201526e4e6f206d6f7265207265726f6c6c7360881b6044820152606401610b6a565b610e72816111f7565b6001600160a01b0316336001600160a01b031614610eca5760405162461bcd60e51b815260206004820152601560248201527413db9b1e481bdddb995c8818d85b881c995c9bdb1b605a1b6044820152606401610b6a565b610ed3816122c3565b15610f145760405162461bcd60e51b815260206004820152601160248201527010d85b89dd081899481c995c9bdb1b1959607a1b6044820152606401610b6a565b34600e5414610f585760405162461bcd60e51b815260206004820152601060248201526f15dc9bdb99c811551208185b5bdd5b9d60821b6044820152606401610b6a565b601054610f66906001614d5c565b6010554233610f76836001614d5c565b604051602001610f8893929190614d74565b60408051601f1981840301815291815281516020928301206000938452601690925290912055565b610d46838383613a0f565b6060602a805480602002602001604051908101604052809291908181526020018280548015610c6f57602002820191906000526020600020905b815481526020019060010190808311610ff5575050505050905090565b6000546001600160a01b0316331461103c5760405162461bcd60e51b8152600401610b6a90614cba565b601254600360ff909116106110935760405162461bcd60e51b815260206004820152601c60248201527f53616c6520737461746520697320616c726561647920636c6f736564000000006044820152606401610b6a565b6012805460ff169060006110a683614d9c565b91906101000a81548160ff021916908360ff16021790555050565b610d4683838360405180602001604052806000815250611f3a565b6000546001600160a01b031633146111065760405162461bcd60e51b8152600401610b6a90614cba565b61110f826122c3565b156111505760405162461bcd60e51b815260206004820152601160248201527010d85b89dd081899481d5c19dc98591959607a1b6044820152606401610b6a565b600082815260166020526040902081905561116a81610d4b565b5050565b60006111ef6111b6856040516bffffffffffffffffffffffff19606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613bfc92505050565b949350505050565b600061120282613c0b565b5192915050565b6000818152602b6020526040902080546060919061122690614cef565b80601f016020809104026020016040519081016040528092919081815260200182805461125290614cef565b801561129f5780601f106112745761010080835404028352916020019161129f565b820191906000526020600020905b81548152906001019060200180831161128257829003601f168201915b50505050509050919050565b6000546001600160a01b031633146112d55760405162461bcd60e51b8152600401610b6a90614cba565b600955565b60006001600160a01b038216611303576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6000546001600160a01b031633146113525760405162461bcd60e51b8152600401610b6a90614cba565b61135c6000613d25565b565b6000546001600160a01b031633146113885760405162461bcd60e51b8152600401610b6a90614cba565b6012805461ff001981166101009182900460ff1615909102179055565b6000546001600160a01b031633146113cf5760405162461bcd60e51b8152600401610b6a90614cba565b602d55565b6000546001600160a01b031633146113fe5760405162461bcd60e51b8152600401610b6a90614cba565b600061140d6002546001540390565b60095490915061141d8483614d5c565b11156114655760405162461bcd60e51b8152602060048201526017602482015276576f756c6420657863656564206d617820737570706c7960481b6044820152606401610b6a565b60005b838110156114d757423361147c8385614d5c565b60405160200161148e93929190614d74565b60408051601f198184030181529190528051602090910120601660006114b48486614d5c565b8152602081019190915260400160002055806114cf81614dbc565b915050611468565b5060009050610d468284613d75565b606060006114f3836112da565b90506000816001600160401b0381111561150f5761150f6147f6565b604051908082528060200260200182016040528015611538578160200160208202803683370190505b50905060008061154b6002546001540390565b905060005b8181101561161557600061156382613987565b905080156115be57876001600160a01b031661157e836111f7565b6001600160a01b031614156115b957818585815181106115a0576115a0614dd7565b6020908102919091010152836115b581614dbc565b9450505b611602565b801580156115ef5750846115d3600188614ded565b815181106115e3576115e3614dd7565b60200260200101516000145b1561160257826115fe81614dbc565b9350505b508061160d81614dbc565b915050611550565b509195945050505050565b6000546001600160a01b0316331461164a5760405162461bcd60e51b8152600401610b6a90614cba565b6000611657606447614e1a565b6013549091506001600160a01b03166108fc61167483605a614e2e565b6040518115909202916000818181858888f1935050505061169457600080fd5b6014546001600160a01b03166108fc6116ae83600a614e2e565b6040518115909202916000818181858888f193505050506116ce57600080fd5b50565b6000546001600160a01b031633146116fb5760405162461bcd60e51b8152600401610b6a90614cba565b600d55565b60606000829050600081516001600160401b03811115611722576117226147f6565b6040519080825280601f01601f19166020018201604052801561174c576020820181803683370190505b50905060005b825181101561185a57604183828151811061176f5761176f614dd7565b016020015160f81c1080159061179f5750605a83828151811061179457611794614dd7565b016020015160f81c11155b15611801578281815181106117b6576117b6614dd7565b602001015160f81c60f81b60f81c60206117d09190614e4d565b60f81b8282815181106117e5576117e5614dd7565b60200101906001600160f81b031916908160001a905350611848565b82818151811061181357611813614dd7565b602001015160f81c60f81b82828151811061183057611830614dd7565b60200101906001600160f81b031916908160001a9053505b8061185281614dbc565b915050611752565b509392505050565b606060048054610bf690614cef565b6000546001600160a01b0316331461189b5760405162461bcd60e51b8152600401610b6a90614cba565b60298054600181018255600091909152815161116a917fcb7c14ce178f56e2e8d86ab33ebc0ae081ba8556a00cd122038841867181caac01906020840190614648565b6000808290506001815110156118f75750600092915050565b60198151111561190a5750600092915050565b8060008151811061191d5761191d614dd7565b6020910101516001600160f81b031916600160fd1b14156119415750600092915050565b80600182516119509190614ded565b8151811061196057611960614dd7565b6020910101516001600160f81b031916600160fd1b14156119845750600092915050565b60008160008151811061199957611999614dd7565b01602001516001600160f81b031916905060005b8251811015611ae25760008382815181106119ca576119ca614dd7565b01602001516001600160f81b0319169050600160fd1b811480156119fb5750600160fd1b6001600160f81b03198416145b15611a0c5750600095945050505050565b600360fc1b6001600160f81b0319821610801590611a385750603960f81b6001600160f81b0319821611155b158015611a6e5750604160f81b6001600160f81b0319821610801590611a6c5750602d60f91b6001600160f81b0319821611155b155b8015611aa35750606160f81b6001600160f81b0319821610801590611aa15750603d60f91b6001600160f81b0319821611155b155b8015611abd5750600160fd1b6001600160f81b0319821614155b15611ace5750600095945050505050565b915080611ada81614dbc565b9150506119ad565b506001949350505050565b6000611afc6002546001540390565b60125490915060ff16600114611b445760405162461bcd60e51b815260206004820152600d60248201526c53616c6520696e61637469766560981b6044820152606401610b6a565b6015546001600160a01b0316331415611b905760405162461bcd60e51b815260206004820152600e60248201526d4e6f20537465766520416f6b692160901b6044820152606401610b6a565b600c54821115611bcd5760405162461bcd60e51b8152602060048201526008602482015267546f6f206d616e7960c01b6044820152606401610b6a565b601154600a54600954611be09190614ded565b611bea9190614d5c565b611bf48383614d5c565b1115611c425760405162461bcd60e51b815260206004820152601e60248201527f576f756c6420657863656564206d6178207075626c696320737570706c7900006044820152606401610b6a565b3482600d54611c519190614e2e565b14611c915760405162461bcd60e51b815260206004820152601060248201526f15dc9bdb99c811551208185b5bdd5b9d60821b6044820152606401610b6a565b60005b82811015611d03574233611ca88385614d5c565b604051602001611cba93929190614d74565b60408051601f19818403018152919052805160209091012060166000611ce08486614d5c565b815260208101919091526040016000205580611cfb81614dbc565b915050611c94565b506000905061116a3383613d75565b6001600160a01b038216331415611d3c5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b03163314611dd25760405162461bcd60e51b8152600401610b6a90614cba565b60125462010000900460ff1615611e2b5760405162461bcd60e51b815260206004820152601760248201527f4c6567656e64617269657320616c7265616479207365740000000000000000006044820152606401610b6a565b6000611e3a6002546001540390565b90508160015b600a8111611ecd57600083423385604051602001611e6093929190614d74565b6040516020818303038152906040528051906020012060001c611e839190614e72565b9050611e8e816122c3565b611eba576000818152601660205260409020829055611eac81610d4b565b611eb7836006614e2e565b92505b5080611ec581614dbc565b915050611e40565b50506012805462ff00001916620100001790555050565b6000546001600160a01b03163314611f0e5760405162461bcd60e51b8152600401610b6a90614cba565b601280546001600160a01b039092166301000000026301000000600160b81b0319909216919091179055565b611f45848484613a0f565b6001600160a01b0383163b15158015611f675750611f6584848484613d8f565b155b15611f85576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6000611f96836111f7565b9050336001600160a01b03821614611ff05760405162461bcd60e51b815260206004820152601f60248201527f4552433732313a2063616c6c6572206973206e6f7420746865206f776e6572006044820152606401610b6a565b611ff9826118de565b15156001146120415760405162461bcd60e51b81526020600482015260146024820152734e6f7420612076616c6964206e6577206e616d6560601b6044820152606401610b6a565b6000838152602b602052604090819020905160029161205f91614f1f565b602060405180830381855afa15801561207c573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061209f9190614f2b565b6002836040516120af9190614d2a565b602060405180830381855afa1580156120cc573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906120ef9190614f2b565b14156121495760405162461bcd60e51b815260206004820152602360248201527f4e6577206e616d652069732073616d65206173207468652063757272656e74206044820152626f6e6560e81b6064820152608401610b6a565b61215282610daa565b156121975760405162461bcd60e51b815260206004820152601560248201527413985b5948185b1c9958591e481c995cd95c9d9959605a1b6044820152606401610b6a565b6000838152602b6020526040812080546121b090614cef565b9050111561225b576000838152602b60205260409020805461225b91906121d690614cef565b80601f016020809104026020016040519081016040528092919081815260200182805461220290614cef565b801561224f5780601f106122245761010080835404028352916020019161224f565b820191906000526020600020905b81548152906001019060200180831161223257829003601f168201915b50505050506000613e77565b612266826001613e77565b6000838152602b60209081526040909120835161228592850190614648565b50827f7e632a301794d8d4a81ea7e20f37d1947158d36e66403af04ba85dd194b66f1b836040516122b6919061479e565b60405180910390a2505050565b6000818152601660205260408120546064106122e157506001919050565b506000919050565b919050565b60606122f982613987565b6123375760405162461bcd60e51b815260206004820152600f60248201526e151bdad95b881b9bdd08199bdd5b99608a1b6044820152606401610b6a565b6000828152601660205260408120548190612351906123c1565b9150915061239961236185613eb4565b6000868152602b602090815260409182902091516123859392918691889101614f44565b604051602081830303815290604052613fdc565b6040516020016123a99190615099565b60405160208183030381529060405292505050919050565b60608060006123d1846008614143565b60408051600980825261014082019092529192506000919060208201610120803683370190505090506064851115612bf6576124a6601960000180548060200260200160405190810160405280929190818152602001828054801561247d57602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116124445790505b50505050508360008151811061249557612495614dd7565b602002602001015161ffff16614203565b816000815181106124b9576124b9614dd7565b61ffff92909216602092830291909101820152601a80546040805182850281018501909152818152612558939092919083018282801561254057602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116125075790505b50505050508360018151811061249557612495614dd7565b8160018151811061256b5761256b614dd7565b61ffff92909216602092830291909101820152601b8054604080518285028101850190915281815261260a93909291908301828280156125f257602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116125b95790505b50505050508360028151811061249557612495614dd7565b8160028151811061261d5761261d614dd7565b61ffff92909216602092830291909101820152601c805460408051828502810185019091528181526126bc93909291908301828280156126a457602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff168152602001906002019060208260010104928301926001038202915080841161266b5790505b50505050508360038151811061249557612495614dd7565b816003815181106126cf576126cf614dd7565b61ffff92909216602092830291909101820152601d8054604080518285028101850190915281815261276e939092919083018282801561275657602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff168152602001906002019060208260010104928301926001038202915080841161271d5790505b50505050508360048151811061249557612495614dd7565b8160048151811061278157612781614dd7565b61ffff92909216602092830291909101820152601e80546040805182850281018501909152818152612820939092919083018282801561280857602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116127cf5790505b50505050508360058151811061249557612495614dd7565b8160058151811061283357612833614dd7565b61ffff92909216602092830291909101820152601f805460408051828502810185019091528181526128d293909291908301828280156128ba57602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116128815790505b50505050508360068151811061249557612495614dd7565b816006815181106128e5576128e5614dd7565b61ffff92909216602092830291909101820152805460408051828402810184019091528181526129819290918282018282801561296957602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116129305790505b50505050508360078151811061249557612495614dd7565b8160078151811061299457612994614dd7565b602002602001019061ffff16908161ffff16815250506000816008815181106129bf576129bf614dd7565b602002602001019061ffff16908161ffff1681525050806001815181106129e8576129e8614dd7565b602002602001015161ffff1660131480612a20575080600181518110612a1057612a10614dd7565b602002602001015161ffff166016145b15612a5157600181600581518110612a3a57612a3a614dd7565b602002602001019061ffff16908161ffff16815250505b80600481518110612a6457612a64614dd7565b602002602001015161ffff1660151415612aa457600081600781518110612a8d57612a8d614dd7565b602002602001019061ffff16908161ffff16815250505b80600781518110612ab757612ab7614dd7565b602002602001015161ffff1660041480612aef575080600781518110612adf57612adf614dd7565b602002602001015161ffff166018145b15612b2057600181600481518110612b0957612b09614dd7565b602002602001019061ffff16908161ffff16815250505b80600581518110612b3357612b33614dd7565b602002602001015161ffff1660251415612b7357600181600681518110612b5c57612b5c614dd7565b602002602001019061ffff16908161ffff16815250505b80600581518110612b8657612b86614dd7565b602002602001015161ffff1660241415612bf157600181600681518110612baf57612baf614dd7565b602002602001019061ffff16908161ffff1681525050600081600481518110612bda57612bda614dd7565b602002602001019061ffff16908161ffff16815250505b612d79565b600081600081518110612c0b57612c0b614dd7565b602002602001019061ffff16908161ffff1681525050600081600181518110612c3657612c36614dd7565b602002602001019061ffff16908161ffff1681525050600081600281518110612c6157612c61614dd7565b602002602001019061ffff16908161ffff1681525050600081600381518110612c8c57612c8c614dd7565b602002602001019061ffff16908161ffff1681525050600081600481518110612cb757612cb7614dd7565b602002602001019061ffff16908161ffff1681525050600081600581518110612ce257612ce2614dd7565b602002602001019061ffff16908161ffff1681525050600081600681518110612d0d57612d0d614dd7565b602002602001019061ffff16908161ffff1681525050600081600781518110612d3857612d38614dd7565b602002602001019061ffff16908161ffff16815250508481600881518110612d6257612d62614dd7565b602002602001019061ffff16908161ffff16815250505b6000612e7682600081518110612d9157612d91614dd7565b602002602001015183600181518110612dac57612dac614dd7565b602002602001015184600281518110612dc757612dc7614dd7565b602002602001015185600381518110612de257612de2614dd7565b602002602001015186600481518110612dfd57612dfd614dd7565b602002602001015187600581518110612e1857612e18614dd7565b602002602001015188600681518110612e3357612e33614dd7565b602002602001015189600781518110612e4e57612e4e614dd7565b60200260200101518a600881518110612e6957612e69614dd7565b60200260200101516134a4565b9050612e8181613fdc565b945060648611156130d2576000612ee46040518060400160405280600a815260200169189858dad9dc9bdd5b9960b21b815250612edd600086600081518110612ecc57612ecc614dd7565b602002602001015161ffff166142a7565b6000614369565b612f1c604051806040016040528060048152602001636261636b60e01b815250612edd600187600181518110612ecc57612ecc614dd7565b612f5660405180604001604052806006815260200165626f74746f6d60d01b815250612edd600288600281518110612ecc57612ecc614dd7565b612f9160405180604001604052806007815260200166636c6f7468657360c81b815250612edd600389600381518110612ecc57612ecc614dd7565b612fca604051806040016040528060058152602001640dadeeae8d60db1b815250612edd60048a600481518110612ecc57612ecc614dd7565b613006604051806040016040528060088152602001673432b0b233b2b0b960c11b815250612edd60058b600581518110612ecc57612ecc614dd7565b61303e604051806040016040528060048152602001636579657360e01b815250612edd60068c600681518110612ecc57612ecc614dd7565b613082604051806040016040528060098152602001686163636573736f727960b81b81525061307b60078d600781518110612ecc57612ecc614dd7565b6001614369565b6040516020016130999897969594939291906150de565b6040516020818303038152906040529050806040516020016130bb9190614d2a565b604051602081830303815290604052945050613149565b6000613104604051806040016040528060098152602001686c6567656e6461727960b81b81525061307b60088a6142a7565b6040516020016131149190614d2a565b6040516020818303038152906040529050806040516020016131369190614d2a565b6040516020818303038152906040529450505b505050915091565b601254600090610100900460ff1680156131e8575060125460405163c455279160e01b81526001600160a01b0385811660048301528481169263010000009004169063c455279190602401602060405180830381865afa1580156131b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131dd9190615183565b6001600160a01b0316145b8061321857506001600160a01b0380841660009081526008602090815260408083209386168352929052205460ff165b9392505050565b600061322e6002546001540390565b60125490915060ff166001146132765760405162461bcd60e51b815260206004820152600d60248201526c53616c6520696e61637469766560981b6044820152606401610b6a565b600954613284826001614d5c565b11156132cc5760405162461bcd60e51b8152602060048201526017602482015276576f756c6420657863656564206d617820737570706c7960481b6044820152606401610b6a565b6132d733848461116e565b6133155760405162461bcd60e51b815260206004820152600f60248201526e139bdd081bdb881d1a19481b1a5cdd608a1b6044820152606401610b6a565b33600090815260176020526040902054156133635760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481b5a5b9d195960921b6044820152606401610b6a565b6011805490600061337383614dbc565b909155505033600090815260176020526040812080549161339383614dbc565b91905055504233826040516020016133ad93929190614d74565b60408051601f19818403018152918152815160209283012060009384526016909252822055610d46336001613d75565b6000546001600160a01b031633146134075760405162461bcd60e51b8152600401610b6a90614cba565b6001600160a01b03811661346c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b6a565b6116ce81613d25565b6000546001600160a01b0316331461349f5760405162461bcd60e51b8152600401610b6a90614cba565b600a55565b606060006040518060a00160405280606481526020016156346064913960185460405163423a06ef60e11b815261ffff8e1660048201526001600160a01b03909116906384740dde90602401600060405180830381865afa15801561350d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261353591908101906151a0565b601854604051630ed39fa160e01b815261ffff8e1660048201526001600160a01b0390911690630ed39fa190602401600060405180830381865afa158015613581573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526135a991908101906151a0565b604051806101e001604052806101b281526020016158866101b2913960185460405163167e6d2f60e21b815261ffff8f1660048201526001600160a01b03909116906359f9b4bc90602401600060405180830381865afa158015613611573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261363991908101906151a0565b60405160200161364d95949392919061520d565b60408051808303601f1901815290829052601854630145727b60e01b835261ffff8b16600484015290925082916001600160a01b0390911690630145727b90602401600060405180830381865afa1580156136ac573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526136d491908101906151a0565b604051806101e001604052806101ae81526020016156d86101ae91396018546040516325c0401960e01b815261ffff891660048201526001600160a01b03909116906325c0401990602401600060405180830381865afa15801561373c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261376491908101906151a0565b601854604051632ac619eb60e11b815261ffff8c1660048201526001600160a01b039091169063558c33d690602401600060405180830381865afa1580156137b0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526137d891908101906151a0565b6018546040516310aeb2e960e01b815261ffff8c1660048201526001600160a01b03909116906310aeb2e990602401600060405180830381865afa158015613824573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261384c91908101906151a0565b601854604051636c13a52f60e11b815261ffff8f1660048201526001600160a01b039091169063d8274a5e90602401600060405180830381865afa158015613898573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526138c091908101906151a0565b601854604051630ee7fdc960e01b815261ffff8c1660048201526001600160a01b0390911690630ee7fdc990602401600060405180830381865afa15801561390c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261393491908101906151a0565b6040518061020001604052806101cf81526020016154656101cf913960405160200161396899989796959493929190615278565b6040516020818303038152906040529150509998505050505050505050565b600060015482108015610be1575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000613a1a82613c0b565b9050836001600160a01b031681600001516001600160a01b031614613a515760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480613a6f5750613a6f8533613151565b80613a8a575033613a7f84610c79565b6001600160a01b0316145b905080613aaa57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416613ad157604051633a954ecd60e21b815260040160405180910390fd5b613add600084876139b3565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116613bb1576001548214613bb157805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600061321882602d54856143c9565b604080516060810182526000808252602082018190529181019190915281600154811015613d0c57600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290613d0a5780516001600160a01b031615613ca1579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215613d05579392505050565b613ca1565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61116a8282604051806020016040528060008152506143df565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290613dc4903390899088908890600401615339565b6020604051808303816000875af1925050508015613dff575060408051601f3d908101601f19168201909252613dfc91810190615376565b60015b613e5a573d808015613e2d576040519150601f19603f3d011682016040523d82523d6000602084013e613e32565b606091505b508051613e52576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b80602c613e8384611700565b604051613e909190614d2a565b908152604051908190036020019020805491151560ff199092169190911790555050565b606081613ed85750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613f025780613eec81614dbc565b9150613efb9050600a83614e1a565b9150613edc565b6000816001600160401b03811115613f1c57613f1c6147f6565b6040519080825280601f01601f191660200182016040528015613f46576020820181803683370190505b509050815b8515613fd357613f5c600182614ded565b90506000613f6b600a88614e1a565b613f7690600a614e2e565b613f809088614ded565b613f8b906030614e4d565b905060008160f81b905080848481518110613fa857613fa8614dd7565b60200101906001600160f81b031916908160001a905350613fca600a89614e1a565b97505050613f4b565b50949350505050565b6060815160001415613ffc57505060408051602081019091526000815290565b6000604051806060016040528060408152602001615698604091399050600060038451600261402b9190614d5c565b6140359190614e1a565b614040906004614e2e565b9050600061404f826020614d5c565b6001600160401b03811115614066576140666147f6565b6040519080825280601f01601f191660200182016040528015614090576020820181803683370190505b509050818152600183018586518101602084015b818310156140fe5760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b938201939093526004016140a4565b600389510660018114614118576002811461412957614135565b613d3d60f01b600119830152614135565b603d60f81b6000198301525b509398975050505050505050565b6060816001600160401b0381111561415d5761415d6147f6565b604051908082528060200260200182016040528015614186578160200160208202803683370190505b50905060005b828110156141fc5760408051602081018690529081018290526141c5906060016040516020818303038152906040528051906020012090565b8282815181106141d7576141d7614dd7565b61ffff90921660209283029190910190910152806141f481614dbc565b91505061418c565b5092915050565b60008061421261271084614e72565b9050600060015b85518161ffff16116142a1576000868261ffff168151811061423d5761423d614dd7565b6020026020010151905082816142539190615393565b61ffff168461ffff1610801561427157508261ffff168461ffff1610155b1561428157509250610be1915050565b61428b8184615393565b9250508080614299906153b9565b915050614219565b50600080fd5b6060602183600981106142bc576142bc614dd7565b0182815481106142ce576142ce614dd7565b9060005260206000200180546142e390614cef565b80601f016020809104026020016040519081016040528092919081815260200182805461430f90614cef565b801561435c5780601f106143315761010080835404028352916020019161435c565b820191906000526020600020905b81548152906001019060200180831161433f57829003601f168201915b5050505050905092915050565b6040805180820190915260018152600b60fa1b6020820152606090821561439b57506040805160208101909152600081525b8484826040516020016143b0939291906153db565b6040516020818303038152906040529150509392505050565b6000826143d685846145a4565b14949350505050565b6001546001600160a01b03841661440857604051622e076360e81b815260040160405180910390fd5b826144265760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600590925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b1561454f575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46145176000878480600101955087613d8f565b614534576040516368d2bf6b60e11b815260040160405180910390fd5b808214156144cc57826001541461454a57600080fd5b614595565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415614550575b50600155611f85600085838684565b600081815b845181101561185a5760008582815181106145c6576145c6614dd7565b60200260200101519050808311614608576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250614635565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061464081614dbc565b9150506145a9565b82805461465490614cef565b90600052602060002090601f01602090048101928261467657600085556146bc565b82601f1061468f57805160ff19168380011785556146bc565b828001600101855582156146bc579182015b828111156146bc5782518255916020019190600101906146a1565b506146c89291506146cc565b5090565b5b808211156146c857600081556001016146cd565b6001600160a01b03811681146116ce57600080fd5b60006020828403121561470857600080fd5b8135613218816146e1565b6001600160e01b0319811681146116ce57600080fd5b60006020828403121561473b57600080fd5b813561321881614713565b60005b83811015614761578181015183820152602001614749565b83811115611f855750506000910152565b6000815180845261478a816020860160208601614746565b601f01601f19169290920160200192915050565b6020815260006132186020830184614772565b6000602082840312156147c357600080fd5b5035919050565b600080604083850312156147dd57600080fd5b82356147e8816146e1565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715614834576148346147f6565b604052919050565b60006001600160401b03821115614855576148556147f6565b50601f01601f191660200190565b60006148766148718461483c565b61480c565b905082815283838301111561488a57600080fd5b828260208301376000602084830101529392505050565b600082601f8301126148b257600080fd5b61321883833560208501614863565b6000602082840312156148d357600080fd5b81356001600160401b038111156148e957600080fd5b6111ef848285016148a1565b60008060006060848603121561490a57600080fd5b8335614915816146e1565b92506020840135614925816146e1565b929592945050506040919091013590565b6020808252825182820181905260009190848201906040850190845b8181101561496e57835183529284019291840191600101614952565b50909695505050505050565b6000806040838503121561498d57600080fd5b50508035926020909101359150565b60008083601f8401126149ae57600080fd5b5081356001600160401b038111156149c557600080fd5b6020830191508360208260051b85010111156149e057600080fd5b9250929050565b6000806000604084860312156149fc57600080fd5b8335614a07816146e1565b925060208401356001600160401b03811115614a2257600080fd5b614a2e8682870161499c565b9497909650939450505050565b60008060408385031215614a4e57600080fd5b823591506020830135614a60816146e1565b809150509250929050565b60008060408385031215614a7e57600080fd5b8235614a89816146e1565b915060208301358015158114614a6057600080fd5b60008060008060808587031215614ab457600080fd5b8435614abf816146e1565b93506020850135614acf816146e1565b92506040850135915060608501356001600160401b03811115614af157600080fd5b8501601f81018713614b0257600080fd5b614b1187823560208401614863565b91505092959194509250565b60008060408385031215614b3057600080fd5b8235915060208301356001600160401b03811115614b4d57600080fd5b614b59858286016148a1565b9150509250929050565b604081526000614b766040830185614772565b8281036020840152614b888185614772565b95945050505050565b60008060408385031215614ba457600080fd5b8235614baf816146e1565b91506020830135614a60816146e1565b60008060208385031215614bd257600080fd5b82356001600160401b03811115614be857600080fd5b614bf48582860161499c565b90969095509350505050565b803561ffff811681146122e957600080fd5b60008060008060008060008060006101208a8c031215614c3157600080fd5b614c3a8a614c00565b9850614c4860208b01614c00565b9750614c5660408b01614c00565b9650614c6460608b01614c00565b9550614c7260808b01614c00565b9450614c8060a08b01614c00565b9350614c8e60c08b01614c00565b9250614c9c60e08b01614c00565b9150614cab6101008b01614c00565b90509295985092959850929598565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680614d0357607f821691505b60208210811415614d2457634e487b7160e01b600052602260045260246000fd5b50919050565b60008251614d3c818460208701614746565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b60008219821115614d6f57614d6f614d46565b500190565b92835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b600060ff821660ff811415614db357614db3614d46565b60010192915050565b6000600019821415614dd057614dd0614d46565b5060010190565b634e487b7160e01b600052603260045260246000fd5b600082821015614dff57614dff614d46565b500390565b634e487b7160e01b600052601260045260246000fd5b600082614e2957614e29614e04565b500490565b6000816000190483118215151615614e4857614e48614d46565b500290565b600060ff821660ff84168060ff03821115614e6a57614e6a614d46565b019392505050565b600082614e8157614e81614e04565b500690565b8054600090600181811c9080831680614ea057607f831692505b6020808410821415614ec257634e487b7160e01b600052602260045260246000fd5b818015614ed65760018114614ee757614f13565b60ff19861689528489019650614f13565b876000528160002060005b86811015614f0b5781548b820152908501908301614ef2565b505084890196505b50505050505092915050565b60006132188284614e86565b600060208284031215614f3d57600080fd5b5051919050565b717b226e616d65223a2245646765686f67202360701b81528451600090614f72816012850160208a01614746565b600160fd1b601291840191820152614f8d6013820187614e86565b90507f222c20226465736372697074696f6e223a202245646765686f6773206c69766581527f206f6e207468652063757474696e672065646765206f6620457468657265756d60208201527f20626c6f636b636861696e20616e642061726520656467792061732068656c6c60408201526e2e222c2022747261697473223a205b60881b6060820152845161502981606f840160208901614746565b7f5d2c2022696d616765223a22646174613a696d6167652f7376672b786d6c3b62606f929091019182015265185cd94d8d0b60d21b608f8201528351615076816095840160208801614746565b61508d60958284010161227d60f01b815260020190565b98975050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516150d181601d850160208701614746565b91909101601d0192915050565b6000895160206150f18285838f01614746565b8a51918401916151048184848f01614746565b8a519201916151168184848e01614746565b89519201916151288184848d01614746565b885192019161513a8184848c01614746565b875192019161514c8184848b01614746565b865192019161515e8184848a01614746565b85519201916151708184848901614746565b919091019b9a5050505050505050505050565b60006020828403121561519557600080fd5b8151613218816146e1565b6000602082840312156151b257600080fd5b81516001600160401b038111156151c857600080fd5b8201601f810184136151d957600080fd5b80516151e76148718261483c565b8181528560208385010111156151fc57600080fd5b614b88826020830160208601614746565b6000865161521f818460208b01614746565b865190830190615233818360208b01614746565b8651910190615246818360208a01614746565b8551910190615259818360208901614746565b845191019061526c818360208801614746565b01979650505050505050565b60008a5161528a818460208f01614746565b8a5161529c8183860160208f01614746565b8a5191840101906152b1818360208e01614746565b89516152c38183850160208e01614746565b89519290910101906152d9818360208c01614746565b87516152eb8183850160208c01614746565b8751929091010190615301818360208a01614746565b85516153138183850160208a01614746565b8551929091010190615329818360208801614746565b019b9a5050505050505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061536c90830184614772565b9695505050505050565b60006020828403121561538857600080fd5b815161321881614713565b600061ffff8083168185168083038211156153b0576153b0614d46565b01949350505050565b600061ffff808316818114156153d1576153d1614d46565b6001019392505050565b6f3d913a3930b4ba2fba3cb832911d101160811b81528351600090615407816010850160208901614746565b6c111610113b30b63ab2911d101160991b601091840191820152845161543481601d840160208901614746565b61227d60f01b601d9290910191820152835161545781601f840160208801614746565b01601f019594505050505056fe3c7374796c653e2365646765686f677b73686170652d72656e646572696e673a20637269737065646765733b20696d6167652d72656e646572696e673a202d6d6f7a2d63726973702d65646765733b20696d6167652d72656e646572696e673a206f7074696d697a6553706565643b20696d6167652d72656e646572696e673a202d7765626b69742d63726973702d65646765733b20696d6167652d72656e646572696e673a202d7765626b69742d6f7074696d697a652d636f6e74726173743b20696d6167652d72656e646572696e673a2063726973702d65646765733b20696d6167652d72656e646572696e673a20706978656c617465643b202d6d732d696e746572706f6c6174696f6e2d6d6f64653a206e6561726573742d6e65696768626f723b7d2e76696265207b20616e696d6174696f6e3a20302e3573207669626520696e66696e69746520616c7465726e61746520656173652d696e2d6f75743b207d20406b65796672616d65732076696265207b2066726f6d207b207472616e73666f726d3a207472616e736c6174655928307078293b207d20746f207b207472616e73666f726d3a207472616e736c6174655928312e3525293b207d207d3c2f7374796c653e3c2f7376673e3c7376672069643d2765646765686f672720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f737667272076696577426f783d273020302032353620323536272077696474683d2736343027206865696768743d27363430273e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c6720636c6173733d2776696265273e3c696d61676520687265663d27646174613a696d6167652f706e673b6261736536342c6956424f5277304b47676f414141414e5355684555674141415141414141454142414d4141414375584c5656414141414656424d564555414141444c7461456e44516954673272736d4a6b414141425a566c4c304c6c72494141414141585253546c4d41514f62595a674141414c424a52454655654e72743173304a777a414d674e47756b425779516c666f436c32682b342f5147437751415a4f666d355833727048516477702b415141414141414141414141414a79784a6e6633424167514d482f4170377579467a73434241695950794248764c736c695a6b6c615450357541414241755950694968306643676966787342416751384c79422f4679424177444d4447674543424e515032427339534f4b3441414543366751306f36506832776b51494b4275774f6948464d64445069354167494236416331365944387651494341656745414141414141414141414141414145415a663838702b644442655674444141414141456c46546b5375516d4343272f3e3c2f673e3c696d61676520687265663d27646174613a696d6167652f706e673b6261736536342c6956424f5277304b47676f414141414e5355684555674141415141414141454142414d4141414375584c5656414141414431424d56455541414143546732724c7461456e4451685a566c4955746573764141414141585253546c4d41514f62595a674141414d684a52454655654e72743262454e784341515255473351417658416932342f356f4f533135686d644e423676564d516b4477587777624141414141414141414141414141414141414141414d437132757a4e746b694141414735416d493862424d4342416a494731424f737767424167546b43756a6a6f2f3248326767514943422f774f656d6e415149454a41765944342b52745354414145433368647769494134425167516b43666755427342416753384e364130416751494544414c4b49304141514a79426f52797366704149554341674f63482f50753476492b48474263675145442b6747346346794241514e36414f6f69375069354167494438416463374151494570416a34416a67534f4b376a357a55644141414141456c46546b5375516d4343272f3ea264697066735822122054450b98fc5a7a8f7c30716770618872888aad3c2dc45010352db82b455c95ca64736f6c634300080c0033000000000000000000000000e2fe9f081688102f2260ecfec59640699dd61550000000000000000000000000f57b2c51ded3a29e6891aba85459d600256cf31791984a7e429b07deaff4908bb0b1b00c4a7605516b61bc14d97f09911b881481
Deployed Bytecode
0x6080604052600436106103b75760003560e01c80638462151c116101f2578063a647f0cf1161010d578063e1dc0761116100a0578063f2fde38b1161006f578063f2fde38b14610acb578063f676308a14610aeb578063fa26acef14610b0b578063fa57416114610b2b57600080fd5b8063e1dc076114610a47578063e985e9c514610a75578063ed6661c214610a95578063edc0c72c14610aab57600080fd5b8063c87b56dd116100dc578063c87b56dd146109db578063cff47679146109fb578063d49d518114610a1b578063d75e611014610a3157600080fd5b8063a647f0cf14610965578063b88d4fde1461097b578063c39cbef11461099b578063c5a991f8146109bb57600080fd5b80639a1b74b611610185578063a0712d6811610154578063a0712d68146108f2578063a22cb46514610905578063a232ef7714610925578063a4d925f11461094557600080fd5b80639a1b74b6146108875780639a77a89e146108a75780639f51758e146108bc5780639ffdb65a146108d257600080fd5b80638da5cb5b116101c15780638da5cb5b1461081457806391b7f5ed146108325780639416b4231461085257806395d89b411461087257600080fd5b80638462151c146107c0578063853828b6146107e05780638d75fe05146107e85780638d859f3e146107fe57600080fd5b8063303e74df116102e25780636352211e11610275578063715018a611610244578063715018a6146107565780637636821e1461076b5780637cb647591461078057806383a076be146107a057600080fd5b80636352211e146106d65780636d522418146106f65780636f8b44b01461071657806370a082311461073657600080fd5b8063509045b5116102b1578063509045b51461063d5780635a23dd991461065d5780635f5168361461067d578063603f4d52146106aa57600080fd5b8063303e74df146105c157806334918dfd146105e157806342842e0e146105f65780635025b5481461061657600080fd5b806312e70e3e1161035a5780631c19c215116103295780631c19c2151461054d57806323b872dd146105605780632add59c6146105805780632c5c05e81461059f57600080fd5b806312e70e3e146104de57806315b56d10146104fe57806318160ddd1461051e5780631b47ec3a1461053757600080fd5b806306fdde031161039657806306fdde031461044e578063081812fc1461047057806308d49f82146104a8578063095ea7b3146104be57600080fd5b80628af2e6146103bc57806301b9a397146103fc57806301ffc9a71461041e575b600080fd5b3480156103c857600080fd5b506103e96103d73660046146f6565b60176020526000908152604090205481565b6040519081526020015b60405180910390f35b34801561040857600080fd5b5061041c6104173660046146f6565b610b40565b005b34801561042a57600080fd5b5061043e610439366004614729565b610b95565b60405190151581526020016103f3565b34801561045a57600080fd5b50610463610be7565b6040516103f3919061479e565b34801561047c57600080fd5b5061049061048b3660046147b1565b610c79565b6040516001600160a01b0390911681526020016103f3565b3480156104b457600080fd5b506103e9600b5481565b3480156104ca57600080fd5b5061041c6104d93660046147ca565b610cbd565b3480156104ea57600080fd5b5061041c6104f93660046147b1565b610d4b565b34801561050a57600080fd5b5061043e6105193660046148c1565b610daa565b34801561052a57600080fd5b50600254600154036103e9565b34801561054357600080fd5b506103e960115481565b61041c61055b3660046147b1565b610ddd565b34801561056c57600080fd5b5061041c61057b3660046148f5565b610fb0565b34801561058c57600080fd5b5060125461043e90610100900460ff1681565b3480156105ab57600080fd5b506105b4610fbb565b6040516103f39190614936565b3480156105cd57600080fd5b50601854610490906001600160a01b031681565b3480156105ed57600080fd5b5061041c611012565b34801561060257600080fd5b5061041c6106113660046148f5565b6110c1565b34801561062257600080fd5b5060125461049090630100000090046001600160a01b031681565b34801561064957600080fd5b5061041c61065836600461497a565b6110dc565b34801561066957600080fd5b5061043e6106783660046149e7565b61116e565b34801561068957600080fd5b506103e96106983660046147b1565b60166020526000908152604090205481565b3480156106b657600080fd5b506012546106c49060ff1681565b60405160ff90911681526020016103f3565b3480156106e257600080fd5b506104906106f13660046147b1565b6111f7565b34801561070257600080fd5b506104636107113660046147b1565b611209565b34801561072257600080fd5b5061041c6107313660046147b1565b6112ab565b34801561074257600080fd5b506103e96107513660046146f6565b6112da565b34801561076257600080fd5b5061041c611328565b34801561077757600080fd5b5061041c61135e565b34801561078c57600080fd5b5061041c61079b3660046147b1565b6113a5565b3480156107ac57600080fd5b5061041c6107bb366004614a3b565b6113d4565b3480156107cc57600080fd5b506105b46107db3660046146f6565b6114e6565b61041c611620565b3480156107f457600080fd5b506103e9600f5481565b34801561080a57600080fd5b506103e9600d5481565b34801561082057600080fd5b506000546001600160a01b0316610490565b34801561083e57600080fd5b5061041c61084d3660046147b1565b6116d1565b34801561085e57600080fd5b5061046361086d3660046148c1565b611700565b34801561087e57600080fd5b50610463611862565b34801561089357600080fd5b5061041c6108a23660046148c1565b611871565b3480156108b357600080fd5b506010546103e9565b3480156108c857600080fd5b506103e9600e5481565b3480156108de57600080fd5b5061043e6108ed3660046148c1565b6118de565b61041c6109003660046147b1565b611aed565b34801561091157600080fd5b5061041c610920366004614a6b565b611d12565b34801561093157600080fd5b5061041c6109403660046147b1565b611da8565b34801561095157600080fd5b5061041c6109603660046146f6565b611ee4565b34801561097157600080fd5b506103e960105481565b34801561098757600080fd5b5061041c610996366004614a9e565b611f3a565b3480156109a757600080fd5b5061041c6109b6366004614b1d565b611f8b565b3480156109c757600080fd5b5061043e6109d63660046147b1565b6122c3565b3480156109e757600080fd5b506104636109f63660046147b1565b6122ee565b348015610a0757600080fd5b5060125461043e9062010000900460ff1681565b348015610a2757600080fd5b506103e960095481565b348015610a3d57600080fd5b506103e9600c5481565b348015610a5357600080fd5b50610a67610a623660046147b1565b6123c1565b6040516103f3929190614b63565b348015610a8157600080fd5b5061043e610a90366004614b91565b613151565b348015610aa157600080fd5b506103e9600a5481565b348015610ab757600080fd5b5061041c610ac6366004614bbf565b61321f565b348015610ad757600080fd5b5061041c610ae63660046146f6565b6133dd565b348015610af757600080fd5b5061041c610b063660046147b1565b613475565b348015610b1757600080fd5b50610463610b26366004614c12565b6134a4565b348015610b3757600080fd5b506011546103e9565b6000546001600160a01b03163314610b735760405162461bcd60e51b8152600401610b6a90614cba565b60405180910390fd5b601880546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982166380ac58cd60e01b1480610bc657506001600160e01b03198216635b5e139f60e01b145b80610be157506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060038054610bf690614cef565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2290614cef565b8015610c6f5780601f10610c4457610100808354040283529160200191610c6f565b820191906000526020600020905b815481529060010190602001808311610c5257829003601f168201915b5050505050905090565b6000610c8482613987565b610ca1576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610cc8826111f7565b9050806001600160a01b0316836001600160a01b03161415610cfd5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610d1d5750610d1b8133613151565b155b15610d3b576040516367d9dca160e11b815260040160405180910390fd5b610d468383836139b3565b505050565b6000546001600160a01b03163314610d755760405162461bcd60e51b8152600401610b6a90614cba565b602a80546001810182556000919091527fbeced09521047d05b8960b7e7bcc1d1292cf3e4b2a6b63f48335cbde5f7545d20155565b6000602c610db783611700565b604051610dc49190614d2a565b9081526040519081900360200190205460ff1692915050565b60125460ff16600214610e245760405162461bcd60e51b815260206004820152600f60248201526e5265726f6c6c20696e61637469766560881b6044820152606401610b6a565b600b5460105410610e695760405162461bcd60e51b815260206004820152600f60248201526e4e6f206d6f7265207265726f6c6c7360881b6044820152606401610b6a565b610e72816111f7565b6001600160a01b0316336001600160a01b031614610eca5760405162461bcd60e51b815260206004820152601560248201527413db9b1e481bdddb995c8818d85b881c995c9bdb1b605a1b6044820152606401610b6a565b610ed3816122c3565b15610f145760405162461bcd60e51b815260206004820152601160248201527010d85b89dd081899481c995c9bdb1b1959607a1b6044820152606401610b6a565b34600e5414610f585760405162461bcd60e51b815260206004820152601060248201526f15dc9bdb99c811551208185b5bdd5b9d60821b6044820152606401610b6a565b601054610f66906001614d5c565b6010554233610f76836001614d5c565b604051602001610f8893929190614d74565b60408051601f1981840301815291815281516020928301206000938452601690925290912055565b610d46838383613a0f565b6060602a805480602002602001604051908101604052809291908181526020018280548015610c6f57602002820191906000526020600020905b815481526020019060010190808311610ff5575050505050905090565b6000546001600160a01b0316331461103c5760405162461bcd60e51b8152600401610b6a90614cba565b601254600360ff909116106110935760405162461bcd60e51b815260206004820152601c60248201527f53616c6520737461746520697320616c726561647920636c6f736564000000006044820152606401610b6a565b6012805460ff169060006110a683614d9c565b91906101000a81548160ff021916908360ff16021790555050565b610d4683838360405180602001604052806000815250611f3a565b6000546001600160a01b031633146111065760405162461bcd60e51b8152600401610b6a90614cba565b61110f826122c3565b156111505760405162461bcd60e51b815260206004820152601160248201527010d85b89dd081899481d5c19dc98591959607a1b6044820152606401610b6a565b600082815260166020526040902081905561116a81610d4b565b5050565b60006111ef6111b6856040516bffffffffffffffffffffffff19606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250613bfc92505050565b949350505050565b600061120282613c0b565b5192915050565b6000818152602b6020526040902080546060919061122690614cef565b80601f016020809104026020016040519081016040528092919081815260200182805461125290614cef565b801561129f5780601f106112745761010080835404028352916020019161129f565b820191906000526020600020905b81548152906001019060200180831161128257829003601f168201915b50505050509050919050565b6000546001600160a01b031633146112d55760405162461bcd60e51b8152600401610b6a90614cba565b600955565b60006001600160a01b038216611303576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6000546001600160a01b031633146113525760405162461bcd60e51b8152600401610b6a90614cba565b61135c6000613d25565b565b6000546001600160a01b031633146113885760405162461bcd60e51b8152600401610b6a90614cba565b6012805461ff001981166101009182900460ff1615909102179055565b6000546001600160a01b031633146113cf5760405162461bcd60e51b8152600401610b6a90614cba565b602d55565b6000546001600160a01b031633146113fe5760405162461bcd60e51b8152600401610b6a90614cba565b600061140d6002546001540390565b60095490915061141d8483614d5c565b11156114655760405162461bcd60e51b8152602060048201526017602482015276576f756c6420657863656564206d617820737570706c7960481b6044820152606401610b6a565b60005b838110156114d757423361147c8385614d5c565b60405160200161148e93929190614d74565b60408051601f198184030181529190528051602090910120601660006114b48486614d5c565b8152602081019190915260400160002055806114cf81614dbc565b915050611468565b5060009050610d468284613d75565b606060006114f3836112da565b90506000816001600160401b0381111561150f5761150f6147f6565b604051908082528060200260200182016040528015611538578160200160208202803683370190505b50905060008061154b6002546001540390565b905060005b8181101561161557600061156382613987565b905080156115be57876001600160a01b031661157e836111f7565b6001600160a01b031614156115b957818585815181106115a0576115a0614dd7565b6020908102919091010152836115b581614dbc565b9450505b611602565b801580156115ef5750846115d3600188614ded565b815181106115e3576115e3614dd7565b60200260200101516000145b1561160257826115fe81614dbc565b9350505b508061160d81614dbc565b915050611550565b509195945050505050565b6000546001600160a01b0316331461164a5760405162461bcd60e51b8152600401610b6a90614cba565b6000611657606447614e1a565b6013549091506001600160a01b03166108fc61167483605a614e2e565b6040518115909202916000818181858888f1935050505061169457600080fd5b6014546001600160a01b03166108fc6116ae83600a614e2e565b6040518115909202916000818181858888f193505050506116ce57600080fd5b50565b6000546001600160a01b031633146116fb5760405162461bcd60e51b8152600401610b6a90614cba565b600d55565b60606000829050600081516001600160401b03811115611722576117226147f6565b6040519080825280601f01601f19166020018201604052801561174c576020820181803683370190505b50905060005b825181101561185a57604183828151811061176f5761176f614dd7565b016020015160f81c1080159061179f5750605a83828151811061179457611794614dd7565b016020015160f81c11155b15611801578281815181106117b6576117b6614dd7565b602001015160f81c60f81b60f81c60206117d09190614e4d565b60f81b8282815181106117e5576117e5614dd7565b60200101906001600160f81b031916908160001a905350611848565b82818151811061181357611813614dd7565b602001015160f81c60f81b82828151811061183057611830614dd7565b60200101906001600160f81b031916908160001a9053505b8061185281614dbc565b915050611752565b509392505050565b606060048054610bf690614cef565b6000546001600160a01b0316331461189b5760405162461bcd60e51b8152600401610b6a90614cba565b60298054600181018255600091909152815161116a917fcb7c14ce178f56e2e8d86ab33ebc0ae081ba8556a00cd122038841867181caac01906020840190614648565b6000808290506001815110156118f75750600092915050565b60198151111561190a5750600092915050565b8060008151811061191d5761191d614dd7565b6020910101516001600160f81b031916600160fd1b14156119415750600092915050565b80600182516119509190614ded565b8151811061196057611960614dd7565b6020910101516001600160f81b031916600160fd1b14156119845750600092915050565b60008160008151811061199957611999614dd7565b01602001516001600160f81b031916905060005b8251811015611ae25760008382815181106119ca576119ca614dd7565b01602001516001600160f81b0319169050600160fd1b811480156119fb5750600160fd1b6001600160f81b03198416145b15611a0c5750600095945050505050565b600360fc1b6001600160f81b0319821610801590611a385750603960f81b6001600160f81b0319821611155b158015611a6e5750604160f81b6001600160f81b0319821610801590611a6c5750602d60f91b6001600160f81b0319821611155b155b8015611aa35750606160f81b6001600160f81b0319821610801590611aa15750603d60f91b6001600160f81b0319821611155b155b8015611abd5750600160fd1b6001600160f81b0319821614155b15611ace5750600095945050505050565b915080611ada81614dbc565b9150506119ad565b506001949350505050565b6000611afc6002546001540390565b60125490915060ff16600114611b445760405162461bcd60e51b815260206004820152600d60248201526c53616c6520696e61637469766560981b6044820152606401610b6a565b6015546001600160a01b0316331415611b905760405162461bcd60e51b815260206004820152600e60248201526d4e6f20537465766520416f6b692160901b6044820152606401610b6a565b600c54821115611bcd5760405162461bcd60e51b8152602060048201526008602482015267546f6f206d616e7960c01b6044820152606401610b6a565b601154600a54600954611be09190614ded565b611bea9190614d5c565b611bf48383614d5c565b1115611c425760405162461bcd60e51b815260206004820152601e60248201527f576f756c6420657863656564206d6178207075626c696320737570706c7900006044820152606401610b6a565b3482600d54611c519190614e2e565b14611c915760405162461bcd60e51b815260206004820152601060248201526f15dc9bdb99c811551208185b5bdd5b9d60821b6044820152606401610b6a565b60005b82811015611d03574233611ca88385614d5c565b604051602001611cba93929190614d74565b60408051601f19818403018152919052805160209091012060166000611ce08486614d5c565b815260208101919091526040016000205580611cfb81614dbc565b915050611c94565b506000905061116a3383613d75565b6001600160a01b038216331415611d3c5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b03163314611dd25760405162461bcd60e51b8152600401610b6a90614cba565b60125462010000900460ff1615611e2b5760405162461bcd60e51b815260206004820152601760248201527f4c6567656e64617269657320616c7265616479207365740000000000000000006044820152606401610b6a565b6000611e3a6002546001540390565b90508160015b600a8111611ecd57600083423385604051602001611e6093929190614d74565b6040516020818303038152906040528051906020012060001c611e839190614e72565b9050611e8e816122c3565b611eba576000818152601660205260409020829055611eac81610d4b565b611eb7836006614e2e565b92505b5080611ec581614dbc565b915050611e40565b50506012805462ff00001916620100001790555050565b6000546001600160a01b03163314611f0e5760405162461bcd60e51b8152600401610b6a90614cba565b601280546001600160a01b039092166301000000026301000000600160b81b0319909216919091179055565b611f45848484613a0f565b6001600160a01b0383163b15158015611f675750611f6584848484613d8f565b155b15611f85576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6000611f96836111f7565b9050336001600160a01b03821614611ff05760405162461bcd60e51b815260206004820152601f60248201527f4552433732313a2063616c6c6572206973206e6f7420746865206f776e6572006044820152606401610b6a565b611ff9826118de565b15156001146120415760405162461bcd60e51b81526020600482015260146024820152734e6f7420612076616c6964206e6577206e616d6560601b6044820152606401610b6a565b6000838152602b602052604090819020905160029161205f91614f1f565b602060405180830381855afa15801561207c573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061209f9190614f2b565b6002836040516120af9190614d2a565b602060405180830381855afa1580156120cc573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906120ef9190614f2b565b14156121495760405162461bcd60e51b815260206004820152602360248201527f4e6577206e616d652069732073616d65206173207468652063757272656e74206044820152626f6e6560e81b6064820152608401610b6a565b61215282610daa565b156121975760405162461bcd60e51b815260206004820152601560248201527413985b5948185b1c9958591e481c995cd95c9d9959605a1b6044820152606401610b6a565b6000838152602b6020526040812080546121b090614cef565b9050111561225b576000838152602b60205260409020805461225b91906121d690614cef565b80601f016020809104026020016040519081016040528092919081815260200182805461220290614cef565b801561224f5780601f106122245761010080835404028352916020019161224f565b820191906000526020600020905b81548152906001019060200180831161223257829003601f168201915b50505050506000613e77565b612266826001613e77565b6000838152602b60209081526040909120835161228592850190614648565b50827f7e632a301794d8d4a81ea7e20f37d1947158d36e66403af04ba85dd194b66f1b836040516122b6919061479e565b60405180910390a2505050565b6000818152601660205260408120546064106122e157506001919050565b506000919050565b919050565b60606122f982613987565b6123375760405162461bcd60e51b815260206004820152600f60248201526e151bdad95b881b9bdd08199bdd5b99608a1b6044820152606401610b6a565b6000828152601660205260408120548190612351906123c1565b9150915061239961236185613eb4565b6000868152602b602090815260409182902091516123859392918691889101614f44565b604051602081830303815290604052613fdc565b6040516020016123a99190615099565b60405160208183030381529060405292505050919050565b60608060006123d1846008614143565b60408051600980825261014082019092529192506000919060208201610120803683370190505090506064851115612bf6576124a6601960000180548060200260200160405190810160405280929190818152602001828054801561247d57602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116124445790505b50505050508360008151811061249557612495614dd7565b602002602001015161ffff16614203565b816000815181106124b9576124b9614dd7565b61ffff92909216602092830291909101820152601a80546040805182850281018501909152818152612558939092919083018282801561254057602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116125075790505b50505050508360018151811061249557612495614dd7565b8160018151811061256b5761256b614dd7565b61ffff92909216602092830291909101820152601b8054604080518285028101850190915281815261260a93909291908301828280156125f257602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116125b95790505b50505050508360028151811061249557612495614dd7565b8160028151811061261d5761261d614dd7565b61ffff92909216602092830291909101820152601c805460408051828502810185019091528181526126bc93909291908301828280156126a457602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff168152602001906002019060208260010104928301926001038202915080841161266b5790505b50505050508360038151811061249557612495614dd7565b816003815181106126cf576126cf614dd7565b61ffff92909216602092830291909101820152601d8054604080518285028101850190915281815261276e939092919083018282801561275657602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff168152602001906002019060208260010104928301926001038202915080841161271d5790505b50505050508360048151811061249557612495614dd7565b8160048151811061278157612781614dd7565b61ffff92909216602092830291909101820152601e80546040805182850281018501909152818152612820939092919083018282801561280857602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116127cf5790505b50505050508360058151811061249557612495614dd7565b8160058151811061283357612833614dd7565b61ffff92909216602092830291909101820152601f805460408051828502810185019091528181526128d293909291908301828280156128ba57602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116128815790505b50505050508360068151811061249557612495614dd7565b816006815181106128e5576128e5614dd7565b61ffff92909216602092830291909101820152805460408051828402810184019091528181526129819290918282018282801561296957602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff16815260200190600201906020826001010492830192600103820291508084116129305790505b50505050508360078151811061249557612495614dd7565b8160078151811061299457612994614dd7565b602002602001019061ffff16908161ffff16815250506000816008815181106129bf576129bf614dd7565b602002602001019061ffff16908161ffff1681525050806001815181106129e8576129e8614dd7565b602002602001015161ffff1660131480612a20575080600181518110612a1057612a10614dd7565b602002602001015161ffff166016145b15612a5157600181600581518110612a3a57612a3a614dd7565b602002602001019061ffff16908161ffff16815250505b80600481518110612a6457612a64614dd7565b602002602001015161ffff1660151415612aa457600081600781518110612a8d57612a8d614dd7565b602002602001019061ffff16908161ffff16815250505b80600781518110612ab757612ab7614dd7565b602002602001015161ffff1660041480612aef575080600781518110612adf57612adf614dd7565b602002602001015161ffff166018145b15612b2057600181600481518110612b0957612b09614dd7565b602002602001019061ffff16908161ffff16815250505b80600581518110612b3357612b33614dd7565b602002602001015161ffff1660251415612b7357600181600681518110612b5c57612b5c614dd7565b602002602001019061ffff16908161ffff16815250505b80600581518110612b8657612b86614dd7565b602002602001015161ffff1660241415612bf157600181600681518110612baf57612baf614dd7565b602002602001019061ffff16908161ffff1681525050600081600481518110612bda57612bda614dd7565b602002602001019061ffff16908161ffff16815250505b612d79565b600081600081518110612c0b57612c0b614dd7565b602002602001019061ffff16908161ffff1681525050600081600181518110612c3657612c36614dd7565b602002602001019061ffff16908161ffff1681525050600081600281518110612c6157612c61614dd7565b602002602001019061ffff16908161ffff1681525050600081600381518110612c8c57612c8c614dd7565b602002602001019061ffff16908161ffff1681525050600081600481518110612cb757612cb7614dd7565b602002602001019061ffff16908161ffff1681525050600081600581518110612ce257612ce2614dd7565b602002602001019061ffff16908161ffff1681525050600081600681518110612d0d57612d0d614dd7565b602002602001019061ffff16908161ffff1681525050600081600781518110612d3857612d38614dd7565b602002602001019061ffff16908161ffff16815250508481600881518110612d6257612d62614dd7565b602002602001019061ffff16908161ffff16815250505b6000612e7682600081518110612d9157612d91614dd7565b602002602001015183600181518110612dac57612dac614dd7565b602002602001015184600281518110612dc757612dc7614dd7565b602002602001015185600381518110612de257612de2614dd7565b602002602001015186600481518110612dfd57612dfd614dd7565b602002602001015187600581518110612e1857612e18614dd7565b602002602001015188600681518110612e3357612e33614dd7565b602002602001015189600781518110612e4e57612e4e614dd7565b60200260200101518a600881518110612e6957612e69614dd7565b60200260200101516134a4565b9050612e8181613fdc565b945060648611156130d2576000612ee46040518060400160405280600a815260200169189858dad9dc9bdd5b9960b21b815250612edd600086600081518110612ecc57612ecc614dd7565b602002602001015161ffff166142a7565b6000614369565b612f1c604051806040016040528060048152602001636261636b60e01b815250612edd600187600181518110612ecc57612ecc614dd7565b612f5660405180604001604052806006815260200165626f74746f6d60d01b815250612edd600288600281518110612ecc57612ecc614dd7565b612f9160405180604001604052806007815260200166636c6f7468657360c81b815250612edd600389600381518110612ecc57612ecc614dd7565b612fca604051806040016040528060058152602001640dadeeae8d60db1b815250612edd60048a600481518110612ecc57612ecc614dd7565b613006604051806040016040528060088152602001673432b0b233b2b0b960c11b815250612edd60058b600581518110612ecc57612ecc614dd7565b61303e604051806040016040528060048152602001636579657360e01b815250612edd60068c600681518110612ecc57612ecc614dd7565b613082604051806040016040528060098152602001686163636573736f727960b81b81525061307b60078d600781518110612ecc57612ecc614dd7565b6001614369565b6040516020016130999897969594939291906150de565b6040516020818303038152906040529050806040516020016130bb9190614d2a565b604051602081830303815290604052945050613149565b6000613104604051806040016040528060098152602001686c6567656e6461727960b81b81525061307b60088a6142a7565b6040516020016131149190614d2a565b6040516020818303038152906040529050806040516020016131369190614d2a565b6040516020818303038152906040529450505b505050915091565b601254600090610100900460ff1680156131e8575060125460405163c455279160e01b81526001600160a01b0385811660048301528481169263010000009004169063c455279190602401602060405180830381865afa1580156131b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131dd9190615183565b6001600160a01b0316145b8061321857506001600160a01b0380841660009081526008602090815260408083209386168352929052205460ff165b9392505050565b600061322e6002546001540390565b60125490915060ff166001146132765760405162461bcd60e51b815260206004820152600d60248201526c53616c6520696e61637469766560981b6044820152606401610b6a565b600954613284826001614d5c565b11156132cc5760405162461bcd60e51b8152602060048201526017602482015276576f756c6420657863656564206d617820737570706c7960481b6044820152606401610b6a565b6132d733848461116e565b6133155760405162461bcd60e51b815260206004820152600f60248201526e139bdd081bdb881d1a19481b1a5cdd608a1b6044820152606401610b6a565b33600090815260176020526040902054156133635760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481b5a5b9d195960921b6044820152606401610b6a565b6011805490600061337383614dbc565b909155505033600090815260176020526040812080549161339383614dbc565b91905055504233826040516020016133ad93929190614d74565b60408051601f19818403018152918152815160209283012060009384526016909252822055610d46336001613d75565b6000546001600160a01b031633146134075760405162461bcd60e51b8152600401610b6a90614cba565b6001600160a01b03811661346c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b6a565b6116ce81613d25565b6000546001600160a01b0316331461349f5760405162461bcd60e51b8152600401610b6a90614cba565b600a55565b606060006040518060a00160405280606481526020016156346064913960185460405163423a06ef60e11b815261ffff8e1660048201526001600160a01b03909116906384740dde90602401600060405180830381865afa15801561350d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261353591908101906151a0565b601854604051630ed39fa160e01b815261ffff8e1660048201526001600160a01b0390911690630ed39fa190602401600060405180830381865afa158015613581573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526135a991908101906151a0565b604051806101e001604052806101b281526020016158866101b2913960185460405163167e6d2f60e21b815261ffff8f1660048201526001600160a01b03909116906359f9b4bc90602401600060405180830381865afa158015613611573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261363991908101906151a0565b60405160200161364d95949392919061520d565b60408051808303601f1901815290829052601854630145727b60e01b835261ffff8b16600484015290925082916001600160a01b0390911690630145727b90602401600060405180830381865afa1580156136ac573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526136d491908101906151a0565b604051806101e001604052806101ae81526020016156d86101ae91396018546040516325c0401960e01b815261ffff891660048201526001600160a01b03909116906325c0401990602401600060405180830381865afa15801561373c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261376491908101906151a0565b601854604051632ac619eb60e11b815261ffff8c1660048201526001600160a01b039091169063558c33d690602401600060405180830381865afa1580156137b0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526137d891908101906151a0565b6018546040516310aeb2e960e01b815261ffff8c1660048201526001600160a01b03909116906310aeb2e990602401600060405180830381865afa158015613824573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261384c91908101906151a0565b601854604051636c13a52f60e11b815261ffff8f1660048201526001600160a01b039091169063d8274a5e90602401600060405180830381865afa158015613898573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526138c091908101906151a0565b601854604051630ee7fdc960e01b815261ffff8c1660048201526001600160a01b0390911690630ee7fdc990602401600060405180830381865afa15801561390c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261393491908101906151a0565b6040518061020001604052806101cf81526020016154656101cf913960405160200161396899989796959493929190615278565b6040516020818303038152906040529150509998505050505050505050565b600060015482108015610be1575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000613a1a82613c0b565b9050836001600160a01b031681600001516001600160a01b031614613a515760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480613a6f5750613a6f8533613151565b80613a8a575033613a7f84610c79565b6001600160a01b0316145b905080613aaa57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416613ad157604051633a954ecd60e21b815260040160405180910390fd5b613add600084876139b3565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116613bb1576001548214613bb157805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600061321882602d54856143c9565b604080516060810182526000808252602082018190529181019190915281600154811015613d0c57600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290613d0a5780516001600160a01b031615613ca1579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215613d05579392505050565b613ca1565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61116a8282604051806020016040528060008152506143df565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290613dc4903390899088908890600401615339565b6020604051808303816000875af1925050508015613dff575060408051601f3d908101601f19168201909252613dfc91810190615376565b60015b613e5a573d808015613e2d576040519150601f19603f3d011682016040523d82523d6000602084013e613e32565b606091505b508051613e52576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b80602c613e8384611700565b604051613e909190614d2a565b908152604051908190036020019020805491151560ff199092169190911790555050565b606081613ed85750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613f025780613eec81614dbc565b9150613efb9050600a83614e1a565b9150613edc565b6000816001600160401b03811115613f1c57613f1c6147f6565b6040519080825280601f01601f191660200182016040528015613f46576020820181803683370190505b509050815b8515613fd357613f5c600182614ded565b90506000613f6b600a88614e1a565b613f7690600a614e2e565b613f809088614ded565b613f8b906030614e4d565b905060008160f81b905080848481518110613fa857613fa8614dd7565b60200101906001600160f81b031916908160001a905350613fca600a89614e1a565b97505050613f4b565b50949350505050565b6060815160001415613ffc57505060408051602081019091526000815290565b6000604051806060016040528060408152602001615698604091399050600060038451600261402b9190614d5c565b6140359190614e1a565b614040906004614e2e565b9050600061404f826020614d5c565b6001600160401b03811115614066576140666147f6565b6040519080825280601f01601f191660200182016040528015614090576020820181803683370190505b509050818152600183018586518101602084015b818310156140fe5760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b938201939093526004016140a4565b600389510660018114614118576002811461412957614135565b613d3d60f01b600119830152614135565b603d60f81b6000198301525b509398975050505050505050565b6060816001600160401b0381111561415d5761415d6147f6565b604051908082528060200260200182016040528015614186578160200160208202803683370190505b50905060005b828110156141fc5760408051602081018690529081018290526141c5906060016040516020818303038152906040528051906020012090565b8282815181106141d7576141d7614dd7565b61ffff90921660209283029190910190910152806141f481614dbc565b91505061418c565b5092915050565b60008061421261271084614e72565b9050600060015b85518161ffff16116142a1576000868261ffff168151811061423d5761423d614dd7565b6020026020010151905082816142539190615393565b61ffff168461ffff1610801561427157508261ffff168461ffff1610155b1561428157509250610be1915050565b61428b8184615393565b9250508080614299906153b9565b915050614219565b50600080fd5b6060602183600981106142bc576142bc614dd7565b0182815481106142ce576142ce614dd7565b9060005260206000200180546142e390614cef565b80601f016020809104026020016040519081016040528092919081815260200182805461430f90614cef565b801561435c5780601f106143315761010080835404028352916020019161435c565b820191906000526020600020905b81548152906001019060200180831161433f57829003601f168201915b5050505050905092915050565b6040805180820190915260018152600b60fa1b6020820152606090821561439b57506040805160208101909152600081525b8484826040516020016143b0939291906153db565b6040516020818303038152906040529150509392505050565b6000826143d685846145a4565b14949350505050565b6001546001600160a01b03841661440857604051622e076360e81b815260040160405180910390fd5b826144265760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600590925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b1561454f575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46145176000878480600101955087613d8f565b614534576040516368d2bf6b60e11b815260040160405180910390fd5b808214156144cc57826001541461454a57600080fd5b614595565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821415614550575b50600155611f85600085838684565b600081815b845181101561185a5760008582815181106145c6576145c6614dd7565b60200260200101519050808311614608576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250614635565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061464081614dbc565b9150506145a9565b82805461465490614cef565b90600052602060002090601f01602090048101928261467657600085556146bc565b82601f1061468f57805160ff19168380011785556146bc565b828001600101855582156146bc579182015b828111156146bc5782518255916020019190600101906146a1565b506146c89291506146cc565b5090565b5b808211156146c857600081556001016146cd565b6001600160a01b03811681146116ce57600080fd5b60006020828403121561470857600080fd5b8135613218816146e1565b6001600160e01b0319811681146116ce57600080fd5b60006020828403121561473b57600080fd5b813561321881614713565b60005b83811015614761578181015183820152602001614749565b83811115611f855750506000910152565b6000815180845261478a816020860160208601614746565b601f01601f19169290920160200192915050565b6020815260006132186020830184614772565b6000602082840312156147c357600080fd5b5035919050565b600080604083850312156147dd57600080fd5b82356147e8816146e1565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715614834576148346147f6565b604052919050565b60006001600160401b03821115614855576148556147f6565b50601f01601f191660200190565b60006148766148718461483c565b61480c565b905082815283838301111561488a57600080fd5b828260208301376000602084830101529392505050565b600082601f8301126148b257600080fd5b61321883833560208501614863565b6000602082840312156148d357600080fd5b81356001600160401b038111156148e957600080fd5b6111ef848285016148a1565b60008060006060848603121561490a57600080fd5b8335614915816146e1565b92506020840135614925816146e1565b929592945050506040919091013590565b6020808252825182820181905260009190848201906040850190845b8181101561496e57835183529284019291840191600101614952565b50909695505050505050565b6000806040838503121561498d57600080fd5b50508035926020909101359150565b60008083601f8401126149ae57600080fd5b5081356001600160401b038111156149c557600080fd5b6020830191508360208260051b85010111156149e057600080fd5b9250929050565b6000806000604084860312156149fc57600080fd5b8335614a07816146e1565b925060208401356001600160401b03811115614a2257600080fd5b614a2e8682870161499c565b9497909650939450505050565b60008060408385031215614a4e57600080fd5b823591506020830135614a60816146e1565b809150509250929050565b60008060408385031215614a7e57600080fd5b8235614a89816146e1565b915060208301358015158114614a6057600080fd5b60008060008060808587031215614ab457600080fd5b8435614abf816146e1565b93506020850135614acf816146e1565b92506040850135915060608501356001600160401b03811115614af157600080fd5b8501601f81018713614b0257600080fd5b614b1187823560208401614863565b91505092959194509250565b60008060408385031215614b3057600080fd5b8235915060208301356001600160401b03811115614b4d57600080fd5b614b59858286016148a1565b9150509250929050565b604081526000614b766040830185614772565b8281036020840152614b888185614772565b95945050505050565b60008060408385031215614ba457600080fd5b8235614baf816146e1565b91506020830135614a60816146e1565b60008060208385031215614bd257600080fd5b82356001600160401b03811115614be857600080fd5b614bf48582860161499c565b90969095509350505050565b803561ffff811681146122e957600080fd5b60008060008060008060008060006101208a8c031215614c3157600080fd5b614c3a8a614c00565b9850614c4860208b01614c00565b9750614c5660408b01614c00565b9650614c6460608b01614c00565b9550614c7260808b01614c00565b9450614c8060a08b01614c00565b9350614c8e60c08b01614c00565b9250614c9c60e08b01614c00565b9150614cab6101008b01614c00565b90509295985092959850929598565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c90821680614d0357607f821691505b60208210811415614d2457634e487b7160e01b600052602260045260246000fd5b50919050565b60008251614d3c818460208701614746565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b60008219821115614d6f57614d6f614d46565b500190565b92835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b600060ff821660ff811415614db357614db3614d46565b60010192915050565b6000600019821415614dd057614dd0614d46565b5060010190565b634e487b7160e01b600052603260045260246000fd5b600082821015614dff57614dff614d46565b500390565b634e487b7160e01b600052601260045260246000fd5b600082614e2957614e29614e04565b500490565b6000816000190483118215151615614e4857614e48614d46565b500290565b600060ff821660ff84168060ff03821115614e6a57614e6a614d46565b019392505050565b600082614e8157614e81614e04565b500690565b8054600090600181811c9080831680614ea057607f831692505b6020808410821415614ec257634e487b7160e01b600052602260045260246000fd5b818015614ed65760018114614ee757614f13565b60ff19861689528489019650614f13565b876000528160002060005b86811015614f0b5781548b820152908501908301614ef2565b505084890196505b50505050505092915050565b60006132188284614e86565b600060208284031215614f3d57600080fd5b5051919050565b717b226e616d65223a2245646765686f67202360701b81528451600090614f72816012850160208a01614746565b600160fd1b601291840191820152614f8d6013820187614e86565b90507f222c20226465736372697074696f6e223a202245646765686f6773206c69766581527f206f6e207468652063757474696e672065646765206f6620457468657265756d60208201527f20626c6f636b636861696e20616e642061726520656467792061732068656c6c60408201526e2e222c2022747261697473223a205b60881b6060820152845161502981606f840160208901614746565b7f5d2c2022696d616765223a22646174613a696d6167652f7376672b786d6c3b62606f929091019182015265185cd94d8d0b60d21b608f8201528351615076816095840160208801614746565b61508d60958284010161227d60f01b815260020190565b98975050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516150d181601d850160208701614746565b91909101601d0192915050565b6000895160206150f18285838f01614746565b8a51918401916151048184848f01614746565b8a519201916151168184848e01614746565b89519201916151288184848d01614746565b885192019161513a8184848c01614746565b875192019161514c8184848b01614746565b865192019161515e8184848a01614746565b85519201916151708184848901614746565b919091019b9a5050505050505050505050565b60006020828403121561519557600080fd5b8151613218816146e1565b6000602082840312156151b257600080fd5b81516001600160401b038111156151c857600080fd5b8201601f810184136151d957600080fd5b80516151e76148718261483c565b8181528560208385010111156151fc57600080fd5b614b88826020830160208601614746565b6000865161521f818460208b01614746565b865190830190615233818360208b01614746565b8651910190615246818360208a01614746565b8551910190615259818360208901614746565b845191019061526c818360208801614746565b01979650505050505050565b60008a5161528a818460208f01614746565b8a5161529c8183860160208f01614746565b8a5191840101906152b1818360208e01614746565b89516152c38183850160208e01614746565b89519290910101906152d9818360208c01614746565b87516152eb8183850160208c01614746565b8751929091010190615301818360208a01614746565b85516153138183850160208a01614746565b8551929091010190615329818360208801614746565b019b9a5050505050505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061536c90830184614772565b9695505050505050565b60006020828403121561538857600080fd5b815161321881614713565b600061ffff8083168185168083038211156153b0576153b0614d46565b01949350505050565b600061ffff808316818114156153d1576153d1614d46565b6001019392505050565b6f3d913a3930b4ba2fba3cb832911d101160811b81528351600090615407816010850160208901614746565b6c111610113b30b63ab2911d101160991b601091840191820152845161543481601d840160208901614746565b61227d60f01b601d9290910191820152835161545781601f840160208801614746565b01601f019594505050505056fe3c7374796c653e2365646765686f677b73686170652d72656e646572696e673a20637269737065646765733b20696d6167652d72656e646572696e673a202d6d6f7a2d63726973702d65646765733b20696d6167652d72656e646572696e673a206f7074696d697a6553706565643b20696d6167652d72656e646572696e673a202d7765626b69742d63726973702d65646765733b20696d6167652d72656e646572696e673a202d7765626b69742d6f7074696d697a652d636f6e74726173743b20696d6167652d72656e646572696e673a2063726973702d65646765733b20696d6167652d72656e646572696e673a20706978656c617465643b202d6d732d696e746572706f6c6174696f6e2d6d6f64653a206e6561726573742d6e65696768626f723b7d2e76696265207b20616e696d6174696f6e3a20302e3573207669626520696e66696e69746520616c7465726e61746520656173652d696e2d6f75743b207d20406b65796672616d65732076696265207b2066726f6d207b207472616e73666f726d3a207472616e736c6174655928307078293b207d20746f207b207472616e73666f726d3a207472616e736c6174655928312e3525293b207d207d3c2f7374796c653e3c2f7376673e3c7376672069643d2765646765686f672720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f737667272076696577426f783d273020302032353620323536272077696474683d2736343027206865696768743d27363430273e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c6720636c6173733d2776696265273e3c696d61676520687265663d27646174613a696d6167652f706e673b6261736536342c6956424f5277304b47676f414141414e5355684555674141415141414141454142414d4141414375584c5656414141414656424d564555414141444c7461456e44516954673272736d4a6b414141425a566c4c304c6c72494141414141585253546c4d41514f62595a674141414c424a52454655654e72743173304a777a414d674e47756b425779516c666f436c32682b342f5147437751415a4f666d355833727048516477702b415141414141414141414141414a79784a6e6633424167514d482f4170377579467a73434241695950794248764c736c695a6b6c615450357541414241755950694968306643676966787342416751384c79422f4679424177444d4447674543424e515032427339534f4b3441414543366751306f36506832776b51494b4275774f6948464d64445069354167494236416331365944387651494341656745414141414141414141414141414145415a663838702b644442655674444141414141456c46546b5375516d4343272f3e3c2f673e3c696d61676520687265663d27646174613a696d6167652f706e673b6261736536342c6956424f5277304b47676f414141414e5355684555674141415141414141454142414d4141414375584c5656414141414431424d56455541414143546732724c7461456e4451685a566c4955746573764141414141585253546c4d41514f62595a674141414d684a52454655654e72743262454e784341515255473351417658416932342f356f4f533135686d644e423676564d516b4477587777624141414141414141414141414141414141414141414d437132757a4e746b694141414735416d493862424d4342416a494731424f737767424167546b43756a6a6f2f3248326767514943422f774f656d6e415149454a41765944342b52745354414145433368647769494134425167516b43666755427342416753384e364130416751494544414c4b49304141514a79426f52797366704149554341674f63482f50753476492b48474263675145442b6747346346794241514e36414f6f69375069354167494438416463374151494570416a34416a67534f4b376a357a55644141414141456c46546b5375516d4343272f3ea264697066735822122054450b98fc5a7a8f7c30716770618872888aad3c2dc45010352db82b455c95ca64736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000e2fe9f081688102f2260ecfec59640699dd61550000000000000000000000000f57b2c51ded3a29e6891aba85459d600256cf31791984a7e429b07deaff4908bb0b1b00c4a7605516b61bc14d97f09911b881481
-----Decoded View---------------
Arg [0] : descriptor_ (address): 0xE2FE9F081688102F2260EcfEc59640699dd61550
Arg [1] : openSeaProxyRegistry_ (address): 0xF57B2c51dED3A29e6891aba85459d600256Cf317
Arg [2] : merkleRoot_ (bytes32): 0x91984a7e429b07deaff4908bb0b1b00c4a7605516b61bc14d97f09911b881481
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000e2fe9f081688102f2260ecfec59640699dd61550
Arg [1] : 000000000000000000000000f57b2c51ded3a29e6891aba85459d600256cf317
Arg [2] : 91984a7e429b07deaff4908bb0b1b00c4a7605516b61bc14d97f09911b881481
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.