Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 5 from a total of 5 transactions
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
OneInTenThousand
Compiler Version
v0.8.7+commit.e28d00a7
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.7; /// @title OneInTenThousand /// @author jpegmint.xyz import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@jpegmint/contracts/token/ERC2309/ERC2309.sol"; /** ██╗ ██╗ ██╗ ██████╗ ██████╗ ██████╗ ██████╗ ███║ ██╔╝ ███║██╔═████╗ ██╔═████╗██╔═████╗██╔═████╗ ╚██║ ██╔╝ ╚██║██║██╔██║ ██║██╔██║██║██╔██║██║██╔██║ ██║ ██╔╝ ██║████╔╝██║ ████╔╝██║████╔╝██║████╔╝██║ ██║ ██╔╝ ██║╚██████╔╝▄█╗╚██████╔╝╚██████╔╝╚██████╔╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═════╝ */ contract OneInTenThousand is ERC2309, Ownable { using Strings for uint256; uint256 public constant TOKEN_MAX_SUPPLY = 10000; bytes16 private constant _HEX_SYMBOLS = "0123456789ABCDEF"; address private _initialOwner; error AlreadyMinted(); error URIQueryForNonexistentToken(); constructor() ERC2309("OneInTenThousand", "ONEINTENK") {} function mint() external onlyOwner { if (totalSupply() > 0) revert AlreadyMinted(); _initialOwner = msg.sender; _mint(msg.sender, uint128(TOKEN_MAX_SUPPLY)); } function ownerOf(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert OwnerQueryForNonexistentToken(); return _owners[tokenId] == address(0) ? _initialOwner : _owners[tokenId]; } function tokenURI(uint256 tokenId) public view override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); bytes memory tokenName = abi.encodePacked('#', tokenId.toString(), '/', TOKEN_MAX_SUPPLY.toString()); bytes memory byteString; byteString = abi.encodePacked(byteString, 'data:application/json;utf8,{'); byteString = abi.encodePacked(byteString, '"name": "', tokenName, '",'); byteString = abi.encodePacked(byteString, '"description": ' ,'"**One in Ten Thousand** (b. 2022)\\n\\n', tokenName, '\\n\\n*Hand crafted SVG, 1000 x 1000 pixels*",' ); byteString = abi.encodePacked(byteString, '"image": "data:image/svg+xml;utf8,' ,_generateSvg(tokenId), '"'); byteString = abi.encodePacked(byteString, '}'); return string(byteString); } function _generateColorHexCode(uint256 tokenId) private pure returns (bytes memory) { bytes32 random = keccak256(abi.encodePacked(tokenId)); uint8 r = uint8(random[0]); uint8 g = uint8(random[1]); uint8 b = uint8(random[2]); bytes memory buffer = new bytes(6); buffer[0] = _HEX_SYMBOLS[r >> 4 & 0xf]; buffer[1] = _HEX_SYMBOLS[r & 0xf]; buffer[2] = _HEX_SYMBOLS[g >> 4 & 0xf]; buffer[3] = _HEX_SYMBOLS[g & 0xf]; buffer[4] = _HEX_SYMBOLS[b >> 4 & 0xf]; buffer[5] = _HEX_SYMBOLS[b & 0xf]; return buffer; } function _generateSvg(uint256 tokenId) private pure returns (bytes memory svg) { uint256 x = (tokenId - 1) % 100 * 10; uint256 y = (tokenId - 1) / 100 * 10; svg = abi.encodePacked("<svg xmlns='http://www.w3.org/2000/svg' width='1000' height='1000'>" ,"<defs><pattern id='g' width='20' height='20' patternUnits='userSpaceOnUse'>" ,"<rect x='0' y='0' width='10' height='10' opacity='0.1'/><rect fill='white' x='10' y='0' width='10' height='10'/>" ,"<rect x='10' y='10' width='10' height='10' opacity='0.1'/><rect fill='white' x='0' y='10' width='10' height='10'/>" ,"</pattern></defs><rect fill='url(#g)' x='0' y='0' width='100%' height='100%'/>" ); svg = abi.encodePacked(svg ,"<rect fill='#", _generateColorHexCode(tokenId), "' x='", x.toString(), "' y='", y.toString(), "' width='10' height='10'/>" ,'</svg>' ); return svg; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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 { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "./IERC2309.sol"; import "../ERC721/lean/IERC721LeanEnumerable.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import "@openzeppelin/contracts/utils/Strings.sol"; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard. * Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 1 (e.g. 1, 2, 3..). * * Does not support burning tokens to address(0). */ contract ERC2309 is Context, ERC165, ERC2981, IERC721, IERC2309, IERC721Metadata, IERC721LeanEnumerable { using Address for address; using Strings for uint256; struct AddressData { uint128 balance; uint128 minted; } // Base URI for metadata string public baseURI; // Token name string internal _name; // Token symbol string internal _symbol; // Track total tokens minted uint256 internal _totalSupply; // Mapping from token ID to owner address mapping(uint256 => address) internal _owners; // Mapping owner address to address data mapping(address => AddressData) internal _addressData; // Mapping from token ID to approved address mapping(uint256 => address) internal _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) internal _operatorApprovals; error OwnerNotFound(); error OwnerQueryForNonexistentToken(); error MintToZeroAddress(); error MintZeroQuantity(); error MintedQueryForZeroAddress(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToZeroAddress(); error TokenIndexOutOfBounds(); constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC2981, ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721LeanEnumerable).interfaceId || super.supportsInterface(interfaceId) ; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } function _setBaseURI(string calldata newBaseURI) internal { baseURI = newBaseURI; } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address wallet) public view virtual override returns (uint256) { require(wallet != address(0), "ERC721: balance query for the zero address"); return uint256(_addressData[wallet].balance); } /** * @dev Returns the number of tokens minted by ``wallet``. */ function mintedBy(address wallet) public view virtual returns (uint256) { if (wallet == address(0)) revert MintedQueryForZeroAddress(); return uint256(_addressData[wallet].minted); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), 'ERC721: owner query for nonexistent token'); address tokenOwner = _owners[tokenId]; unchecked { while (tokenOwner == address(0) && tokenId > 0) { tokenOwner = _owners[--tokenId]; } if (tokenId == 0) revert OwnerNotFound(); } return tokenOwner; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId > 0 && tokenId <= _totalSupply; } /** * @dev Mints `quantity` tokens and transfers them to `to`. * Emits a {Transfer} event. */ function _mint(address to, uint128 quantity) internal { if (quantity == 0) revert MintZeroQuantity(); if (to == address(0)) revert MintToZeroAddress(); unchecked { uint256 nextTokenId = _totalSupply + 1; _totalSupply += quantity; _addressData[to].minted += quantity; _addressData[to].balance += quantity; _owners[nextTokenId] = to; emit ConsecutiveTransfer(nextTokenId, _totalSupply, address(0), msg.sender); } } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal { address prevOwner = ownerOf(tokenId); if (to == address(0)) revert TransferToZeroAddress(); if (prevOwner != from) revert TransferFromIncorrectOwner(); _approve(address(0), tokenId); unchecked { _owners[tokenId] = to; _addressData[to].balance += 1; _addressData[from].balance -= 1; uint256 nextTokenId = tokenId + 1; if (_owners[nextTokenId] == address(0)) { if (_exists(nextTokenId)) { _owners[nextTokenId] = prevOwner; } } } emit Transfer(from, to, tokenId); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { uint256 tokenId = index + 1; if (tokenId > totalSupply()) revert TokenIndexOutOfBounds(); return tokenId; } /** ██████╗ ██████╗ ███████╗███╗ ██╗███████╗███████╗██████╗ ██████╗ ███████╗██╗ ██╗███╗ ██╗ ██╔═══██╗██╔══██╗██╔════╝████╗ ██║╚══███╔╝██╔════╝██╔══██╗██╔══██╗██╔════╝██║ ██║████╗ ██║ ██║ ██║██████╔╝█████╗ ██╔██╗ ██║ ███╔╝ █████╗ ██████╔╝██████╔╝█████╗ ██║ ██║██╔██╗ ██║ ██║ ██║██╔═══╝ ██╔══╝ ██║╚██╗██║ ███╔╝ ██╔══╝ ██╔═══╝ ██╔═══╝ ██╔══╝ ██║ ██║██║╚██╗██║ ╚██████╔╝██║ ███████╗██║ ╚████║███████╗███████╗██║ ██║ ███████╗███████╗██║██║ ╚████║ ╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═══╝╚══════╝╚══════╝╚═╝ ╚═╝ ╚══════╝╚══════╝╚═╝╚═╝ ╚═══╝ */ /** * @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 {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = 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 { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: 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 `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 = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev 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 ) internal 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; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; interface IERC2309 is IERC721 { /** @notice This event is emitted when ownership of a consecutive batch of tokens changes by any mechanism. This includes minting, transferring, and burning. @dev The address executing the transaction MUST own all the tokens within the range of fromTokenId and toTokenId, or MUST be an approved operator to act on the owners behalf. The fromTokenId and toTokenId MUST be a consecutive range of tokens IDs. When minting/creating tokens, the `fromAddress` argument MUST be set to `0x0` (i.e. zero address). When burning/destroying tokens, the `toAddress` argument MUST be set to `0x0` (i.e. zero address). @param fromTokenId The token ID that begins the batch of tokens being transferred @param toTokenId The token ID that ends the batch of tokens being transferred @param fromAddress The address transferring ownership of the specified range of tokens @param toAddress The address receiving ownership of the specified range of tokens. */ event ConsecutiveTransfer(uint indexed fromTokenId, uint toTokenId, address indexed fromAddress, address indexed toAddress); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721LeanEnumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `tokenId` must be already minted. * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be payed in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyMinted","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintedQueryForZeroAddress","type":"error"},{"inputs":[],"name":"OwnerNotFound","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"}],"name":"ConsecutiveTransfer","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":"TOKEN_MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"mintedBy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"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"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604080518082018252601081526f13db99525b95195b951a1bdd5cd85b9960821b6020808301918252835180850190945260098452684f4e45494e54454e4b60b81b9084015281519192916200006b91600391620000fa565b50805162000081906004906020840190620000fa565b5050506200009e62000098620000a460201b60201c565b620000a8565b620001dd565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200010890620001a0565b90600052602060002090601f0160209004810192826200012c576000855562000177565b82601f106200014757805160ff191683800117855562000177565b8280016001018555821562000177579182015b82811115620001775782518255916020019190600101906200015a565b506200018592915062000189565b5090565b5b808211156200018557600081556001016200018a565b600181811c90821680620001b557607f821691505b60208210811415620001d757634e487b7160e01b600052602260045260246000fd5b50919050565b6120f680620001ed6000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c80636352211e116100c357806395d89b411161007c57806395d89b41146102b7578063a22cb465146102bf578063b88d4fde146102d2578063c87b56dd146102e5578063e985e9c5146102f8578063f2fde38b1461033457600080fd5b80636352211e146102675780636c0360eb1461027a57806370a0823114610282578063715018a6146102955780638da5cb5b1461029d5780638ee2c4b8146102ae57600080fd5b806318160ddd1161011557806318160ddd146101d757806323b872dd146101e95780632a55205a146101fc5780633cef28d21461022e57806342842e0e146102415780634f6ccce71461025457600080fd5b806301ffc9a71461015257806306fdde031461017a578063081812fc1461018f578063095ea7b3146101ba5780631249c58b146101cf575b600080fd5b61016561016036600461184e565b610347565b60405190151581526020015b60405180910390f35b6101826103a8565b6040516101719190611e6f565b6101a261019d366004611888565b61043a565b6040516001600160a01b039091168152602001610171565b6101cd6101c8366004611824565b6104c7565b005b6101cd6105dd565b6005545b604051908152602001610171565b6101cd6101f73660046116d0565b610654565b61020f61020a3660046118a1565b610685565b604080516001600160a01b039093168352602083019190915201610171565b6101db61023c36600461167b565b610731565b6101cd61024f3660046116d0565b610786565b6101db610262366004611888565b6107a1565b6101a2610275366004611888565b6107da565b61018261084d565b6101db61029036600461167b565b6108db565b6101cd61096b565b600a546001600160a01b03166101a2565b6101db61271081565b61018261099f565b6101cd6102cd3660046117e8565b6109ae565b6101cd6102e036600461170c565b6109bd565b6101826102f3366004611888565b6109f5565b61016561030636600461169d565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b6101cd61034236600461167b565b610b16565b60006001600160e01b031982166380ac58cd60e01b148061037857506001600160e01b03198216635b5e139f60e01b145b8061039357506001600160e01b03198216632bbd609d60e11b145b806103a257506103a282610bb1565b92915050565b6060600380546103b790611fe8565b80601f01602080910402602001604051908101604052809291908181526020018280546103e390611fe8565b80156104305780601f1061040557610100808354040283529160200191610430565b820191906000526020600020905b81548152906001019060200180831161041357829003601f168201915b5050505050905090565b600061044582610be6565b6104ab5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600860205260409020546001600160a01b031690565b60006104d2826107da565b9050806001600160a01b0316836001600160a01b031614156105405760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016104a2565b336001600160a01b038216148061055c575061055c8133610306565b6105ce5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016104a2565b6105d88383610bfb565b505050565b600a546001600160a01b031633146106075760405162461bcd60e51b81526004016104a290611ed4565b600061061260055490565b111561063157604051631bbdf5c560e31b815260040160405180910390fd5b600b80546001600160a01b0319163390811790915561065290612710610c69565b565b61065e3382610d73565b61067a5760405162461bcd60e51b81526004016104a290611f09565b6105d8838383610e5d565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916106fa5750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610719906001600160601b031687611f86565b6107239190611f72565b915196919550909350505050565b60006001600160a01b03821661075a576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260076020526040902054600160801b90046001600160801b031690565b6105d8838383604051806020016040528060008152506109bd565b6000806107af836001611f5a565b90506107ba60055490565b8111156103a2576040516329c8c00760e21b815260040160405180910390fd5b60006107e582610be6565b61080257604051636f96cda160e11b815260040160405180910390fd5b6000828152600660205260409020546001600160a01b03161561083c576000828152600660205260409020546001600160a01b03166103a2565b5050600b546001600160a01b031690565b6002805461085a90611fe8565b80601f016020809104026020016040519081016040528092919081815260200182805461088690611fe8565b80156108d35780601f106108a8576101008083540402835291602001916108d3565b820191906000526020600020905b8154815290600101906020018083116108b657829003601f168201915b505050505081565b60006001600160a01b0382166109465760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016104a2565b506001600160a01b03166000908152600760205260409020546001600160801b031690565b600a546001600160a01b031633146109955760405162461bcd60e51b81526004016104a290611ed4565b6106526000610fd6565b6060600480546103b790611fe8565b6109b9338383611028565b5050565b6109c73383610d73565b6109e35760405162461bcd60e51b81526004016104a290611f09565b6109ef848484846110f7565b50505050565b6060610a0082610be6565b610a1d57604051630a14c4b560e41b815260040160405180910390fd5b6000610a288361112a565b610a3361271061112a565b604051602001610a44929190611de9565b6040516020818303038152906040529050606080604051602001610a689190611b66565b60405160208183030381529060405290508082604051602001610a8c929190611b13565b60405160208183030381529060405290508082604051602001610ab0929190611961565b604051602081830303815290604052905080610acb85611228565b604051602001610adc9291906118ef565b604051602081830303815290604052905080604051602001610afe9190611aee565b60408051601f19818403018152919052949350505050565b600a546001600160a01b03163314610b405760405162461bcd60e51b81526004016104a290611ed4565b6001600160a01b038116610ba55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104a2565b610bae81610fd6565b50565b60006001600160e01b0319821663152a902d60e11b14806103a257506301ffc9a760e01b6001600160e01b03198316146103a2565b600080821180156103a2575050600554101590565b600081815260086020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610c30826107da565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160801b038116610c905760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038216610cb657604051622e076360e81b815260040160405180910390fd5b600580546001600160801b03838116820183556001600160a01b038516600081815260076020908152604080832080546001600160801b0319600160801b80830489168c01891602908116918816908816178a019096169590951790945560019094018082526006855283822080546001600160a01b03191690931790925593549151918252923392909184917fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d910160405180910390a4505050565b6000610d7e82610be6565b610ddf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016104a2565b6000610dea836107da565b9050806001600160a01b0316846001600160a01b03161480610e255750836001600160a01b0316610e1a8461043a565b6001600160a01b0316145b80610e5557506001600160a01b0380821660009081526009602090815260408083209388168352929052205460ff165b949350505050565b6000610e68826107da565b90506001600160a01b038316610e9157604051633a954ecd60e21b815260040160405180910390fd5b836001600160a01b0316816001600160a01b031614610ec25760405162a1148160e81b815260040160405180910390fd5b610ecd600083610bfb565b600082815260066020818152604080842080546001600160a01b03808a166001600160a01b0319909216821790925585526007835281852080546001600160801b03808216600190810182166001600160801b0319938416179093558b841688528488208054600019818416019092169190921617905587018086529390925290922054909116610f8e57610f6181610be6565b15610f8e57600081815260066020526040902080546001600160a01b0319166001600160a01b0384161790555b5081836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a450505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561108a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016104a2565b6001600160a01b03838116600081815260096020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611102848484610e5d565b61110e848484846112dd565b6109ef5760405162461bcd60e51b81526004016104a290611e82565b60608161114e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611178578061116281612023565b91506111719050600a83611f72565b9150611152565b60008167ffffffffffffffff81111561119357611193612094565b6040519080825280601f01601f1916602001820160405280156111bd576020820181803683370190505b5090505b8415610e55576111d2600183611fa5565b91506111df600a8661203e565b6111ea906030611f5a565b60f81b8183815181106111ff576111ff61207e565b60200101906001600160f81b031916908160001a905350611221600a86611f72565b94506111c1565b606060006064611239600185611fa5565b611243919061203e565b61124e90600a611f86565b90506000606461125f600186611fa5565b6112699190611f72565b61127490600a611f86565b905060405160200161128590611ba7565b6040516020818303038152906040529250826112a0856113ea565b6112a98461112a565b6112b28461112a565b6040516020016112c59493929190611a1f565b60405160208183030381529060405292505050919050565b60006001600160a01b0384163b156113df57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611321903390899088908890600401611e32565b602060405180830381600087803b15801561133b57600080fd5b505af192505050801561136b575060408051601f3d908101601f191682019092526113689181019061186b565b60015b6113c5573d808015611399576040519150601f19603f3d011682016040523d82523d6000602084013e61139e565b606091505b5080516113bd5760405162461bcd60e51b81526004016104a290611e82565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610e55565b506001949350505050565b606060008260405160200161140191815260200190565b60408051601f19818403018152828252805160209182012060068085528484019093529350600084811a93600186901a93600287901a93820181803683370190505090506f181899199a1a9b1b9c1ca0a121a222a360811b600f600486901c16601081106114715761147161207e565b1a60f81b816000815181106114885761148861207e565b60200101906001600160f81b031916908160001a9053506f181899199a1a9b1b9c1ca0a121a222a360811b600f8516601081106114c7576114c761207e565b1a60f81b816001815181106114de576114de61207e565b60200101906001600160f81b031916908160001a9053506f181899199a1a9b1b9c1ca0a121a222a360811b600f600485901c16601081106115215761152161207e565b1a60f81b816002815181106115385761153861207e565b60200101906001600160f81b031916908160001a9053506f181899199a1a9b1b9c1ca0a121a222a360811b600f8416601081106115775761157761207e565b1a60f81b8160038151811061158e5761158e61207e565b60200101906001600160f81b031916908160001a9053506f181899199a1a9b1b9c1ca0a121a222a360811b600f600484901c16601081106115d1576115d161207e565b1a60f81b816004815181106115e8576115e861207e565b60200101906001600160f81b031916908160001a9053506f181899199a1a9b1b9c1ca0a121a222a360811b600f8316601081106116275761162761207e565b1a60f81b8160058151811061163e5761163e61207e565b60200101906001600160f81b031916908160001a9053509695505050505050565b80356001600160a01b038116811461167657600080fd5b919050565b60006020828403121561168d57600080fd5b6116968261165f565b9392505050565b600080604083850312156116b057600080fd5b6116b98361165f565b91506116c76020840161165f565b90509250929050565b6000806000606084860312156116e557600080fd5b6116ee8461165f565b92506116fc6020850161165f565b9150604084013590509250925092565b6000806000806080858703121561172257600080fd5b61172b8561165f565b93506117396020860161165f565b925060408501359150606085013567ffffffffffffffff8082111561175d57600080fd5b818701915087601f83011261177157600080fd5b81358181111561178357611783612094565b604051601f8201601f19908116603f011681019083821181831017156117ab576117ab612094565b816040528281528a60208487010111156117c457600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156117fb57600080fd5b6118048361165f565b91506020830135801515811461181957600080fd5b809150509250929050565b6000806040838503121561183757600080fd5b6118408361165f565b946020939093013593505050565b60006020828403121561186057600080fd5b8135611696816120aa565b60006020828403121561187d57600080fd5b8151611696816120aa565b60006020828403121561189a57600080fd5b5035919050565b600080604083850312156118b457600080fd5b50508035926020909101359150565b600081518084526118db816020860160208601611fbc565b601f01601f19169290920160200192915050565b60008351611901818460208801611fbc565b80830190507f22696d616765223a2022646174613a696d6167652f7376672b786d6c3b7574668152610e0b60f21b60208201528351611947816022840160208801611fbc565b601160f91b60229290910191820152602301949350505050565b60008351611973818460208801611fbc565b6e0113232b9b1b934b83a34b7b7111d1608d1b9083019081527f222a2a4f6e6520696e2054656e2054686f7573616e642a2a2028622e20323032600f820152651914ae372e3760d11b602f82015283516119d4816035840160208801611fbc565b7f5c6e5c6e2a48616e642063726166746564205356472c20313030302078203130603592909101918201526b0c0c081c1a5e195b1cca888b60a21b6055820152606101949350505050565b60008551611a31818460208a01611fbc565b6c3c726563742066696c6c3d272360981b9083019081528551611a5b81600d840160208a01611fbc565b642720783d2760d81b600d92909101918201528451611a81816012840160208901611fbc565b642720793d2760d81b601292909101918201528351611aa7816017840160208801611fbc565b7f272077696474683d27313027206865696768743d273130272f3e00000000000060179290910191820152651e17b9bb339f60d11b60318201526037019695505050505050565b60008251611b00818460208701611fbc565b607d60f81b920191825250600101919050565b60008351611b25818460208801611fbc565b68113730b6b2911d101160b91b9083019081528351611b4b816009840160208801611fbc565b61088b60f21b60099290910191820152600b01949350505050565b60008251611b78818460208701611fbc565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b00000000920191825250601c01919050565b7f3c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323081527f30302f737667272077696474683d273130303027206865696768743d2731303060208201526218139f60e91b60408201527f3c646566733e3c7061747465726e2069643d2767272077696474683d2732302760438201527f206865696768743d27323027207061747465726e556e6974733d27757365725360638201526a3830b1b2a7b72ab9b2939f60a91b60838201527f3c7265637420783d27302720793d2730272077696474683d2731302720686569608e8201527f6768743d27313027206f7061636974793d27302e31272f3e3c7265637420666960ae8201527f6c6c3d2777686974652720783d2731302720793d2730272077696474683d273160ce8201526f1813903432b4b3b43a1e93989813979f60811b60ee8201527f3c7265637420783d2731302720793d273130272077696474683d27313027206860fe8201527f65696768743d27313027206f7061636974793d27302e31272f3e3c726563742061011e8201527f66696c6c3d2777686974652720783d27302720793d273130272077696474683d61013e8201527113989813903432b4b3b43a1e93989813979f60711b61015e8201527f3c2f7061747465726e3e3c2f646566733e3c726563742066696c6c3d2775726c6101708201527f282367292720783d27302720793d2730272077696474683d27313030252720686101908201526d32b4b3b43a1e939898181293979f60911b6101b082015260006101be82016103a2565b602360f81b815260008351611e05816001850160208801611fbc565b602f60f81b6001918401918201528351611e26816002840160208801611fbc565b01600201949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e65908301846118c3565b9695505050505050565b60208152600061169660208301846118c3565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115611f6d57611f6d612052565b500190565b600082611f8157611f81612068565b500490565b6000816000190483118215151615611fa057611fa0612052565b500290565b600082821015611fb757611fb7612052565b500390565b60005b83811015611fd7578181015183820152602001611fbf565b838111156109ef5750506000910152565b600181811c90821680611ffc57607f821691505b6020821081141561201d57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561203757612037612052565b5060010190565b60008261204d5761204d612068565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610bae57600080fdfea2646970667358221220dab2b83a7bbca1ea73fb1f993c3e20a6c133fe8efa94eaacfd69cdaa4719025564736f6c63430008070033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061014d5760003560e01c80636352211e116100c357806395d89b411161007c57806395d89b41146102b7578063a22cb465146102bf578063b88d4fde146102d2578063c87b56dd146102e5578063e985e9c5146102f8578063f2fde38b1461033457600080fd5b80636352211e146102675780636c0360eb1461027a57806370a0823114610282578063715018a6146102955780638da5cb5b1461029d5780638ee2c4b8146102ae57600080fd5b806318160ddd1161011557806318160ddd146101d757806323b872dd146101e95780632a55205a146101fc5780633cef28d21461022e57806342842e0e146102415780634f6ccce71461025457600080fd5b806301ffc9a71461015257806306fdde031461017a578063081812fc1461018f578063095ea7b3146101ba5780631249c58b146101cf575b600080fd5b61016561016036600461184e565b610347565b60405190151581526020015b60405180910390f35b6101826103a8565b6040516101719190611e6f565b6101a261019d366004611888565b61043a565b6040516001600160a01b039091168152602001610171565b6101cd6101c8366004611824565b6104c7565b005b6101cd6105dd565b6005545b604051908152602001610171565b6101cd6101f73660046116d0565b610654565b61020f61020a3660046118a1565b610685565b604080516001600160a01b039093168352602083019190915201610171565b6101db61023c36600461167b565b610731565b6101cd61024f3660046116d0565b610786565b6101db610262366004611888565b6107a1565b6101a2610275366004611888565b6107da565b61018261084d565b6101db61029036600461167b565b6108db565b6101cd61096b565b600a546001600160a01b03166101a2565b6101db61271081565b61018261099f565b6101cd6102cd3660046117e8565b6109ae565b6101cd6102e036600461170c565b6109bd565b6101826102f3366004611888565b6109f5565b61016561030636600461169d565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b6101cd61034236600461167b565b610b16565b60006001600160e01b031982166380ac58cd60e01b148061037857506001600160e01b03198216635b5e139f60e01b145b8061039357506001600160e01b03198216632bbd609d60e11b145b806103a257506103a282610bb1565b92915050565b6060600380546103b790611fe8565b80601f01602080910402602001604051908101604052809291908181526020018280546103e390611fe8565b80156104305780601f1061040557610100808354040283529160200191610430565b820191906000526020600020905b81548152906001019060200180831161041357829003601f168201915b5050505050905090565b600061044582610be6565b6104ab5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600860205260409020546001600160a01b031690565b60006104d2826107da565b9050806001600160a01b0316836001600160a01b031614156105405760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016104a2565b336001600160a01b038216148061055c575061055c8133610306565b6105ce5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016104a2565b6105d88383610bfb565b505050565b600a546001600160a01b031633146106075760405162461bcd60e51b81526004016104a290611ed4565b600061061260055490565b111561063157604051631bbdf5c560e31b815260040160405180910390fd5b600b80546001600160a01b0319163390811790915561065290612710610c69565b565b61065e3382610d73565b61067a5760405162461bcd60e51b81526004016104a290611f09565b6105d8838383610e5d565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916106fa5750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610719906001600160601b031687611f86565b6107239190611f72565b915196919550909350505050565b60006001600160a01b03821661075a576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260076020526040902054600160801b90046001600160801b031690565b6105d8838383604051806020016040528060008152506109bd565b6000806107af836001611f5a565b90506107ba60055490565b8111156103a2576040516329c8c00760e21b815260040160405180910390fd5b60006107e582610be6565b61080257604051636f96cda160e11b815260040160405180910390fd5b6000828152600660205260409020546001600160a01b03161561083c576000828152600660205260409020546001600160a01b03166103a2565b5050600b546001600160a01b031690565b6002805461085a90611fe8565b80601f016020809104026020016040519081016040528092919081815260200182805461088690611fe8565b80156108d35780601f106108a8576101008083540402835291602001916108d3565b820191906000526020600020905b8154815290600101906020018083116108b657829003601f168201915b505050505081565b60006001600160a01b0382166109465760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016104a2565b506001600160a01b03166000908152600760205260409020546001600160801b031690565b600a546001600160a01b031633146109955760405162461bcd60e51b81526004016104a290611ed4565b6106526000610fd6565b6060600480546103b790611fe8565b6109b9338383611028565b5050565b6109c73383610d73565b6109e35760405162461bcd60e51b81526004016104a290611f09565b6109ef848484846110f7565b50505050565b6060610a0082610be6565b610a1d57604051630a14c4b560e41b815260040160405180910390fd5b6000610a288361112a565b610a3361271061112a565b604051602001610a44929190611de9565b6040516020818303038152906040529050606080604051602001610a689190611b66565b60405160208183030381529060405290508082604051602001610a8c929190611b13565b60405160208183030381529060405290508082604051602001610ab0929190611961565b604051602081830303815290604052905080610acb85611228565b604051602001610adc9291906118ef565b604051602081830303815290604052905080604051602001610afe9190611aee565b60408051601f19818403018152919052949350505050565b600a546001600160a01b03163314610b405760405162461bcd60e51b81526004016104a290611ed4565b6001600160a01b038116610ba55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104a2565b610bae81610fd6565b50565b60006001600160e01b0319821663152a902d60e11b14806103a257506301ffc9a760e01b6001600160e01b03198316146103a2565b600080821180156103a2575050600554101590565b600081815260086020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610c30826107da565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160801b038116610c905760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038216610cb657604051622e076360e81b815260040160405180910390fd5b600580546001600160801b03838116820183556001600160a01b038516600081815260076020908152604080832080546001600160801b0319600160801b80830489168c01891602908116918816908816178a019096169590951790945560019094018082526006855283822080546001600160a01b03191690931790925593549151918252923392909184917fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d910160405180910390a4505050565b6000610d7e82610be6565b610ddf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016104a2565b6000610dea836107da565b9050806001600160a01b0316846001600160a01b03161480610e255750836001600160a01b0316610e1a8461043a565b6001600160a01b0316145b80610e5557506001600160a01b0380821660009081526009602090815260408083209388168352929052205460ff165b949350505050565b6000610e68826107da565b90506001600160a01b038316610e9157604051633a954ecd60e21b815260040160405180910390fd5b836001600160a01b0316816001600160a01b031614610ec25760405162a1148160e81b815260040160405180910390fd5b610ecd600083610bfb565b600082815260066020818152604080842080546001600160a01b03808a166001600160a01b0319909216821790925585526007835281852080546001600160801b03808216600190810182166001600160801b0319938416179093558b841688528488208054600019818416019092169190921617905587018086529390925290922054909116610f8e57610f6181610be6565b15610f8e57600081815260066020526040902080546001600160a01b0319166001600160a01b0384161790555b5081836001600160a01b0316856001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a450505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561108a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016104a2565b6001600160a01b03838116600081815260096020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611102848484610e5d565b61110e848484846112dd565b6109ef5760405162461bcd60e51b81526004016104a290611e82565b60608161114e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611178578061116281612023565b91506111719050600a83611f72565b9150611152565b60008167ffffffffffffffff81111561119357611193612094565b6040519080825280601f01601f1916602001820160405280156111bd576020820181803683370190505b5090505b8415610e55576111d2600183611fa5565b91506111df600a8661203e565b6111ea906030611f5a565b60f81b8183815181106111ff576111ff61207e565b60200101906001600160f81b031916908160001a905350611221600a86611f72565b94506111c1565b606060006064611239600185611fa5565b611243919061203e565b61124e90600a611f86565b90506000606461125f600186611fa5565b6112699190611f72565b61127490600a611f86565b905060405160200161128590611ba7565b6040516020818303038152906040529250826112a0856113ea565b6112a98461112a565b6112b28461112a565b6040516020016112c59493929190611a1f565b60405160208183030381529060405292505050919050565b60006001600160a01b0384163b156113df57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611321903390899088908890600401611e32565b602060405180830381600087803b15801561133b57600080fd5b505af192505050801561136b575060408051601f3d908101601f191682019092526113689181019061186b565b60015b6113c5573d808015611399576040519150601f19603f3d011682016040523d82523d6000602084013e61139e565b606091505b5080516113bd5760405162461bcd60e51b81526004016104a290611e82565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610e55565b506001949350505050565b606060008260405160200161140191815260200190565b60408051601f19818403018152828252805160209182012060068085528484019093529350600084811a93600186901a93600287901a93820181803683370190505090506f181899199a1a9b1b9c1ca0a121a222a360811b600f600486901c16601081106114715761147161207e565b1a60f81b816000815181106114885761148861207e565b60200101906001600160f81b031916908160001a9053506f181899199a1a9b1b9c1ca0a121a222a360811b600f8516601081106114c7576114c761207e565b1a60f81b816001815181106114de576114de61207e565b60200101906001600160f81b031916908160001a9053506f181899199a1a9b1b9c1ca0a121a222a360811b600f600485901c16601081106115215761152161207e565b1a60f81b816002815181106115385761153861207e565b60200101906001600160f81b031916908160001a9053506f181899199a1a9b1b9c1ca0a121a222a360811b600f8416601081106115775761157761207e565b1a60f81b8160038151811061158e5761158e61207e565b60200101906001600160f81b031916908160001a9053506f181899199a1a9b1b9c1ca0a121a222a360811b600f600484901c16601081106115d1576115d161207e565b1a60f81b816004815181106115e8576115e861207e565b60200101906001600160f81b031916908160001a9053506f181899199a1a9b1b9c1ca0a121a222a360811b600f8316601081106116275761162761207e565b1a60f81b8160058151811061163e5761163e61207e565b60200101906001600160f81b031916908160001a9053509695505050505050565b80356001600160a01b038116811461167657600080fd5b919050565b60006020828403121561168d57600080fd5b6116968261165f565b9392505050565b600080604083850312156116b057600080fd5b6116b98361165f565b91506116c76020840161165f565b90509250929050565b6000806000606084860312156116e557600080fd5b6116ee8461165f565b92506116fc6020850161165f565b9150604084013590509250925092565b6000806000806080858703121561172257600080fd5b61172b8561165f565b93506117396020860161165f565b925060408501359150606085013567ffffffffffffffff8082111561175d57600080fd5b818701915087601f83011261177157600080fd5b81358181111561178357611783612094565b604051601f8201601f19908116603f011681019083821181831017156117ab576117ab612094565b816040528281528a60208487010111156117c457600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156117fb57600080fd5b6118048361165f565b91506020830135801515811461181957600080fd5b809150509250929050565b6000806040838503121561183757600080fd5b6118408361165f565b946020939093013593505050565b60006020828403121561186057600080fd5b8135611696816120aa565b60006020828403121561187d57600080fd5b8151611696816120aa565b60006020828403121561189a57600080fd5b5035919050565b600080604083850312156118b457600080fd5b50508035926020909101359150565b600081518084526118db816020860160208601611fbc565b601f01601f19169290920160200192915050565b60008351611901818460208801611fbc565b80830190507f22696d616765223a2022646174613a696d6167652f7376672b786d6c3b7574668152610e0b60f21b60208201528351611947816022840160208801611fbc565b601160f91b60229290910191820152602301949350505050565b60008351611973818460208801611fbc565b6e0113232b9b1b934b83a34b7b7111d1608d1b9083019081527f222a2a4f6e6520696e2054656e2054686f7573616e642a2a2028622e20323032600f820152651914ae372e3760d11b602f82015283516119d4816035840160208801611fbc565b7f5c6e5c6e2a48616e642063726166746564205356472c20313030302078203130603592909101918201526b0c0c081c1a5e195b1cca888b60a21b6055820152606101949350505050565b60008551611a31818460208a01611fbc565b6c3c726563742066696c6c3d272360981b9083019081528551611a5b81600d840160208a01611fbc565b642720783d2760d81b600d92909101918201528451611a81816012840160208901611fbc565b642720793d2760d81b601292909101918201528351611aa7816017840160208801611fbc565b7f272077696474683d27313027206865696768743d273130272f3e00000000000060179290910191820152651e17b9bb339f60d11b60318201526037019695505050505050565b60008251611b00818460208701611fbc565b607d60f81b920191825250600101919050565b60008351611b25818460208801611fbc565b68113730b6b2911d101160b91b9083019081528351611b4b816009840160208801611fbc565b61088b60f21b60099290910191820152600b01949350505050565b60008251611b78818460208701611fbc565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b00000000920191825250601c01919050565b7f3c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323081527f30302f737667272077696474683d273130303027206865696768743d2731303060208201526218139f60e91b60408201527f3c646566733e3c7061747465726e2069643d2767272077696474683d2732302760438201527f206865696768743d27323027207061747465726e556e6974733d27757365725360638201526a3830b1b2a7b72ab9b2939f60a91b60838201527f3c7265637420783d27302720793d2730272077696474683d2731302720686569608e8201527f6768743d27313027206f7061636974793d27302e31272f3e3c7265637420666960ae8201527f6c6c3d2777686974652720783d2731302720793d2730272077696474683d273160ce8201526f1813903432b4b3b43a1e93989813979f60811b60ee8201527f3c7265637420783d2731302720793d273130272077696474683d27313027206860fe8201527f65696768743d27313027206f7061636974793d27302e31272f3e3c726563742061011e8201527f66696c6c3d2777686974652720783d27302720793d273130272077696474683d61013e8201527113989813903432b4b3b43a1e93989813979f60711b61015e8201527f3c2f7061747465726e3e3c2f646566733e3c726563742066696c6c3d2775726c6101708201527f282367292720783d27302720793d2730272077696474683d27313030252720686101908201526d32b4b3b43a1e939898181293979f60911b6101b082015260006101be82016103a2565b602360f81b815260008351611e05816001850160208801611fbc565b602f60f81b6001918401918201528351611e26816002840160208801611fbc565b01600201949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611e65908301846118c3565b9695505050505050565b60208152600061169660208301846118c3565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60008219821115611f6d57611f6d612052565b500190565b600082611f8157611f81612068565b500490565b6000816000190483118215151615611fa057611fa0612052565b500290565b600082821015611fb757611fb7612052565b500390565b60005b83811015611fd7578181015183820152602001611fbf565b838111156109ef5750506000910152565b600181811c90821680611ffc57607f821691505b6020821081141561201d57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561203757612037612052565b5060010190565b60008261204d5761204d612068565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610bae57600080fdfea2646970667358221220dab2b83a7bbca1ea73fb1f993c3e20a6c133fe8efa94eaacfd69cdaa4719025564736f6c63430008070033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.