ERC-721
NFT
Overview
Max Total Supply
816 1KAD
Holders
466
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 1KADLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
KetherNFT
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)
//SPDX-License-Identifier: MIT pragma solidity >=0.8.4; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./IKetherHomepage.sol"; import "./KetherNFTRender.sol"; contract FlashEscrow { constructor(address target, bytes memory payload) { (bool success,) = target.call(payload); require(success, "FlashEscrow: target call failed"); selfdestruct(payable(target)); } } contract KetherNFT is ERC721Enumerable, Ownable { /// instance is the KetherHomepage contract that this wrapper interfaces with. IKetherHomepage public instance; /// disableRenderUpgrade is whether we can still upgrade the tokenURI renderer. /// Once it is set it cannot be unset. bool disableRenderUpgrade = false; ITokenRenderer public renderer; constructor(address _ketherContract, address _renderer) ERC721("Thousand Ether Homepage Ad", "1KAD") { instance = IKetherHomepage(_ketherContract); renderer = ITokenRenderer(_renderer); } function _encodeFlashEscrow(uint _idx) internal view returns (bytes memory) { return abi.encodePacked( type(FlashEscrow).creationCode, abi.encode(address(instance), _encodeFlashEscrowPayload(_idx))); } function _encodeFlashEscrowPayload(uint _idx) internal view returns (bytes memory) { return abi.encodeWithSignature("setAdOwner(uint256,address)", _idx, address(this)); } /// `precompute` generates a commitment address for minting the NFT to `_owner`. This can be the original owner /// of the ad, or a different address. After the ad is transfered to the precomputed address, `wrap` has /// to be called with the same `_owner` to complete minting the NFT. function precompute(uint _idx, address _owner) public view returns (bytes32 salt, address predictedAddress) { require(_owner != address(this) && _owner != address(0), "KetherNFT: invalid _owner"); salt = sha256(abi.encodePacked(_owner)); bytes memory bytecode = _encodeFlashEscrow(_idx); bytes32 hash = keccak256( abi.encodePacked( bytes1(0xff), address(this), salt, keccak256(bytecode) ) ); predictedAddress = address(uint160(uint256(hash))); return (salt, predictedAddress); } function _getAdOwner(uint _idx) internal view returns (address) { (address owner,,,,,,,,,) = instance.ads(_idx); return owner; } /// wrap mints an NFT if the ad unit's ownership has been transferred to the /// precomputed escrow address. function wrap(uint _idx, address _owner) external { (bytes32 salt, address precomputedFlashEscrow) = precompute(_idx, _owner); require(_getAdOwner(_idx) == precomputedFlashEscrow, "KetherNFT: owner needs to be the correct precommitted address"); // FlashEscrow completes the transfer escrow atomically and self-destructs. new FlashEscrow{salt: salt}(address(instance), _encodeFlashEscrowPayload(_idx)); require(_getAdOwner(_idx) == address(this), "KetherNFT: owner needs to be KetherNFT after wrap"); _mint(_owner, _idx); } function unwrap(uint _idx, address _newOwner) external { require(_isApprovedOrOwner(_msgSender(), _idx), "KetherNFT: unwrap for sender that is not owner"); instance.setAdOwner(_idx, _newOwner); require(_getAdOwner(_idx) == _newOwner, "KetherNFT: unwrap ownership transfer failed"); _burn(_idx); } function baseURI() public pure returns (string memory) {} function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) { require(_exists(tokenId), "KetherNFT: tokenId does not exist"); return renderer.tokenURI(instance, tokenId); } /// publish is a proxy for KetherHomapage's publish function. /// /// Publish allows for setting the link, image, and NSFW status for the ad /// unit that is identified by the idx which was returned during the buy step. /// The link and image must be full web3-recognizeable URLs, such as: /// - bzz://a5c10851ef054c268a2438f10a21f6efe3dc3dcdcc2ea0e6a1a7a38bf8c91e23 /// - bzz://mydomain.eth/ad.png /// - https://cdn.mydomain.com/ad.png /// - https://ipfs.io/ipfs/Qme7ss3ARVgxv6rXqVPiikMJ8u2NLgmgszg13pYrDKEoiu /// - ipfs://Qme7ss3ARVgxv6rXqVPiikMJ8u2NLgmgszg13pYrDKEoiu /// Images should be valid PNG. /// Content-addressable storage links like IPFS are encouraged. function publish(uint _idx, string calldata _link, string calldata _image, string calldata _title, bool _NSFW) external { require(_isApprovedOrOwner(_msgSender(), _idx), "KetherNFT: publish for sender that is not approved"); instance.publish(_idx, _link, _image, _title, _NSFW); } /// buy is a proxy for KetherHomepage's buy function. Calling it allows /// an ad to be purchased directly as an NFT without needing to wrap it later. /// /// Ads must be purchased in 10x10 pixel blocks. /// Each coordinate represents 10 pixels. That is, /// _x=5, _y=10, _width=3, _height=3 /// Represents a 30x30 pixel ad at coordinates (50, 100) function buy(uint _x, uint _y, uint _width, uint _height) external payable returns (uint idx) { idx = instance.buy{value: msg.value}(_x, _y, _width, _height); _safeMint(_msgSender(), idx); return idx; } /// Admin helpers: /// adminRecoverTrapped allows us to transfer ownership of ads that were /// incorrectly transferred to this contract without an NFT being minted. /// This should never happen, but we include this recovery function in case /// there is a bug in the DApp that somehow falls into this condition. /// Note that this function does *not* give admin any control over properly /// minted ads/NFTs. function adminRecoverTrapped(uint _idx, address _to) external onlyOwner { require(!_exists(_idx), "KetherNFT: recovery can only be done on unminted ads"); require(_getAdOwner(_idx) == address(this), "KetherNFT: ad not held by contract"); instance.setAdOwner(_idx, _to); } function adminSetRenderer(address _renderer) external onlyOwner { require(disableRenderUpgrade == false, "KetherNFT: upgrading renderer is disabled"); renderer = ITokenRenderer(_renderer); } function adminDisableRenderUpgrade() external onlyOwner { disableRenderUpgrade = true; } }
// 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; 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.4; interface IKetherHomepage { struct Ad { address owner; uint x; uint y; uint width; uint height; string link; string image; string title; bool NSFW; bool forceNSFW; } /// Buy is emitted when an ad unit is reserved. event Buy( uint indexed idx, address owner, uint x, uint y, uint width, uint height ); /// Publish is emitted whenever the contents of an ad is changed. event Publish( uint indexed idx, string link, string image, string title, bool NSFW ); /// SetAdOwner is emitted whenever the ownership of an ad is transfered event SetAdOwner( uint indexed idx, address from, address to ); /// ads are stored in an array, the id of an ad is its index in this array. function ads(uint _idx) external view returns (address,uint,uint,uint,uint,string memory,string memory,string memory,bool,bool); function buy(uint _x, uint _y, uint _width, uint _height) external payable returns (uint idx); function publish(uint _idx, string calldata _link, string calldata _image, string calldata _title, bool _NSFW) external; function setAdOwner(uint _idx, address _newOwner) external; function forceNSFW(uint _idx, bool _NSFW) external; function withdraw() external; function getAdsLength() view external returns (uint); }
//SPDX-License-Identifier: MIT pragma solidity >=0.8.4; import '@openzeppelin/contracts/utils/Strings.sol'; import "./IKetherHomepage.sol"; import "base64-sol/base64.sol"; interface ITokenRenderer { function tokenURI(IKetherHomepage instance, uint256 tokenId) external view returns (string memory); } contract KetherNFTRender is ITokenRenderer { using Strings for uint; function renderNFTImage(IKetherHomepage instance, uint256 tokenId, uint renderNum) public view returns (string memory) { uint maxId = instance.getAdsLength() - 1; if (renderNum > maxId) renderNum = maxId+1; bytes memory buf; uint idx = tokenId + 1; uint opacity = 3400; uint x; uint y; uint width; uint height; for (uint i=0; i<renderNum; i++) { if (i > maxId) break; // Less than renderNum ads in total if (idx > maxId) idx = 0; // Loop around if (idx == tokenId) continue; (,x, y, width, height,,,,,) = instance.ads(idx); buf = abi.encodePacked(buf, '<rect x="',x.toString(),'" y="',y.toString(),'" width="',width.toString(),'" height="',height.toString(),'" fill="rgba(99,99,99,0.', opacity.toString() ,')"></rect>'); opacity = (opacity * 9) / 8; if (opacity == 0) break; idx += 1; } (,x, y, width, height,,,,,) = instance.ads(tokenId); return Base64.encode(bytes(abi.encodePacked( '<svg width="1000" height="1050" viewBox="0 0 1000 1060" xmlns="http://www.w3.org/2000/svg" style="background:#4a90e2">', '<text x="5" y="34" style="font:30px sans-serif;fill:rgba(255,255,255,0.8);">The Thousand Ether Homepage</text>', '<text x="1000" y="34" style="font:30px sans-serif;fill:rgba(255,255,255,0.8);" text-anchor="end">#', tokenId.toString(),'</text>', '<svg y="50" width="1000" height="1000" viewBox="0 0 100 100">', '<rect width="100%" height="100%" fill="white"></rect>', '<rect x="',x.toString(),'" y="',y.toString(),'" width="',width.toString(),'" height="',height.toString(),'" fill="rgb(66,185,131)"></rect>', buf, '</svg>', '</svg>'))); } // Thanks to @townsendsam for giving us this reference https://gist.github.com/townsendsam/df2c420accb5ae786e856c97d13a2de6 function _generateAttributes(uint x, uint y, uint width, uint height, bool NSFW, bool forceNSFW) internal pure returns (string memory) { string memory filter = ''; if (NSFW || forceNSFW) { filter = ',{"trait_type": "Filter", "value": "NSFW"}'; } string memory adminOverride = ''; if (forceNSFW) { adminOverride = ',{"trait_type": "Admin Override", "value": "Forced NSFW"}'; } return string(abi.encodePacked( '[', '{', '"trait_type": "X",', '"value": ', x.toString(), '},', '{', '"trait_type": "Y",', '"value": ', y.toString(), '},', '{', '"trait_type": "Width",', '"value": ', width.toString(), '},', '{', '"trait_type": "Height",', '"value": ', height.toString(), '},', '{', '"trait_type": "Pixels",', '"value": ', (height * width).toString(), '}', filter, adminOverride, ']' )); } function _boolToString(bool val) internal pure returns (string memory) { return val ? "true" : "false"; } function tokenURI(IKetherHomepage instance, uint256 tokenId) public view override(ITokenRenderer) returns (string memory) { (,uint x,uint y,uint width,uint height,,,,bool NSFW,bool forceNSFW) = instance.ads(tokenId); // Units are 1/10 x *= 10; y *= 10; width *= 10; height *= 10; return string( abi.encodePacked( 'data:application/json;base64,', Base64.encode(bytes(abi.encodePacked( '{"name":"ThousandEtherHomepage #', tokenId.toString(), ': ', width.toString(), 'x', height.toString(), ' at [', x.toString(), ',', y.toString(), ']"', ',"description":"This NFT represents an ad unit on thousandetherhomepage.com, the owner of the NFT controls the content of this ad unit."', ',"external_url":"https://thousandetherhomepage.com"', ',"image":"data:image/svg+xml;base64,', renderNFTImage(instance, tokenId, 42), '"', ',"attributes":', _generateAttributes(x, y, width, height, NSFW, forceNSFW), '}' ))) ) ); } }
// 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 "../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); }
// 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; /** * @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.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 /// @title Base64 /// @author Brecht Devos - <[email protected]> /// @notice Provides a function for encoding some bytes in base64 library Base64 { string internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ''; // load the table into memory string memory table = TABLE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for {} lt(dataPtr, endPtr) {} { dataPtr := add(dataPtr, 3) // read 3 bytes let input := mload(dataPtr) // write 4 characters mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F))))) resultPtr := add(resultPtr, 1) mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F))))) resultPtr := add(resultPtr, 1) mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr( 6, input), 0x3F))))) resultPtr := add(resultPtr, 1) mstore(resultPtr, shl(248, mload(add(tablePtr, and( input, 0x3F))))) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } }
{ "optimizer": { "enabled": true, "runs": 200, "details": { "yul": false } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_ketherContract","type":"address"},{"internalType":"address","name":"_renderer","type":"address"}],"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":"adminDisableRenderUpgrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_idx","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"adminRecoverTrapped","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_renderer","type":"address"}],"name":"adminSetRenderer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_x","type":"uint256"},{"internalType":"uint256","name":"_y","type":"uint256"},{"internalType":"uint256","name":"_width","type":"uint256"},{"internalType":"uint256","name":"_height","type":"uint256"}],"name":"buy","outputs":[{"internalType":"uint256","name":"idx","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"instance","outputs":[{"internalType":"contract IKetherHomepage","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":[{"internalType":"uint256","name":"_idx","type":"uint256"},{"internalType":"address","name":"_owner","type":"address"}],"name":"precompute","outputs":[{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"address","name":"predictedAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_idx","type":"uint256"},{"internalType":"string","name":"_link","type":"string"},{"internalType":"string","name":"_image","type":"string"},{"internalType":"string","name":"_title","type":"string"},{"internalType":"bool","name":"_NSFW","type":"bool"}],"name":"publish","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renderer","outputs":[{"internalType":"contract ITokenRenderer","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_idx","type":"uint256"},{"internalType":"address","name":"_newOwner","type":"address"}],"name":"unwrap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_idx","type":"uint256"},{"internalType":"address","name":"_owner","type":"address"}],"name":"wrap","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600b805460ff60a01b191690553480156200001e57600080fd5b50604051620036e5380380620036e5833981016040819052620000419162000216565b604080518082018252601a81527f54686f7573616e6420457468657220486f6d65706167652041640000000000006020808301918252835180850190945260048452630c52d05160e21b908401528151919291620000a2916000916200015d565b508051620000b89060019060208401906200015d565b505050620000d5620000cf6200010760201b60201c565b6200010b565b600b80546001600160a01b039384166001600160a01b031991821617909155600c8054929093169116179055620002c8565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200016b9062000267565b90600052602060002090601f0160209004810192826200018f5760008555620001da565b82601f10620001aa57805160ff1916838001178555620001da565b82800160010185558215620001da579182015b82811115620001da578251825591602001919060010190620001bd565b50620001e8929150620001ec565b5090565b5b80821115620001e85760008155600101620001ed565b80516200021081620002ae565b92915050565b600080604083850312156200022a57600080fd5b600062000238858562000203565b92505060206200024b8582860162000203565b9150509250929050565b60006001600160a01b03821662000210565b6002810460018216806200027c57607f821691505b6020821081141562000292576200029262000298565b50919050565b634e487b7160e01b600052602260045260246000fd5b620002b98162000255565b8114620002c557600080fd5b50565b61340d80620002d86000396000f3fe608060405260043610620001f35760003560e01c806370a08231116200010b57806395d89b4111620000a1578063c87b56dd116200006c578063c87b56dd14620005c3578063e985e9c514620005e8578063ee90fe6d1462000635578063f2fde38b146200064d57600080fd5b806395d89b41146200053c578063a22cb4651462000554578063b0fb2d0f1462000579578063b88d4fde146200059e57600080fd5b80637e26fbca11620000e25780637e26fbca14620004a05780638ada6b0f14620004c55780638da5cb5b14620004e7578063947695bf146200050757600080fd5b806370a08231146200043e578063715018a614620004635780637647691d146200047b57600080fd5b806318160ddd116200018d57806345ebc145116200015857806345ebc14514620003b95780634f6ccce714620003de5780636352211e14620004035780636c0360eb146200042857600080fd5b806318160ddd146200033357806323b872dd146200034a5780632f745c59146200036f57806342842e0e146200039457600080fd5b8063081812fc11620001ce578063081812fc146200028d578063095ea7b314620002c15780631281311d14620002e857806313bac820146200030e57600080fd5b806301ffc9a714620001f8578063022ec095146200023557806306fdde031462000266575b600080fd5b3480156200020557600080fd5b506200021d62000217366004620020c7565b62000672565b6040516200022c919062002c13565b60405180910390f35b3480156200024257600080fd5b50600b5462000257906001600160a01b031681565b6040516200022c919062002c42565b3480156200027357600080fd5b506200027e620006a0565b6040516200022c919062002c71565b3480156200029a57600080fd5b50620002b2620002ac36600462002142565b6200073a565b6040516200022c919062002b93565b348015620002ce57600080fd5b50620002e6620002e036600462001f38565b62000796565b005b620002ff620002f93660046200225d565b62000829565b6040516200022c919062002e6a565b3480156200031b57600080fd5b50620002e66200032d36600462002163565b620008d0565b3480156200034057600080fd5b50600854620002ff565b3480156200035757600080fd5b50620002e66200036936600462001e2c565b620009c0565b3480156200037c57600080fd5b50620002ff6200038e36600462001f38565b620009f8565b348015620003a157600080fd5b50620002e6620003b336600462001e2c565b62000a4f565b348015620003c657600080fd5b50620002e6620003d836600462002185565b62000a6c565b348015620003eb57600080fd5b50620002ff620003fd36600462002142565b62000b15565b3480156200041057600080fd5b50620002b26200042236600462002142565b62000b76565b3480156200043557600080fd5b5060606200027e565b3480156200044b57600080fd5b50620002ff6200045d36600462001dcc565b62000bae565b3480156200047057600080fd5b50620002e662000bf5565b3480156200048857600080fd5b50620002e66200049a36600462002163565b62000c30565b348015620004ad57600080fd5b50620002e6620004bf36600462001dcc565b62000d11565b348015620004d257600080fd5b50600c5462000257906001600160a01b031681565b348015620004f457600080fd5b50600a546001600160a01b0316620002b2565b3480156200051457600080fd5b506200052c6200052636600462002163565b62000d8d565b6040516200022c92919062002c23565b3480156200054957600080fd5b506200027e62000ea0565b3480156200056157600080fd5b50620002e66200057336600462001f03565b62000eb1565b3480156200058657600080fd5b50620002e66200059836600462002163565b62000f4e565b348015620005ab57600080fd5b50620002e6620005bd36600462001e80565b62001054565b348015620005d057600080fd5b506200027e620005e236600462002142565b6200108c565b348015620005f557600080fd5b506200021d6200060736600462001ded565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156200064257600080fd5b50620002e662001156565b3480156200065a57600080fd5b50620002e66200066c36600462001dcc565b62001198565b60006001600160e01b0319821663780e9d6360e01b14806200069a57506200069a82620011fc565b92915050565b606060008054620006b1906200300d565b80601f0160208091040260200160405190810160405280929190818152602001828054620006df906200300d565b8015620007305780601f10620007045761010080835404028352916020019162000730565b820191906000526020600020905b8154815290600101906020018083116200071257829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166200077a5760405162461bcd60e51b8152600401620007719062002d92565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000620007a38262000b76565b9050806001600160a01b0316836001600160a01b03161415620007da5760405162461bcd60e51b8152600401620007719062002dda565b336001600160a01b0382161480620007f95750620007f9813362000607565b620008185760405162461bcd60e51b8152600401620007719062002d4a565b6200082483836200124f565b505050565b600b54604051631281311d60e01b81526000916001600160a01b031690631281311d9034906200086490899089908990899060040162002eeb565b6020604051808303818588803b1580156200087e57600080fd5b505af115801562000893573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190620008ba9190620020a6565b9050620008c83382620012bf565b949350505050565b600080620008df848462000d8d565b91509150806001600160a01b0316620008f885620012db565b6001600160a01b031614620009215760405162461bcd60e51b8152600401620007719062002cde565b600b5482906001600160a01b03166200093a866200137a565b604051620009489062001c4d565b6200095592919062002bef565b8190604051809103906000f590508015801562000976573d6000803e3d6000fd5b503090506200098585620012db565b6001600160a01b031614620009ae5760405162461bcd60e51b8152600401620007719062002dfe565b620009ba8385620013c1565b50505050565b620009cc3382620014b9565b620009eb5760405162461bcd60e51b8152600401620007719062002e10565b6200082483838362001571565b600062000a058362000bae565b821062000a265760405162461bcd60e51b8152600401620007719062002c96565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b620008248383836040518060200160405280600081525062001054565b62000a783389620014b9565b62000a975760405162461bcd60e51b8152600401620007719062002d38565b600b546040516345ebc14560e01b81526001600160a01b03909116906345ebc1459062000ad7908b908b908b908b908b908b908b908b9060040162002e7a565b600060405180830381600087803b15801562000af257600080fd5b505af115801562000b07573d6000803e3d6000fd5b505050505050505050505050565b600062000b2160085490565b821062000b425760405162461bcd60e51b8152600401620007719062002e22565b6008828154811062000b6457634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806200069a5760405162461bcd60e51b8152600401620007719062002d6e565b60006001600160a01b03821662000bd95760405162461bcd60e51b8152600401620007719062002d5c565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b0316331462000c225760405162461bcd60e51b8152600401620007719062002db6565b62000c2e6000620016ae565b565b62000c3d335b83620014b9565b62000c5c5760405162461bcd60e51b8152600401620007719062002c84565b600b54604051630eb38f4b60e31b81526001600160a01b039091169063759c7a589062000c90908590859060040162002c23565b600060405180830381600087803b15801562000cab57600080fd5b505af115801562000cc0573d6000803e3d6000fd5b50505050806001600160a01b031662000cd983620012db565b6001600160a01b03161462000d025760405162461bcd60e51b8152600401620007719062002da4565b62000d0d8262001700565b5050565b600a546001600160a01b0316331462000d3e5760405162461bcd60e51b8152600401620007719062002db6565b600b54600160a01b900460ff161562000d6b5760405162461bcd60e51b8152600401620007719062002d14565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6000806001600160a01b038316301480159062000db257506001600160a01b03831615155b62000dd15760405162461bcd60e51b8152600401620007719062002e46565b60028360405160200162000de6919062002afb565b60408051601f198184030181529082905262000e029162002b62565b602060405180830381855afa15801562000e20573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019062000e459190620020a6565b9150600062000e5485620017af565b9050600060ff60f81b3085848051906020012060405160200162000e7c949392919062002b12565b60408051601f198184030181529190528051602090910120925050505b9250929050565b606060018054620006b1906200300d565b6001600160a01b03821633141562000edd5760405162461bcd60e51b8152600401620007719062002d02565b3360008181526005602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319062000f4290859062002c13565b60405180910390a35050565b600a546001600160a01b0316331462000f7b5760405162461bcd60e51b8152600401620007719062002db6565b6000828152600260205260409020546001600160a01b03161562000fb35760405162461bcd60e51b8152600401620007719062002dec565b3062000fbf83620012db565b6001600160a01b03161462000fe85760405162461bcd60e51b8152600401620007719062002e58565b600b54604051630eb38f4b60e31b81526001600160a01b039091169063759c7a58906200101c908590859060040162002c23565b600060405180830381600087803b1580156200103757600080fd5b505af11580156200104c573d6000803e3d6000fd5b505050505050565b6200105f3362000c36565b6200107e5760405162461bcd60e51b8152600401620007719062002e10565b620009ba8484848462001836565b6000818152600260205260409020546060906001600160a01b0316620010c65760405162461bcd60e51b8152600401620007719062002e34565b600c54600b5460405163e9dc637560e01b81526001600160a01b039283169263e9dc637592620010fe92911690869060040162002c52565b60006040518083038186803b1580156200111757600080fd5b505afa1580156200112c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200069a919081019062002109565b600a546001600160a01b03163314620011835760405162461bcd60e51b8152600401620007719062002db6565b600b805460ff60a01b1916600160a01b179055565b600a546001600160a01b03163314620011c55760405162461bcd60e51b8152600401620007719062002db6565b6001600160a01b038116620011ee5760405162461bcd60e51b8152600401620007719062002cba565b620011f981620016ae565b50565b60006001600160e01b031982166380ac58cd60e01b14806200122e57506001600160e01b03198216635b5e139f60e01b145b806200069a57506301ffc9a760e01b6001600160e01b03198316146200069a565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190620012868262000b76565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b62000d0d82826040518060200160405280600081525062001870565b600b5460405162469e9360e61b815260009182916001600160a01b03909116906311a7a4c0906200131190869060040162002e6a565b60006040518083038186803b1580156200132a57600080fd5b505afa1580156200133f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262001369919081019062001f6d565b50979b9a5050505050505050505050565b606081306040516024016200139192919062002c23565b60408051601f198184030181529190526020810180516001600160e01b0316630eb38f4b60e31b17905292915050565b6001600160a01b038216620013ea5760405162461bcd60e51b8152600401620007719062002d80565b6000818152600260205260409020546001600160a01b031615620014225760405162461bcd60e51b8152600401620007719062002ccc565b6200143060008383620018aa565b6001600160a01b03821660009081526003602052604081208054600192906200145b90849062002f7e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600260205260408120546001600160a01b0316620014f05760405162461bcd60e51b8152600401620007719062002d26565b6000620014fd8362000b76565b9050806001600160a01b0316846001600160a01b031614806200153b5750836001600160a01b031662001530846200073a565b6001600160a01b0316145b80620008c857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16620008c8565b826001600160a01b0316620015868262000b76565b6001600160a01b031614620015af5760405162461bcd60e51b8152600401620007719062002dc8565b6001600160a01b038216620015d85760405162461bcd60e51b8152600401620007719062002cf0565b620015e5838383620018aa565b620015f26000826200124f565b6001600160a01b03831660009081526003602052604081208054600192906200161d90849062002f99565b90915550506001600160a01b03821660009081526003602052604081208054600192906200164d90849062002f7e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006200170d8262000b76565b90506200171d81600084620018aa565b6200172a6000836200124f565b6001600160a01b03811660009081526003602052604081208054600192906200175590849062002f99565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606060405180602001620017c39062001c4d565b601f1982820381018352601f90910116604052600b546001600160a01b0316620017ed846200137a565b6040516020016200180092919062002bef565b60408051601f198184030181529082905262001820929160200162002b77565b6040516020818303038152906040529050919050565b6200184384848462001571565b62001851848484846200196e565b620009ba5760405162461bcd60e51b8152600401620007719062002ca8565b6200187c8383620013c1565b6200188b60008484846200196e565b620008245760405162461bcd60e51b8152600401620007719062002ca8565b6001600160a01b03831662001908576200190281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6200192e565b816001600160a01b0316836001600160a01b0316146200192e576200192e838262001a87565b6001600160a01b0382166200194857620008248162001b29565b826001600160a01b0316826001600160a01b031614620008245762000824828262001c07565b60006001600160a01b0384163b1562001a7e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290620019b590339089908890889060040162002ba3565b602060405180830381600087803b158015620019d057600080fd5b505af192505050801562001a03575060408051601f3d908101601f1916820190925262001a0091810190620020e8565b60015b62001a63573d80801562001a34576040519150601f19603f3d011682016040523d82523d6000602084013e62001a39565b606091505b50805162001a5b5760405162461bcd60e51b8152600401620007719062002ca8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050620008c8565b506001620008c8565b6000600162001a968462000bae565b62001aa2919062002f99565b60008381526007602052604090205490915080821462001af6576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009062001b3d9060019062002f99565b6000838152600960205260408120546008805493945090928490811062001b7457634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811062001ba457634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548062001beb57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600062001c148362000bae565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6102db80620030fd83390190565b600062001c7262001c6c8462002f50565b62002f31565b90508281526020810184848401111562001c8b57600080fd5b62001c9884828562002fd2565b509392505050565b600062001cb162001c6c8462002f50565b90508281526020810184848401111562001cca57600080fd5b62001c9884828562002fde565b80356200069a81620030c4565b80516200069a81620030c4565b80356200069a81620030db565b80516200069a81620030db565b80516200069a81620030e4565b80356200069a81620030eb565b80516200069a81620030eb565b600082601f83011262001d4457600080fd5b8135620008c884826020860162001c5b565b60008083601f84011262001d6957600080fd5b50813567ffffffffffffffff81111562001d8257600080fd5b60208301915083600182028301111562000e9957600080fd5b600082601f83011262001dad57600080fd5b8151620008c884826020860162001ca0565b80356200069a81620030e4565b60006020828403121562001ddf57600080fd5b6000620008c8848462001cd7565b6000806040838503121562001e0157600080fd5b600062001e0f858562001cd7565b925050602062001e228582860162001cd7565b9150509250929050565b60008060006060848603121562001e4257600080fd5b600062001e50868662001cd7565b935050602062001e638682870162001cd7565b925050604062001e768682870162001dbf565b9150509250925092565b6000806000806080858703121562001e9757600080fd5b600062001ea5878762001cd7565b945050602062001eb88782880162001cd7565b935050604062001ecb8782880162001dbf565b925050606085013567ffffffffffffffff81111562001ee957600080fd5b62001ef78782880162001d32565b91505092959194509250565b6000806040838503121562001f1757600080fd5b600062001f25858562001cd7565b925050602062001e228582860162001cf1565b6000806040838503121562001f4c57600080fd5b600062001f5a858562001cd7565b925050602062001e228582860162001dbf565b6000806000806000806000806000806101408b8d03121562001f8e57600080fd5b600062001f9c8d8d62001ce4565b9a5050602062001faf8d828e0162001d0b565b995050604062001fc28d828e0162001d0b565b985050606062001fd58d828e0162001d0b565b975050608062001fe88d828e0162001d0b565b96505060a08b015167ffffffffffffffff8111156200200657600080fd5b620020148d828e0162001d9b565b95505060c08b015167ffffffffffffffff8111156200203257600080fd5b620020408d828e0162001d9b565b94505060e08b015167ffffffffffffffff8111156200205e57600080fd5b6200206c8d828e0162001d9b565b935050610100620020808d828e0162001cfe565b925050610120620020948d828e0162001cfe565b9150509295989b9194979a5092959850565b600060208284031215620020b957600080fd5b6000620008c8848462001d0b565b600060208284031215620020da57600080fd5b6000620008c8848462001d18565b600060208284031215620020fb57600080fd5b6000620008c8848462001d25565b6000602082840312156200211c57600080fd5b815167ffffffffffffffff8111156200213457600080fd5b620008c88482850162001d9b565b6000602082840312156200215557600080fd5b6000620008c8848462001dbf565b600080604083850312156200217757600080fd5b600062001e0f858562001dbf565b60008060008060008060008060a0898b031215620021a257600080fd5b6000620021b08b8b62001dbf565b985050602089013567ffffffffffffffff811115620021ce57600080fd5b620021dc8b828c0162001d56565b9750975050604089013567ffffffffffffffff811115620021fc57600080fd5b6200220a8b828c0162001d56565b9550955050606089013567ffffffffffffffff8111156200222a57600080fd5b620022388b828c0162001d56565b935093505060806200224d8b828c0162001cf1565b9150509295985092959890939650565b600080600080608085870312156200227457600080fd5b600062002282878762001dbf565b9450506020620022958782880162001dbf565b9350506040620022a88782880162001dbf565b925050606062001ef78782880162001dbf565b620022c68162002fb3565b82525050565b620022c6620022db8262002fb3565b6200306e565b801515620022c6565b6001600160f81b03198116620022c6565b80620022c6565b60006200230d825190565b8084526020840193506200232681856020860162002fde565b601f19601f8201165b9093019392505050565b600062002344825190565b6200235481856020860162002fde565b9290920192915050565b620022c68162002fc5565b81835260006020840193506200238183858462002fd2565b601f19601f8401166200232f565b602e81526000602082017f4b65746865724e46543a20756e7772617020666f722073656e6465722074686181526d3a1034b9903737ba1037bbb732b960911b602082015291505b5060400190565b602b81526000602082017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b60208201529150620023d6565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60208201529150620023d6565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150620023d6565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815291505b5060200190565b603d81526000602082017f4b65746865724e46543a206f776e6572206e6565647320746f2062652074686581527f20636f727265637420707265636f6d6d6974746564206164647265737300000060208201529150620023d6565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b60208201529150620023d6565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150620024ea565b602981526000602082017f4b65746865724e46543a20757067726164696e672072656e646572657220697381526808191a5cd8589b195960ba1b60208201529150620023d6565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b60208201529150620023d6565b603281526000602082017f4b65746865724e46543a207075626c69736820666f722073656e646572207468815271185d081a5cc81b9bdd08185c1c1c9bdd995960721b60208201529150620023d6565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060208201529150620023d6565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b60208201529150620023d6565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b60208201529150620023d6565b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000620024ea565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b60208201529150620023d6565b602b81526000602082017f4b65746865724e46543a20756e77726170206f776e657273686970207472616e81526a1cd9995c8819985a5b195960aa1b60208201529150620023d6565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000620024ea565b602981526000602082017f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b60208201529150620023d6565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b60208201529150620023d6565b603481526000602082017f4b65746865724e46543a207265636f766572792063616e206f6e6c7920626520815273646f6e65206f6e20756e6d696e7465642061647360601b60208201529150620023d6565b603181526000602082017f4b65746865724e46543a206f776e6572206e6565647320746f206265204b657481527006865724e4654206166746572207772617607c1b60208201529150620023d6565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60208201529150620023d6565b602c81526000602082017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b60208201529150620023d6565b602181526000602082017f4b65746865724e46543a20746f6b656e496420646f6573206e6f7420657869738152601d60fa1b60208201529150620023d6565b601981526000602082017f4b65746865724e46543a20696e76616c6964205f6f776e65720000000000000081529150620024ea565b602281526000602082017f4b65746865724e46543a206164206e6f742068656c6420627920636f6e74726181526118dd60f21b60208201529150620023d6565b600062002b098284620022cc565b50601401919050565b600062002b208287620022ea565b60018201915062002b328286620022cc565b60148201915062002b448285620022fb565b60208201915062002b568284620022fb565b50602001949350505050565b600062002b70828462002339565b9392505050565b600062002b85828562002339565b9150620008c8828462002339565b602081016200069a8284620022bb565b6080810162002bb38287620022bb565b62002bc26020830186620022bb565b62002bd16040830185620022fb565b818103606083015262002be5818462002302565b9695505050505050565b6040810162002bff8285620022bb565b8181036020830152620008c8818462002302565b602081016200069a8284620022e1565b6040810162002c338285620022fb565b62002b706020830184620022bb565b602081016200069a82846200235e565b6040810162002c6282856200235e565b62002b706020830184620022fb565b6020808252810162002b70818462002302565b602080825281016200069a816200238f565b602080825281016200069a81620023dd565b602080825281016200069a8162002426565b602080825281016200069a8162002476565b602080825281016200069a81620024ba565b602080825281016200069a81620024f1565b602080825281016200069a816200254c565b602080825281016200069a816200258e565b602080825281016200069a81620025c3565b602080825281016200069a816200260a565b602080825281016200069a8162002654565b602080825281016200069a81620026a4565b602080825281016200069a81620026ff565b602080825281016200069a8162002747565b602080825281016200069a816200278e565b602080825281016200069a81620027c1565b602080825281016200069a816200280b565b602080825281016200069a8162002854565b602080825281016200069a8162002887565b602080825281016200069a81620028ce565b602080825281016200069a816200290d565b602080825281016200069a816200295f565b602080825281016200069a81620029ae565b602080825281016200069a81620029fd565b602080825281016200069a8162002a47565b602080825281016200069a8162002a86565b602080825281016200069a8162002abb565b602081016200069a8284620022fb565b60a0810162002e8a828b620022fb565b818103602083015262002e9f81898b62002369565b9050818103604083015262002eb681878962002369565b9050818103606083015262002ecd81858762002369565b905062002ede6080830184620022e1565b9998505050505050505050565b6080810162002efb8287620022fb565b62002f0a6020830186620022fb565b62002f196040830185620022fb565b62002f286060830184620022fb565b95945050505050565b600062002f3d60405190565b905062002f4b82826200303e565b919050565b600067ffffffffffffffff82111562002f6d5762002f6d620030ae565b601f19601f83011660200192915050565b6000821982111562002f945762002f9462003082565b500190565b60008282101562002fae5762002fae62003082565b500390565b60006001600160a01b0382166200069a565b60006200069a8262002fb3565b82818337506000910152565b60005b8381101562002ffb57818101518382015260200162002fe1565b83811115620009ba5750506000910152565b6002810460018216806200302257607f821691505b6020821081141562003038576200303862003098565b50919050565b601f19601f830116810181811067ffffffffffffffff82111715620030675762003067620030ae565b6040525050565b60006200069a8260006200069a8260601b90565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b620030cf8162002fb3565b8114620011f957600080fd5b801515620030cf565b80620030cf565b6001600160e01b03198116620030cf56fe608060405234801561001057600080fd5b506040516102db3803806102db83398101604081905261002f91610139565b6000826001600160a01b03168260405161004991906101ac565b6000604051808303816000865af19150503d8060008114610086576040519150601f19603f3d011682016040523d82523d6000602084013e61008b565b606091505b50509050806100b55760405162461bcd60e51b81526004016100ac906101bf565b60405180910390fd5b826001600160a01b0316ff5b60006100d46100cf84610216565b6101fa565b9050828152602081018484840111156100ec57600080fd5b6100f7848285610251565b509392505050565b805161010a816102c3565b92915050565b600082601f83011261012157600080fd5b81516101318482602086016100c1565b949350505050565b6000806040838503121561014c57600080fd5b600061015885856100ff565b92505060208301516001600160401b0381111561017457600080fd5b61018085828601610110565b9150509250929050565b6000610194825190565b6101a2818560208601610251565b9290920192915050565b60006101b8828461018a565b9392505050565b6020808252810161010a81601f81527f466c617368457363726f773a207461726765742063616c6c206661696c656400602082015260400190565b600061020560405190565b90506102118282610281565b919050565b60006001600160401b0382111561022f5761022f6102ad565b601f19601f83011660200192915050565b60006001600160a01b03821661010a565b60005b8381101561026c578181015183820152602001610254565b8381111561027b576000848401525b50505050565b601f19601f83011681018181106001600160401b03821117156102a6576102a66102ad565b6040525050565b634e487b7160e01b600052604160045260246000fd5b6102cc81610240565b81146102d757600080fd5b5056fea2646970667358221220ec9f6ffd517cd5d724cef501405b90a4d0c9b84c6dabd8bd8c68f2564e6c7bfd64736f6c63430008040033000000000000000000000000b5fe93ccfec708145d6278b0c71ce60aa75ef925000000000000000000000000228c17030a866ccbf6734fa4262dee64f0e392be
Deployed Bytecode
0x608060405260043610620001f35760003560e01c806370a08231116200010b57806395d89b4111620000a1578063c87b56dd116200006c578063c87b56dd14620005c3578063e985e9c514620005e8578063ee90fe6d1462000635578063f2fde38b146200064d57600080fd5b806395d89b41146200053c578063a22cb4651462000554578063b0fb2d0f1462000579578063b88d4fde146200059e57600080fd5b80637e26fbca11620000e25780637e26fbca14620004a05780638ada6b0f14620004c55780638da5cb5b14620004e7578063947695bf146200050757600080fd5b806370a08231146200043e578063715018a614620004635780637647691d146200047b57600080fd5b806318160ddd116200018d57806345ebc145116200015857806345ebc14514620003b95780634f6ccce714620003de5780636352211e14620004035780636c0360eb146200042857600080fd5b806318160ddd146200033357806323b872dd146200034a5780632f745c59146200036f57806342842e0e146200039457600080fd5b8063081812fc11620001ce578063081812fc146200028d578063095ea7b314620002c15780631281311d14620002e857806313bac820146200030e57600080fd5b806301ffc9a714620001f8578063022ec095146200023557806306fdde031462000266575b600080fd5b3480156200020557600080fd5b506200021d62000217366004620020c7565b62000672565b6040516200022c919062002c13565b60405180910390f35b3480156200024257600080fd5b50600b5462000257906001600160a01b031681565b6040516200022c919062002c42565b3480156200027357600080fd5b506200027e620006a0565b6040516200022c919062002c71565b3480156200029a57600080fd5b50620002b2620002ac36600462002142565b6200073a565b6040516200022c919062002b93565b348015620002ce57600080fd5b50620002e6620002e036600462001f38565b62000796565b005b620002ff620002f93660046200225d565b62000829565b6040516200022c919062002e6a565b3480156200031b57600080fd5b50620002e66200032d36600462002163565b620008d0565b3480156200034057600080fd5b50600854620002ff565b3480156200035757600080fd5b50620002e66200036936600462001e2c565b620009c0565b3480156200037c57600080fd5b50620002ff6200038e36600462001f38565b620009f8565b348015620003a157600080fd5b50620002e6620003b336600462001e2c565b62000a4f565b348015620003c657600080fd5b50620002e6620003d836600462002185565b62000a6c565b348015620003eb57600080fd5b50620002ff620003fd36600462002142565b62000b15565b3480156200041057600080fd5b50620002b26200042236600462002142565b62000b76565b3480156200043557600080fd5b5060606200027e565b3480156200044b57600080fd5b50620002ff6200045d36600462001dcc565b62000bae565b3480156200047057600080fd5b50620002e662000bf5565b3480156200048857600080fd5b50620002e66200049a36600462002163565b62000c30565b348015620004ad57600080fd5b50620002e6620004bf36600462001dcc565b62000d11565b348015620004d257600080fd5b50600c5462000257906001600160a01b031681565b348015620004f457600080fd5b50600a546001600160a01b0316620002b2565b3480156200051457600080fd5b506200052c6200052636600462002163565b62000d8d565b6040516200022c92919062002c23565b3480156200054957600080fd5b506200027e62000ea0565b3480156200056157600080fd5b50620002e66200057336600462001f03565b62000eb1565b3480156200058657600080fd5b50620002e66200059836600462002163565b62000f4e565b348015620005ab57600080fd5b50620002e6620005bd36600462001e80565b62001054565b348015620005d057600080fd5b506200027e620005e236600462002142565b6200108c565b348015620005f557600080fd5b506200021d6200060736600462001ded565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156200064257600080fd5b50620002e662001156565b3480156200065a57600080fd5b50620002e66200066c36600462001dcc565b62001198565b60006001600160e01b0319821663780e9d6360e01b14806200069a57506200069a82620011fc565b92915050565b606060008054620006b1906200300d565b80601f0160208091040260200160405190810160405280929190818152602001828054620006df906200300d565b8015620007305780601f10620007045761010080835404028352916020019162000730565b820191906000526020600020905b8154815290600101906020018083116200071257829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166200077a5760405162461bcd60e51b8152600401620007719062002d92565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000620007a38262000b76565b9050806001600160a01b0316836001600160a01b03161415620007da5760405162461bcd60e51b8152600401620007719062002dda565b336001600160a01b0382161480620007f95750620007f9813362000607565b620008185760405162461bcd60e51b8152600401620007719062002d4a565b6200082483836200124f565b505050565b600b54604051631281311d60e01b81526000916001600160a01b031690631281311d9034906200086490899089908990899060040162002eeb565b6020604051808303818588803b1580156200087e57600080fd5b505af115801562000893573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190620008ba9190620020a6565b9050620008c83382620012bf565b949350505050565b600080620008df848462000d8d565b91509150806001600160a01b0316620008f885620012db565b6001600160a01b031614620009215760405162461bcd60e51b8152600401620007719062002cde565b600b5482906001600160a01b03166200093a866200137a565b604051620009489062001c4d565b6200095592919062002bef565b8190604051809103906000f590508015801562000976573d6000803e3d6000fd5b503090506200098585620012db565b6001600160a01b031614620009ae5760405162461bcd60e51b8152600401620007719062002dfe565b620009ba8385620013c1565b50505050565b620009cc3382620014b9565b620009eb5760405162461bcd60e51b8152600401620007719062002e10565b6200082483838362001571565b600062000a058362000bae565b821062000a265760405162461bcd60e51b8152600401620007719062002c96565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b620008248383836040518060200160405280600081525062001054565b62000a783389620014b9565b62000a975760405162461bcd60e51b8152600401620007719062002d38565b600b546040516345ebc14560e01b81526001600160a01b03909116906345ebc1459062000ad7908b908b908b908b908b908b908b908b9060040162002e7a565b600060405180830381600087803b15801562000af257600080fd5b505af115801562000b07573d6000803e3d6000fd5b505050505050505050505050565b600062000b2160085490565b821062000b425760405162461bcd60e51b8152600401620007719062002e22565b6008828154811062000b6457634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806200069a5760405162461bcd60e51b8152600401620007719062002d6e565b60006001600160a01b03821662000bd95760405162461bcd60e51b8152600401620007719062002d5c565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b0316331462000c225760405162461bcd60e51b8152600401620007719062002db6565b62000c2e6000620016ae565b565b62000c3d335b83620014b9565b62000c5c5760405162461bcd60e51b8152600401620007719062002c84565b600b54604051630eb38f4b60e31b81526001600160a01b039091169063759c7a589062000c90908590859060040162002c23565b600060405180830381600087803b15801562000cab57600080fd5b505af115801562000cc0573d6000803e3d6000fd5b50505050806001600160a01b031662000cd983620012db565b6001600160a01b03161462000d025760405162461bcd60e51b8152600401620007719062002da4565b62000d0d8262001700565b5050565b600a546001600160a01b0316331462000d3e5760405162461bcd60e51b8152600401620007719062002db6565b600b54600160a01b900460ff161562000d6b5760405162461bcd60e51b8152600401620007719062002d14565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6000806001600160a01b038316301480159062000db257506001600160a01b03831615155b62000dd15760405162461bcd60e51b8152600401620007719062002e46565b60028360405160200162000de6919062002afb565b60408051601f198184030181529082905262000e029162002b62565b602060405180830381855afa15801562000e20573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019062000e459190620020a6565b9150600062000e5485620017af565b9050600060ff60f81b3085848051906020012060405160200162000e7c949392919062002b12565b60408051601f198184030181529190528051602090910120925050505b9250929050565b606060018054620006b1906200300d565b6001600160a01b03821633141562000edd5760405162461bcd60e51b8152600401620007719062002d02565b3360008181526005602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319062000f4290859062002c13565b60405180910390a35050565b600a546001600160a01b0316331462000f7b5760405162461bcd60e51b8152600401620007719062002db6565b6000828152600260205260409020546001600160a01b03161562000fb35760405162461bcd60e51b8152600401620007719062002dec565b3062000fbf83620012db565b6001600160a01b03161462000fe85760405162461bcd60e51b8152600401620007719062002e58565b600b54604051630eb38f4b60e31b81526001600160a01b039091169063759c7a58906200101c908590859060040162002c23565b600060405180830381600087803b1580156200103757600080fd5b505af11580156200104c573d6000803e3d6000fd5b505050505050565b6200105f3362000c36565b6200107e5760405162461bcd60e51b8152600401620007719062002e10565b620009ba8484848462001836565b6000818152600260205260409020546060906001600160a01b0316620010c65760405162461bcd60e51b8152600401620007719062002e34565b600c54600b5460405163e9dc637560e01b81526001600160a01b039283169263e9dc637592620010fe92911690869060040162002c52565b60006040518083038186803b1580156200111757600080fd5b505afa1580156200112c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200069a919081019062002109565b600a546001600160a01b03163314620011835760405162461bcd60e51b8152600401620007719062002db6565b600b805460ff60a01b1916600160a01b179055565b600a546001600160a01b03163314620011c55760405162461bcd60e51b8152600401620007719062002db6565b6001600160a01b038116620011ee5760405162461bcd60e51b8152600401620007719062002cba565b620011f981620016ae565b50565b60006001600160e01b031982166380ac58cd60e01b14806200122e57506001600160e01b03198216635b5e139f60e01b145b806200069a57506301ffc9a760e01b6001600160e01b03198316146200069a565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190620012868262000b76565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b62000d0d82826040518060200160405280600081525062001870565b600b5460405162469e9360e61b815260009182916001600160a01b03909116906311a7a4c0906200131190869060040162002e6a565b60006040518083038186803b1580156200132a57600080fd5b505afa1580156200133f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262001369919081019062001f6d565b50979b9a5050505050505050505050565b606081306040516024016200139192919062002c23565b60408051601f198184030181529190526020810180516001600160e01b0316630eb38f4b60e31b17905292915050565b6001600160a01b038216620013ea5760405162461bcd60e51b8152600401620007719062002d80565b6000818152600260205260409020546001600160a01b031615620014225760405162461bcd60e51b8152600401620007719062002ccc565b6200143060008383620018aa565b6001600160a01b03821660009081526003602052604081208054600192906200145b90849062002f7e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600260205260408120546001600160a01b0316620014f05760405162461bcd60e51b8152600401620007719062002d26565b6000620014fd8362000b76565b9050806001600160a01b0316846001600160a01b031614806200153b5750836001600160a01b031662001530846200073a565b6001600160a01b0316145b80620008c857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16620008c8565b826001600160a01b0316620015868262000b76565b6001600160a01b031614620015af5760405162461bcd60e51b8152600401620007719062002dc8565b6001600160a01b038216620015d85760405162461bcd60e51b8152600401620007719062002cf0565b620015e5838383620018aa565b620015f26000826200124f565b6001600160a01b03831660009081526003602052604081208054600192906200161d90849062002f99565b90915550506001600160a01b03821660009081526003602052604081208054600192906200164d90849062002f7e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006200170d8262000b76565b90506200171d81600084620018aa565b6200172a6000836200124f565b6001600160a01b03811660009081526003602052604081208054600192906200175590849062002f99565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606060405180602001620017c39062001c4d565b601f1982820381018352601f90910116604052600b546001600160a01b0316620017ed846200137a565b6040516020016200180092919062002bef565b60408051601f198184030181529082905262001820929160200162002b77565b6040516020818303038152906040529050919050565b6200184384848462001571565b62001851848484846200196e565b620009ba5760405162461bcd60e51b8152600401620007719062002ca8565b6200187c8383620013c1565b6200188b60008484846200196e565b620008245760405162461bcd60e51b8152600401620007719062002ca8565b6001600160a01b03831662001908576200190281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6200192e565b816001600160a01b0316836001600160a01b0316146200192e576200192e838262001a87565b6001600160a01b0382166200194857620008248162001b29565b826001600160a01b0316826001600160a01b031614620008245762000824828262001c07565b60006001600160a01b0384163b1562001a7e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290620019b590339089908890889060040162002ba3565b602060405180830381600087803b158015620019d057600080fd5b505af192505050801562001a03575060408051601f3d908101601f1916820190925262001a0091810190620020e8565b60015b62001a63573d80801562001a34576040519150601f19603f3d011682016040523d82523d6000602084013e62001a39565b606091505b50805162001a5b5760405162461bcd60e51b8152600401620007719062002ca8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050620008c8565b506001620008c8565b6000600162001a968462000bae565b62001aa2919062002f99565b60008381526007602052604090205490915080821462001af6576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009062001b3d9060019062002f99565b6000838152600960205260408120546008805493945090928490811062001b7457634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811062001ba457634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548062001beb57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600062001c148362000bae565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6102db80620030fd83390190565b600062001c7262001c6c8462002f50565b62002f31565b90508281526020810184848401111562001c8b57600080fd5b62001c9884828562002fd2565b509392505050565b600062001cb162001c6c8462002f50565b90508281526020810184848401111562001cca57600080fd5b62001c9884828562002fde565b80356200069a81620030c4565b80516200069a81620030c4565b80356200069a81620030db565b80516200069a81620030db565b80516200069a81620030e4565b80356200069a81620030eb565b80516200069a81620030eb565b600082601f83011262001d4457600080fd5b8135620008c884826020860162001c5b565b60008083601f84011262001d6957600080fd5b50813567ffffffffffffffff81111562001d8257600080fd5b60208301915083600182028301111562000e9957600080fd5b600082601f83011262001dad57600080fd5b8151620008c884826020860162001ca0565b80356200069a81620030e4565b60006020828403121562001ddf57600080fd5b6000620008c8848462001cd7565b6000806040838503121562001e0157600080fd5b600062001e0f858562001cd7565b925050602062001e228582860162001cd7565b9150509250929050565b60008060006060848603121562001e4257600080fd5b600062001e50868662001cd7565b935050602062001e638682870162001cd7565b925050604062001e768682870162001dbf565b9150509250925092565b6000806000806080858703121562001e9757600080fd5b600062001ea5878762001cd7565b945050602062001eb88782880162001cd7565b935050604062001ecb8782880162001dbf565b925050606085013567ffffffffffffffff81111562001ee957600080fd5b62001ef78782880162001d32565b91505092959194509250565b6000806040838503121562001f1757600080fd5b600062001f25858562001cd7565b925050602062001e228582860162001cf1565b6000806040838503121562001f4c57600080fd5b600062001f5a858562001cd7565b925050602062001e228582860162001dbf565b6000806000806000806000806000806101408b8d03121562001f8e57600080fd5b600062001f9c8d8d62001ce4565b9a5050602062001faf8d828e0162001d0b565b995050604062001fc28d828e0162001d0b565b985050606062001fd58d828e0162001d0b565b975050608062001fe88d828e0162001d0b565b96505060a08b015167ffffffffffffffff8111156200200657600080fd5b620020148d828e0162001d9b565b95505060c08b015167ffffffffffffffff8111156200203257600080fd5b620020408d828e0162001d9b565b94505060e08b015167ffffffffffffffff8111156200205e57600080fd5b6200206c8d828e0162001d9b565b935050610100620020808d828e0162001cfe565b925050610120620020948d828e0162001cfe565b9150509295989b9194979a5092959850565b600060208284031215620020b957600080fd5b6000620008c8848462001d0b565b600060208284031215620020da57600080fd5b6000620008c8848462001d18565b600060208284031215620020fb57600080fd5b6000620008c8848462001d25565b6000602082840312156200211c57600080fd5b815167ffffffffffffffff8111156200213457600080fd5b620008c88482850162001d9b565b6000602082840312156200215557600080fd5b6000620008c8848462001dbf565b600080604083850312156200217757600080fd5b600062001e0f858562001dbf565b60008060008060008060008060a0898b031215620021a257600080fd5b6000620021b08b8b62001dbf565b985050602089013567ffffffffffffffff811115620021ce57600080fd5b620021dc8b828c0162001d56565b9750975050604089013567ffffffffffffffff811115620021fc57600080fd5b6200220a8b828c0162001d56565b9550955050606089013567ffffffffffffffff8111156200222a57600080fd5b620022388b828c0162001d56565b935093505060806200224d8b828c0162001cf1565b9150509295985092959890939650565b600080600080608085870312156200227457600080fd5b600062002282878762001dbf565b9450506020620022958782880162001dbf565b9350506040620022a88782880162001dbf565b925050606062001ef78782880162001dbf565b620022c68162002fb3565b82525050565b620022c6620022db8262002fb3565b6200306e565b801515620022c6565b6001600160f81b03198116620022c6565b80620022c6565b60006200230d825190565b8084526020840193506200232681856020860162002fde565b601f19601f8201165b9093019392505050565b600062002344825190565b6200235481856020860162002fde565b9290920192915050565b620022c68162002fc5565b81835260006020840193506200238183858462002fd2565b601f19601f8401166200232f565b602e81526000602082017f4b65746865724e46543a20756e7772617020666f722073656e6465722074686181526d3a1034b9903737ba1037bbb732b960911b602082015291505b5060400190565b602b81526000602082017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b60208201529150620023d6565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60208201529150620023d6565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150620023d6565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815291505b5060200190565b603d81526000602082017f4b65746865724e46543a206f776e6572206e6565647320746f2062652074686581527f20636f727265637420707265636f6d6d6974746564206164647265737300000060208201529150620023d6565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b60208201529150620023d6565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150620024ea565b602981526000602082017f4b65746865724e46543a20757067726164696e672072656e646572657220697381526808191a5cd8589b195960ba1b60208201529150620023d6565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b60208201529150620023d6565b603281526000602082017f4b65746865724e46543a207075626c69736820666f722073656e646572207468815271185d081a5cc81b9bdd08185c1c1c9bdd995960721b60208201529150620023d6565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060208201529150620023d6565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b60208201529150620023d6565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b60208201529150620023d6565b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000620024ea565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b60208201529150620023d6565b602b81526000602082017f4b65746865724e46543a20756e77726170206f776e657273686970207472616e81526a1cd9995c8819985a5b195960aa1b60208201529150620023d6565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000620024ea565b602981526000602082017f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b60208201529150620023d6565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b60208201529150620023d6565b603481526000602082017f4b65746865724e46543a207265636f766572792063616e206f6e6c7920626520815273646f6e65206f6e20756e6d696e7465642061647360601b60208201529150620023d6565b603181526000602082017f4b65746865724e46543a206f776e6572206e6565647320746f206265204b657481527006865724e4654206166746572207772617607c1b60208201529150620023d6565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60208201529150620023d6565b602c81526000602082017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b60208201529150620023d6565b602181526000602082017f4b65746865724e46543a20746f6b656e496420646f6573206e6f7420657869738152601d60fa1b60208201529150620023d6565b601981526000602082017f4b65746865724e46543a20696e76616c6964205f6f776e65720000000000000081529150620024ea565b602281526000602082017f4b65746865724e46543a206164206e6f742068656c6420627920636f6e74726181526118dd60f21b60208201529150620023d6565b600062002b098284620022cc565b50601401919050565b600062002b208287620022ea565b60018201915062002b328286620022cc565b60148201915062002b448285620022fb565b60208201915062002b568284620022fb565b50602001949350505050565b600062002b70828462002339565b9392505050565b600062002b85828562002339565b9150620008c8828462002339565b602081016200069a8284620022bb565b6080810162002bb38287620022bb565b62002bc26020830186620022bb565b62002bd16040830185620022fb565b818103606083015262002be5818462002302565b9695505050505050565b6040810162002bff8285620022bb565b8181036020830152620008c8818462002302565b602081016200069a8284620022e1565b6040810162002c338285620022fb565b62002b706020830184620022bb565b602081016200069a82846200235e565b6040810162002c6282856200235e565b62002b706020830184620022fb565b6020808252810162002b70818462002302565b602080825281016200069a816200238f565b602080825281016200069a81620023dd565b602080825281016200069a8162002426565b602080825281016200069a8162002476565b602080825281016200069a81620024ba565b602080825281016200069a81620024f1565b602080825281016200069a816200254c565b602080825281016200069a816200258e565b602080825281016200069a81620025c3565b602080825281016200069a816200260a565b602080825281016200069a8162002654565b602080825281016200069a81620026a4565b602080825281016200069a81620026ff565b602080825281016200069a8162002747565b602080825281016200069a816200278e565b602080825281016200069a81620027c1565b602080825281016200069a816200280b565b602080825281016200069a8162002854565b602080825281016200069a8162002887565b602080825281016200069a81620028ce565b602080825281016200069a816200290d565b602080825281016200069a816200295f565b602080825281016200069a81620029ae565b602080825281016200069a81620029fd565b602080825281016200069a8162002a47565b602080825281016200069a8162002a86565b602080825281016200069a8162002abb565b602081016200069a8284620022fb565b60a0810162002e8a828b620022fb565b818103602083015262002e9f81898b62002369565b9050818103604083015262002eb681878962002369565b9050818103606083015262002ecd81858762002369565b905062002ede6080830184620022e1565b9998505050505050505050565b6080810162002efb8287620022fb565b62002f0a6020830186620022fb565b62002f196040830185620022fb565b62002f286060830184620022fb565b95945050505050565b600062002f3d60405190565b905062002f4b82826200303e565b919050565b600067ffffffffffffffff82111562002f6d5762002f6d620030ae565b601f19601f83011660200192915050565b6000821982111562002f945762002f9462003082565b500190565b60008282101562002fae5762002fae62003082565b500390565b60006001600160a01b0382166200069a565b60006200069a8262002fb3565b82818337506000910152565b60005b8381101562002ffb57818101518382015260200162002fe1565b83811115620009ba5750506000910152565b6002810460018216806200302257607f821691505b6020821081141562003038576200303862003098565b50919050565b601f19601f830116810181811067ffffffffffffffff82111715620030675762003067620030ae565b6040525050565b60006200069a8260006200069a8260601b90565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b620030cf8162002fb3565b8114620011f957600080fd5b801515620030cf565b80620030cf565b6001600160e01b03198116620030cf56fe608060405234801561001057600080fd5b506040516102db3803806102db83398101604081905261002f91610139565b6000826001600160a01b03168260405161004991906101ac565b6000604051808303816000865af19150503d8060008114610086576040519150601f19603f3d011682016040523d82523d6000602084013e61008b565b606091505b50509050806100b55760405162461bcd60e51b81526004016100ac906101bf565b60405180910390fd5b826001600160a01b0316ff5b60006100d46100cf84610216565b6101fa565b9050828152602081018484840111156100ec57600080fd5b6100f7848285610251565b509392505050565b805161010a816102c3565b92915050565b600082601f83011261012157600080fd5b81516101318482602086016100c1565b949350505050565b6000806040838503121561014c57600080fd5b600061015885856100ff565b92505060208301516001600160401b0381111561017457600080fd5b61018085828601610110565b9150509250929050565b6000610194825190565b6101a2818560208601610251565b9290920192915050565b60006101b8828461018a565b9392505050565b6020808252810161010a81601f81527f466c617368457363726f773a207461726765742063616c6c206661696c656400602082015260400190565b600061020560405190565b90506102118282610281565b919050565b60006001600160401b0382111561022f5761022f6102ad565b601f19601f83011660200192915050565b60006001600160a01b03821661010a565b60005b8381101561026c578181015183820152602001610254565b8381111561027b576000848401525b50505050565b601f19601f83011681018181106001600160401b03821117156102a6576102a66102ad565b6040525050565b634e487b7160e01b600052604160045260246000fd5b6102cc81610240565b81146102d757600080fd5b5056fea2646970667358221220ec9f6ffd517cd5d724cef501405b90a4d0c9b84c6dabd8bd8c68f2564e6c7bfd64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000b5fe93ccfec708145d6278b0c71ce60aa75ef925000000000000000000000000228c17030a866ccbf6734fa4262dee64f0e392be
-----Decoded View---------------
Arg [0] : _ketherContract (address): 0xb5FE93ccfEc708145D6278B0c71Ce60AA75EF925
Arg [1] : _renderer (address): 0x228c17030a866CcBf6734fA4262Dee64f0E392be
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000b5fe93ccfec708145d6278b0c71ce60aa75ef925
Arg [1] : 000000000000000000000000228c17030a866ccbf6734fa4262dee64f0e392be
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.