Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
3,333 CHROME
Holders
792
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
8 CHROMELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CHROMEcontract
Compiler Version
v0.8.6+commit.11564f7e
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./ERC721Enumerable.sol"; contract CHROMEcontract is ERC721Enumerable, Ownable { bytes32 public whitelistMerkleRoot; address public UnemploymentOffice; address public partner; string public baseURI; string public CHROMEKID_PROVENANCE = ""; mapping(address => uint) public presaleMints; uint256 public constant MAX_KIDS = 3334; uint256 public constant KIDS_PER_TX = 11; uint256 public constant KID_PRICE = 0.03 ether; bool public presaleLive = true; bool public saleLive = false; bool public REVEALED = false; constructor( string memory _baseURI, address _unemployment, address _partner ) ERC721("CHROME kids", "CHROME") payable { baseURI = _baseURI; UnemploymentOffice = payable(_unemployment); partner = payable(_partner); } function presaleMint(uint256 _mintAmount, bytes32[] calldata proof) external payable { require(presaleLive, "Presale Closed"); require(_verify(_leaf(msg.sender), proof), "Invalid proof"); require(presaleMints[msg.sender] + _mintAmount < 4, "No more than 3 presale mints per wallet"); require( KID_PRICE * _mintAmount == msg.value, "Invalid amount of ETH bruh."); presaleMints[msg.sender] += _mintAmount; uint256 totalSupply = _owners.length; for (uint256 i = 0; i < _mintAmount; i++) { _mint(_msgSender(), totalSupply + i); } } function publicMint(uint256 _mintAmount) public payable { uint256 totalSupply = _owners.length; require(saleLive, "Public sale is not active"); require(totalSupply + _mintAmount < MAX_KIDS, "Transaction will exceed supply"); require(_mintAmount < KIDS_PER_TX, "Exceeded max per transaction"); require(_mintAmount * KID_PRICE == msg.value, "Not enough ETH bruh."); for (uint256 i = 0; i < _mintAmount; i++) { _mint(_msgSender(), totalSupply + i); } } function gift(address[] calldata receivers) external onlyOwner { uint256 totalSupply = _owners.length; require(totalSupply + receivers.length < MAX_KIDS, "Transaction will exceed supply"); for (uint256 i = 0; i < receivers.length; i++) { _mint(receivers[i], totalSupply + i); } } function _mint(address to, uint256 tokenId) internal virtual override { _owners.push(to); emit Transfer(address(0), to, tokenId); } function _leaf(address account) internal pure returns (bytes32) { return keccak256(abi.encodePacked(account)); } function _verify(bytes32 leaf, bytes32[] memory proof) internal view returns (bool) { return MerkleProof.verify(proof, whitelistMerkleRoot, leaf); } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function tokenURI(uint256 _tokenId) public view override returns (string memory){ require( _exists(_tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory currentBaseURI = baseURI; if (REVEALED == false) { return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, "hidden", ".json")) : ""; } else { return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, Strings.toString(_tokenId), ".json")) : ""; } } function burn(uint256 tokenId) public { require(_isApprovedOrOwner(_msgSender(), tokenId), "Not approved to burn."); _burn(tokenId); } function walletOfOwner(address _owner) public view returns (uint256[] memory) { uint256 tokenCount = balanceOf(_owner); if (tokenCount == 0) return new uint256[](0); uint256[] memory tokensId = new uint256[](tokenCount); for (uint256 i; i < tokenCount; i++) { tokensId[i] = tokenOfOwnerByIndex(_owner, i); } return tokensId; } function isOwnerOf(address account, uint256[] calldata _tokenIds) external view returns (bool){ for(uint256 i; i < _tokenIds.length; ++i ){ if(_owners[_tokenIds[i]] != account) return false; } return true; } function setProvenanceHash(string memory provenanceHash) public onlyOwner { CHROMEKID_PROVENANCE = provenanceHash; } function setWhitelistMerkleRoot(bytes32 _whitelistMerkleRoot) external onlyOwner { whitelistMerkleRoot = _whitelistMerkleRoot; } function reveal() public onlyOwner() { REVEALED = !REVEALED; } function flipPresaleState() public onlyOwner { !presaleLive ? presaleLive = true : presaleLive = false; } function flipSaleState() public onlyOwner { saleLive = !saleLive; } function withdraw() public onlyOwner { (bool cool, ) = payable(partner).call{value: address(this).balance * 10 / 100}(""); require(cool, "Couldnt do it"); (bool success, ) = payable(UnemploymentOffice).call{value: address(this).balance}(""); require(success, "Fail"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; 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 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 "../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 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; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } // Check if the computed hash (root) is equal to the provided root return computedHash == root; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; library Address { function isContract(address account) internal view returns (bool) { uint size; assembly { size := extcodesize(account) } return size > 0; } }
// SPDX-License-Identifier: MIT //pragma solidity >=0.7.0 <0.9.0; pragma solidity ^0.8.6; 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/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "./Address.sol"; abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; string private _name; string private _symbol; // Mapping from token ID to owner address address[] internal _owners; mapping(uint256 => address) private _tokenApprovals; 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 (uint) { require(owner != address(0), "ERC721: balance query for the zero address"); uint count; for( uint i; i < _owners.length; ++i ){ if( owner == _owners[i] ) ++count; } return count; } /** * @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 {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 tokenId < _owners.length && _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); _owners.push(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); _owners[tokenId] = address(0); 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); _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 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 ) 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.6; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "./ERC721.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 but takes out gas wasting redundancies from OG openzeppelin implementation. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { /** * @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-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _owners.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < _owners.length, "ERC721Enumerable: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256 tokenId) { require(index < balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); uint count; for(uint i; i < _owners.length; i++){ if(owner == _owners[i]){ if(count == index) return i; else count++; } } revert("ERC721Enumerable: owner index out of bounds"); } }
{ "evmVersion": "berlin", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"address","name":"_unemployment","type":"address"},{"internalType":"address","name":"_partner","type":"address"}],"stateMutability":"payable","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":"CHROMEKID_PROVENANCE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"KIDS_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"KID_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_KIDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REVEALED","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UnemploymentOffice","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPresaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"isOwnerOf","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":[],"name":"partner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_whitelistMerkleRoot","type":"bytes32"}],"name":"setWhitelistMerkleRoot","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":"tokenId","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":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040819052600060808190526200001b91600a9162000170565b50600c805462ffffff1916600117905560405162002d48388190039081908339810160408190526200004d9162000233565b604080518082018252600b81526a4348524f4d45206b69647360a81b6020808301918252835180850190945260068452654348524f4d4560d01b9084015281519192916200009e9160009162000170565b508051620000b490600190602084019062000170565b505050620000d1620000cb6200011a60201b60201c565b6200011e565b8251620000e690600990602086019062000170565b50600780546001600160a01b039384166001600160a01b031991821617909155600880549290931691161790555062000389565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200017e9062000336565b90600052602060002090601f016020900481019282620001a25760008555620001ed565b82601f10620001bd57805160ff1916838001178555620001ed565b82800160010185558215620001ed579182015b82811115620001ed578251825591602001919060010190620001d0565b50620001fb929150620001ff565b5090565b5b80821115620001fb576000815560010162000200565b80516001600160a01b03811681146200022e57600080fd5b919050565b6000806000606084860312156200024957600080fd5b83516001600160401b03808211156200026157600080fd5b818601915086601f8301126200027657600080fd5b8151818111156200028b576200028b62000373565b604051601f8201601f19908116603f01168101908382118183101715620002b657620002b662000373565b81604052828152602093508984848701011115620002d357600080fd5b600091505b82821015620002f75784820184015181830185015290830190620002d8565b82821115620003095760008484830101525b96506200031b91505086820162000216565b935050506200032d6040850162000216565b90509250925092565b600181811c908216806200034b57607f821691505b602082108114156200036d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6129af80620003996000396000f3fe6080604052600436106102675760003560e01c806370a0823111610144578063b88d4fde116100b6578063e081b7811161007a578063e081b781146106e3578063e3e1e8ef14610702578063e985e9c514610715578063f2fde38b1461075e578063f81227d41461077e578063ff5018851461079357600080fd5b8063b88d4fde1461064e578063bd32fb661461066e578063be10862b1461068e578063c3011a78146106ae578063c87b56dd146106c357600080fd5b806395d89b411161010857806395d89b41146105b9578063a22cb465146105ce578063a475b5dd146105ee578063a76a958714610603578063aa98e0c614610623578063b87f5dc91461063957600080fd5b806370a0823114610536578063715018a61461055657806383a9e0491461056b57806386f4cb3b146105855780638da5cb5b1461059b57600080fd5b806334918dfd116101dd5780634d44660c116101a15780634d44660c146104815780634f6ccce7146104a157806355f804b3146104c157806357fe59a7146104e15780636352211e146105015780636c0360eb1461052157600080fd5b806334918dfd146103ea5780633ccfd60b146103ff57806342842e0e1461041457806342966c6814610434578063438b63001461045457600080fd5b8063163e1e611161022f578063163e1e611461033d57806318160ddd1461035d57806320abd9931461037c57806323b872dd146103975780632db11544146103b75780632f745c59146103ca57600080fd5b806301ffc9a71461026c57806306fdde03146102a1578063081812fc146102c3578063095ea7b3146102fb578063109695231461031d575b600080fd5b34801561027857600080fd5b5061028c610287366004612509565b6107c0565b60405190151581526020015b60405180910390f35b3480156102ad57600080fd5b506102b66107eb565b60405161029891906126e3565b3480156102cf57600080fd5b506102e36102de3660046124f0565b61087d565b6040516001600160a01b039091168152602001610298565b34801561030757600080fd5b5061031b610316366004612484565b61090a565b005b34801561032957600080fd5b5061031b610338366004612543565b610a20565b34801561034957600080fd5b5061031b6103583660046124ae565b610a61565b34801561036957600080fd5b506002545b604051908152602001610298565b34801561038857600080fd5b5061036e666a94d74f43000081565b3480156103a357600080fd5b5061031b6103b236600461233d565b610b44565b61031b6103c53660046124f0565b610b76565b3480156103d657600080fd5b5061036e6103e5366004612484565b610cf6565b3480156103f657600080fd5b5061031b610da9565b34801561040b57600080fd5b5061031b610df0565b34801561042057600080fd5b5061031b61042f36600461233d565b610f4e565b34801561044057600080fd5b5061031b61044f3660046124f0565b610f69565b34801561046057600080fd5b5061047461046f3660046122ef565b610fc2565b604051610298919061269f565b34801561048d57600080fd5b5061028c61049c3660046123f5565b61107b565b3480156104ad57600080fd5b5061036e6104bc3660046124f0565b6110fd565b3480156104cd57600080fd5b5061031b6104dc366004612543565b61116a565b3480156104ed57600080fd5b506007546102e3906001600160a01b031681565b34801561050d57600080fd5b506102e361051c3660046124f0565b6111a7565b34801561052d57600080fd5b506102b6611233565b34801561054257600080fd5b5061036e6105513660046122ef565b6112c1565b34801561056257600080fd5b5061031b61138f565b34801561057757600080fd5b50600c5461028c9060ff1681565b34801561059157600080fd5b5061036e610d0681565b3480156105a757600080fd5b506005546001600160a01b03166102e3565b3480156105c557600080fd5b506102b66113c5565b3480156105da57600080fd5b5061031b6105e9366004612448565b6113d4565b3480156105fa57600080fd5b5061031b611499565b34801561060f57600080fd5b50600c5461028c9062010000900460ff1681565b34801561062f57600080fd5b5061036e60065481565b34801561064557600080fd5b506102b66114e2565b34801561065a57600080fd5b5061031b610669366004612379565b6114ef565b34801561067a57600080fd5b5061031b6106893660046124f0565b611521565b34801561069a57600080fd5b506008546102e3906001600160a01b031681565b3480156106ba57600080fd5b5061036e600b81565b3480156106cf57600080fd5b506102b66106de3660046124f0565b611550565b3480156106ef57600080fd5b50600c5461028c90610100900460ff1681565b61031b61071036600461258c565b6116e4565b34801561072157600080fd5b5061028c61073036600461230a565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b34801561076a57600080fd5b5061031b6107793660046122ef565b611905565b34801561078a57600080fd5b5061031b61199d565b34801561079f57600080fd5b5061036e6107ae3660046122ef565b600b6020526000908152604090205481565b60006001600160e01b0319821663780e9d6360e01b14806107e557506107e5826119ed565b92915050565b6060600080546107fa906128a7565b80601f0160208091040260200160405190810160405280929190818152602001828054610826906128a7565b80156108735780601f1061084857610100808354040283529160200191610873565b820191906000526020600020905b81548152906001019060200180831161085657829003601f168201915b5050505050905090565b600061088882611a3d565b6108ee5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610915826111a7565b9050806001600160a01b0316836001600160a01b031614156109835760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108e5565b336001600160a01b038216148061099f575061099f8133610730565b610a115760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016108e5565b610a1b8383611a87565b505050565b6005546001600160a01b03163314610a4a5760405162461bcd60e51b81526004016108e590612793565b8051610a5d90600a906020840190612181565b5050565b6005546001600160a01b03163314610a8b5760405162461bcd60e51b81526004016108e590612793565b600254610d06610a9b8383612819565b10610ae85760405162461bcd60e51b815260206004820152601e60248201527f5472616e73616374696f6e2077696c6c2065786365656420737570706c79000060448201526064016108e5565b60005b82811015610b3e57610b2c848483818110610b0857610b08612937565b9050602002016020810190610b1d91906122ef565b610b278385612819565b611af5565b80610b36816128dc565b915050610aeb565b50505050565b610b4f335b82611b71565b610b6b5760405162461bcd60e51b81526004016108e5906127c8565b610a1b838383611c5b565b600254600c54610100900460ff16610bd05760405162461bcd60e51b815260206004820152601960248201527f5075626c69632073616c65206973206e6f74206163746976650000000000000060448201526064016108e5565b610d06610bdd8383612819565b10610c2a5760405162461bcd60e51b815260206004820152601e60248201527f5472616e73616374696f6e2077696c6c2065786365656420737570706c79000060448201526064016108e5565b600b8210610c7a5760405162461bcd60e51b815260206004820152601c60248201527f4578636565646564206d617820706572207472616e73616374696f6e0000000060448201526064016108e5565b34610c8c666a94d74f43000084612845565b14610cd05760405162461bcd60e51b81526020600482015260146024820152732737ba1032b737bab3b41022aa241031393ab41760611b60448201526064016108e5565b60005b82811015610a1b57610ce433610b1d565b80610cee816128dc565b915050610cd3565b6000610d01836112c1565b8210610d1f5760405162461bcd60e51b81526004016108e5906126f6565b6000805b600254811015610d905760028181548110610d4057610d40612937565b6000918252602090912001546001600160a01b0386811691161415610d7e5783821415610d705791506107e59050565b81610d7a816128dc565b9250505b80610d88816128dc565b915050610d23565b5060405162461bcd60e51b81526004016108e5906126f6565b6005546001600160a01b03163314610dd35760405162461bcd60e51b81526004016108e590612793565b600c805461ff001981166101009182900460ff1615909102179055565b6005546001600160a01b03163314610e1a5760405162461bcd60e51b81526004016108e590612793565b6008546000906001600160a01b03166064610e3647600a612845565b610e409190612831565b604051600081818185875af1925050503d8060008114610e7c576040519150601f19603f3d011682016040523d82523d6000602084013e610e81565b606091505b5050905080610ec25760405162461bcd60e51b815260206004820152600d60248201526c10dbdd5b191b9d08191bc81a5d609a1b60448201526064016108e5565b6007546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610f0f576040519150601f19603f3d011682016040523d82523d6000602084013e610f14565b606091505b5050905080610a5d5760405162461bcd60e51b81526004016108e59060208082526004908201526311985a5b60e21b604082015260600190565b610a1b838383604051806020016040528060008152506114ef565b610f7233610b49565b610fb65760405162461bcd60e51b81526020600482015260156024820152742737ba1030b8383937bb32b2103a3790313ab9371760591b60448201526064016108e5565b610fbf81611db1565b50565b60606000610fcf836112c1565b905080610ff05760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff81111561100b5761100b61294d565b604051908082528060200260200182016040528015611034578160200160208202803683370190505b50905060005b82811015610fe85761104c8582610cf6565b82828151811061105e5761105e612937565b602090810291909101015280611073816128dc565b91505061103a565b6000805b828110156110f057846001600160a01b031660028585848181106110a5576110a5612937565b90506020020135815481106110bc576110bc612937565b6000918252602090912001546001600160a01b0316146110e05760009150506110f6565b6110e9816128dc565b905061107f565b50600190505b9392505050565b60025460009082106111665760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016108e5565b5090565b6005546001600160a01b031633146111945760405162461bcd60e51b81526004016108e590612793565b8051610a5d906009906020840190612181565b600080600283815481106111bd576111bd612937565b6000918252602090912001546001600160a01b03169050806107e55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016108e5565b60098054611240906128a7565b80601f016020809104026020016040519081016040528092919081815260200182805461126c906128a7565b80156112b95780601f1061128e576101008083540402835291602001916112b9565b820191906000526020600020905b81548152906001019060200180831161129c57829003601f168201915b505050505081565b60006001600160a01b03821661132c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016108e5565b6000805b600254811015611388576002818154811061134d5761134d612937565b6000918252602090912001546001600160a01b038581169116141561137857611375826128dc565b91505b611381816128dc565b9050611330565b5092915050565b6005546001600160a01b031633146113b95760405162461bcd60e51b81526004016108e590612793565b6113c36000611e33565b565b6060600180546107fa906128a7565b6001600160a01b03821633141561142d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108e5565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6005546001600160a01b031633146114c35760405162461bcd60e51b81526004016108e590612793565b600c805462ff0000198116620100009182900460ff1615909102179055565b600a8054611240906128a7565b6114f93383611b71565b6115155760405162461bcd60e51b81526004016108e5906127c8565b610b3e84848484611e85565b6005546001600160a01b0316331461154b5760405162461bcd60e51b81526004016108e590612793565b600655565b606061155b82611a3d565b6115bf5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108e5565b6000600980546115ce906128a7565b80601f01602080910402602001604051908101604052809291908181526020018280546115fa906128a7565b80156116475780601f1061161c57610100808354040283529160200191611647565b820191906000526020600020905b81548152906001019060200180831161162a57829003601f168201915b5050600c5493945050505060ff62010000909104166116a557600081511161167e57604051806020016040528060008152506110f6565b8060405160200161168f919061262a565b6040516020818303038152906040529392505050565b60008151116116c357604051806020016040528060008152506110f6565b806116cd84611eb8565b60405160200161168f9291906125eb565b50919050565b600c5460ff166117275760405162461bcd60e51b815260206004820152600e60248201526d141c995cd85b194810db1bdcd95960921b60448201526064016108e5565b604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012061179b90838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250611fb692505050565b6117d75760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b60448201526064016108e5565b336000908152600b60205260409020546004906117f5908590612819565b106118525760405162461bcd60e51b815260206004820152602760248201527f4e6f206d6f7265207468616e20332070726573616c65206d696e747320706572604482015266081dd85b1b195d60ca1b60648201526084016108e5565b3461186484666a94d74f430000612845565b146118b15760405162461bcd60e51b815260206004820152601b60248201527f496e76616c696420616d6f756e74206f662045544820627275682e000000000060448201526064016108e5565b336000908152600b6020526040812080548592906118d0908490612819565b909155505060025460005b848110156118fe576118ec33610b1d565b806118f6816128dc565b9150506118db565b5050505050565b6005546001600160a01b0316331461192f5760405162461bcd60e51b81526004016108e590612793565b6001600160a01b0381166119945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108e5565b610fbf81611e33565b6005546001600160a01b031633146119c75760405162461bcd60e51b81526004016108e590612793565b600c5460ff16156119de57600c805460ff19169055565b600c805460ff19166001179055565b60006001600160e01b031982166380ac58cd60e01b1480611a1e57506001600160e01b03198216635b5e139f60e01b145b806107e557506301ffc9a760e01b6001600160e01b03198316146107e5565b600254600090821080156107e5575060006001600160a01b031660028381548110611a6a57611a6a612937565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611abc826111a7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000611b7c82611a3d565b611bdd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108e5565b6000611be8836111a7565b9050806001600160a01b0316846001600160a01b03161480611c235750836001600160a01b0316611c188461087d565b6001600160a01b0316145b80611c5357506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611c6e826111a7565b6001600160a01b031614611cd65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016108e5565b6001600160a01b038216611d385760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108e5565b611d43600082611a87565b8160028281548110611d5757611d57612937565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b6000611dbc826111a7565b9050611dc9600083611a87565b600060028381548110611dde57611dde612937565b6000918252602082200180546001600160a01b0319166001600160a01b0393841617905560405184928416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611e90848484611c5b565b611e9c84848484611fc5565b610b3e5760405162461bcd60e51b81526004016108e590612741565b606081611edc5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611f065780611ef0816128dc565b9150611eff9050600a83612831565b9150611ee0565b60008167ffffffffffffffff811115611f2157611f2161294d565b6040519080825280601f01601f191660200182016040528015611f4b576020820181803683370190505b5090505b8415611c5357611f60600183612864565b9150611f6d600a866128f7565b611f78906030612819565b60f81b818381518110611f8d57611f8d612937565b60200101906001600160f81b031916908160001a905350611faf600a86612831565b9450611f4f565b60006110f682600654856120d2565b60006001600160a01b0384163b156120c757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612009903390899088908890600401612662565b602060405180830381600087803b15801561202357600080fd5b505af1925050508015612053575060408051601f3d908101601f1916820190925261205091810190612526565b60015b6120ad573d808015612081576040519150601f19603f3d011682016040523d82523d6000602084013e612086565b606091505b5080516120a55760405162461bcd60e51b81526004016108e590612741565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611c53565b506001949350505050565b600081815b85518110156121765760008682815181106120f4576120f4612937565b60200260200101519050808311612136576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612163565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061216e816128dc565b9150506120d7565b509092149392505050565b82805461218d906128a7565b90600052602060002090601f0160209004810192826121af57600085556121f5565b82601f106121c857805160ff19168380011785556121f5565b828001600101855582156121f5579182015b828111156121f55782518255916020019190600101906121da565b506111669291505b8082111561116657600081556001016121fd565b600067ffffffffffffffff8084111561222c5761222c61294d565b604051601f8501601f19908116603f011681019082821181831017156122545761225461294d565b8160405280935085815286868601111561226d57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461229e57600080fd5b919050565b60008083601f8401126122b557600080fd5b50813567ffffffffffffffff8111156122cd57600080fd5b6020830191508360208260051b85010111156122e857600080fd5b9250929050565b60006020828403121561230157600080fd5b6110f682612287565b6000806040838503121561231d57600080fd5b61232683612287565b915061233460208401612287565b90509250929050565b60008060006060848603121561235257600080fd5b61235b84612287565b925061236960208501612287565b9150604084013590509250925092565b6000806000806080858703121561238f57600080fd5b61239885612287565b93506123a660208601612287565b925060408501359150606085013567ffffffffffffffff8111156123c957600080fd5b8501601f810187136123da57600080fd5b6123e987823560208401612211565b91505092959194509250565b60008060006040848603121561240a57600080fd5b61241384612287565b9250602084013567ffffffffffffffff81111561242f57600080fd5b61243b868287016122a3565b9497909650939450505050565b6000806040838503121561245b57600080fd5b61246483612287565b91506020830135801515811461247957600080fd5b809150509250929050565b6000806040838503121561249757600080fd5b6124a083612287565b946020939093013593505050565b600080602083850312156124c157600080fd5b823567ffffffffffffffff8111156124d857600080fd5b6124e4858286016122a3565b90969095509350505050565b60006020828403121561250257600080fd5b5035919050565b60006020828403121561251b57600080fd5b81356110f681612963565b60006020828403121561253857600080fd5b81516110f681612963565b60006020828403121561255557600080fd5b813567ffffffffffffffff81111561256c57600080fd5b8201601f8101841361257d57600080fd5b611c5384823560208401612211565b6000806000604084860312156125a157600080fd5b83359250602084013567ffffffffffffffff81111561242f57600080fd5b600081518084526125d781602086016020860161287b565b601f01601f19169290920160200192915050565b600083516125fd81846020880161287b565b83519083019061261181836020880161287b565b64173539b7b760d91b9101908152600501949350505050565b6000825161263c81846020870161287b565b653434b23232b760d11b92019182525064173539b7b760d91b6006820152600b01919050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612695908301846125bf565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156126d7578351835292840192918401916001016126bb565b50909695505050505050565b6020815260006110f660208301846125bf565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000821982111561282c5761282c61290b565b500190565b60008261284057612840612921565b500490565b600081600019048311821515161561285f5761285f61290b565b500290565b6000828210156128765761287661290b565b500390565b60005b8381101561289657818101518382015260200161287e565b83811115610b3e5750506000910152565b600181811c908216806128bb57607f821691505b602082108114156116de57634e487b7160e01b600052602260045260246000fd5b60006000198214156128f0576128f061290b565b5060010190565b60008261290657612906612921565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610fbf57600080fdfea2646970667358221220e8516dd42a31598f90dbf620fb579ac4452d5c0e3fed371c9d50e8962141cebb64736f6c634300080600330000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c72908d745ca2a55efd4431e74156ff4f3754ad200000000000000000000000065bfcde3aed612795ce2685118133137ed1407f40000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d58456b4e7951364b714b4d6158515a4b636d6f5654456870664d774174614c6f7532364d32314a625144554d2f00000000000000000000
Deployed Bytecode
0x6080604052600436106102675760003560e01c806370a0823111610144578063b88d4fde116100b6578063e081b7811161007a578063e081b781146106e3578063e3e1e8ef14610702578063e985e9c514610715578063f2fde38b1461075e578063f81227d41461077e578063ff5018851461079357600080fd5b8063b88d4fde1461064e578063bd32fb661461066e578063be10862b1461068e578063c3011a78146106ae578063c87b56dd146106c357600080fd5b806395d89b411161010857806395d89b41146105b9578063a22cb465146105ce578063a475b5dd146105ee578063a76a958714610603578063aa98e0c614610623578063b87f5dc91461063957600080fd5b806370a0823114610536578063715018a61461055657806383a9e0491461056b57806386f4cb3b146105855780638da5cb5b1461059b57600080fd5b806334918dfd116101dd5780634d44660c116101a15780634d44660c146104815780634f6ccce7146104a157806355f804b3146104c157806357fe59a7146104e15780636352211e146105015780636c0360eb1461052157600080fd5b806334918dfd146103ea5780633ccfd60b146103ff57806342842e0e1461041457806342966c6814610434578063438b63001461045457600080fd5b8063163e1e611161022f578063163e1e611461033d57806318160ddd1461035d57806320abd9931461037c57806323b872dd146103975780632db11544146103b75780632f745c59146103ca57600080fd5b806301ffc9a71461026c57806306fdde03146102a1578063081812fc146102c3578063095ea7b3146102fb578063109695231461031d575b600080fd5b34801561027857600080fd5b5061028c610287366004612509565b6107c0565b60405190151581526020015b60405180910390f35b3480156102ad57600080fd5b506102b66107eb565b60405161029891906126e3565b3480156102cf57600080fd5b506102e36102de3660046124f0565b61087d565b6040516001600160a01b039091168152602001610298565b34801561030757600080fd5b5061031b610316366004612484565b61090a565b005b34801561032957600080fd5b5061031b610338366004612543565b610a20565b34801561034957600080fd5b5061031b6103583660046124ae565b610a61565b34801561036957600080fd5b506002545b604051908152602001610298565b34801561038857600080fd5b5061036e666a94d74f43000081565b3480156103a357600080fd5b5061031b6103b236600461233d565b610b44565b61031b6103c53660046124f0565b610b76565b3480156103d657600080fd5b5061036e6103e5366004612484565b610cf6565b3480156103f657600080fd5b5061031b610da9565b34801561040b57600080fd5b5061031b610df0565b34801561042057600080fd5b5061031b61042f36600461233d565b610f4e565b34801561044057600080fd5b5061031b61044f3660046124f0565b610f69565b34801561046057600080fd5b5061047461046f3660046122ef565b610fc2565b604051610298919061269f565b34801561048d57600080fd5b5061028c61049c3660046123f5565b61107b565b3480156104ad57600080fd5b5061036e6104bc3660046124f0565b6110fd565b3480156104cd57600080fd5b5061031b6104dc366004612543565b61116a565b3480156104ed57600080fd5b506007546102e3906001600160a01b031681565b34801561050d57600080fd5b506102e361051c3660046124f0565b6111a7565b34801561052d57600080fd5b506102b6611233565b34801561054257600080fd5b5061036e6105513660046122ef565b6112c1565b34801561056257600080fd5b5061031b61138f565b34801561057757600080fd5b50600c5461028c9060ff1681565b34801561059157600080fd5b5061036e610d0681565b3480156105a757600080fd5b506005546001600160a01b03166102e3565b3480156105c557600080fd5b506102b66113c5565b3480156105da57600080fd5b5061031b6105e9366004612448565b6113d4565b3480156105fa57600080fd5b5061031b611499565b34801561060f57600080fd5b50600c5461028c9062010000900460ff1681565b34801561062f57600080fd5b5061036e60065481565b34801561064557600080fd5b506102b66114e2565b34801561065a57600080fd5b5061031b610669366004612379565b6114ef565b34801561067a57600080fd5b5061031b6106893660046124f0565b611521565b34801561069a57600080fd5b506008546102e3906001600160a01b031681565b3480156106ba57600080fd5b5061036e600b81565b3480156106cf57600080fd5b506102b66106de3660046124f0565b611550565b3480156106ef57600080fd5b50600c5461028c90610100900460ff1681565b61031b61071036600461258c565b6116e4565b34801561072157600080fd5b5061028c61073036600461230a565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b34801561076a57600080fd5b5061031b6107793660046122ef565b611905565b34801561078a57600080fd5b5061031b61199d565b34801561079f57600080fd5b5061036e6107ae3660046122ef565b600b6020526000908152604090205481565b60006001600160e01b0319821663780e9d6360e01b14806107e557506107e5826119ed565b92915050565b6060600080546107fa906128a7565b80601f0160208091040260200160405190810160405280929190818152602001828054610826906128a7565b80156108735780601f1061084857610100808354040283529160200191610873565b820191906000526020600020905b81548152906001019060200180831161085657829003601f168201915b5050505050905090565b600061088882611a3d565b6108ee5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610915826111a7565b9050806001600160a01b0316836001600160a01b031614156109835760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108e5565b336001600160a01b038216148061099f575061099f8133610730565b610a115760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016108e5565b610a1b8383611a87565b505050565b6005546001600160a01b03163314610a4a5760405162461bcd60e51b81526004016108e590612793565b8051610a5d90600a906020840190612181565b5050565b6005546001600160a01b03163314610a8b5760405162461bcd60e51b81526004016108e590612793565b600254610d06610a9b8383612819565b10610ae85760405162461bcd60e51b815260206004820152601e60248201527f5472616e73616374696f6e2077696c6c2065786365656420737570706c79000060448201526064016108e5565b60005b82811015610b3e57610b2c848483818110610b0857610b08612937565b9050602002016020810190610b1d91906122ef565b610b278385612819565b611af5565b80610b36816128dc565b915050610aeb565b50505050565b610b4f335b82611b71565b610b6b5760405162461bcd60e51b81526004016108e5906127c8565b610a1b838383611c5b565b600254600c54610100900460ff16610bd05760405162461bcd60e51b815260206004820152601960248201527f5075626c69632073616c65206973206e6f74206163746976650000000000000060448201526064016108e5565b610d06610bdd8383612819565b10610c2a5760405162461bcd60e51b815260206004820152601e60248201527f5472616e73616374696f6e2077696c6c2065786365656420737570706c79000060448201526064016108e5565b600b8210610c7a5760405162461bcd60e51b815260206004820152601c60248201527f4578636565646564206d617820706572207472616e73616374696f6e0000000060448201526064016108e5565b34610c8c666a94d74f43000084612845565b14610cd05760405162461bcd60e51b81526020600482015260146024820152732737ba1032b737bab3b41022aa241031393ab41760611b60448201526064016108e5565b60005b82811015610a1b57610ce433610b1d565b80610cee816128dc565b915050610cd3565b6000610d01836112c1565b8210610d1f5760405162461bcd60e51b81526004016108e5906126f6565b6000805b600254811015610d905760028181548110610d4057610d40612937565b6000918252602090912001546001600160a01b0386811691161415610d7e5783821415610d705791506107e59050565b81610d7a816128dc565b9250505b80610d88816128dc565b915050610d23565b5060405162461bcd60e51b81526004016108e5906126f6565b6005546001600160a01b03163314610dd35760405162461bcd60e51b81526004016108e590612793565b600c805461ff001981166101009182900460ff1615909102179055565b6005546001600160a01b03163314610e1a5760405162461bcd60e51b81526004016108e590612793565b6008546000906001600160a01b03166064610e3647600a612845565b610e409190612831565b604051600081818185875af1925050503d8060008114610e7c576040519150601f19603f3d011682016040523d82523d6000602084013e610e81565b606091505b5050905080610ec25760405162461bcd60e51b815260206004820152600d60248201526c10dbdd5b191b9d08191bc81a5d609a1b60448201526064016108e5565b6007546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610f0f576040519150601f19603f3d011682016040523d82523d6000602084013e610f14565b606091505b5050905080610a5d5760405162461bcd60e51b81526004016108e59060208082526004908201526311985a5b60e21b604082015260600190565b610a1b838383604051806020016040528060008152506114ef565b610f7233610b49565b610fb65760405162461bcd60e51b81526020600482015260156024820152742737ba1030b8383937bb32b2103a3790313ab9371760591b60448201526064016108e5565b610fbf81611db1565b50565b60606000610fcf836112c1565b905080610ff05760408051600080825260208201909252905b509392505050565b60008167ffffffffffffffff81111561100b5761100b61294d565b604051908082528060200260200182016040528015611034578160200160208202803683370190505b50905060005b82811015610fe85761104c8582610cf6565b82828151811061105e5761105e612937565b602090810291909101015280611073816128dc565b91505061103a565b6000805b828110156110f057846001600160a01b031660028585848181106110a5576110a5612937565b90506020020135815481106110bc576110bc612937565b6000918252602090912001546001600160a01b0316146110e05760009150506110f6565b6110e9816128dc565b905061107f565b50600190505b9392505050565b60025460009082106111665760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016108e5565b5090565b6005546001600160a01b031633146111945760405162461bcd60e51b81526004016108e590612793565b8051610a5d906009906020840190612181565b600080600283815481106111bd576111bd612937565b6000918252602090912001546001600160a01b03169050806107e55760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016108e5565b60098054611240906128a7565b80601f016020809104026020016040519081016040528092919081815260200182805461126c906128a7565b80156112b95780601f1061128e576101008083540402835291602001916112b9565b820191906000526020600020905b81548152906001019060200180831161129c57829003601f168201915b505050505081565b60006001600160a01b03821661132c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016108e5565b6000805b600254811015611388576002818154811061134d5761134d612937565b6000918252602090912001546001600160a01b038581169116141561137857611375826128dc565b91505b611381816128dc565b9050611330565b5092915050565b6005546001600160a01b031633146113b95760405162461bcd60e51b81526004016108e590612793565b6113c36000611e33565b565b6060600180546107fa906128a7565b6001600160a01b03821633141561142d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108e5565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6005546001600160a01b031633146114c35760405162461bcd60e51b81526004016108e590612793565b600c805462ff0000198116620100009182900460ff1615909102179055565b600a8054611240906128a7565b6114f93383611b71565b6115155760405162461bcd60e51b81526004016108e5906127c8565b610b3e84848484611e85565b6005546001600160a01b0316331461154b5760405162461bcd60e51b81526004016108e590612793565b600655565b606061155b82611a3d565b6115bf5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016108e5565b6000600980546115ce906128a7565b80601f01602080910402602001604051908101604052809291908181526020018280546115fa906128a7565b80156116475780601f1061161c57610100808354040283529160200191611647565b820191906000526020600020905b81548152906001019060200180831161162a57829003601f168201915b5050600c5493945050505060ff62010000909104166116a557600081511161167e57604051806020016040528060008152506110f6565b8060405160200161168f919061262a565b6040516020818303038152906040529392505050565b60008151116116c357604051806020016040528060008152506110f6565b806116cd84611eb8565b60405160200161168f9291906125eb565b50919050565b600c5460ff166117275760405162461bcd60e51b815260206004820152600e60248201526d141c995cd85b194810db1bdcd95960921b60448201526064016108e5565b604080513360601b6bffffffffffffffffffffffff1916602080830191909152825160148184030181526034909201909252805191012061179b90838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250611fb692505050565b6117d75760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b60448201526064016108e5565b336000908152600b60205260409020546004906117f5908590612819565b106118525760405162461bcd60e51b815260206004820152602760248201527f4e6f206d6f7265207468616e20332070726573616c65206d696e747320706572604482015266081dd85b1b195d60ca1b60648201526084016108e5565b3461186484666a94d74f430000612845565b146118b15760405162461bcd60e51b815260206004820152601b60248201527f496e76616c696420616d6f756e74206f662045544820627275682e000000000060448201526064016108e5565b336000908152600b6020526040812080548592906118d0908490612819565b909155505060025460005b848110156118fe576118ec33610b1d565b806118f6816128dc565b9150506118db565b5050505050565b6005546001600160a01b0316331461192f5760405162461bcd60e51b81526004016108e590612793565b6001600160a01b0381166119945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108e5565b610fbf81611e33565b6005546001600160a01b031633146119c75760405162461bcd60e51b81526004016108e590612793565b600c5460ff16156119de57600c805460ff19169055565b600c805460ff19166001179055565b60006001600160e01b031982166380ac58cd60e01b1480611a1e57506001600160e01b03198216635b5e139f60e01b145b806107e557506301ffc9a760e01b6001600160e01b03198316146107e5565b600254600090821080156107e5575060006001600160a01b031660028381548110611a6a57611a6a612937565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611abc826111a7565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000611b7c82611a3d565b611bdd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108e5565b6000611be8836111a7565b9050806001600160a01b0316846001600160a01b03161480611c235750836001600160a01b0316611c188461087d565b6001600160a01b0316145b80611c5357506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611c6e826111a7565b6001600160a01b031614611cd65760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016108e5565b6001600160a01b038216611d385760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108e5565b611d43600082611a87565b8160028281548110611d5757611d57612937565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b6000611dbc826111a7565b9050611dc9600083611a87565b600060028381548110611dde57611dde612937565b6000918252602082200180546001600160a01b0319166001600160a01b0393841617905560405184928416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611e90848484611c5b565b611e9c84848484611fc5565b610b3e5760405162461bcd60e51b81526004016108e590612741565b606081611edc5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611f065780611ef0816128dc565b9150611eff9050600a83612831565b9150611ee0565b60008167ffffffffffffffff811115611f2157611f2161294d565b6040519080825280601f01601f191660200182016040528015611f4b576020820181803683370190505b5090505b8415611c5357611f60600183612864565b9150611f6d600a866128f7565b611f78906030612819565b60f81b818381518110611f8d57611f8d612937565b60200101906001600160f81b031916908160001a905350611faf600a86612831565b9450611f4f565b60006110f682600654856120d2565b60006001600160a01b0384163b156120c757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612009903390899088908890600401612662565b602060405180830381600087803b15801561202357600080fd5b505af1925050508015612053575060408051601f3d908101601f1916820190925261205091810190612526565b60015b6120ad573d808015612081576040519150601f19603f3d011682016040523d82523d6000602084013e612086565b606091505b5080516120a55760405162461bcd60e51b81526004016108e590612741565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611c53565b506001949350505050565b600081815b85518110156121765760008682815181106120f4576120f4612937565b60200260200101519050808311612136576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612163565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061216e816128dc565b9150506120d7565b509092149392505050565b82805461218d906128a7565b90600052602060002090601f0160209004810192826121af57600085556121f5565b82601f106121c857805160ff19168380011785556121f5565b828001600101855582156121f5579182015b828111156121f55782518255916020019190600101906121da565b506111669291505b8082111561116657600081556001016121fd565b600067ffffffffffffffff8084111561222c5761222c61294d565b604051601f8501601f19908116603f011681019082821181831017156122545761225461294d565b8160405280935085815286868601111561226d57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461229e57600080fd5b919050565b60008083601f8401126122b557600080fd5b50813567ffffffffffffffff8111156122cd57600080fd5b6020830191508360208260051b85010111156122e857600080fd5b9250929050565b60006020828403121561230157600080fd5b6110f682612287565b6000806040838503121561231d57600080fd5b61232683612287565b915061233460208401612287565b90509250929050565b60008060006060848603121561235257600080fd5b61235b84612287565b925061236960208501612287565b9150604084013590509250925092565b6000806000806080858703121561238f57600080fd5b61239885612287565b93506123a660208601612287565b925060408501359150606085013567ffffffffffffffff8111156123c957600080fd5b8501601f810187136123da57600080fd5b6123e987823560208401612211565b91505092959194509250565b60008060006040848603121561240a57600080fd5b61241384612287565b9250602084013567ffffffffffffffff81111561242f57600080fd5b61243b868287016122a3565b9497909650939450505050565b6000806040838503121561245b57600080fd5b61246483612287565b91506020830135801515811461247957600080fd5b809150509250929050565b6000806040838503121561249757600080fd5b6124a083612287565b946020939093013593505050565b600080602083850312156124c157600080fd5b823567ffffffffffffffff8111156124d857600080fd5b6124e4858286016122a3565b90969095509350505050565b60006020828403121561250257600080fd5b5035919050565b60006020828403121561251b57600080fd5b81356110f681612963565b60006020828403121561253857600080fd5b81516110f681612963565b60006020828403121561255557600080fd5b813567ffffffffffffffff81111561256c57600080fd5b8201601f8101841361257d57600080fd5b611c5384823560208401612211565b6000806000604084860312156125a157600080fd5b83359250602084013567ffffffffffffffff81111561242f57600080fd5b600081518084526125d781602086016020860161287b565b601f01601f19169290920160200192915050565b600083516125fd81846020880161287b565b83519083019061261181836020880161287b565b64173539b7b760d91b9101908152600501949350505050565b6000825161263c81846020870161287b565b653434b23232b760d11b92019182525064173539b7b760d91b6006820152600b01919050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612695908301846125bf565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156126d7578351835292840192918401916001016126bb565b50909695505050505050565b6020815260006110f660208301846125bf565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000821982111561282c5761282c61290b565b500190565b60008261284057612840612921565b500490565b600081600019048311821515161561285f5761285f61290b565b500290565b6000828210156128765761287661290b565b500390565b60005b8381101561289657818101518382015260200161287e565b83811115610b3e5750506000910152565b600181811c908216806128bb57607f821691505b602082108114156116de57634e487b7160e01b600052602260045260246000fd5b60006000198214156128f0576128f061290b565b5060010190565b60008261290657612906612921565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610fbf57600080fdfea2646970667358221220e8516dd42a31598f90dbf620fb579ac4452d5c0e3fed371c9d50e8962141cebb64736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c72908d745ca2a55efd4431e74156ff4f3754ad200000000000000000000000065bfcde3aed612795ce2685118133137ed1407f40000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d58456b4e7951364b714b4d6158515a4b636d6f5654456870664d774174614c6f7532364d32314a625144554d2f00000000000000000000
-----Decoded View---------------
Arg [0] : _baseURI (string): ipfs://QmXEkNyQ6KqKMaXQZKcmoVTEhpfMwAtaLou26M21JbQDUM/
Arg [1] : _unemployment (address): 0xC72908d745ca2a55Efd4431E74156ff4F3754Ad2
Arg [2] : _partner (address): 0x65bfCDE3AeD612795Ce2685118133137ED1407f4
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 000000000000000000000000c72908d745ca2a55efd4431e74156ff4f3754ad2
Arg [2] : 00000000000000000000000065bfcde3aed612795ce2685118133137ed1407f4
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [4] : 697066733a2f2f516d58456b4e7951364b714b4d6158515a4b636d6f56544568
Arg [5] : 70664d774174614c6f7532364d32314a625144554d2f00000000000000000000
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.