Overview
TokenID
205
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
YourContract
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity >=0.8.0 <0.9.0; //SPDX-License-Identifier: MIT //import "hardhat/console.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import 'base64-sol/base64.sol'; import "./SnakerMaker.sol"; // import "@openzeppelin/contracts/access/Ownable.sol"; // https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol contract YourContract is ERC721, ERC721Enumerable, ReentrancyGuard, Ownable { constructor() ERC721("SNAKESONACHAIN", "SNKS") {} using Strings for uint256; using Counters for Counters.Counter; Counters.Counter private _tokenIds; uint256 public constant MAX_SUPPLY = 2000; uint256 public constant PRICE = 0.015 ether; function contractURI() public view returns (string memory) { return "https://snakesonachain.club/my-metadata"; } function mintItem(uint256 numTokens) public payable virtual { _mintItem(numTokens, _msgSender()); } function mintForFriend(uint256 numTokens, address walletAddress) public payable virtual { _mintItem(numTokens, walletAddress); } function _mintItem(uint256 numTokens, address destination) private { require(numTokens > 0, "Negative"); require(PRICE * numTokens == msg.value, "amount wrong"); require(totalSupply() < MAX_SUPPLY, "sold out"); require(totalSupply() + numTokens <= MAX_SUPPLY, "Too many"); require( numTokens < 21, "Too many"); for (uint256 i = 0; i < numTokens; i++) { uint256 id = _tokenIds.current(); _safeMint(destination, id); _tokenIds.increment(); } } function getTotalSupply() public view returns (uint256) { return totalSupply(); } function withdrawAll() public payable nonReentrant onlyOwner { require(payable(_msgSender()).send(address(this).balance)); } function tokenURI(uint256 id) public view override returns (string memory) { require(_exists(id), "id does not exist"); SnakerMaker.Snake memory snk; string memory svg; string[3] memory backgroundNames = [ "WATER", "DESERT", "SPACE" ]; string[5] memory thicknessNames = [ "SKINNY", "WHIMSY", "BASIC", "NOICE", "THICC" ]; string memory name = string(abi.encodePacked('Snake on a chain #',id.toString())); string memory description = string(abi.encodePacked('Every snake follows its own path (in life)')); (snk, svg) = SnakerMaker.generateSVGofTokenById(id); string memory image = Base64.encode(bytes(svg)); return string( abi.encodePacked( 'data:application/json;base64,', Base64.encode( bytes( abi.encodePacked( '{"name":"', name, '", "description":"', description, '", "attributes": [{"trait_type": "Color", "value": "', //SnakerMaker.toHSLString(snk.color), '"},{"trait_type": "Background", "value": "', backgroundNames[snk.bgIdx], '"},{"trait_type": "Thickness", "value": "', thicknessNames[snk.thickIdx], '"}], "image": "', 'data:image/svg+xml;base64,', image, '"}' ) ) ) ) ); } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0; /// @title Base64 /// @author Brecht Devos - <[email protected]> /// @notice Provides functions for encoding/decoding base64 library Base64 { string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; bytes internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000" hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000" hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000" hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000"; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ''; // load the table into memory string memory table = TABLE_ENCODE; // 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) {} { // read 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // write 4 characters mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, 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; } function decode(string memory _data) internal pure returns (bytes memory) { bytes memory data = bytes(_data); if (data.length == 0) return new bytes(0); require(data.length % 4 == 0, "invalid base64 decoder input"); // load the table into memory bytes memory table = TABLE_DECODE; // every 4 characters represent 3 bytes uint256 decodedLen = (data.length / 4) * 3; // add some extra buffer at the end required for the writing bytes memory result = new bytes(decodedLen + 32); assembly { // padding with '=' let lastBytes := mload(add(data, mload(data))) if eq(and(lastBytes, 0xFF), 0x3d) { decodedLen := sub(decodedLen, 1) if eq(and(lastBytes, 0xFFFF), 0x3d3d) { decodedLen := sub(decodedLen, 1) } } // set the actual output length mstore(result, decodedLen) // 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, 4 characters at a time for {} lt(dataPtr, endPtr) {} { // read 4 characters dataPtr := add(dataPtr, 4) let input := mload(dataPtr) // write 3 bytes let output := add( add( shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)), shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))), add( shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)), and(mload(add(tablePtr, and( input , 0xFF))), 0xFF) ) ) mstore(resultPtr, shl(232, output)) resultPtr := add(resultPtr, 3) } } return result; } }
pragma solidity >=0.8.0 <0.9.0; //SPDX-License-Identifier: MIT import "@openzeppelin/contracts/utils/Strings.sol"; import 'base64-sol/base64.sol'; //import "hardhat/console.sol"; //learn more: https://docs.openzeppelin.com/contracts/3.x/erc721 // GET LISTED ON OPENSEA: https://testnets.opensea.io/get-listed/step-two library SnakerMaker { using Strings for uint256; struct Snake { Color color; Color bg_color; Color bg_color_2; uint256[2] bg_x; uint256[2] bg_y; string path1; string path2; uint256 bgIdx; uint256 thickIdx; uint256 thickness; uint256 head; uint256 head_mark; Color head_mark_color; uint256 snakiness_s; uint256 snakiness_d; uint256 skin_pattern_scale; string skin_pattern_freq; uint256 skin_pattern_octaves; } struct Color { uint256 hue; uint256 saturation; uint256 lightness; } struct Rands { uint256[4] x; uint256[4] y; } // Visibility is `public` to enable it being called by other contracts for composition. function generateSVGofTokenById(uint256 id) internal pure returns (Snake memory, string memory) { string memory seed = Strings.toString(id * 4209); Snake memory snk; Rands memory randVal; // Snake color snk.color = randomColor(seed, 0, 359, 40, 100, 20, 60); //console.log("rand color %s", toHSLString(snk.color)); // Head mark color snk.head_mark_color = randomColor(string(abi.encodePacked(seed, "HEADCOLOR")), 0, 359, 40, 100, 20, 60); // Background randVal.x[0] = random(seed, "backzies") % 100; //console.log("rand bg %s", randVal.x[0]); if (randVal.x[0] < 30) { //water snk.bgIdx = 0; snk.bg_color = randomColor(string(abi.encodePacked(seed, "bgcolor")), 160, 230, 70, 100, 25, 65); snk.bg_color_2.hue = snk.bg_color.hue + 8; snk.bg_color_2.lightness = snk.bg_color.lightness - 25; snk.bg_color_2.saturation = snk.bg_color.saturation; } else if (randVal.x[0] < 60) { //desert snk.bgIdx = 1; snk.bg_x[0] = random(seed, "bgx0") % 250; snk.bg_y[0] = random(seed, "bgy0") % 250; snk.bg_x[1] = (random(seed, "bgx1") % 250) + 250; snk.bg_y[1] = (random(seed, "bgy1") % 250) + 250; } else { // space snk.bg_color = randomColor(string(abi.encodePacked(seed, "bgcolorspace")), 0, 359, 80, 100, 25, 60); snk.bg_x[0] = (random(seed, "bgx0") % 2) + 1; snk.bg_y[0] = (random(seed, "bgy0") % 60) + 15; snk.bgIdx = 2; } // Snake thickness { snk.thickIdx = random(seed, "thicc") % 5; //console.log("rand thick %s", snk.thickIdx); if (snk.thickIdx < 1) { snk.thickness = 12; snk.head = 24; snk.head_mark = 10; } else if (snk.thickIdx < 2) { snk.thickness = 21; snk.head = 30; snk.head_mark = 12; } else if (snk.thickIdx < 3) { snk.thickness =30; snk.head = 39; snk.head_mark = 14; } else if (snk.thickIdx < 4) { snk.thickness = 39; snk.head = 42; snk.head_mark = 16; } else { snk.thickness = 48; snk.head = 48; snk.head_mark = 18; } } // Snakiness snk.snakiness_s = (random(seed, "snakinessS") % 15) + 2; //console.log("rand snak %s", snk.snakiness_s); snk.snakiness_d = (random(seed, "snakiness__D") % 30) + 20; if (snk.snakiness_d < 25) { snk.snakiness_d = 0; } //console.log("rand snakd %s", snk.snakiness_d); // Snake pattern snk.skin_pattern_scale = (random(seed, "patternscale") % 350) + 50; //console.log("rand scale %s", snk.skin_pattern_scale); randVal.x[0] = random(seed, "patternfreq") % 6; string[6] memory freq = ["0.02", "0.04", "0.06", "0.08", "0.1", "0.15"]; snk.skin_pattern_freq = freq[randVal.x[0]]; //console.log("rand freq %s", snk.skin_pattern_freq); snk.skin_pattern_octaves = (random(seed, "patternoctaves") % 3) + 2; //console.log("rand octaves %s", snk.skin_pattern_octaves); // Snake path randVal.x[0] = 250; randVal.y[0] = randomMaxMin(seed, "ypos0", 300, 470); randVal.x[1] = randomMaxMin(seed, "xpos1", 300, 470); randVal.y[1] = 250; randVal.x[2] = 250; randVal.y[2] = randomMaxMin(seed, "ypos2", 30, 200); randVal.x[3] = randomMaxMin(seed, "xpos3", 30, 200); randVal.y[3] = 250; snk.path1 = string( abi.encodePacked( 'M250 ', Strings.toString(randVal.y[0]), 'S', Strings.toString(randVal.x[1]), ',', Strings.toString(randVal.y[0]), ' ', Strings.toString(randVal.x[1]), ',250S', Strings.toString(randVal.x[1]), ',', Strings.toString(randVal.y[2]), ' 250,', Strings.toString(randVal.y[2]) )); snk.path2 = string( abi.encodePacked( 'M250 ', Strings.toString(randVal.y[2]), 'C', Strings.toString(500 - randVal.x[1] ), ',', Strings.toString(randVal.y[2]), ' ', Strings.toString(randVal.x[3]) )); snk.path2 = string( abi.encodePacked( snk.path2, ',', Strings.toString(randVal.y[2]), ' ', Strings.toString(randVal.x[3]), ',250S', Strings.toString(randVal.x[3]), ',', Strings.toString(randVal.y[0]), ' 250,', Strings.toString(randVal.y[0]) )); //console.log("path1 %s", snk.path1); //console.log("path2 %s", snk.path2); // backgrounds string memory bg; if (snk.bgIdx < 1) { bg = string( abi.encodePacked( '<path fill="', toHSLString(snk.bg_color), '" d="M0 0h500v500H0z"/><pattern id="y" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="10" fill="', toHSLString(snk.bg_color_2), '" opacity=".2"/></pattern><filter id="m"><feTurbulence type="fractalNoise" baseFrequency=".03" numOctaves="2" seed="5515"/><feDisplacementMap in="SourceGraphic" scale="100"/></filter><g filter="url(#m)"><rect x="-50%" y="-50%" width="200%" height="200%" fill="url(#y)"><animateTransform attributeName="transform" type="translate" dur="5s" values="0,0; 40,40;" repeatCount="indefinite"/></rect></g>' ) ); } else if (snk.bgIdx < 2) { bg = string( abi.encodePacked( '<defs><linearGradient id="z" gradientTransform="rotate(90)"><stop offset="5%" stop-color="#e89f00"/><stop offset="95%" stop-color="#e8ba00"/></linearGradient></defs><path fill="#e8ba00" style="filter:url(#x)" d="M0 0h500v500H0z"/><circle cx="', Strings.toString(snk.bg_x[0]), '" cy="', Strings.toString(snk.bg_y[0]), '" r="100" fill="url(#z)" filter="url(#m)"/><circle cx="', Strings.toString(snk.bg_x[1]), '" cy="', Strings.toString(snk.bg_y[1]), '" r="100" fill="url(#z)" filter="url(#m)"/><defs><filter id="x"><feSpecularLighting result="specOut" specularExponent="12" lighting-color="#bbb"><fePointLight x="250" y="-100" z="20"><animate attributeName="x" values="250;375;600" dur="30s" repeatCount="indefinite"/><animate attributeName="y" values="-100;75;250" dur="30s" repeatCount="indefinite"/></fePointLight></feSpecularLighting><feComposite in="SourceGraphic" in2="specOut" operator="arithmetic" k1=".1" k2="1" k3="2"/></filter><filter id="m" filterUnits="userSpaceOnUse"><feTurbulence baseFrequency=".011" type="fractalNoise"/><feDisplacementMap in="SourceGraphic" scale="100"><animate attributeName="scale" begin="0s" dur="3s" values="3000;3400;2700;3200;2800;3000" repeatCount="indefinite"/></feDisplacementMap></filter></defs>' ) ); } else { bg = string( abi.encodePacked( '<defs><linearGradient id="z" gradientTransform="rotate(90)"><stop offset="5%"/><stop offset="95%" stop-color="', toHSLString(snk.bg_color), '"/></linearGradient></defs><path fill="#e3eee" d="M0 0h500v500H0z"/><pattern id="x" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="', Strings.toString(snk.bg_x[0]), '" fill="transparent" stroke="#fcfbe6" opacity=".6"/></pattern><g filter="url(#m)"><rect x="-50%" y="-50%" width="200%" height="200%" fill="url(#x)"><animateTransform attributeName="transform" type="translate" dur="', Strings.toString(snk.bg_y[0]), 's" values="0,0; 0,50; 0,0" repeatCount="indefinite"/></rect></g><filter id="n" x="-50%" y="-50%" width="200%" height="200%"><feTurbulence baseFrequency=".08" numOctaves="10" result="lol"/><feDisplacementMap in2="turbulence" in="SourceGraphic" scale="20" xChannelSelector="R" yChannelSelector="G"/><feComposite operator="in" in2="SourceGraphic"/></filter><filter id="m"><feTurbulence type="fractalNoise" baseFrequency=".1" seed="39996"/><feDisplacementMap in="SourceGraphic" xChannelSelector="B" scale="200"/></filter>' ) ); } string memory planet = '<circle cx="400" cy="100" r="50" fill="url(#z)"/><circle cx="400" cy="100" r="50" fill="url(#z)" filter="url(#n)"/>'; // Snake string[5] memory snakeParts; snakeParts[0] = string( abi.encodePacked( '<defs><path stroke-dasharray="1000" pathLength="1000" fill="none" stroke-linejoin="round" stroke-dashoffset="1000" stroke-linecap="round" stroke-width="', Strings.toString(snk.thickness), '" id="a" d="', snk.path1, '"/><path stroke-dasharray="1000" pathLength="1000" fill="none" stroke-linejoin="round" stroke-dashoffset="0" stroke-linecap="round" stroke-width="', Strings.toString(snk.thickness), '" id="c" d="', snk.path2, '"/><circle cx="0" cy="0" r="', Strings.toString(snk.head), '" id="f"/></defs><use xlink:href="#a" filter="url(#b) url(#S)" stroke="' )); snakeParts[1] = string( abi.encodePacked( snk.bgIdx == 2 ? "#FFF" : "#000", '" opacity="', snk.bgIdx == 2 ? ".3" : ".7", '" transform="translate(6 6)"/><use xlink:href="#c" filter="url(#b) url(#S)" stroke="', snk.bgIdx == 2 ? "#FFF" : "#000", '" opacity="', snk.bgIdx == 2 ? ".3" : ".7", '" transform="translate(6 6)"/><use xlink:href="#a" filter="url(#b)" stroke="' )); snakeParts[2] = string( abi.encodePacked( toHSLString(snk.color), '"/><use xlink:href="#c" filter="url(#b)" stroke="', toHSLString(snk.color), '"/><use xlink:href="#a" filter="url(#d) url(#b)" stroke="', toHSLString(snk.color), '"/><use xlink:href="#c" filter="url(#d) url(#b)" stroke="', toHSLString(snk.color), '"/><g transform="translate(-250 -48)" id="h" filter="url(#b)"><g id="j" opacity="0" transform="translate(170 20)" filter="url(#e)"><line id="line1" x1="30" y1="30" x2="70" y2="30" stroke="red" stroke-width="3" /><line id="line1" x1="30" y1="30" x2="10" y2="10" stroke="red" stroke-width="3" /><line id="line1" x1="30" y1="30" x2="10" y2="50" stroke="red" stroke-width="3" /></g><use x="250" y="48" xlink:href="#f" filter="url(#b)" fill="', toHSLString(snk.color), '"/><use x="250" y="48" xlink:href="#f" filter="url(#d) url(#b)" fill="', toHSLString(snk.color) )); snakeParts[3] = string( abi.encodePacked( '"/><path transform="rotate(45 89.216 337.812)" fill="', toHSLString(snk.head_mark_color), '" d="M0 0h', Strings.toString(snk.head_mark), 'v', Strings.toString(snk.head_mark), 'H0z"/></g>', snk.bgIdx == 2 ? planet : "", '<animate attributeName="stroke-dashoffset" fill="freeze" begin="0s;g.end+1s" from="0" dur="3s" xlink:href="#c" to="1000"/><animate attributeName="stroke-dashoffset" fill="freeze" begin="0s;g.end+1s" from="1000" id="i" dur="3s" xlink:href="#a" to="2000"/><animateMotion fill="freeze" begin="0s;g.end+1s" keyTimes="0 ; 1" dur="3s" xlink:href="#h" keyPoints="1 ; 0" rotate="auto" calcMode="linear"><mpath xlink:href="#a"/></animateMotion><animate attributeName="stroke-dashoffset" fill="freeze" begin="i.end" from="0" dur="3s" xlink:href="#a" to="1000"/><animate attributeName="stroke-dashoffset" fill="freeze" begin="i.end" from="1000" id="g" dur="3s" xlink:href="#c" to="2000"/><animateMotion fill="freeze" begin="i.end" keyTimes="0 ; 1" dur="3s" xlink:href="#h" keyPoints="1 ; 0" rotate="auto" calcMode="linear"><mpath xlink:href="#c"/></animateMotion><animate attributeName="opacity" fill="freeze" begin="g.end" from="0" dur="0.1s" xlink:href="#j" to="1"/><animate attributeName="opacity" fill="freeze" begin="g.end+1s" from="1" dur="0.1s" xlink:href="#j" to="0"/><defs><filter id="b" filterUnits="userSpaceOnUse"><feTurbulence baseFrequency=".35" type="fractalNoise"><animate attributeName="baseFrequency" begin="0s" dur="', Strings.toString(snk.snakiness_s) )); snakeParts[4] = string( abi.encodePacked( 's" values="0.0052;0.00753;0.0041;0.00924;0.0070;0.0052" repeatCount="indefinite"/></feTurbulence><feDisplacementMap in="SourceGraphic" scale="', Strings.toString(snk.snakiness_d), '"/></filter><filter id="e" width="200%" height="200%"><feTurbulence baseFrequency=".35" type="fractalNoise"><animate attributeName="baseFrequency" begin="0s" dur="0.1s" values="0.0052;0.00753;0.0041;0.00924;0.0070;0.004" repeatCount="indefinite"/></feTurbulence><feDisplacementMap in="SourceGraphic" scale="60"/></filter><filter id="d" filterUnits="userSpaceOnUse"><feTurbulence baseFrequency="', snk.skin_pattern_freq, '" type="fractalNoise" numOctaves="', Strings.toString(snk.skin_pattern_octaves), '"/><feDisplacementMap in="SourceGraphic" scale="', Strings.toString(snk.skin_pattern_scale), '"/><feComposite operator="in" in2="SourceGraphic"/></filter><filter id="S" width="200%" height="200%"><feGaussianBlur in="SourceGraphic" stdDeviation="4"/></filter></defs>' )); string memory render = string(abi.encodePacked( '<svg xmlns="http://www.w3.org/2000/svg" version="1.2" xmlns:xlink="http://www.w3.org/1999/xlink" width="500" height="500" viewBox="0 0 500 500">', bg, snakeParts[0], snakeParts[1], snakeParts[2], snakeParts[3], snakeParts[4], '</svg>' )); return (snk, render); } function toHSLString(Color memory color) public pure returns (string memory) { return string( abi.encodePacked( "hsl(", color.hue.toString(), ",", color.saturation.toString(), "%,", color.lightness.toString(), "%)" ) ); } function randomColor( string memory seed, uint256 hMin, uint256 hMax, uint256 sMin, uint256 sMax, uint256 lMin, uint256 lMax ) internal pure returns (Color memory) { return Color( randomMaxMin(seed, "hue", hMin, hMax), randomMaxMin(seed, "saturation", sMin, sMax), randomMaxMin(seed, "lightness", lMin, lMax) ); } function randomMaxMin( string memory seed, string memory key, uint256 min, uint256 max ) internal pure returns (uint256) { return (uint256(keccak256(abi.encodePacked("mainnet", seed, key))) % (max - min)) + min; } function random(string memory seed, string memory key) internal pure returns (uint256) { return uint256(keccak256(abi.encodePacked(key, seed))); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"},{"internalType":"address","name":"walletAddress","type":"address"}],"name":"mintForFriend","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"mintItem","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604080518082018252600e81526d29a720a5a2a9a7a720a1a420a4a760911b602080830191825283518085019094526004845263534e4b5360e01b9084015281519192916200006491600091620000e5565b5080516200007a906001906020840190620000e5565b50506001600a55506200008d3362000093565b620001c8565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620000f3906200018b565b90600052602060002090601f01602090048101928262000117576000855562000162565b82601f106200013257805160ff191683800117855562000162565b8280016001018555821562000162579182015b828111156200016257825182559160200191906001019062000145565b506200017092915062000174565b5090565b5b8082111562000170576000815560010162000175565b600181811c90821680620001a057607f821691505b60208210811415620001c257634e487b7160e01b600052602260045260246000fd5b50919050565b6159ff80620001d86000396000f3fe6080604052600436106101815760003560e01c8063715018a6116100d1578063a22cb4651161008a578063c87b56dd11610064578063c87b56dd14610412578063e8a3d48514610432578063e985e9c514610447578063f2fde38b1461049057600080fd5b8063a22cb465146103bd578063b88d4fde146103dd578063c4e41b22146103fd57600080fd5b8063715018a61461033f578063797bb29214610354578063853828b6146103675780638d859f3e1461036f5780638da5cb5b1461038a57806395d89b41146103a857600080fd5b806323b872dd1161013e57806342842e0e1161011857806342842e0e146102bf5780634f6ccce7146102df5780636352211e146102ff57806370a082311461031f57600080fd5b806323b872dd146102695780632f745c591461028957806332cb6b0c146102a957600080fd5b806301ffc9a71461018657806306fdde03146101bb578063081812fc146101dd578063095ea7b31461021557806317fb85941461023757806318160ddd1461024a575b600080fd5b34801561019257600080fd5b506101a66101a1366004612f18565b6104b0565b60405190151581526020015b60405180910390f35b3480156101c757600080fd5b506101d06104c1565b6040516101b291906156b4565b3480156101e957600080fd5b506101fd6101f8366004612f50565b610553565b6040516001600160a01b0390911681526020016101b2565b34801561022157600080fd5b50610235610230366004612eef565b6105ed565b005b610235610245366004612f50565b610703565b34801561025657600080fd5b506008545b6040519081526020016101b2565b34801561027557600080fd5b50610235610284366004612da5565b610710565b34801561029557600080fd5b5061025b6102a4366004612eef565b610741565b3480156102b557600080fd5b5061025b6107d081565b3480156102cb57600080fd5b506102356102da366004612da5565b6107d7565b3480156102eb57600080fd5b5061025b6102fa366004612f50565b6107f2565b34801561030b57600080fd5b506101fd61031a366004612f50565b610893565b34801561032b57600080fd5b5061025b61033a366004612d52565b61090a565b34801561034b57600080fd5b50610235610991565b610235610362366004612f68565b6109c7565b6102356109d5565b34801561037b57600080fd5b5061025b66354a6ba7a1800081565b34801561039657600080fd5b50600b546001600160a01b03166101fd565b3480156103b457600080fd5b506101d0610a82565b3480156103c957600080fd5b506102356103d8366004612eb5565b610a91565b3480156103e957600080fd5b506102356103f8366004612de0565b610b56565b34801561040957600080fd5b5061025b610b8e565b34801561041e57600080fd5b506101d061042d366004612f50565b610b9e565b34801561043e57600080fd5b506101d0610e4d565b34801561045357600080fd5b506101a6610462366004612d73565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561049c57600080fd5b506102356104ab366004612d52565b610e6d565b60006104bb82610f05565b92915050565b6060600080546104d09061582d565b80601f01602080910402602001604051908101604052809291908181526020018280546104fc9061582d565b80156105495780601f1061051e57610100808354040283529160200191610549565b820191906000526020600020905b81548152906001019060200180831161052c57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166105d15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006105f882610893565b9050806001600160a01b0316836001600160a01b031614156106665760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105c8565b336001600160a01b038216148061068257506106828133610462565b6106f45760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105c8565b6106fe8383610f2a565b505050565b61070d8133610f98565b50565b61071a3382611133565b6107365760405162461bcd60e51b81526004016105c89061574e565b6106fe83838361122a565b600061074c8361090a565b82106107ae5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016105c8565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6106fe83838360405180602001604052806000815250610b56565b60006107fd60085490565b82106108605760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016105c8565b6008828154811061088157634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806104bb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105c8565b60006001600160a01b0382166109755760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105c8565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b031633146109bb5760405162461bcd60e51b81526004016105c890615719565b6109c560006113d5565b565b6109d18282610f98565b5050565b6002600a541415610a285760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105c8565b6002600a55600b546001600160a01b03163314610a575760405162461bcd60e51b81526004016105c890615719565b60405133904780156108fc02916000818181858888f19350505050610a7b57600080fd5b6001600a55565b6060600180546104d09061582d565b6001600160a01b038216331415610aea5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105c8565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610b603383611133565b610b7c5760405162461bcd60e51b81526004016105c89061574e565b610b8884848484611427565b50505050565b6000610b9960085490565b905090565b6000818152600260205260409020546060906001600160a01b0316610bf95760405162461bcd60e51b81526020600482015260116024820152701a5908191bd95cc81b9bdd08195e1a5cdd607a1b60448201526064016105c8565b610c01612b8f565b6040805160a0808201835260056060838101828152642ba0aa22a960d91b60808087019190915290855285518087018752600680825265111154d1549560d21b602083810191909152808801929092528751808901895285815264535041434560d81b8184015287890152875160e08101895295860181815265534b494e4e5960d01b60c0880152865287518089018952908152655748494d535960d01b81830152858201528651808801885284815264424153494360d81b818301528588015286518088018852848152644e4f49434560d81b8183015285840152865180880190975292865264544849434360d81b92860192909252908201939093526000610d0a8761145a565b604051602001610d1a9190614ec7565b60405160208183030381529060405290506000604051602001610d73907f457665727920736e616b6520666f6c6c6f777320697473206f776e20706174688152692028696e206c6966652960b01b6020820152602a0190565b6040516020818303038152906040529050610d8d88611574565b90965094506000610d9d86612302565b9050610e208383878a60e0015160038110610dc857634e487b7160e01b600052603260045260246000fd5b6020020151878b610100015160058110610df257634e487b7160e01b600052603260045260246000fd5b602002015185604051602001610e0c959493929190613617565b604051602081830303815290604052612302565b604051602001610e309190614a61565b604051602081830303815290604052975050505050505050919050565b60606040518060600160405280602781526020016158f060279139905090565b600b546001600160a01b03163314610e975760405162461bcd60e51b81526004016105c890615719565b6001600160a01b038116610efc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105c8565b61070d816113d5565b60006001600160e01b0319821663780e9d6360e01b14806104bb57506104bb82612476565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610f5f82610893565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008211610fd35760405162461bcd60e51b81526020600482015260086024820152674e6567617469766560c01b60448201526064016105c8565b34610fe58366354a6ba7a180006157cb565b146110215760405162461bcd60e51b815260206004820152600c60248201526b616d6f756e742077726f6e6760a01b60448201526064016105c8565b6107d061102d60085490565b106110655760405162461bcd60e51b81526020600482015260086024820152671cdbdb19081bdd5d60c21b60448201526064016105c8565b6107d08261107260085490565b61107c919061579f565b11156110b55760405162461bcd60e51b8152602060048201526008602482015267546f6f206d616e7960c01b60448201526064016105c8565b601582106110f05760405162461bcd60e51b8152602060048201526008602482015267546f6f206d616e7960c01b60448201526064016105c8565b60005b828110156106fe576000611106600c5490565b905061111283826124c6565b611120600c80546001019055565b508061112b81615868565b9150506110f3565b6000818152600260205260408120546001600160a01b03166111ac5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105c8565b60006111b783610893565b9050806001600160a01b0316846001600160a01b031614806111f25750836001600160a01b03166111e784610553565b6001600160a01b0316145b8061122257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661123d82610893565b6001600160a01b0316146112a55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105c8565b6001600160a01b0382166113075760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105c8565b6113128383836124e0565b61131d600082610f2a565b6001600160a01b03831660009081526003602052604081208054600192906113469084906157ea565b90915550506001600160a01b038216600090815260036020526040812080546001929061137490849061579f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61143284848461122a565b61143e848484846124eb565b610b885760405162461bcd60e51b81526004016105c8906156c7565b60608161147e5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156114a8578061149281615868565b91506114a19050600a836157b7565b9150611482565b60008167ffffffffffffffff8111156114d157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156114fb576020820181803683370190505b5090505b8415611222576115106001836157ea565b915061151d600a86615883565b61152890603061579f565b60f81b81838151811061154b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061156d600a866157b7565b94506114ff565b61157c612b8f565b6060600061159461158f856110716157cb565b61145a565b905061159e612b8f565b6115a6612cae565b6115bc836000610167602860646014603c6125f8565b82526040516115f4906115d3908590602001613489565b6040516020818303038152906040526000610167602860646014603c6125f8565b826101800181905250606461162984604051806040016040528060088152602001676261636b7a69657360c01b8152506126c1565b6116339190615883565b815152805151601e11156116cd57600060e083015260405161167d9061165d90859060200161345e565b60405160208183030381529060405260a060e660466064601960416125f8565b602083018190525161169090600861579f565b60408084015191909152602083015101516116ad906019906157ea565b6040808401805190910191909152602080840151810151915101526118b6565b805151603c11156117ea57600160e08301526040805180820190915260048152630626778360e41b602082015260fa906117089085906126c1565b6117129190615883565b6060830151526040805180820190915260048152630626779360e41b602082015260fa906117419085906126c1565b61174b9190615883565b6080830151526040805180820190915260048152636267783160e01b602082015260fa9061177a9085906126c1565b6117849190615883565b61178f9060fa61579f565b6060830151600160200201818152505060fa6117c784604051806040016040528060048152602001636267793160e01b8152506126c1565b6117d19190615883565b6117dc9060fa61579f565b6080830151602001526118b6565b61181f836040516020016117fe91906135e7565b6040516020818303038152906040526000610167605060646019603c6125f8565b8260200181905250600261184f84604051806040016040528060048152602001630626778360e41b8152506126c1565b6118599190615883565b61186490600161579f565b6060830151526040805180820190915260048152630626779360e41b6020820152603c906118939085906126c1565b61189d9190615883565b6118a890600f61579f565b608083015152600260e08301525b60056118df8460405180604001604052806005815260200164746869636360d81b8152506126c1565b6118e99190615883565b61010083018190526001111561191657600c6101208301526018610140830152600a6101608301526119b0565b60028261010001511015611941576015610120830152601e610140830152600c6101608301526119b0565b6003826101000151101561196c57601e6101208301526027610140830152600e6101608301526119b0565b60048261010001511015611997576027610120830152602a61014083015260106101608301526119b0565b6030610120830181905261014083015260126101608301525b600f6119de846040518060400160405280600a815260200169736e616b696e6573735360b01b8152506126c1565b6119e89190615883565b6119f390600261579f565b6101a083015260408051808201909152600c81526b1cdb985ada5b995cdcd7d7d160a21b6020820152601e90611a2a9085906126c1565b611a349190615883565b611a3f90601461579f565b6101c0830181905260191115611a585760006101c08301525b61015e611a89846040518060400160405280600c81526020016b7061747465726e7363616c6560a01b8152506126c1565b611a939190615883565b611a9e90603261579f565b6101e083015260408051808201909152600b81526a7061747465726e6672657160a81b6020820152600690611ad49085906126c1565b611ade9190615883565b8151526040805161010081018252600460c08201818152631817181960e11b60e0840152825282518084018452818152630c0b8c0d60e21b6020828101919091528381019190915283518085018552828152631817181b60e11b818301528385015283518085018552828152630605c60760e31b818301526060840152835180850185526003815262302e3160e81b818301526080840152835180850190945290835263302e313560e01b9083015260a0810191909152815151819060068110611bb857634e487b7160e01b600052603260045260246000fd5b60200201518361020001819052506003611bf8856040518060400160405280600e81526020016d7061747465726e6f63746176657360901b8152506126c1565b611c029190615883565b611c0d90600261579f565b610220840152815160fa9052604080518082019091526005815264079706f73360dc1b6020820152611c4690859061012c6101d66126f5565b60208301516000602002018181525050611c83846040518060400160405280600581526020016478706f733160d81b81525061012c6101d66126f5565b825160209081019190915282015160fa9060016020020152815160fa906002602002018181525050611cd684604051806040016040528060058152602001643cb837b99960d91b815250601e60c86126f5565b60208301516002602002018181525050611d11846040518060400160405280600581526020016478706f733360d81b815250601e60c86126f5565b825160609081019190915260208301805160fa92019190915251611d3c9060005b602002015161145a565b8251611d49906001611d32565b6020840151611d59906000611d32565b8451611d66906001611d32565b8551611d73906001611d32565b6020870151611d83906002611d32565b6020880151611d93906002611d32565b604051602001611da99796959493929190613f87565b60408051601f1981840301815291905260a08401526020820151611dce906002611d32565b825160200151611de49061158f906101f46157ea565b6020840151611df4906002611d32565b8451611e01906003611d32565b604051602001611e149493929190613ef4565b60408051601f1981840301815291905260c084018190526020830151611e3b906002611d32565b8351611e48906003611d32565b8451611e55906003611d32565b6020860151611e65906000611d32565b6020870151611e75906000611d32565b604051602001611e8a96959493929190613001565b6040516020818303038152906040528360c00181905250606060018460e001511015611ef157611ebd846020015161274b565b611eca856040015161274b565b604051602001611edb929190614bee565b6040516020818303038152906040529050611fa2565b60028460e001511015611f51576060840151611f0e906000611d32565b6080850151611f1e906000611d32565b6060860151611f2e906001611d32565b6080870151611f3e906001611d32565b604051602001611edb94939291906140af565b611f5e846020015161274b565b6060850151611f6e906000611d32565b6080860151611f7e906000611d32565b604051602001611f9093929190614f01565b60405160208183030381529060405290505b60006040518060a0016040528060738152602001615957607391399050611fc7612cd3565b611fd586610120015161145a565b8660a00151611fe888610120015161145a565b8860c00151611ffb8a610140015161145a565b60405160200161200f95949392919061540e565b60408051808303601f19018152919052815260e086015160021461204f57604051806040016040528060048152602001630233030360e41b81525061206d565b6040518060400160405280600481526020016311a3232360e11b8152505b8660e0015160021461209957604051806040016040528060028152602001612e3760f01b8152506120b5565b604051806040016040528060028152602001612e3360f01b8152505b8760e001516002146120e357604051806040016040528060048152602001630233030360e41b815250612101565b6040518060400160405280600481526020016311a3232360e11b8152505b8860e0015160021461212d57604051806040016040528060028152602001612e3760f01b815250612149565b604051806040016040528060028152602001612e3360f01b8152505b60405160200161215c94939291906134b6565b60408051808303601f190181529190526020820152855161217c9061274b565b86516121879061274b565b87516121929061274b565b885161219d9061274b565b89516121a89061274b565b8a516121b39061274b565b6040516020016121c8969594939291906130cc565b60408051808303601f190181529181528201526101808601516121ea9061274b565b6121f887610160015161145a565b61220688610160015161145a565b8860e001516002146122275760405180602001604052806000815250612229565b845b6122378a6101a0015161145a565b60405160200161224b9594939291906137b3565b60408051808303601f1901815291905260608201526101c086015161226f9061145a565b86610200015161228388610220015161145a565b612291896101e0015161145a565b6040516020016122a49493929190614650565b60408051808303601f1901815291815260808301829052825160208085015185840151606087015194516000966122e0968b9695909201614aa6565b60408051601f19818403018152919052969b969a509598505050505050505050565b606081516000141561232257505060408051602081019091526000815290565b60006040518060600160405280604081526020016159176040913990506000600384516002612351919061579f565b61235b91906157b7565b6123669060046157cb565b9050600061237582602061579f565b67ffffffffffffffff81111561239b57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156123c5576020820181803683370190505b509050818152600183018586518101602084015b81831015612431576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016123d9565b60038951066001811461244b576002811461245c57612468565b613d3d60f01b600119830152612468565b603d60f81b6000198301525b509398975050505050505050565b60006001600160e01b031982166380ac58cd60e01b14806124a757506001600160e01b03198216635b5e139f60e01b145b806104bb57506301ffc9a760e01b6001600160e01b03198316146104bb565b6109d182826040518060200160405280600081525061279c565b6106fe8383836127cf565b60006001600160a01b0384163b156125ed57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061252f903390899088908890600401615681565b602060405180830381600087803b15801561254957600080fd5b505af1925050508015612579575060408051601f3d908101601f1916820190925261257691810190612f34565b60015b6125d3573d8080156125a7576040519150601f19603f3d011682016040523d82523d6000602084013e6125ac565b606091505b5080516125cb5760405162461bcd60e51b81526004016105c8906156c7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611222565b506001949350505050565b61261c60405180606001604052806000815260200160008152602001600081525090565b604051806060016040528061264e8a6040518060400160405280600381526020016268756560e81b8152508b8b6126f5565b81526020016126818a6040518060400160405280600a81526020016939b0ba3ab930ba34b7b760b11b81525089896126f5565b81526020016126b38a604051806040016040528060098152602001686c696768746e65737360b81b81525087876126f5565b905298975050505050505050565b600081836040516020016126d6929190612fd2565b60408051601f1981840301815291905280516020909101209392505050565b60008261270281846157ea565b868660405160200161271592919061406a565b6040516020818303038152906040528051906020012060001c6127389190615883565b612742919061579f565b95945050505050565b606061275a826000015161145a565b612767836020015161145a565b612774846040015161145a565b60405160200161278693929190613e75565b6040516020818303038152906040529050919050565b6127a68383612887565b6127b360008484846124eb565b6106fe5760405162461bcd60e51b81526004016105c8906156c7565b6001600160a01b03831661282a5761282581600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61284d565b816001600160a01b0316836001600160a01b03161461284d5761284d83826129d5565b6001600160a01b038216612864576106fe81612a72565b826001600160a01b0316826001600160a01b0316146106fe576106fe8282612b4b565b6001600160a01b0382166128dd5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105c8565b6000818152600260205260409020546001600160a01b0316156129425760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105c8565b61294e600083836124e0565b6001600160a01b038216600090815260036020526040812080546001929061297790849061579f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060016129e28461090a565b6129ec91906157ea565b600083815260076020526040902054909150808214612a3f576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612a84906001906157ea565b60008381526009602052604081205460088054939450909284908110612aba57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612ae957634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612b2f57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612b568361090a565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b604051806102400160405280612bbf60405180606001604052806000815260200160008152602001600081525090565b8152602001612be860405180606001604052806000815260200160008152602001600081525090565b8152602001612c1160405180606001604052806000815260200160008152602001600081525090565b8152602001612c1e612cfa565b8152602001612c2b612cfa565b815260200160608152602001606081526020016000815260200160008152602001600081526020016000815260200160008152602001612c8560405180606001604052806000815260200160008152602001600081525090565b815260200160008152602001600081526020016000815260200160608152602001600081525090565b6040518060400160405280612cc1612d18565b8152602001612cce612d18565b905290565b6040518060a001604052806005905b6060815260200190600190039081612ce25790505090565b60405180604001604052806002906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b80356001600160a01b0381168114612d4d57600080fd5b919050565b600060208284031215612d63578081fd5b612d6c82612d36565b9392505050565b60008060408385031215612d85578081fd5b612d8e83612d36565b9150612d9c60208401612d36565b90509250929050565b600080600060608486031215612db9578081fd5b612dc284612d36565b9250612dd060208501612d36565b9150604084013590509250925092565b60008060008060808587031215612df5578081fd5b612dfe85612d36565b9350612e0c60208601612d36565b925060408501359150606085013567ffffffffffffffff80821115612e2f578283fd5b818701915087601f830112612e42578283fd5b813581811115612e5457612e546158c3565b604051601f8201601f19908116603f01168101908382118183101715612e7c57612e7c6158c3565b816040528281528a6020848701011115612e94578586fd5b82602086016020830137918201602001949094529598949750929550505050565b60008060408385031215612ec7578182fd5b612ed083612d36565b915060208301358015158114612ee4578182fd5b809150509250929050565b60008060408385031215612f01578182fd5b612f0a83612d36565b946020939093013593505050565b600060208284031215612f29578081fd5b8135612d6c816158d9565b600060208284031215612f45578081fd5b8151612d6c816158d9565b600060208284031215612f61578081fd5b5035919050565b60008060408385031215612f7a578182fd5b82359150612d9c60208401612d36565b60008151808452612fa2816020860160208601615801565b601f01601f19169290920160200192915050565b60008151612fc8818560208601615801565b9290920192915050565b60008351612fe4818460208801615801565b835190830190612ff8818360208801615801565b01949350505050565b6000875160206130148285838d01615801565b8184019150600b60fa1b80835289516130338160018601858e01615801565b600160fd1b6001949091019384015288516130548160028601858d01615801565b642c3235305360d81b6002949091019384015287516130798160078601858c01615801565b600793019283015285516130938160088501848a01615801565b64080c8d4c0b60da1b6008939091019283015284516130b881600d8501848901615801565b91909101600d019998505050505050505050565b600087516130de818460208c01615801565b80830190507f222f3e3c75736520786c696e6b3a687265663d222363222066696c7465723d22808252703ab9361411b114911039ba3937b5b29e9160791b60208301528851613134816031850160208d01615801565b8083019250507f222f3e3c75736520786c696e6b3a687265663d222361222066696c7465723d2260318301527f75726c282364292075726c2823622922207374726f6b653d2200000000000000806051840152885161319a81606a860160208d01615801565b606a930192830191909152608a82015285516131bd8160a3840160208a01615801565b7f222f3e3c67207472616e73666f726d3d227472616e736c617465282d3235302060a392909101918201527f2d343829222069643d2268222066696c7465723d2275726c28236229223e3c6760c38201527f2069643d226a22206f7061636974793d223022207472616e73666f726d3d227460e38201527f72616e736c6174652831373020323029222066696c7465723d2275726c2823656101038201527f29223e3c6c696e652069643d226c696e6531222078313d223330222079313d226101238201527f3330222078323d223730222079323d22333022207374726f6b653d22726564226101438201527f207374726f6b652d77696474683d223322202f3e3c6c696e652069643d226c696101638201527f6e6531222078313d223330222079313d223330222078323d223130222079323d6101838201527f22313022207374726f6b653d2272656422207374726f6b652d77696474683d226101a38201527f3322202f3e3c6c696e652069643d226c696e6531222078313d223330222079316101c38201527f3d223330222078323d223130222079323d22353022207374726f6b653d2272656101e38201527f6422207374726f6b652d77696474683d223322202f3e3c2f673e3c75736520786102038201527f3d223235302220793d2234382220786c696e6b3a687265663d2223662220666961022382015274363a32b91e913ab9361411b11491103334b6361e9160591b61024382015261345161344b6133ed610258840188612fb6565b7f222f3e3c75736520783d223235302220793d2234382220786c696e6b3a68726581527f663d222366222066696c7465723d2275726c282364292075726c2823622922206020820152653334b6361e9160d11b604082015260460190565b85612fb6565b9998505050505050505050565b60008251613470818460208701615801565b663133b1b7b637b960c91b920191825250600701919050565b6000825161349b818460208701615801565b682422a0a221a7a627a960b91b920191825250600901919050565b600085516134c8818460208a01615801565b6a111037b830b1b4ba3c9e9160a91b90830181815286519091906134f381600b850160208b01615801565b7f22207472616e73666f726d3d227472616e736c6174652836203629222f3e3c75600b939091019283018190527f736520786c696e6b3a687265663d222363222066696c7465723d2275726c2823602b840152733114903ab9361411a994911039ba3937b5b29e9160611b604b840152865161357681605f860160208b01615801565b605f93019283019190915284519061359582606a850160208901615801565b606a92909101918201527f736520786c696e6b3a687265663d222361222066696c7465723d2275726c2823608a8201526b3114911039ba3937b5b29e9160a11b60aa82015260b6019695505050505050565b600082516135f9818460208701615801565b6b6267636f6c6f72737061636560a01b920191825250600c01919050565b683d913730b6b2911d1160b91b8152855160009061363c816009850160208b01615801565b71111610113232b9b1b934b83a34b7b7111d1160711b600991840191820152865161366e81601b840160208b01615801565b7f222c202261747472696275746573223a205b7b2274726169745f74797065223a601b929091019182015273101121b7b637b9111610113b30b63ab2911d101160611b603b8201527f227d2c7b2274726169745f74797065223a20224261636b67726f756e64222c20604f82015269113b30b63ab2911d101160b11b606f8201528551613702816079840160208a01615801565b6134516137a561379f61377661375b6137556079878901017f227d2c7b2274726169745f74797065223a2022546869636b6e657373222c20228152683b30b63ab2911d101160b91b602082015260290190565b8b612fb6565b6e113eae96101134b6b0b3b2911d101160891b8152600f0190565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c0000000000008152601a0190565b87612fb6565b61227d60f01b815260020190565b7f222f3e3c70617468207472616e73666f726d3d22726f746174652834352038398152741719189b1019999b971c18991491103334b6361e9160591b602082015260008651613809816035850160208b01615801565b6904440c87a449a604060d60b31b603591840191820152865161383381603f840160208b01615801565b603b60f91b603f92909101918201528551613855816040840160208a01615801565b6924183d11179f1e17b39f60b11b60409290910191820152845161388081604a840160208901615801565b7f3c616e696d617465206174747269627574654e616d653d227374726f6b652d64604a92909101918201527f6173686f6666736574222066696c6c3d22667265657a652220626567696e3d22606a8201527f30733b672e656e642b3173222066726f6d3d223022206475723d223373222078608a8201527f6c696e6b3a687265663d2223632220746f3d2231303030222f3e3c616e696d6160aa8201527f7465206174747269627574654e616d653d227374726f6b652d646173686f666660ca8201527f736574222066696c6c3d22667265657a652220626567696e3d2230733b672e6560ea8201527f6e642b3173222066726f6d3d2231303030222069643d226922206475723d223361010a8201527f732220786c696e6b3a687265663d2223612220746f3d2232303030222f3e3c6161012a8201527f6e696d6174654d6f74696f6e2066696c6c3d22667265657a652220626567696e61014a8201527f3d2230733b672e656e642b317322206b657954696d65733d2230203b2031222061016a8201527f6475723d2233732220786c696e6b3a687265663d22236822206b6579506f696e61018a8201527f74733d2231203b20302220726f746174653d226175746f222063616c634d6f646101aa8201527f653d226c696e656172223e3c6d7061746820786c696e6b3a687265663d2223616101ca8201527f222f3e3c2f616e696d6174654d6f74696f6e3e3c616e696d61746520617474726101ea8201527f69627574654e616d653d227374726f6b652d646173686f66667365742220666961020a8201527f6c6c3d22667265657a652220626567696e3d22692e656e64222066726f6d3d2261022a8201527f3022206475723d2233732220786c696e6b3a687265663d2223612220746f3d2261024a8201527f31303030222f3e3c616e696d617465206174747269627574654e616d653d227361026a8201527f74726f6b652d646173686f6666736574222066696c6c3d22667265657a65222061028a8201527f626567696e3d22692e656e64222066726f6d3d2231303030222069643d2267226102aa8201527f206475723d2233732220786c696e6b3a687265663d2223632220746f3d2232306102ca8201527f3030222f3e3c616e696d6174654d6f74696f6e2066696c6c3d22667265657a656102ea8201527f2220626567696e3d22692e656e6422206b657954696d65733d2230203b20312261030a8201527f206475723d2233732220786c696e6b3a687265663d22236822206b6579506f6961032a8201527f6e74733d2231203b20302220726f746174653d226175746f222063616c634d6f61034a8201527f64653d226c696e656172223e3c6d7061746820786c696e6b3a687265663d222361036a8201527f63222f3e3c2f616e696d6174654d6f74696f6e3e3c616e696d6174652061747461038a8201527f7269627574654e616d653d226f706163697479222066696c6c3d22667265657a6103aa8201527f652220626567696e3d22672e656e64222066726f6d3d223022206475723d22306103ca8201527f2e31732220786c696e6b3a687265663d22236a2220746f3d2231222f3e3c616e6103ea8201527f696d617465206174747269627574654e616d653d226f7061636974792220666961040a8201527f6c6c3d22667265657a652220626567696e3d22672e656e642b3173222066726f61042a8201527f6d3d223122206475723d22302e31732220786c696e6b3a687265663d22236a2261044a8201527f20746f3d2230222f3e3c646566733e3c66696c7465722069643d22622220666961046a8201527f6c746572556e6974733d227573657253706163654f6e557365223e3c6665547561048a8201527f7262756c656e636520626173654672657175656e63793d222e333522207479706104aa8201527f653d226672616374616c4e6f697365223e3c616e696d617465206174747269626104ca8201527f7574654e616d653d22626173654672657175656e63792220626567696e3d22306104ea82015267399110323ab91e9160c11b61050a820152613e69610512820185612fb6565b98975050505050505050565b630d0e6d8560e31b815260008451613e94816004850160208901615801565b600b60fa1b6004918401918201528451613eb5816005840160208901615801565b61094b60f21b600592909101918201528351613ed8816007840160208801615801565b61252960f01b6007929091019182015260090195945050505050565b64026991a98160dd1b815260008551613f14816005850160208a01615801565b604360f81b6005918401918201528551613f35816006840160208a01615801565b600b60fa1b600692909101918201528451613f57816007840160208901615801565b600160fd1b600792909101918201528351613f79816008840160208801615801565b016008019695505050505050565b64026991a98160dd1b815260008851613fa7816005850160208d01615801565b605360f81b6005918401918201528851613fc8816006840160208d01615801565b600b60fa1b600692909101918201528751613fea816007840160208c01615801565b600160fd1b60079290910191820152865161400c816008840160208b01615801565b642c3235305360d81b6008929091019182015261405c61344b61404b614045614038600d86018b612fb6565b600b60fa1b815260010190565b88612fb6565b64080c8d4c0b60da1b815260050190565b9a9950505050505050505050565b661b585a5b9b995d60ca1b81526000835161408c816007850160208801615801565b8351908301906140a3816007840160208801615801565b01600701949350505050565b7f3c646566733e3c6c696e6561724772616469656e742069643d227a222067726181527f6469656e745472616e73666f726d3d22726f7461746528393029223e3c73746f60208201527f70206f66667365743d223525222073746f702d636f6c6f723d2223653839663060408201527f30222f3e3c73746f70206f66667365743d22393525222073746f702d636f6c6f60608201527f723d2223653862613030222f3e3c2f6c696e6561724772616469656e743e3c2f60808201527f646566733e3c706174682066696c6c3d222365386261303022207374796c653d60a08201527f2266696c7465723a75726c282378292220643d224d302030683530307635303060c08201527124183d11179f1e31b4b931b6329031bc1e9160711b60e0820152600085516141e68160f2850160208a01615801565b65111031bc9e9160d11b60f29184019182015261464561428261427c61426a61426461421560f887018c612fb6565b7f2220723d22313030222066696c6c3d2275726c28237a29222066696c7465723d81527f2275726c28236d29222f3e3c636972636c652063783d22000000000000000000602082015260370190565b89612fb6565b65111031bc9e9160d11b815260060190565b86612fb6565b7f2220723d22313030222066696c6c3d2275726c28237a29222066696c7465723d81527f2275726c28236d29222f3e3c646566733e3c66696c7465722069643d2278223e60208201527f3c666553706563756c61724c69676874696e6720726573756c743d227370656360408201527f4f7574222073706563756c61724578706f6e656e743d22313222206c6967687460608201527f696e672d636f6c6f723d2223626262223e3c6665506f696e744c69676874207860808201527f3d223235302220793d222d31303022207a3d223230223e3c616e696d6174652060a08201527f6174747269627574654e616d653d2278222076616c7565733d223235303b333760c08201527f353b36303022206475723d223330732220726570656174436f756e743d22696e60e08201527f646566696e697465222f3e3c616e696d617465206174747269627574654e616d6101008201527f653d2279222076616c7565733d222d3130303b37353b32353022206475723d226101208201527f3330732220726570656174436f756e743d22696e646566696e697465222f3e3c6101408201527f2f6665506f696e744c696768743e3c2f666553706563756c61724c69676874696101608201527f6e673e3c6665436f6d706f7369746520696e3d22536f757263654772617068696101808201527f632220696e323d22737065634f757422206f70657261746f723d2261726974686101a08201527f6d6574696322206b313d222e3122206b323d223122206b333d2232222f3e3c2f6101c08201527f66696c7465723e3c66696c7465722069643d226d222066696c746572556e69746101e08201527f733d227573657253706163654f6e557365223e3c666554757262756c656e63656102008201527f20626173654672657175656e63793d222e3031312220747970653d22667261636102208201527f74616c4e6f697365222f3e3c6665446973706c6163656d656e744d617020696e6102408201527f3d22536f757263654772617068696322207363616c653d22313030223e3c616e6102608201527f696d617465206174747269627574654e616d653d227363616c652220626567696102808201527f6e3d22307322206475723d223373222076616c7565733d22333030303b3334306102a08201527f303b323730303b333230303b323830303b333030302220726570656174436f756102c08201527f6e743d22696e646566696e697465222f3e3c2f6665446973706c6163656d656e6102e0820152743a26b0b81f1e17b334b63a32b91f1e17b232b3399f60591b6103008201526103150190565b979650505050505050565b7f73222076616c7565733d22302e303035323b302e30303735333b302e3030343181527f3b302e30303932343b302e303037303b302e303035322220726570656174436f60208201527f756e743d22696e646566696e697465222f3e3c2f666554757262756c656e636560408201527f3e3c6665446973706c6163656d656e744d617020696e3d22536f75726365477260608201526d30b83434b1911039b1b0b6329e9160911b60808201526000855161471181608e850160208a01615801565b7f222f3e3c2f66696c7465723e3c66696c7465722069643d226522207769647468608e918401918201527f3d223230302522206865696768743d2232303025223e3c666554757262756c6560ae8201527f6e636520626173654672657175656e63793d222e33352220747970653d22667260ce8201527f616374616c4e6f697365223e3c616e696d617465206174747269627574654e6160ee8201527f6d653d22626173654672657175656e63792220626567696e3d2230732220647561010e8201527f723d22302e3173222076616c7565733d22302e303035323b302e30303735333b61012e8201527f302e303034313b302e30303932343b302e303037303b302e303034222072657061014e8201527f656174436f756e743d22696e646566696e697465222f3e3c2f6665547572627561016e8201527f6c656e63653e3c6665446973706c6163656d656e744d617020696e3d22536f7561018e8201527f7263654772617068696322207363616c653d223630222f3e3c2f66696c7465726101ae8201527f3e3c66696c7465722069643d2264222066696c746572556e6974733d227573656101ce8201527f7253706163654f6e557365223e3c666554757262756c656e63652062617365466101ee820152693932b8bab2b731bc9e9160b11b61020e82015261464561498c61427c61494a61426461491661021887018c612fb6565b7f2220747970653d226672616374616c4e6f69736522206e756d4f6374617665738152611e9160f11b602082015260220190565b7f222f3e3c6665446973706c6163656d656e744d617020696e3d22536f7572636581526f23b930b83434b1911039b1b0b6329e9160811b602082015260300190565b7f222f3e3c6665436f6d706f73697465206f70657261746f723d22696e2220696e81527f323d22536f7572636547726170686963222f3e3c2f66696c7465723e3c66696c60208201527f7465722069643d2253222077696474683d223230302522206865696768743d2260408201527f32303025223e3c6665476175737369616e426c757220696e3d22536f7572636560608201527f477261706869632220737464446576696174696f6e3d2234222f3e3c2f66696c60808201526a3a32b91f1e17b232b3399f60a91b60a082015260ab0190565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251614a9981601d850160208701615801565b91909101601d0192915050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f32308152600060207f30302f737667222076657273696f6e3d22312e322220786d6c6e733a786c696e818401527f6b3d22687474703a2f2f7777772e77332e6f72672f313939392f786c696e6b2260408401527f2077696474683d2235303022206865696768743d22353030222076696577426f60608401526f3c1e91181018101a9818101a9818111f60811b608084015260908951614b6a81838701858e01615801565b895190850190614b7f81848401868e01615801565b8951910190614b9381848401868d01615801565b8851910190614ba781848401868c01615801565b8751910190614bbb81848401868b01615801565b614bde614bcc848385010189612fb6565b651e17b9bb339f60d11b815260060190565b9c9b505050505050505050505050565b6b1e3830ba34103334b6361e9160a11b81528251600090614c1681600c850160208801615801565b7f2220643d224d302030683530307635303048307a222f3e3c7061747465726e20600c918401918201527f69643d2279222077696474683d22343022206865696768743d22343022207061602c8201527f747465726e556e6974733d227573657253706163654f6e557365223e3c636972604c8201527f636c652063783d223230222063793d2232302220723d223130222066696c6c3d606c820152601160f91b608c8201528351614ccf81608d840160208801615801565b7f22206f7061636974793d222e32222f3e3c2f7061747465726e3e3c66696c7465608d92909101918201527f722069643d226d223e3c666554757262756c656e636520747970653d2266726160ad8201527f6374616c4e6f6973652220626173654672657175656e63793d222e303322206e60cd8201527f756d4f6374617665733d22322220736565643d2235353135222f3e3c6665446960ed8201527f73706c6163656d656e744d617020696e3d22536f75726365477261706869632261010d8201527f207363616c653d22313030222f3e3c2f66696c7465723e3c672066696c74657261012d8201527f3d2275726c28236d29223e3c7265637420783d222d3530252220793d222d353061014d8201527f25222077696474683d223230302522206865696768743d22323030252220666961016d8201527f6c6c3d2275726c28237929223e3c616e696d6174655472616e73666f726d206161018d8201527f74747269627574654e616d653d227472616e73666f726d2220747970653d22746101ad8201527f72616e736c61746522206475723d223573222076616c7565733d22302c303b206101cd8201527f34302c34303b2220726570656174436f756e743d22696e646566696e697465226101ed8201526c179f1e17b932b1ba1f1e17b39f60991b61020d82015261021a01949350505050565b71536e616b65206f6e206120636861696e202360701b815260008251614ef4816012850160208701615801565b9190910160120192915050565b7f3c646566733e3c6c696e6561724772616469656e742069643d227a222067726181527f6469656e745472616e73666f726d3d22726f7461746528393029223e3c73746f60208201527f70206f66667365743d223525222f3e3c73746f70206f66667365743d2239352560408201526d111039ba37b816b1b7b637b91e9160911b606082015260008451614f9c81606e850160208901615801565b7f222f3e3c2f6c696e6561724772616469656e743e3c2f646566733e3c70617468606e918401918201527f2066696c6c3d222365336565652220643d224d30203068353030763530304830608e8201527f7a222f3e3c7061747465726e2069643d2278222077696474683d22343022206860ae8201527f65696768743d22343022207061747465726e556e6974733d227573657253706160ce8201527f63654f6e557365223e3c636972636c652063783d223130222063793d2231302260ee8201526310391e9160e11b61010e82015261540461518961427c615083610112850189612fb6565b7f222066696c6c3d227472616e73706172656e7422207374726f6b653d2223666381527f6662653622206f7061636974793d222e36222f3e3c2f7061747465726e3e3c6760208201527f2066696c7465723d2275726c28236d29223e3c7265637420783d222d3530252260408201527f20793d222d353025222077696474683d223230302522206865696768743d223260608201527f303025222066696c6c3d2275726c28237829223e3c616e696d6174655472616e60808201527f73666f726d206174747269627574654e616d653d227472616e73666f726d222060a0820152753a3cb8329e913a3930b739b630ba329110323ab91e9160511b60c082015260d60190565b7f73222076616c7565733d22302c303b20302c35303b20302c302220726570656181527f74436f756e743d22696e646566696e697465222f3e3c2f726563743e3c2f673e60208201527f3c66696c7465722069643d226e2220783d222d3530252220793d222d3530252260408201527f2077696474683d223230302522206865696768743d2232303025223e3c66655460608201527f757262756c656e636520626173654672657175656e63793d222e303822206e7560808201527f6d4f6374617665733d2231302220726573756c743d226c6f6c222f3e3c66654460a08201527f6973706c6163656d656e744d617020696e323d2274757262756c656e6365222060c08201527f696e3d22536f757263654772617068696322207363616c653d2232302220784360e08201527f68616e6e656c53656c6563746f723d22522220794368616e6e656c53656c65636101008201527f746f723d2247222f3e3c6665436f6d706f73697465206f70657261746f723d226101208201527f696e2220696e323d22536f7572636547726170686963222f3e3c2f66696c74656101408201527f723e3c66696c7465722069643d226d223e3c666554757262756c656e636520746101608201527f7970653d226672616374616c4e6f6973652220626173654672657175656e63796101808201527f3d222e312220736565643d223339393936222f3e3c6665446973706c6163656d6101a08201527f656e744d617020696e3d22536f75726365477261706869632220784368616e6e6101c08201527f656c53656c6563746f723d224222207363616c653d22323030222f3e3c2f66696101e082015264363a32b91f60d91b6102008201526102050190565b9695505050505050565b7f3c646566733e3c70617468207374726f6b652d6461736861727261793d22313081527f30302220706174684c656e6774683d2231303030222066696c6c3d226e6f6e6560208201527f22207374726f6b652d6c696e656a6f696e3d22726f756e6422207374726f6b6560408201527f2d646173686f66667365743d223130303022207374726f6b652d6c696e65636160608201527f703d22726f756e6422207374726f6b652d77696474683d2200000000000000006080820152600086516154de816098850160208b01615801565b6b111034b21e91309110321e9160a11b609891840191820152865161550a8160a4840160208b01615801565b7f222f3e3c70617468207374726f6b652d6461736861727261793d22313030302260a492909101918201527f20706174684c656e6774683d2231303030222066696c6c3d226e6f6e6522207360c48201527f74726f6b652d6c696e656a6f696e3d22726f756e6422207374726f6b652d646160e48201527f73686f66667365743d223022207374726f6b652d6c696e656361703d22726f75610104820152713732111039ba3937b5b296bbb4b23a341e9160711b610124820152613e6961562261427c6155f96142646155e161013687018c612fb6565b6b111034b21e91319110321e9160a11b8152600c0190565b7f222f3e3c636972636c652063783d2230222063793d22302220723d22000000008152601c0190565b7f222069643d2266222f3e3c2f646566733e3c75736520786c696e6b3a6872656681527f3d222361222066696c7465723d2275726c282362292075726c282353292220736020820152663a3937b5b29e9160c91b604082015260470190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061540490830184612f8a565b602081526000612d6c6020830184612f8a565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156157b2576157b2615897565b500190565b6000826157c6576157c66158ad565b500490565b60008160001904831182151516156157e5576157e5615897565b500290565b6000828210156157fc576157fc615897565b500390565b60005b8381101561581c578181015183820152602001615804565b83811115610b885750506000910152565b600181811c9082168061584157607f821691505b6020821081141561586257634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561587c5761587c615897565b5060010190565b600082615892576158926158ad565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461070d57600080fdfe68747470733a2f2f736e616b65736f6e61636861696e2e636c75622f6d792d6d657461646174614142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c636972636c652063783d22343030222063793d223130302220723d223530222066696c6c3d2275726c28237a29222f3e3c636972636c652063783d22343030222063793d223130302220723d223530222066696c6c3d2275726c28237a29222066696c7465723d2275726c28236e29222f3ea264697066735822122094493c529400bdd9ef570292420c2c77296eb3868f8703d7d0bc943cc26f6f9c64736f6c63430008040033
Deployed Bytecode
0x6080604052600436106101815760003560e01c8063715018a6116100d1578063a22cb4651161008a578063c87b56dd11610064578063c87b56dd14610412578063e8a3d48514610432578063e985e9c514610447578063f2fde38b1461049057600080fd5b8063a22cb465146103bd578063b88d4fde146103dd578063c4e41b22146103fd57600080fd5b8063715018a61461033f578063797bb29214610354578063853828b6146103675780638d859f3e1461036f5780638da5cb5b1461038a57806395d89b41146103a857600080fd5b806323b872dd1161013e57806342842e0e1161011857806342842e0e146102bf5780634f6ccce7146102df5780636352211e146102ff57806370a082311461031f57600080fd5b806323b872dd146102695780632f745c591461028957806332cb6b0c146102a957600080fd5b806301ffc9a71461018657806306fdde03146101bb578063081812fc146101dd578063095ea7b31461021557806317fb85941461023757806318160ddd1461024a575b600080fd5b34801561019257600080fd5b506101a66101a1366004612f18565b6104b0565b60405190151581526020015b60405180910390f35b3480156101c757600080fd5b506101d06104c1565b6040516101b291906156b4565b3480156101e957600080fd5b506101fd6101f8366004612f50565b610553565b6040516001600160a01b0390911681526020016101b2565b34801561022157600080fd5b50610235610230366004612eef565b6105ed565b005b610235610245366004612f50565b610703565b34801561025657600080fd5b506008545b6040519081526020016101b2565b34801561027557600080fd5b50610235610284366004612da5565b610710565b34801561029557600080fd5b5061025b6102a4366004612eef565b610741565b3480156102b557600080fd5b5061025b6107d081565b3480156102cb57600080fd5b506102356102da366004612da5565b6107d7565b3480156102eb57600080fd5b5061025b6102fa366004612f50565b6107f2565b34801561030b57600080fd5b506101fd61031a366004612f50565b610893565b34801561032b57600080fd5b5061025b61033a366004612d52565b61090a565b34801561034b57600080fd5b50610235610991565b610235610362366004612f68565b6109c7565b6102356109d5565b34801561037b57600080fd5b5061025b66354a6ba7a1800081565b34801561039657600080fd5b50600b546001600160a01b03166101fd565b3480156103b457600080fd5b506101d0610a82565b3480156103c957600080fd5b506102356103d8366004612eb5565b610a91565b3480156103e957600080fd5b506102356103f8366004612de0565b610b56565b34801561040957600080fd5b5061025b610b8e565b34801561041e57600080fd5b506101d061042d366004612f50565b610b9e565b34801561043e57600080fd5b506101d0610e4d565b34801561045357600080fd5b506101a6610462366004612d73565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561049c57600080fd5b506102356104ab366004612d52565b610e6d565b60006104bb82610f05565b92915050565b6060600080546104d09061582d565b80601f01602080910402602001604051908101604052809291908181526020018280546104fc9061582d565b80156105495780601f1061051e57610100808354040283529160200191610549565b820191906000526020600020905b81548152906001019060200180831161052c57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166105d15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006105f882610893565b9050806001600160a01b0316836001600160a01b031614156106665760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105c8565b336001600160a01b038216148061068257506106828133610462565b6106f45760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105c8565b6106fe8383610f2a565b505050565b61070d8133610f98565b50565b61071a3382611133565b6107365760405162461bcd60e51b81526004016105c89061574e565b6106fe83838361122a565b600061074c8361090a565b82106107ae5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016105c8565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6106fe83838360405180602001604052806000815250610b56565b60006107fd60085490565b82106108605760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016105c8565b6008828154811061088157634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806104bb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105c8565b60006001600160a01b0382166109755760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105c8565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b031633146109bb5760405162461bcd60e51b81526004016105c890615719565b6109c560006113d5565b565b6109d18282610f98565b5050565b6002600a541415610a285760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105c8565b6002600a55600b546001600160a01b03163314610a575760405162461bcd60e51b81526004016105c890615719565b60405133904780156108fc02916000818181858888f19350505050610a7b57600080fd5b6001600a55565b6060600180546104d09061582d565b6001600160a01b038216331415610aea5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105c8565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610b603383611133565b610b7c5760405162461bcd60e51b81526004016105c89061574e565b610b8884848484611427565b50505050565b6000610b9960085490565b905090565b6000818152600260205260409020546060906001600160a01b0316610bf95760405162461bcd60e51b81526020600482015260116024820152701a5908191bd95cc81b9bdd08195e1a5cdd607a1b60448201526064016105c8565b610c01612b8f565b6040805160a0808201835260056060838101828152642ba0aa22a960d91b60808087019190915290855285518087018752600680825265111154d1549560d21b602083810191909152808801929092528751808901895285815264535041434560d81b8184015287890152875160e08101895295860181815265534b494e4e5960d01b60c0880152865287518089018952908152655748494d535960d01b81830152858201528651808801885284815264424153494360d81b818301528588015286518088018852848152644e4f49434560d81b8183015285840152865180880190975292865264544849434360d81b92860192909252908201939093526000610d0a8761145a565b604051602001610d1a9190614ec7565b60405160208183030381529060405290506000604051602001610d73907f457665727920736e616b6520666f6c6c6f777320697473206f776e20706174688152692028696e206c6966652960b01b6020820152602a0190565b6040516020818303038152906040529050610d8d88611574565b90965094506000610d9d86612302565b9050610e208383878a60e0015160038110610dc857634e487b7160e01b600052603260045260246000fd5b6020020151878b610100015160058110610df257634e487b7160e01b600052603260045260246000fd5b602002015185604051602001610e0c959493929190613617565b604051602081830303815290604052612302565b604051602001610e309190614a61565b604051602081830303815290604052975050505050505050919050565b60606040518060600160405280602781526020016158f060279139905090565b600b546001600160a01b03163314610e975760405162461bcd60e51b81526004016105c890615719565b6001600160a01b038116610efc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105c8565b61070d816113d5565b60006001600160e01b0319821663780e9d6360e01b14806104bb57506104bb82612476565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610f5f82610893565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008211610fd35760405162461bcd60e51b81526020600482015260086024820152674e6567617469766560c01b60448201526064016105c8565b34610fe58366354a6ba7a180006157cb565b146110215760405162461bcd60e51b815260206004820152600c60248201526b616d6f756e742077726f6e6760a01b60448201526064016105c8565b6107d061102d60085490565b106110655760405162461bcd60e51b81526020600482015260086024820152671cdbdb19081bdd5d60c21b60448201526064016105c8565b6107d08261107260085490565b61107c919061579f565b11156110b55760405162461bcd60e51b8152602060048201526008602482015267546f6f206d616e7960c01b60448201526064016105c8565b601582106110f05760405162461bcd60e51b8152602060048201526008602482015267546f6f206d616e7960c01b60448201526064016105c8565b60005b828110156106fe576000611106600c5490565b905061111283826124c6565b611120600c80546001019055565b508061112b81615868565b9150506110f3565b6000818152600260205260408120546001600160a01b03166111ac5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105c8565b60006111b783610893565b9050806001600160a01b0316846001600160a01b031614806111f25750836001600160a01b03166111e784610553565b6001600160a01b0316145b8061122257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661123d82610893565b6001600160a01b0316146112a55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105c8565b6001600160a01b0382166113075760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105c8565b6113128383836124e0565b61131d600082610f2a565b6001600160a01b03831660009081526003602052604081208054600192906113469084906157ea565b90915550506001600160a01b038216600090815260036020526040812080546001929061137490849061579f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61143284848461122a565b61143e848484846124eb565b610b885760405162461bcd60e51b81526004016105c8906156c7565b60608161147e5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156114a8578061149281615868565b91506114a19050600a836157b7565b9150611482565b60008167ffffffffffffffff8111156114d157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156114fb576020820181803683370190505b5090505b8415611222576115106001836157ea565b915061151d600a86615883565b61152890603061579f565b60f81b81838151811061154b57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061156d600a866157b7565b94506114ff565b61157c612b8f565b6060600061159461158f856110716157cb565b61145a565b905061159e612b8f565b6115a6612cae565b6115bc836000610167602860646014603c6125f8565b82526040516115f4906115d3908590602001613489565b6040516020818303038152906040526000610167602860646014603c6125f8565b826101800181905250606461162984604051806040016040528060088152602001676261636b7a69657360c01b8152506126c1565b6116339190615883565b815152805151601e11156116cd57600060e083015260405161167d9061165d90859060200161345e565b60405160208183030381529060405260a060e660466064601960416125f8565b602083018190525161169090600861579f565b60408084015191909152602083015101516116ad906019906157ea565b6040808401805190910191909152602080840151810151915101526118b6565b805151603c11156117ea57600160e08301526040805180820190915260048152630626778360e41b602082015260fa906117089085906126c1565b6117129190615883565b6060830151526040805180820190915260048152630626779360e41b602082015260fa906117419085906126c1565b61174b9190615883565b6080830151526040805180820190915260048152636267783160e01b602082015260fa9061177a9085906126c1565b6117849190615883565b61178f9060fa61579f565b6060830151600160200201818152505060fa6117c784604051806040016040528060048152602001636267793160e01b8152506126c1565b6117d19190615883565b6117dc9060fa61579f565b6080830151602001526118b6565b61181f836040516020016117fe91906135e7565b6040516020818303038152906040526000610167605060646019603c6125f8565b8260200181905250600261184f84604051806040016040528060048152602001630626778360e41b8152506126c1565b6118599190615883565b61186490600161579f565b6060830151526040805180820190915260048152630626779360e41b6020820152603c906118939085906126c1565b61189d9190615883565b6118a890600f61579f565b608083015152600260e08301525b60056118df8460405180604001604052806005815260200164746869636360d81b8152506126c1565b6118e99190615883565b61010083018190526001111561191657600c6101208301526018610140830152600a6101608301526119b0565b60028261010001511015611941576015610120830152601e610140830152600c6101608301526119b0565b6003826101000151101561196c57601e6101208301526027610140830152600e6101608301526119b0565b60048261010001511015611997576027610120830152602a61014083015260106101608301526119b0565b6030610120830181905261014083015260126101608301525b600f6119de846040518060400160405280600a815260200169736e616b696e6573735360b01b8152506126c1565b6119e89190615883565b6119f390600261579f565b6101a083015260408051808201909152600c81526b1cdb985ada5b995cdcd7d7d160a21b6020820152601e90611a2a9085906126c1565b611a349190615883565b611a3f90601461579f565b6101c0830181905260191115611a585760006101c08301525b61015e611a89846040518060400160405280600c81526020016b7061747465726e7363616c6560a01b8152506126c1565b611a939190615883565b611a9e90603261579f565b6101e083015260408051808201909152600b81526a7061747465726e6672657160a81b6020820152600690611ad49085906126c1565b611ade9190615883565b8151526040805161010081018252600460c08201818152631817181960e11b60e0840152825282518084018452818152630c0b8c0d60e21b6020828101919091528381019190915283518085018552828152631817181b60e11b818301528385015283518085018552828152630605c60760e31b818301526060840152835180850185526003815262302e3160e81b818301526080840152835180850190945290835263302e313560e01b9083015260a0810191909152815151819060068110611bb857634e487b7160e01b600052603260045260246000fd5b60200201518361020001819052506003611bf8856040518060400160405280600e81526020016d7061747465726e6f63746176657360901b8152506126c1565b611c029190615883565b611c0d90600261579f565b610220840152815160fa9052604080518082019091526005815264079706f73360dc1b6020820152611c4690859061012c6101d66126f5565b60208301516000602002018181525050611c83846040518060400160405280600581526020016478706f733160d81b81525061012c6101d66126f5565b825160209081019190915282015160fa9060016020020152815160fa906002602002018181525050611cd684604051806040016040528060058152602001643cb837b99960d91b815250601e60c86126f5565b60208301516002602002018181525050611d11846040518060400160405280600581526020016478706f733360d81b815250601e60c86126f5565b825160609081019190915260208301805160fa92019190915251611d3c9060005b602002015161145a565b8251611d49906001611d32565b6020840151611d59906000611d32565b8451611d66906001611d32565b8551611d73906001611d32565b6020870151611d83906002611d32565b6020880151611d93906002611d32565b604051602001611da99796959493929190613f87565b60408051601f1981840301815291905260a08401526020820151611dce906002611d32565b825160200151611de49061158f906101f46157ea565b6020840151611df4906002611d32565b8451611e01906003611d32565b604051602001611e149493929190613ef4565b60408051601f1981840301815291905260c084018190526020830151611e3b906002611d32565b8351611e48906003611d32565b8451611e55906003611d32565b6020860151611e65906000611d32565b6020870151611e75906000611d32565b604051602001611e8a96959493929190613001565b6040516020818303038152906040528360c00181905250606060018460e001511015611ef157611ebd846020015161274b565b611eca856040015161274b565b604051602001611edb929190614bee565b6040516020818303038152906040529050611fa2565b60028460e001511015611f51576060840151611f0e906000611d32565b6080850151611f1e906000611d32565b6060860151611f2e906001611d32565b6080870151611f3e906001611d32565b604051602001611edb94939291906140af565b611f5e846020015161274b565b6060850151611f6e906000611d32565b6080860151611f7e906000611d32565b604051602001611f9093929190614f01565b60405160208183030381529060405290505b60006040518060a0016040528060738152602001615957607391399050611fc7612cd3565b611fd586610120015161145a565b8660a00151611fe888610120015161145a565b8860c00151611ffb8a610140015161145a565b60405160200161200f95949392919061540e565b60408051808303601f19018152919052815260e086015160021461204f57604051806040016040528060048152602001630233030360e41b81525061206d565b6040518060400160405280600481526020016311a3232360e11b8152505b8660e0015160021461209957604051806040016040528060028152602001612e3760f01b8152506120b5565b604051806040016040528060028152602001612e3360f01b8152505b8760e001516002146120e357604051806040016040528060048152602001630233030360e41b815250612101565b6040518060400160405280600481526020016311a3232360e11b8152505b8860e0015160021461212d57604051806040016040528060028152602001612e3760f01b815250612149565b604051806040016040528060028152602001612e3360f01b8152505b60405160200161215c94939291906134b6565b60408051808303601f190181529190526020820152855161217c9061274b565b86516121879061274b565b87516121929061274b565b885161219d9061274b565b89516121a89061274b565b8a516121b39061274b565b6040516020016121c8969594939291906130cc565b60408051808303601f190181529181528201526101808601516121ea9061274b565b6121f887610160015161145a565b61220688610160015161145a565b8860e001516002146122275760405180602001604052806000815250612229565b845b6122378a6101a0015161145a565b60405160200161224b9594939291906137b3565b60408051808303601f1901815291905260608201526101c086015161226f9061145a565b86610200015161228388610220015161145a565b612291896101e0015161145a565b6040516020016122a49493929190614650565b60408051808303601f1901815291815260808301829052825160208085015185840151606087015194516000966122e0968b9695909201614aa6565b60408051601f19818403018152919052969b969a509598505050505050505050565b606081516000141561232257505060408051602081019091526000815290565b60006040518060600160405280604081526020016159176040913990506000600384516002612351919061579f565b61235b91906157b7565b6123669060046157cb565b9050600061237582602061579f565b67ffffffffffffffff81111561239b57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156123c5576020820181803683370190505b509050818152600183018586518101602084015b81831015612431576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253506001016123d9565b60038951066001811461244b576002811461245c57612468565b613d3d60f01b600119830152612468565b603d60f81b6000198301525b509398975050505050505050565b60006001600160e01b031982166380ac58cd60e01b14806124a757506001600160e01b03198216635b5e139f60e01b145b806104bb57506301ffc9a760e01b6001600160e01b03198316146104bb565b6109d182826040518060200160405280600081525061279c565b6106fe8383836127cf565b60006001600160a01b0384163b156125ed57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061252f903390899088908890600401615681565b602060405180830381600087803b15801561254957600080fd5b505af1925050508015612579575060408051601f3d908101601f1916820190925261257691810190612f34565b60015b6125d3573d8080156125a7576040519150601f19603f3d011682016040523d82523d6000602084013e6125ac565b606091505b5080516125cb5760405162461bcd60e51b81526004016105c8906156c7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611222565b506001949350505050565b61261c60405180606001604052806000815260200160008152602001600081525090565b604051806060016040528061264e8a6040518060400160405280600381526020016268756560e81b8152508b8b6126f5565b81526020016126818a6040518060400160405280600a81526020016939b0ba3ab930ba34b7b760b11b81525089896126f5565b81526020016126b38a604051806040016040528060098152602001686c696768746e65737360b81b81525087876126f5565b905298975050505050505050565b600081836040516020016126d6929190612fd2565b60408051601f1981840301815291905280516020909101209392505050565b60008261270281846157ea565b868660405160200161271592919061406a565b6040516020818303038152906040528051906020012060001c6127389190615883565b612742919061579f565b95945050505050565b606061275a826000015161145a565b612767836020015161145a565b612774846040015161145a565b60405160200161278693929190613e75565b6040516020818303038152906040529050919050565b6127a68383612887565b6127b360008484846124eb565b6106fe5760405162461bcd60e51b81526004016105c8906156c7565b6001600160a01b03831661282a5761282581600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61284d565b816001600160a01b0316836001600160a01b03161461284d5761284d83826129d5565b6001600160a01b038216612864576106fe81612a72565b826001600160a01b0316826001600160a01b0316146106fe576106fe8282612b4b565b6001600160a01b0382166128dd5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105c8565b6000818152600260205260409020546001600160a01b0316156129425760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105c8565b61294e600083836124e0565b6001600160a01b038216600090815260036020526040812080546001929061297790849061579f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600060016129e28461090a565b6129ec91906157ea565b600083815260076020526040902054909150808214612a3f576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612a84906001906157ea565b60008381526009602052604081205460088054939450909284908110612aba57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110612ae957634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612b2f57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612b568361090a565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b604051806102400160405280612bbf60405180606001604052806000815260200160008152602001600081525090565b8152602001612be860405180606001604052806000815260200160008152602001600081525090565b8152602001612c1160405180606001604052806000815260200160008152602001600081525090565b8152602001612c1e612cfa565b8152602001612c2b612cfa565b815260200160608152602001606081526020016000815260200160008152602001600081526020016000815260200160008152602001612c8560405180606001604052806000815260200160008152602001600081525090565b815260200160008152602001600081526020016000815260200160608152602001600081525090565b6040518060400160405280612cc1612d18565b8152602001612cce612d18565b905290565b6040518060a001604052806005905b6060815260200190600190039081612ce25790505090565b60405180604001604052806002906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b80356001600160a01b0381168114612d4d57600080fd5b919050565b600060208284031215612d63578081fd5b612d6c82612d36565b9392505050565b60008060408385031215612d85578081fd5b612d8e83612d36565b9150612d9c60208401612d36565b90509250929050565b600080600060608486031215612db9578081fd5b612dc284612d36565b9250612dd060208501612d36565b9150604084013590509250925092565b60008060008060808587031215612df5578081fd5b612dfe85612d36565b9350612e0c60208601612d36565b925060408501359150606085013567ffffffffffffffff80821115612e2f578283fd5b818701915087601f830112612e42578283fd5b813581811115612e5457612e546158c3565b604051601f8201601f19908116603f01168101908382118183101715612e7c57612e7c6158c3565b816040528281528a6020848701011115612e94578586fd5b82602086016020830137918201602001949094529598949750929550505050565b60008060408385031215612ec7578182fd5b612ed083612d36565b915060208301358015158114612ee4578182fd5b809150509250929050565b60008060408385031215612f01578182fd5b612f0a83612d36565b946020939093013593505050565b600060208284031215612f29578081fd5b8135612d6c816158d9565b600060208284031215612f45578081fd5b8151612d6c816158d9565b600060208284031215612f61578081fd5b5035919050565b60008060408385031215612f7a578182fd5b82359150612d9c60208401612d36565b60008151808452612fa2816020860160208601615801565b601f01601f19169290920160200192915050565b60008151612fc8818560208601615801565b9290920192915050565b60008351612fe4818460208801615801565b835190830190612ff8818360208801615801565b01949350505050565b6000875160206130148285838d01615801565b8184019150600b60fa1b80835289516130338160018601858e01615801565b600160fd1b6001949091019384015288516130548160028601858d01615801565b642c3235305360d81b6002949091019384015287516130798160078601858c01615801565b600793019283015285516130938160088501848a01615801565b64080c8d4c0b60da1b6008939091019283015284516130b881600d8501848901615801565b91909101600d019998505050505050505050565b600087516130de818460208c01615801565b80830190507f222f3e3c75736520786c696e6b3a687265663d222363222066696c7465723d22808252703ab9361411b114911039ba3937b5b29e9160791b60208301528851613134816031850160208d01615801565b8083019250507f222f3e3c75736520786c696e6b3a687265663d222361222066696c7465723d2260318301527f75726c282364292075726c2823622922207374726f6b653d2200000000000000806051840152885161319a81606a860160208d01615801565b606a930192830191909152608a82015285516131bd8160a3840160208a01615801565b7f222f3e3c67207472616e73666f726d3d227472616e736c617465282d3235302060a392909101918201527f2d343829222069643d2268222066696c7465723d2275726c28236229223e3c6760c38201527f2069643d226a22206f7061636974793d223022207472616e73666f726d3d227460e38201527f72616e736c6174652831373020323029222066696c7465723d2275726c2823656101038201527f29223e3c6c696e652069643d226c696e6531222078313d223330222079313d226101238201527f3330222078323d223730222079323d22333022207374726f6b653d22726564226101438201527f207374726f6b652d77696474683d223322202f3e3c6c696e652069643d226c696101638201527f6e6531222078313d223330222079313d223330222078323d223130222079323d6101838201527f22313022207374726f6b653d2272656422207374726f6b652d77696474683d226101a38201527f3322202f3e3c6c696e652069643d226c696e6531222078313d223330222079316101c38201527f3d223330222078323d223130222079323d22353022207374726f6b653d2272656101e38201527f6422207374726f6b652d77696474683d223322202f3e3c2f673e3c75736520786102038201527f3d223235302220793d2234382220786c696e6b3a687265663d2223662220666961022382015274363a32b91e913ab9361411b11491103334b6361e9160591b61024382015261345161344b6133ed610258840188612fb6565b7f222f3e3c75736520783d223235302220793d2234382220786c696e6b3a68726581527f663d222366222066696c7465723d2275726c282364292075726c2823622922206020820152653334b6361e9160d11b604082015260460190565b85612fb6565b9998505050505050505050565b60008251613470818460208701615801565b663133b1b7b637b960c91b920191825250600701919050565b6000825161349b818460208701615801565b682422a0a221a7a627a960b91b920191825250600901919050565b600085516134c8818460208a01615801565b6a111037b830b1b4ba3c9e9160a91b90830181815286519091906134f381600b850160208b01615801565b7f22207472616e73666f726d3d227472616e736c6174652836203629222f3e3c75600b939091019283018190527f736520786c696e6b3a687265663d222363222066696c7465723d2275726c2823602b840152733114903ab9361411a994911039ba3937b5b29e9160611b604b840152865161357681605f860160208b01615801565b605f93019283019190915284519061359582606a850160208901615801565b606a92909101918201527f736520786c696e6b3a687265663d222361222066696c7465723d2275726c2823608a8201526b3114911039ba3937b5b29e9160a11b60aa82015260b6019695505050505050565b600082516135f9818460208701615801565b6b6267636f6c6f72737061636560a01b920191825250600c01919050565b683d913730b6b2911d1160b91b8152855160009061363c816009850160208b01615801565b71111610113232b9b1b934b83a34b7b7111d1160711b600991840191820152865161366e81601b840160208b01615801565b7f222c202261747472696275746573223a205b7b2274726169745f74797065223a601b929091019182015273101121b7b637b9111610113b30b63ab2911d101160611b603b8201527f227d2c7b2274726169745f74797065223a20224261636b67726f756e64222c20604f82015269113b30b63ab2911d101160b11b606f8201528551613702816079840160208a01615801565b6134516137a561379f61377661375b6137556079878901017f227d2c7b2274726169745f74797065223a2022546869636b6e657373222c20228152683b30b63ab2911d101160b91b602082015260290190565b8b612fb6565b6e113eae96101134b6b0b3b2911d101160891b8152600f0190565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c0000000000008152601a0190565b87612fb6565b61227d60f01b815260020190565b7f222f3e3c70617468207472616e73666f726d3d22726f746174652834352038398152741719189b1019999b971c18991491103334b6361e9160591b602082015260008651613809816035850160208b01615801565b6904440c87a449a604060d60b31b603591840191820152865161383381603f840160208b01615801565b603b60f91b603f92909101918201528551613855816040840160208a01615801565b6924183d11179f1e17b39f60b11b60409290910191820152845161388081604a840160208901615801565b7f3c616e696d617465206174747269627574654e616d653d227374726f6b652d64604a92909101918201527f6173686f6666736574222066696c6c3d22667265657a652220626567696e3d22606a8201527f30733b672e656e642b3173222066726f6d3d223022206475723d223373222078608a8201527f6c696e6b3a687265663d2223632220746f3d2231303030222f3e3c616e696d6160aa8201527f7465206174747269627574654e616d653d227374726f6b652d646173686f666660ca8201527f736574222066696c6c3d22667265657a652220626567696e3d2230733b672e6560ea8201527f6e642b3173222066726f6d3d2231303030222069643d226922206475723d223361010a8201527f732220786c696e6b3a687265663d2223612220746f3d2232303030222f3e3c6161012a8201527f6e696d6174654d6f74696f6e2066696c6c3d22667265657a652220626567696e61014a8201527f3d2230733b672e656e642b317322206b657954696d65733d2230203b2031222061016a8201527f6475723d2233732220786c696e6b3a687265663d22236822206b6579506f696e61018a8201527f74733d2231203b20302220726f746174653d226175746f222063616c634d6f646101aa8201527f653d226c696e656172223e3c6d7061746820786c696e6b3a687265663d2223616101ca8201527f222f3e3c2f616e696d6174654d6f74696f6e3e3c616e696d61746520617474726101ea8201527f69627574654e616d653d227374726f6b652d646173686f66667365742220666961020a8201527f6c6c3d22667265657a652220626567696e3d22692e656e64222066726f6d3d2261022a8201527f3022206475723d2233732220786c696e6b3a687265663d2223612220746f3d2261024a8201527f31303030222f3e3c616e696d617465206174747269627574654e616d653d227361026a8201527f74726f6b652d646173686f6666736574222066696c6c3d22667265657a65222061028a8201527f626567696e3d22692e656e64222066726f6d3d2231303030222069643d2267226102aa8201527f206475723d2233732220786c696e6b3a687265663d2223632220746f3d2232306102ca8201527f3030222f3e3c616e696d6174654d6f74696f6e2066696c6c3d22667265657a656102ea8201527f2220626567696e3d22692e656e6422206b657954696d65733d2230203b20312261030a8201527f206475723d2233732220786c696e6b3a687265663d22236822206b6579506f6961032a8201527f6e74733d2231203b20302220726f746174653d226175746f222063616c634d6f61034a8201527f64653d226c696e656172223e3c6d7061746820786c696e6b3a687265663d222361036a8201527f63222f3e3c2f616e696d6174654d6f74696f6e3e3c616e696d6174652061747461038a8201527f7269627574654e616d653d226f706163697479222066696c6c3d22667265657a6103aa8201527f652220626567696e3d22672e656e64222066726f6d3d223022206475723d22306103ca8201527f2e31732220786c696e6b3a687265663d22236a2220746f3d2231222f3e3c616e6103ea8201527f696d617465206174747269627574654e616d653d226f7061636974792220666961040a8201527f6c6c3d22667265657a652220626567696e3d22672e656e642b3173222066726f61042a8201527f6d3d223122206475723d22302e31732220786c696e6b3a687265663d22236a2261044a8201527f20746f3d2230222f3e3c646566733e3c66696c7465722069643d22622220666961046a8201527f6c746572556e6974733d227573657253706163654f6e557365223e3c6665547561048a8201527f7262756c656e636520626173654672657175656e63793d222e333522207479706104aa8201527f653d226672616374616c4e6f697365223e3c616e696d617465206174747269626104ca8201527f7574654e616d653d22626173654672657175656e63792220626567696e3d22306104ea82015267399110323ab91e9160c11b61050a820152613e69610512820185612fb6565b98975050505050505050565b630d0e6d8560e31b815260008451613e94816004850160208901615801565b600b60fa1b6004918401918201528451613eb5816005840160208901615801565b61094b60f21b600592909101918201528351613ed8816007840160208801615801565b61252960f01b6007929091019182015260090195945050505050565b64026991a98160dd1b815260008551613f14816005850160208a01615801565b604360f81b6005918401918201528551613f35816006840160208a01615801565b600b60fa1b600692909101918201528451613f57816007840160208901615801565b600160fd1b600792909101918201528351613f79816008840160208801615801565b016008019695505050505050565b64026991a98160dd1b815260008851613fa7816005850160208d01615801565b605360f81b6005918401918201528851613fc8816006840160208d01615801565b600b60fa1b600692909101918201528751613fea816007840160208c01615801565b600160fd1b60079290910191820152865161400c816008840160208b01615801565b642c3235305360d81b6008929091019182015261405c61344b61404b614045614038600d86018b612fb6565b600b60fa1b815260010190565b88612fb6565b64080c8d4c0b60da1b815260050190565b9a9950505050505050505050565b661b585a5b9b995d60ca1b81526000835161408c816007850160208801615801565b8351908301906140a3816007840160208801615801565b01600701949350505050565b7f3c646566733e3c6c696e6561724772616469656e742069643d227a222067726181527f6469656e745472616e73666f726d3d22726f7461746528393029223e3c73746f60208201527f70206f66667365743d223525222073746f702d636f6c6f723d2223653839663060408201527f30222f3e3c73746f70206f66667365743d22393525222073746f702d636f6c6f60608201527f723d2223653862613030222f3e3c2f6c696e6561724772616469656e743e3c2f60808201527f646566733e3c706174682066696c6c3d222365386261303022207374796c653d60a08201527f2266696c7465723a75726c282378292220643d224d302030683530307635303060c08201527124183d11179f1e31b4b931b6329031bc1e9160711b60e0820152600085516141e68160f2850160208a01615801565b65111031bc9e9160d11b60f29184019182015261464561428261427c61426a61426461421560f887018c612fb6565b7f2220723d22313030222066696c6c3d2275726c28237a29222066696c7465723d81527f2275726c28236d29222f3e3c636972636c652063783d22000000000000000000602082015260370190565b89612fb6565b65111031bc9e9160d11b815260060190565b86612fb6565b7f2220723d22313030222066696c6c3d2275726c28237a29222066696c7465723d81527f2275726c28236d29222f3e3c646566733e3c66696c7465722069643d2278223e60208201527f3c666553706563756c61724c69676874696e6720726573756c743d227370656360408201527f4f7574222073706563756c61724578706f6e656e743d22313222206c6967687460608201527f696e672d636f6c6f723d2223626262223e3c6665506f696e744c69676874207860808201527f3d223235302220793d222d31303022207a3d223230223e3c616e696d6174652060a08201527f6174747269627574654e616d653d2278222076616c7565733d223235303b333760c08201527f353b36303022206475723d223330732220726570656174436f756e743d22696e60e08201527f646566696e697465222f3e3c616e696d617465206174747269627574654e616d6101008201527f653d2279222076616c7565733d222d3130303b37353b32353022206475723d226101208201527f3330732220726570656174436f756e743d22696e646566696e697465222f3e3c6101408201527f2f6665506f696e744c696768743e3c2f666553706563756c61724c69676874696101608201527f6e673e3c6665436f6d706f7369746520696e3d22536f757263654772617068696101808201527f632220696e323d22737065634f757422206f70657261746f723d2261726974686101a08201527f6d6574696322206b313d222e3122206b323d223122206b333d2232222f3e3c2f6101c08201527f66696c7465723e3c66696c7465722069643d226d222066696c746572556e69746101e08201527f733d227573657253706163654f6e557365223e3c666554757262756c656e63656102008201527f20626173654672657175656e63793d222e3031312220747970653d22667261636102208201527f74616c4e6f697365222f3e3c6665446973706c6163656d656e744d617020696e6102408201527f3d22536f757263654772617068696322207363616c653d22313030223e3c616e6102608201527f696d617465206174747269627574654e616d653d227363616c652220626567696102808201527f6e3d22307322206475723d223373222076616c7565733d22333030303b3334306102a08201527f303b323730303b333230303b323830303b333030302220726570656174436f756102c08201527f6e743d22696e646566696e697465222f3e3c2f6665446973706c6163656d656e6102e0820152743a26b0b81f1e17b334b63a32b91f1e17b232b3399f60591b6103008201526103150190565b979650505050505050565b7f73222076616c7565733d22302e303035323b302e30303735333b302e3030343181527f3b302e30303932343b302e303037303b302e303035322220726570656174436f60208201527f756e743d22696e646566696e697465222f3e3c2f666554757262756c656e636560408201527f3e3c6665446973706c6163656d656e744d617020696e3d22536f75726365477260608201526d30b83434b1911039b1b0b6329e9160911b60808201526000855161471181608e850160208a01615801565b7f222f3e3c2f66696c7465723e3c66696c7465722069643d226522207769647468608e918401918201527f3d223230302522206865696768743d2232303025223e3c666554757262756c6560ae8201527f6e636520626173654672657175656e63793d222e33352220747970653d22667260ce8201527f616374616c4e6f697365223e3c616e696d617465206174747269627574654e6160ee8201527f6d653d22626173654672657175656e63792220626567696e3d2230732220647561010e8201527f723d22302e3173222076616c7565733d22302e303035323b302e30303735333b61012e8201527f302e303034313b302e30303932343b302e303037303b302e303034222072657061014e8201527f656174436f756e743d22696e646566696e697465222f3e3c2f6665547572627561016e8201527f6c656e63653e3c6665446973706c6163656d656e744d617020696e3d22536f7561018e8201527f7263654772617068696322207363616c653d223630222f3e3c2f66696c7465726101ae8201527f3e3c66696c7465722069643d2264222066696c746572556e6974733d227573656101ce8201527f7253706163654f6e557365223e3c666554757262756c656e63652062617365466101ee820152693932b8bab2b731bc9e9160b11b61020e82015261464561498c61427c61494a61426461491661021887018c612fb6565b7f2220747970653d226672616374616c4e6f69736522206e756d4f6374617665738152611e9160f11b602082015260220190565b7f222f3e3c6665446973706c6163656d656e744d617020696e3d22536f7572636581526f23b930b83434b1911039b1b0b6329e9160811b602082015260300190565b7f222f3e3c6665436f6d706f73697465206f70657261746f723d22696e2220696e81527f323d22536f7572636547726170686963222f3e3c2f66696c7465723e3c66696c60208201527f7465722069643d2253222077696474683d223230302522206865696768743d2260408201527f32303025223e3c6665476175737369616e426c757220696e3d22536f7572636560608201527f477261706869632220737464446576696174696f6e3d2234222f3e3c2f66696c60808201526a3a32b91f1e17b232b3399f60a91b60a082015260ab0190565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251614a9981601d850160208701615801565b91909101601d0192915050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f32308152600060207f30302f737667222076657273696f6e3d22312e322220786d6c6e733a786c696e818401527f6b3d22687474703a2f2f7777772e77332e6f72672f313939392f786c696e6b2260408401527f2077696474683d2235303022206865696768743d22353030222076696577426f60608401526f3c1e91181018101a9818101a9818111f60811b608084015260908951614b6a81838701858e01615801565b895190850190614b7f81848401868e01615801565b8951910190614b9381848401868d01615801565b8851910190614ba781848401868c01615801565b8751910190614bbb81848401868b01615801565b614bde614bcc848385010189612fb6565b651e17b9bb339f60d11b815260060190565b9c9b505050505050505050505050565b6b1e3830ba34103334b6361e9160a11b81528251600090614c1681600c850160208801615801565b7f2220643d224d302030683530307635303048307a222f3e3c7061747465726e20600c918401918201527f69643d2279222077696474683d22343022206865696768743d22343022207061602c8201527f747465726e556e6974733d227573657253706163654f6e557365223e3c636972604c8201527f636c652063783d223230222063793d2232302220723d223130222066696c6c3d606c820152601160f91b608c8201528351614ccf81608d840160208801615801565b7f22206f7061636974793d222e32222f3e3c2f7061747465726e3e3c66696c7465608d92909101918201527f722069643d226d223e3c666554757262756c656e636520747970653d2266726160ad8201527f6374616c4e6f6973652220626173654672657175656e63793d222e303322206e60cd8201527f756d4f6374617665733d22322220736565643d2235353135222f3e3c6665446960ed8201527f73706c6163656d656e744d617020696e3d22536f75726365477261706869632261010d8201527f207363616c653d22313030222f3e3c2f66696c7465723e3c672066696c74657261012d8201527f3d2275726c28236d29223e3c7265637420783d222d3530252220793d222d353061014d8201527f25222077696474683d223230302522206865696768743d22323030252220666961016d8201527f6c6c3d2275726c28237929223e3c616e696d6174655472616e73666f726d206161018d8201527f74747269627574654e616d653d227472616e73666f726d2220747970653d22746101ad8201527f72616e736c61746522206475723d223573222076616c7565733d22302c303b206101cd8201527f34302c34303b2220726570656174436f756e743d22696e646566696e697465226101ed8201526c179f1e17b932b1ba1f1e17b39f60991b61020d82015261021a01949350505050565b71536e616b65206f6e206120636861696e202360701b815260008251614ef4816012850160208701615801565b9190910160120192915050565b7f3c646566733e3c6c696e6561724772616469656e742069643d227a222067726181527f6469656e745472616e73666f726d3d22726f7461746528393029223e3c73746f60208201527f70206f66667365743d223525222f3e3c73746f70206f66667365743d2239352560408201526d111039ba37b816b1b7b637b91e9160911b606082015260008451614f9c81606e850160208901615801565b7f222f3e3c2f6c696e6561724772616469656e743e3c2f646566733e3c70617468606e918401918201527f2066696c6c3d222365336565652220643d224d30203068353030763530304830608e8201527f7a222f3e3c7061747465726e2069643d2278222077696474683d22343022206860ae8201527f65696768743d22343022207061747465726e556e6974733d227573657253706160ce8201527f63654f6e557365223e3c636972636c652063783d223130222063793d2231302260ee8201526310391e9160e11b61010e82015261540461518961427c615083610112850189612fb6565b7f222066696c6c3d227472616e73706172656e7422207374726f6b653d2223666381527f6662653622206f7061636974793d222e36222f3e3c2f7061747465726e3e3c6760208201527f2066696c7465723d2275726c28236d29223e3c7265637420783d222d3530252260408201527f20793d222d353025222077696474683d223230302522206865696768743d223260608201527f303025222066696c6c3d2275726c28237829223e3c616e696d6174655472616e60808201527f73666f726d206174747269627574654e616d653d227472616e73666f726d222060a0820152753a3cb8329e913a3930b739b630ba329110323ab91e9160511b60c082015260d60190565b7f73222076616c7565733d22302c303b20302c35303b20302c302220726570656181527f74436f756e743d22696e646566696e697465222f3e3c2f726563743e3c2f673e60208201527f3c66696c7465722069643d226e2220783d222d3530252220793d222d3530252260408201527f2077696474683d223230302522206865696768743d2232303025223e3c66655460608201527f757262756c656e636520626173654672657175656e63793d222e303822206e7560808201527f6d4f6374617665733d2231302220726573756c743d226c6f6c222f3e3c66654460a08201527f6973706c6163656d656e744d617020696e323d2274757262756c656e6365222060c08201527f696e3d22536f757263654772617068696322207363616c653d2232302220784360e08201527f68616e6e656c53656c6563746f723d22522220794368616e6e656c53656c65636101008201527f746f723d2247222f3e3c6665436f6d706f73697465206f70657261746f723d226101208201527f696e2220696e323d22536f7572636547726170686963222f3e3c2f66696c74656101408201527f723e3c66696c7465722069643d226d223e3c666554757262756c656e636520746101608201527f7970653d226672616374616c4e6f6973652220626173654672657175656e63796101808201527f3d222e312220736565643d223339393936222f3e3c6665446973706c6163656d6101a08201527f656e744d617020696e3d22536f75726365477261706869632220784368616e6e6101c08201527f656c53656c6563746f723d224222207363616c653d22323030222f3e3c2f66696101e082015264363a32b91f60d91b6102008201526102050190565b9695505050505050565b7f3c646566733e3c70617468207374726f6b652d6461736861727261793d22313081527f30302220706174684c656e6774683d2231303030222066696c6c3d226e6f6e6560208201527f22207374726f6b652d6c696e656a6f696e3d22726f756e6422207374726f6b6560408201527f2d646173686f66667365743d223130303022207374726f6b652d6c696e65636160608201527f703d22726f756e6422207374726f6b652d77696474683d2200000000000000006080820152600086516154de816098850160208b01615801565b6b111034b21e91309110321e9160a11b609891840191820152865161550a8160a4840160208b01615801565b7f222f3e3c70617468207374726f6b652d6461736861727261793d22313030302260a492909101918201527f20706174684c656e6774683d2231303030222066696c6c3d226e6f6e6522207360c48201527f74726f6b652d6c696e656a6f696e3d22726f756e6422207374726f6b652d646160e48201527f73686f66667365743d223022207374726f6b652d6c696e656361703d22726f75610104820152713732111039ba3937b5b296bbb4b23a341e9160711b610124820152613e6961562261427c6155f96142646155e161013687018c612fb6565b6b111034b21e91319110321e9160a11b8152600c0190565b7f222f3e3c636972636c652063783d2230222063793d22302220723d22000000008152601c0190565b7f222069643d2266222f3e3c2f646566733e3c75736520786c696e6b3a6872656681527f3d222361222066696c7465723d2275726c282362292075726c282353292220736020820152663a3937b5b29e9160c91b604082015260470190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061540490830184612f8a565b602081526000612d6c6020830184612f8a565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600082198211156157b2576157b2615897565b500190565b6000826157c6576157c66158ad565b500490565b60008160001904831182151516156157e5576157e5615897565b500290565b6000828210156157fc576157fc615897565b500390565b60005b8381101561581c578181015183820152602001615804565b83811115610b885750506000910152565b600181811c9082168061584157607f821691505b6020821081141561586257634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561587c5761587c615897565b5060010190565b600082615892576158926158ad565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461070d57600080fdfe68747470733a2f2f736e616b65736f6e61636861696e2e636c75622f6d792d6d657461646174614142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c636972636c652063783d22343030222063793d223130302220723d223530222066696c6c3d2275726c28237a29222f3e3c636972636c652063783d22343030222063793d223130302220723d223530222066696c6c3d2275726c28237a29222066696c7465723d2275726c28236e29222f3ea264697066735822122094493c529400bdd9ef570292420c2c77296eb3868f8703d7d0bc943cc26f6f9c64736f6c63430008040033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.