Token Boom Room Component Cosmetic
Overview CRC721
Total Supply:
4,825 BRCcs
Holders:
1,304 addresses
Contract:
Balance
17 BRCcs
[ Download CSV Export ]
[ Download CSV Export ]
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Cosmetics
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access//Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol"; import "./IComponent.sol"; import "../IBurnable.sol"; import "./ICosmeticComponents.sol"; import "../util.sol"; import "./components.sol"; import "../withdrawable.sol"; contract Cosmetics is Ownable, ERC721Enumerable, ERC721Holder, ICosmetic, Withdrawable { using Counters for Counters.Counter; Counters.Counter private tokenIndex; mapping(address => uint256) whitelist; function setWhiteList(address[] calldata addresses, uint256[] calldata amounts) external onlyOwner { require(addresses.length == amounts.length, "invalid input"); for (uint256 i = 0; i < addresses.length; i++) { whitelist[addresses[i]] = amounts[i]; } } function getWhiteList(address addr) external view returns(uint256) { return whitelist[addr]; } uint256 public croPrice = 1000000000000000000 * 10; uint256 public scratchPrice = 0; function setMintPrices(uint256 cPrice, uint256 sPrice) external onlyOwner { croPrice = cPrice; scratchPrice = sPrice; } uint256 public maxSupply = 100; function setMaxSupply(uint256 supply) external onlyOwner { maxSupply = supply; } IBurnable scratchContract; function setScratchContract(address c) external onlyOwner { require(c != address(0), "null addr"); scratchContract = IBurnable(c); } // TODO add minting and WL minting enabled bool mintingEnabled = false; function setMintingEnabled(bool enabled) external onlyOwner { mintingEnabled = enabled; } bool WLMintingEnabled = false; function setWLMintingEnabled(bool enabled) external onlyOwner { WLMintingEnabled = enabled; } address boomRoomContract; function setBoomRoomContract(address br) external onlyOwner { boomRoomContract = br; } string public baseURI; function setBaseURI(string calldata uri) external { baseURI = uri; } constructor(string memory uri) ERC721("Boom Room Component Cosmetic", "BRCcs") { baseURI = uri; // start at 1 tokenIndex.increment(); } function mint(uint256 amount) external payable { require(mintingEnabled, "minting not enabled"); require(amount < 26, "must mint 25 at a time"); require(tokenIndex.current() <= maxSupply, "reached supply"); for (uint256 i = 0; i < amount; i++) { executeMint(msg.sender, scratchPrice); } } // for aidropping function adminMintCosmetic(address[] calldata addresses, uint256[] calldata amounts) external onlyOwner { for (uint256 i = 0; i < addresses.length; i++) { for (uint256 j = 0; j < amounts[i]; j++) { executeMint(addresses[i], 0); } } } function WLMint(uint256 amount) external payable { require(WLMintingEnabled, "whitelist minting not enabled"); require(amount < 26, "must mint 25 at a time"); require(tokenIndex.current() <= maxSupply, "reached supply"); require(whitelist[msg.sender] >= amount, "not enough whitelisted"); for (uint256 i = 0; i < amount; i++) { executeMint(msg.sender, scratchPrice); } whitelist[msg.sender] -= amount; if (whitelist[msg.sender] == 0) { delete whitelist[msg.sender]; } } function executeMint(address to, uint256 scratchCost) internal { if (scratchCost > 0) { scratchContract.burn(to, scratchCost); } _safeMint(to, tokenIndex.current()); tokenIndex.increment(); } function lockCosmetics(address owner, uint256[] calldata ids) external { require(msg.sender == boomRoomContract, "only boom room contract can lock/unlock coponents"); for (uint256 i = 0; i < ids.length; i++) { require(ownerOf(ids[i]) == owner, "address is not owner of a provided cosmetic"); safeTransferFrom(owner, address(this), ids[i]); } } function unlockCosmetics(address owner, uint256[] calldata ids) external { require(msg.sender == boomRoomContract, "only boom room contract can lock/unlock coponents"); for (uint256 i = 0; i < ids.length; i++) { require(ownerOf(ids[i]) == address(this), "a cosmetic is not locked"); safeTransferFrom(address(this), owner, ids[i]); } } /* ERC721 OVERRIDES */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view override 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) || spender == boomRoomContract); } function _baseURI() internal view override returns (string memory) { return baseURI; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access//Ownable.sol"; contract Withdrawable is Ownable { function withdraw() public payable onlyOwner { (bool success, ) = payable(msg.sender).call{ value: address(this).balance }(""); require(success); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library util { function random(address addr, uint256 input) internal view returns (uint256) { return uint256( keccak256( abi.encodePacked( block.timestamp + block.difficulty + block.gaslimit + block.number + input + (( uint256( keccak256(abi.encodePacked(block.coinbase)) ) ) / block.timestamp) + (( uint256( keccak256(abi.encodePacked(addr)) ) ) / block.timestamp) ) ) ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library components { // fixed uint256 public constant WINDOW = 100; uint256 public constant DOOR = 101; uint256 public constant BED = 102; uint256 public constant BUILDING = 103; // not fixed uint256 public constant TABLE = 104; uint256 public constant DESK = 105; uint256 public constant ENTERTAINMENT = 106; uint256 public constant COUCH = 107; uint256 public constant PET = 108; uint256 public constant ACTIVITY = 109; uint256 public constant COSMETIC = 110; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface ICosmetic { function mint(uint256 amount) external payable; function lockCosmetics(address owner, uint256[] calldata ids) external; function unlockCosmetics(address owner, uint256[] calldata ids) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IBoomRoomComponent { // mint random component with a single random trait on it // can only be called by BoomRoom contract // origin is the address that called BoomRoom contract // emits an event with the new component's metadata (ID, traits, score) // returns component type (e.g. windows, doors, bed etc) function mint(address origin, uint256 amount) external returns (uint256); // get the current traits of the component, and its total score, and whether the component is locked to a boom room function getComponentMetadata(uint256 component) external returns (uint256[4] memory, uint256, bool); function getScore(uint256 component) external view returns (uint256); // function getComponentTraits(uint256 component) external view returns (uint256[4] memory); // locks a component (i.e. to a boom room) - cannot swap traits when locked // returns total score of the component function lockComponent(address owner, uint256 id) external returns (uint256); // unlock component, transferring ownership back to owner function unlockComponent(address owner, uint256 id) external; // swaps traits between leftComponent and rightComponent. // validates that each trait in leftTraits and rightTraits already exists on EITHER leftComponent or rightComponent // emits an event with the new component's metadata (ID, traits, score) // function swapTraits(uint256 leftComponent, uint256[4] calldata leftTraits, uint256 rightComponent, uint256[4] calldata rightTraits) external; // removes trait (with type traitType) from fromComponent and puts it onto toComponent // ultimately burns original components and mints new ones function swapTrait(uint256 toComponent, uint256 fromComponent, uint256 trait) external; function componentType() external returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IBurnable { function burn(address _from, uint256 _amount) external; }
// 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 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 (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // 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 // OpenZeppelin Contracts (last updated v4.7.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 /// @solidity memory-safe-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 (token/ERC721/utils/ERC721Holder.sol) pragma solidity ^0.8.0; import "../IERC721Receiver.sol"; /** * @dev Implementation of the {IERC721Receiver} interface. * * Accepts all token transfers. * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}. */ contract ERC721Holder is IERC721Receiver { /** * @dev See {IERC721Receiver-onERC721Received}. * * Always returns `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address, address, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC721Received.selector; } }
// 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) (token/ERC721/extensions/IERC721Enumerable.sol) 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); /** * @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 v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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`. * * 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; /** * @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 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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); 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: caller is not token 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: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(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 from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {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 an {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 Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @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 { /// @solidity memory-safe-assembly 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 {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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); } }
{ "remappings": [], "optimizer": { "details": { "constantOptimizer": true, "cse": true, "deduplicate": true, "inliner": true, "jumpdestRemover": true, "orderLiterals": true, "peephole": true, "yul": false }, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WLMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"adminMintCosmetic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"croPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getWhiteList","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"lockCosmetics","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"scratchPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"br","type":"address"}],"name":"setBoomRoomContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"cPrice","type":"uint256"},{"internalType":"uint256","name":"sPrice","type":"uint256"}],"name":"setMintPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setMintingEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"c","type":"address"}],"name":"setScratchContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setWLMintingEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"setWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"unlockCosmetics","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
6080604052678ac7230489e80000600d556000600e556064600f556010805461ffff60a01b191690553480156200003557600080fd5b5060405162002fda38038062002fda833981016040819052620000589162000363565b604080518082018252601c81527f426f6f6d20526f6f6d20436f6d706f6e656e7420436f736d6574696300000000602080830191825283518085019094526005845264425243637360d81b908401528151919291620000ba9160009162000180565b508051620000d090600190602084019062000180565b505050620000ed620000e76200012160201b60201c565b62000125565b80516200010290601290602084019062000180565b506200011a600b6200017760201b6200112d1760201c565b50620003ea565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80546001019055565b8280546200018e90620003b9565b90600052602060002090601f016020900481019282620001b25760008555620001fd565b82601f10620001cd57805160ff1916838001178555620001fd565b82800160010185558215620001fd579182015b82811115620001fd578251825591602001919060010190620001e0565b506200020b9291506200020f565b5090565b5b808211156200020b576000815560010162000210565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b038211171562000264576200026462000226565b6040525050565b60006200027760405190565b90506200028582826200023c565b919050565b60006001600160401b03821115620002a657620002a662000226565b601f19601f83011660200192915050565b60005b83811015620002d4578181015183820152602001620002ba565b83811115620002e4576000848401525b50505050565b600062000301620002fb846200028a565b6200026b565b9050828152602081018484840111156200031e576200031e600080fd5b6200032b848285620002b7565b509392505050565b600082601f830112620003495762000349600080fd5b81516200035b848260208601620002ea565b949350505050565b6000602082840312156200037a576200037a600080fd5b81516001600160401b03811115620003955762000395600080fd5b6200035b8482850162000333565b634e487b7160e01b600052602260045260246000fd5b600281046001821680620003ce57607f821691505b60208210811415620003e457620003e4620003a3565b50919050565b612be080620003fa6000396000f3fe6080604052600436106102305760003560e01c80636c0360eb1161012e578063a38bfdb9116100ab578063e9675ebf1161006f578063e9675ebf1461065b578063e985e9c51461067b578063ec63a1ed146106c4578063ecdab326146106d7578063f2fde38b146106f757600080fd5b8063a38bfdb9146105cf578063b88d4fde146105e5578063c87b56dd14610605578063d5abeb0114610625578063e39465561461063b57600080fd5b80638da5cb5b116100f25780638da5cb5b1461053357806395d89b41146105515780639dfe9d6814610566578063a0712d681461059c578063a22cb465146105af57600080fd5b80636c0360eb146104a95780636f8b44b0146104be57806370a08231146104de578063715018a6146104fe5780637e092e771461051357600080fd5b80632f745c59116101bc5780634ea3871a116101805780634ea3871a146104095780634f6ccce71461042957806355f804b31461044957806359b754a3146104695780636352211e1461048957600080fd5b80632f745c59146103815780633ccfd60b146103a15780633cff5ee7146103a957806341429cd4146103c957806342842e0e146103e957600080fd5b80630d1eaea0116102035780630d1eaea0146102dc578063150b7a02146102ff57806318160ddd1461032c57806323b872dd146103415780632743167c1461036157600080fd5b806301ffc9a71461023557806306fdde031461026b578063081812fc1461028d578063095ea7b3146102ba575b600080fd5b34801561024157600080fd5b50610255610250366004611c41565b610717565b6040516102629190611c6c565b60405180910390f35b34801561027757600080fd5b50610280610742565b6040516102629190611cd8565b34801561029957600080fd5b506102ad6102a8366004611cfa565b6107d4565b6040516102629190611d35565b3480156102c657600080fd5b506102da6102d5366004611d57565b6107fb565b005b3480156102e857600080fd5b506102f2600d5481565b6040516102629190611d9a565b34801561030b57600080fd5b5061031f61031a366004611ea3565b61088a565b6040516102629190611f32565b34801561033857600080fd5b506009546102f2565b34801561034d57600080fd5b506102da61035c366004611f40565b61089b565b34801561036d57600080fd5b506102da61037c366004611fe2565b6108cc565b34801561038d57600080fd5b506102f261039c366004611d57565b610984565b6102da6109d6565b3480156103b557600080fd5b506102da6103c436600461203e565b610a4a565b3480156103d557600080fd5b506102da6103e436600461203e565b610a9a565b3480156103f557600080fd5b506102da610404366004611f40565b610ac4565b34801561041557600080fd5b506102da610424366004612072565b610adf565b34801561043557600080fd5b506102f2610444366004611cfa565b610b05565b34801561045557600080fd5b506102da6104643660046120de565b610b53565b34801561047557600080fd5b506102da610484366004612126565b610b5f565b34801561049557600080fd5b506102ad6104a4366004611cfa565b610bf2565b3480156104b557600080fd5b50610280610c27565b3480156104ca57600080fd5b506102da6104d9366004611cfa565b610cb5565b3480156104ea57600080fd5b506102f26104f936600461203e565b610cc2565b34801561050a57600080fd5b506102da610d06565b34801561051f57600080fd5b506102da61052e366004611fe2565b610d1a565b34801561053f57600080fd5b506006546001600160a01b03166102ad565b34801561055d57600080fd5b50610280610dbd565b34801561057257600080fd5b506102f261058136600461203e565b6001600160a01b03166000908152600c602052604090205490565b6102da6105aa366004611cfa565b610dcc565b3480156105bb57600080fd5b506102da6105ca36600461219f565b610e66565b3480156105db57600080fd5b506102f2600e5481565b3480156105f157600080fd5b506102da610600366004611ea3565b610e71565b34801561061157600080fd5b50610280610620366004611cfa565b610ea3565b34801561063157600080fd5b506102f2600f5481565b34801561064757600080fd5b506102da610656366004612126565b610f0a565b34801561066757600080fd5b506102da610676366004612072565b610fac565b34801561068757600080fd5b506102556106963660046121d2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6102da6106d2366004611cfa565b610fd2565b3480156106e357600080fd5b506102da6106f2366004612205565b6110e3565b34801561070357600080fd5b506102da61071236600461203e565b6110f6565b60006001600160e01b0319821663780e9d6360e01b148061073c575061073c82611136565b92915050565b6060600080546107519061223d565b80601f016020809104026020016040519081016040528092919081815260200182805461077d9061223d565b80156107ca5780601f1061079f576101008083540402835291602001916107ca565b820191906000526020600020905b8154815290600101906020018083116107ad57829003601f168201915b5050505050905090565b60006107df82611186565b506000908152600460205260409020546001600160a01b031690565b600061080682610bf2565b9050806001600160a01b0316836001600160a01b031614156108435760405162461bcd60e51b815260040161083a906122ab565b60405180910390fd5b336001600160a01b038216148061085f575061085f8133610696565b61087b5760405162461bcd60e51b815260040161083a90612315565b61088583836111ba565b505050565b630a85bd0160e11b5b949350505050565b6108a53382611228565b6108c15760405162461bcd60e51b815260040161083a90612370565b6108858383836112f1565b6011546001600160a01b031633146108f65760405162461bcd60e51b815260040161083a906123ce565b60005b8181101561097e5730610923848484818110610917576109176123de565b90506020020135610bf2565b6001600160a01b0316146109495760405162461bcd60e51b815260040161083a9061242b565b61096c3085858585818110610960576109606123de565b90506020020135610ac4565b8061097681612451565b9150506108f9565b50505050565b600061098f83610cc2565b82106109ad5760405162461bcd60e51b815260040161083a906124b4565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6109de61141e565b6000336001600160a01b0316476040516109f7906124c4565b60006040518083038185875af1925050503d8060008114610a34576040519150601f19603f3d011682016040523d82523d6000602084013e610a39565b606091505b5050905080610a4757600080fd5b50565b610a5261141e565b6001600160a01b038116610a785760405162461bcd60e51b815260040161083a906124ec565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b610aa261141e565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b61088583838360405180602001604052806000815250610e71565b610ae761141e565b60108054911515600160a01b0260ff60a01b19909216919091179055565b6000610b1060095490565b8210610b2e5760405162461bcd60e51b815260040161083a90612545565b60098281548110610b4157610b416123de565b90600052602060002001549050919050565b61088560128383611b86565b610b6761141e565b60005b83811015610beb5760005b838383818110610b8757610b876123de565b90506020020135811015610bd857610bc6868684818110610baa57610baa6123de565b9050602002016020810190610bbf919061203e565b6000611448565b80610bd081612451565b915050610b75565b5080610be381612451565b915050610b6a565b5050505050565b6000818152600260205260408120546001600160a01b03168061073c5760405162461bcd60e51b815260040161083a90612589565b60128054610c349061223d565b80601f0160208091040260200160405190810160405280929190818152602001828054610c609061223d565b8015610cad5780601f10610c8257610100808354040283529160200191610cad565b820191906000526020600020905b815481529060010190602001808311610c9057829003601f168201915b505050505081565b610cbd61141e565b600f55565b60006001600160a01b038216610cea5760405162461bcd60e51b815260040161083a906125df565b506001600160a01b031660009081526003602052604090205490565b610d0e61141e565b610d1860006114d3565b565b6011546001600160a01b03163314610d445760405162461bcd60e51b815260040161083a906123ce565b60005b8181101561097e57836001600160a01b0316610d6e848484818110610917576109176123de565b6001600160a01b031614610d945760405162461bcd60e51b815260040161083a90612637565b610dab8430858585818110610960576109606123de565b80610db581612451565b915050610d47565b6060600180546107519061223d565b601054600160a01b900460ff16610df55760405162461bcd60e51b815260040161083a90612671565b601a8110610e155760405162461bcd60e51b815260040161083a906126ae565b600f54600b541115610e395760405162461bcd60e51b815260040161083a906126e3565b60005b81811015610e6257610e5033600e54611448565b80610e5a81612451565b915050610e3c565b5050565b610e62338383611525565b610e7b3383611228565b610e975760405162461bcd60e51b815260040161083a90612370565b61097e848484846115c8565b6060610eae82611186565b6000610eb86115fb565b90506000815111610ed85760405180602001604052806000815250610f03565b80610ee28461160a565b604051602001610ef3929190612715565b6040516020818303038152906040525b9392505050565b610f1261141e565b828114610f315760405162461bcd60e51b815260040161083a90612751565b60005b83811015610beb57828282818110610f4e57610f4e6123de565b90506020020135600c6000878785818110610f6b57610f6b6123de565b9050602002016020810190610f80919061203e565b6001600160a01b0316815260208101919091526040016000205580610fa481612451565b915050610f34565b610fb461141e565b60108054911515600160a81b0260ff60a81b19909216919091179055565b601054600160a81b900460ff16610ffb5760405162461bcd60e51b815260040161083a90612795565b601a811061101b5760405162461bcd60e51b815260040161083a906126ae565b600f54600b54111561103f5760405162461bcd60e51b815260040161083a906126e3565b336000908152600c602052604090205481111561106e5760405162461bcd60e51b815260040161083a906127d2565b60005b818110156110975761108533600e54611448565b8061108f81612451565b915050611071565b50336000908152600c6020526040812080548392906110b79084906127e2565b9091555050336000908152600c6020526040902054610a4757336000908152600c602052604081205550565b6110eb61141e565b600d91909155600e55565b6110fe61141e565b6001600160a01b0381166111245760405162461bcd60e51b815260040161083a9061283c565b610a47816114d3565b80546001019055565b60006001600160e01b031982166380ac58cd60e01b148061116757506001600160e01b03198216635b5e139f60e01b145b8061073c57506301ffc9a760e01b6001600160e01b031983161461073c565b6000818152600260205260409020546001600160a01b0316610a475760405162461bcd60e51b815260040161083a90612589565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906111ef82610bf2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661125c5760405162461bcd60e51b815260040161083a90612895565b600061126783610bf2565b9050806001600160a01b0316846001600160a01b031614806112a25750836001600160a01b0316611297846107d4565b6001600160a01b0316145b806112d257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b8061089357506011546001600160a01b03858116911614949350505050565b826001600160a01b031661130482610bf2565b6001600160a01b03161461132a5760405162461bcd60e51b815260040161083a906128e7565b6001600160a01b0382166113505760405162461bcd60e51b815260040161083a90612938565b61135b838383611708565b6113666000826111ba565b6001600160a01b038316600090815260036020526040812080546001929061138f9084906127e2565b90915550506001600160a01b03821660009081526003602052604081208054600192906113bd908490612948565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6006546001600160a01b03163314610d185760405162461bcd60e51b815260040161083a90612992565b80156114b357601054604051632770a7eb60e21b81526001600160a01b0390911690639dc29fac9061148090859085906004016129a2565b600060405180830381600087803b15801561149a57600080fd5b505af11580156114ae573d6000803e3d6000fd5b505050505b6114c5826114c0600b5490565b6117c0565b610e62600b80546001019055565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156115575760405162461bcd60e51b815260040161083a906129f1565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906115bb908590611c6c565b60405180910390a3505050565b6115d38484846112f1565b6115df848484846117da565b61097e5760405162461bcd60e51b815260040161083a90612a50565b6060601280546107519061223d565b60608161162e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611658578061164281612451565b91506116519050600a83612a76565b9150611632565b60008167ffffffffffffffff81111561167357611673611da8565b6040519080825280601f01601f19166020018201604052801561169d576020820181803683370190505b5090505b8415610893576116b26001836127e2565b91506116bf600a86612a8a565b6116ca906030612948565b60f81b8183815181106116df576116df6123de565b60200101906001600160f81b031916908160001a905350611701600a86612a76565b94506116a1565b6001600160a01b0383166117635761175e81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b611786565b816001600160a01b0316836001600160a01b0316146117865761178683826118d5565b6001600160a01b03821661179d5761088581611972565b826001600160a01b0316826001600160a01b031614610885576108858282611a21565b610e62828260405180602001604052806000815250611a65565b60006001600160a01b0384163b156118cd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061181e903390899088908890600401612a9e565b6020604051808303816000875af1925050508015611859575060408051601f3d908101601f1916820190925261185691810190612aed565b60015b6118b3573d808015611887576040519150601f19603f3d011682016040523d82523d6000602084013e61188c565b606091505b5080516118ab5760405162461bcd60e51b815260040161083a90612a50565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610893565b506001610893565b600060016118e284610cc2565b6118ec91906127e2565b60008381526008602052604090205490915080821461193f576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090611984906001906127e2565b6000838152600a6020526040812054600980549394509092849081106119ac576119ac6123de565b9060005260206000200154905080600983815481106119cd576119cd6123de565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480611a0557611a05612b0e565b6001900381819060005260206000200160009055905550505050565b6000611a2c83610cc2565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b611a6f8383611a98565b611a7c60008484846117da565b6108855760405162461bcd60e51b815260040161083a90612a50565b6001600160a01b038216611abe5760405162461bcd60e51b815260040161083a90612b56565b6000818152600260205260409020546001600160a01b031615611af35760405162461bcd60e51b815260040161083a90612b9a565b611aff60008383611708565b6001600160a01b0382166000908152600360205260408120805460019290611b28908490612948565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611b929061223d565b90600052602060002090601f016020900481019282611bb45760008555611bfa565b82601f10611bcd5782800160ff19823516178555611bfa565b82800160010185558215611bfa579182015b82811115611bfa578235825591602001919060010190611bdf565b50611c06929150611c0a565b5090565b5b80821115611c065760008155600101611c0b565b6001600160e01b031981165b8114610a4757600080fd5b803561073c81611c1f565b600060208284031215611c5657611c56600080fd5b60006108938484611c36565b8015155b82525050565b6020810161073c8284611c62565b60005b83811015611c95578181015183820152602001611c7d565b8381111561097e5750506000910152565b6000611cb0825190565b808452602084019350611cc7818560208601611c7a565b601f01601f19169290920192915050565b60208082528101610f038184611ca6565b80611c2b565b803561073c81611ce9565b600060208284031215611d0f57611d0f600080fd5b60006108938484611cef565b60006001600160a01b03821661073c565b611c6681611d1b565b6020810161073c8284611d2c565b611c2b81611d1b565b803561073c81611d43565b60008060408385031215611d6d57611d6d600080fd5b6000611d798585611d4c565b9250506020611d8a85828601611cef565b9150509250929050565b80611c66565b6020810161073c8284611d94565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715611de457611de4611da8565b6040525050565b6000611df660405190565b9050611e028282611dbe565b919050565b600067ffffffffffffffff821115611e2157611e21611da8565b601f19601f83011660200192915050565b82818337506000910152565b6000611e51611e4c84611e07565b611deb565b905082815260208101848484011115611e6c57611e6c600080fd5b611e77848285611e32565b509392505050565b600082601f830112611e9357611e93600080fd5b8135610893848260208601611e3e565b60008060008060808587031215611ebc57611ebc600080fd5b6000611ec88787611d4c565b9450506020611ed987828801611d4c565b9350506040611eea87828801611cef565b925050606085013567ffffffffffffffff811115611f0a57611f0a600080fd5b611f1687828801611e7f565b91505092959194509250565b6001600160e01b03198116611c66565b6020810161073c8284611f22565b600080600060608486031215611f5857611f58600080fd5b6000611f648686611d4c565b9350506020611f7586828701611d4c565b9250506040611f8686828701611cef565b9150509250925092565b60008083601f840112611fa557611fa5600080fd5b50813567ffffffffffffffff811115611fc057611fc0600080fd5b602083019150836020820283011115611fdb57611fdb600080fd5b9250929050565b600080600060408486031215611ffa57611ffa600080fd5b60006120068686611d4c565b935050602084013567ffffffffffffffff81111561202657612026600080fd5b61203286828701611f90565b92509250509250925092565b60006020828403121561205357612053600080fd5b60006108938484611d4c565b801515611c2b565b803561073c8161205f565b60006020828403121561208757612087600080fd5b60006108938484612067565b60008083601f8401126120a8576120a8600080fd5b50813567ffffffffffffffff8111156120c3576120c3600080fd5b602083019150836001820283011115611fdb57611fdb600080fd5b600080602083850312156120f4576120f4600080fd5b823567ffffffffffffffff81111561210e5761210e600080fd5b61211a85828601612093565b92509250509250929050565b6000806000806040858703121561213f5761213f600080fd5b843567ffffffffffffffff81111561215957612159600080fd5b61216587828801611f90565b9450945050602085013567ffffffffffffffff81111561218757612187600080fd5b61219387828801611f90565b95989497509550505050565b600080604083850312156121b5576121b5600080fd5b60006121c18585611d4c565b9250506020611d8a85828601612067565b600080604083850312156121e8576121e8600080fd5b60006121f48585611d4c565b9250506020611d8a85828601611d4c565b6000806040838503121561221b5761221b600080fd5b6000611d798585611cef565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061225157607f821691505b6020821081141561226457612264612227565b50919050565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015291505b5060400190565b6020808252810161073c8161226a565b603e81526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015291506122a4565b6020808252810161073c816122bb565b602e81526000602082017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581526d1c881b9bdc88185c1c1c9bdd995960921b602082015291506122a4565b6020808252810161073c81612325565b603181526000602082017f6f6e6c7920626f6f6d20726f6f6d20636f6e74726163742063616e206c6f636b8152702f756e6c6f636b20636f706f6e656e747360781b602082015291506122a4565b6020808252810161073c81612380565b634e487b7160e01b600052603260045260246000fd5b601881526000602082017f6120636f736d65746963206973206e6f74206c6f636b65640000000000000000815291505b5060200190565b6020808252810161073c816123f4565b634e487b7160e01b600052601160045260246000fd5b60006000198214156124655761246561243b565b5060010190565b602b81526000602082017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b602082015291506122a4565b6020808252810161073c8161246c565b60008161073c565b6009815260006020820168373ab6361030b2323960b91b81529150612424565b6020808252810161073c816124cc565b602c81526000602082017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b602082015291506122a4565b6020808252810161073c816124fc565b601881526000602082017f4552433732313a20696e76616c696420746f6b656e204944000000000000000081529150612424565b6020808252810161073c81612555565b602981526000602082017f4552433732313a2061646472657373207a65726f206973206e6f7420612076618152683634b21037bbb732b960b91b602082015291506122a4565b6020808252810161073c81612599565b602b81526000602082017f61646472657373206973206e6f74206f776e6572206f6620612070726f76696481526a656420636f736d6574696360a81b602082015291506122a4565b6020808252810161073c816125ef565b60138152600060208201721b5a5b9d1a5b99c81b9bdd08195b98589b1959606a1b81529150612424565b6020808252810161073c81612647565b60168152600060208201756d757374206d696e7420323520617420612074696d6560501b81529150612424565b6020808252810161073c81612681565b600e81526000602082016d7265616368656420737570706c7960901b81529150612424565b6020808252810161073c816126be565b60006126fd825190565b61270b818560208601611c7a565b9290920192915050565b600061272182856126f3565b915061089382846126f3565b600d81526000602082016c1a5b9d985b1a59081a5b9c1d5d609a1b81529150612424565b6020808252810161073c8161272d565b601d81526000602082017f77686974656c697374206d696e74696e67206e6f7420656e61626c656400000081529150612424565b6020808252810161073c81612761565b60168152600060208201751b9bdd08195b9bdd59da081dda1a5d195b1a5cdd195960521b81529150612424565b6020808252810161073c816127a5565b6000828210156127f4576127f461243b565b500390565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015291506122a4565b6020808252810161073c816127f9565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291506122a4565b6020808252810161073c8161284c565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b602082015291506122a4565b6020808252810161073c816128a5565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015291506122a4565b6020808252810161073c816128f7565b6000821982111561295b5761295b61243b565b500190565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000612424565b6020808252810161073c81612960565b604081016129b08285611d2c565b610f036020830184611d94565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150612424565b6020808252810161073c816129bd565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015291506122a4565b6020808252810161073c81612a01565b634e487b7160e01b600052601260045260246000fd5b600082612a8557612a85612a60565b500490565b600082612a9957612a99612a60565b500690565b60808101612aac8287611d2c565b612ab96020830186611d2c565b612ac66040830185611d94565b8181036060830152612ad88184611ca6565b9695505050505050565b805161073c81611c1f565b600060208284031215612b0257612b02600080fd5b60006108938484612ae2565b634e487b7160e01b600052603160045260246000fd5b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000612424565b6020808252810161073c81612b24565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529150612424565b6020808252810161073c81612b6656fea2646970667358221220bfdf3f04a9c546da4913a52fe2d7e7e61196fa1924206f18219ac0bf8af2958664736f6c634300080a003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102305760003560e01c80636c0360eb1161012e578063a38bfdb9116100ab578063e9675ebf1161006f578063e9675ebf1461065b578063e985e9c51461067b578063ec63a1ed146106c4578063ecdab326146106d7578063f2fde38b146106f757600080fd5b8063a38bfdb9146105cf578063b88d4fde146105e5578063c87b56dd14610605578063d5abeb0114610625578063e39465561461063b57600080fd5b80638da5cb5b116100f25780638da5cb5b1461053357806395d89b41146105515780639dfe9d6814610566578063a0712d681461059c578063a22cb465146105af57600080fd5b80636c0360eb146104a95780636f8b44b0146104be57806370a08231146104de578063715018a6146104fe5780637e092e771461051357600080fd5b80632f745c59116101bc5780634ea3871a116101805780634ea3871a146104095780634f6ccce71461042957806355f804b31461044957806359b754a3146104695780636352211e1461048957600080fd5b80632f745c59146103815780633ccfd60b146103a15780633cff5ee7146103a957806341429cd4146103c957806342842e0e146103e957600080fd5b80630d1eaea0116102035780630d1eaea0146102dc578063150b7a02146102ff57806318160ddd1461032c57806323b872dd146103415780632743167c1461036157600080fd5b806301ffc9a71461023557806306fdde031461026b578063081812fc1461028d578063095ea7b3146102ba575b600080fd5b34801561024157600080fd5b50610255610250366004611c41565b610717565b6040516102629190611c6c565b60405180910390f35b34801561027757600080fd5b50610280610742565b6040516102629190611cd8565b34801561029957600080fd5b506102ad6102a8366004611cfa565b6107d4565b6040516102629190611d35565b3480156102c657600080fd5b506102da6102d5366004611d57565b6107fb565b005b3480156102e857600080fd5b506102f2600d5481565b6040516102629190611d9a565b34801561030b57600080fd5b5061031f61031a366004611ea3565b61088a565b6040516102629190611f32565b34801561033857600080fd5b506009546102f2565b34801561034d57600080fd5b506102da61035c366004611f40565b61089b565b34801561036d57600080fd5b506102da61037c366004611fe2565b6108cc565b34801561038d57600080fd5b506102f261039c366004611d57565b610984565b6102da6109d6565b3480156103b557600080fd5b506102da6103c436600461203e565b610a4a565b3480156103d557600080fd5b506102da6103e436600461203e565b610a9a565b3480156103f557600080fd5b506102da610404366004611f40565b610ac4565b34801561041557600080fd5b506102da610424366004612072565b610adf565b34801561043557600080fd5b506102f2610444366004611cfa565b610b05565b34801561045557600080fd5b506102da6104643660046120de565b610b53565b34801561047557600080fd5b506102da610484366004612126565b610b5f565b34801561049557600080fd5b506102ad6104a4366004611cfa565b610bf2565b3480156104b557600080fd5b50610280610c27565b3480156104ca57600080fd5b506102da6104d9366004611cfa565b610cb5565b3480156104ea57600080fd5b506102f26104f936600461203e565b610cc2565b34801561050a57600080fd5b506102da610d06565b34801561051f57600080fd5b506102da61052e366004611fe2565b610d1a565b34801561053f57600080fd5b506006546001600160a01b03166102ad565b34801561055d57600080fd5b50610280610dbd565b34801561057257600080fd5b506102f261058136600461203e565b6001600160a01b03166000908152600c602052604090205490565b6102da6105aa366004611cfa565b610dcc565b3480156105bb57600080fd5b506102da6105ca36600461219f565b610e66565b3480156105db57600080fd5b506102f2600e5481565b3480156105f157600080fd5b506102da610600366004611ea3565b610e71565b34801561061157600080fd5b50610280610620366004611cfa565b610ea3565b34801561063157600080fd5b506102f2600f5481565b34801561064757600080fd5b506102da610656366004612126565b610f0a565b34801561066757600080fd5b506102da610676366004612072565b610fac565b34801561068757600080fd5b506102556106963660046121d2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6102da6106d2366004611cfa565b610fd2565b3480156106e357600080fd5b506102da6106f2366004612205565b6110e3565b34801561070357600080fd5b506102da61071236600461203e565b6110f6565b60006001600160e01b0319821663780e9d6360e01b148061073c575061073c82611136565b92915050565b6060600080546107519061223d565b80601f016020809104026020016040519081016040528092919081815260200182805461077d9061223d565b80156107ca5780601f1061079f576101008083540402835291602001916107ca565b820191906000526020600020905b8154815290600101906020018083116107ad57829003601f168201915b5050505050905090565b60006107df82611186565b506000908152600460205260409020546001600160a01b031690565b600061080682610bf2565b9050806001600160a01b0316836001600160a01b031614156108435760405162461bcd60e51b815260040161083a906122ab565b60405180910390fd5b336001600160a01b038216148061085f575061085f8133610696565b61087b5760405162461bcd60e51b815260040161083a90612315565b61088583836111ba565b505050565b630a85bd0160e11b5b949350505050565b6108a53382611228565b6108c15760405162461bcd60e51b815260040161083a90612370565b6108858383836112f1565b6011546001600160a01b031633146108f65760405162461bcd60e51b815260040161083a906123ce565b60005b8181101561097e5730610923848484818110610917576109176123de565b90506020020135610bf2565b6001600160a01b0316146109495760405162461bcd60e51b815260040161083a9061242b565b61096c3085858585818110610960576109606123de565b90506020020135610ac4565b8061097681612451565b9150506108f9565b50505050565b600061098f83610cc2565b82106109ad5760405162461bcd60e51b815260040161083a906124b4565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6109de61141e565b6000336001600160a01b0316476040516109f7906124c4565b60006040518083038185875af1925050503d8060008114610a34576040519150601f19603f3d011682016040523d82523d6000602084013e610a39565b606091505b5050905080610a4757600080fd5b50565b610a5261141e565b6001600160a01b038116610a785760405162461bcd60e51b815260040161083a906124ec565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b610aa261141e565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b61088583838360405180602001604052806000815250610e71565b610ae761141e565b60108054911515600160a01b0260ff60a01b19909216919091179055565b6000610b1060095490565b8210610b2e5760405162461bcd60e51b815260040161083a90612545565b60098281548110610b4157610b416123de565b90600052602060002001549050919050565b61088560128383611b86565b610b6761141e565b60005b83811015610beb5760005b838383818110610b8757610b876123de565b90506020020135811015610bd857610bc6868684818110610baa57610baa6123de565b9050602002016020810190610bbf919061203e565b6000611448565b80610bd081612451565b915050610b75565b5080610be381612451565b915050610b6a565b5050505050565b6000818152600260205260408120546001600160a01b03168061073c5760405162461bcd60e51b815260040161083a90612589565b60128054610c349061223d565b80601f0160208091040260200160405190810160405280929190818152602001828054610c609061223d565b8015610cad5780601f10610c8257610100808354040283529160200191610cad565b820191906000526020600020905b815481529060010190602001808311610c9057829003601f168201915b505050505081565b610cbd61141e565b600f55565b60006001600160a01b038216610cea5760405162461bcd60e51b815260040161083a906125df565b506001600160a01b031660009081526003602052604090205490565b610d0e61141e565b610d1860006114d3565b565b6011546001600160a01b03163314610d445760405162461bcd60e51b815260040161083a906123ce565b60005b8181101561097e57836001600160a01b0316610d6e848484818110610917576109176123de565b6001600160a01b031614610d945760405162461bcd60e51b815260040161083a90612637565b610dab8430858585818110610960576109606123de565b80610db581612451565b915050610d47565b6060600180546107519061223d565b601054600160a01b900460ff16610df55760405162461bcd60e51b815260040161083a90612671565b601a8110610e155760405162461bcd60e51b815260040161083a906126ae565b600f54600b541115610e395760405162461bcd60e51b815260040161083a906126e3565b60005b81811015610e6257610e5033600e54611448565b80610e5a81612451565b915050610e3c565b5050565b610e62338383611525565b610e7b3383611228565b610e975760405162461bcd60e51b815260040161083a90612370565b61097e848484846115c8565b6060610eae82611186565b6000610eb86115fb565b90506000815111610ed85760405180602001604052806000815250610f03565b80610ee28461160a565b604051602001610ef3929190612715565b6040516020818303038152906040525b9392505050565b610f1261141e565b828114610f315760405162461bcd60e51b815260040161083a90612751565b60005b83811015610beb57828282818110610f4e57610f4e6123de565b90506020020135600c6000878785818110610f6b57610f6b6123de565b9050602002016020810190610f80919061203e565b6001600160a01b0316815260208101919091526040016000205580610fa481612451565b915050610f34565b610fb461141e565b60108054911515600160a81b0260ff60a81b19909216919091179055565b601054600160a81b900460ff16610ffb5760405162461bcd60e51b815260040161083a90612795565b601a811061101b5760405162461bcd60e51b815260040161083a906126ae565b600f54600b54111561103f5760405162461bcd60e51b815260040161083a906126e3565b336000908152600c602052604090205481111561106e5760405162461bcd60e51b815260040161083a906127d2565b60005b818110156110975761108533600e54611448565b8061108f81612451565b915050611071565b50336000908152600c6020526040812080548392906110b79084906127e2565b9091555050336000908152600c6020526040902054610a4757336000908152600c602052604081205550565b6110eb61141e565b600d91909155600e55565b6110fe61141e565b6001600160a01b0381166111245760405162461bcd60e51b815260040161083a9061283c565b610a47816114d3565b80546001019055565b60006001600160e01b031982166380ac58cd60e01b148061116757506001600160e01b03198216635b5e139f60e01b145b8061073c57506301ffc9a760e01b6001600160e01b031983161461073c565b6000818152600260205260409020546001600160a01b0316610a475760405162461bcd60e51b815260040161083a90612589565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906111ef82610bf2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661125c5760405162461bcd60e51b815260040161083a90612895565b600061126783610bf2565b9050806001600160a01b0316846001600160a01b031614806112a25750836001600160a01b0316611297846107d4565b6001600160a01b0316145b806112d257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b8061089357506011546001600160a01b03858116911614949350505050565b826001600160a01b031661130482610bf2565b6001600160a01b03161461132a5760405162461bcd60e51b815260040161083a906128e7565b6001600160a01b0382166113505760405162461bcd60e51b815260040161083a90612938565b61135b838383611708565b6113666000826111ba565b6001600160a01b038316600090815260036020526040812080546001929061138f9084906127e2565b90915550506001600160a01b03821660009081526003602052604081208054600192906113bd908490612948565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6006546001600160a01b03163314610d185760405162461bcd60e51b815260040161083a90612992565b80156114b357601054604051632770a7eb60e21b81526001600160a01b0390911690639dc29fac9061148090859085906004016129a2565b600060405180830381600087803b15801561149a57600080fd5b505af11580156114ae573d6000803e3d6000fd5b505050505b6114c5826114c0600b5490565b6117c0565b610e62600b80546001019055565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156115575760405162461bcd60e51b815260040161083a906129f1565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906115bb908590611c6c565b60405180910390a3505050565b6115d38484846112f1565b6115df848484846117da565b61097e5760405162461bcd60e51b815260040161083a90612a50565b6060601280546107519061223d565b60608161162e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611658578061164281612451565b91506116519050600a83612a76565b9150611632565b60008167ffffffffffffffff81111561167357611673611da8565b6040519080825280601f01601f19166020018201604052801561169d576020820181803683370190505b5090505b8415610893576116b26001836127e2565b91506116bf600a86612a8a565b6116ca906030612948565b60f81b8183815181106116df576116df6123de565b60200101906001600160f81b031916908160001a905350611701600a86612a76565b94506116a1565b6001600160a01b0383166117635761175e81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b611786565b816001600160a01b0316836001600160a01b0316146117865761178683826118d5565b6001600160a01b03821661179d5761088581611972565b826001600160a01b0316826001600160a01b031614610885576108858282611a21565b610e62828260405180602001604052806000815250611a65565b60006001600160a01b0384163b156118cd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061181e903390899088908890600401612a9e565b6020604051808303816000875af1925050508015611859575060408051601f3d908101601f1916820190925261185691810190612aed565b60015b6118b3573d808015611887576040519150601f19603f3d011682016040523d82523d6000602084013e61188c565b606091505b5080516118ab5760405162461bcd60e51b815260040161083a90612a50565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610893565b506001610893565b600060016118e284610cc2565b6118ec91906127e2565b60008381526008602052604090205490915080821461193f576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090611984906001906127e2565b6000838152600a6020526040812054600980549394509092849081106119ac576119ac6123de565b9060005260206000200154905080600983815481106119cd576119cd6123de565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480611a0557611a05612b0e565b6001900381819060005260206000200160009055905550505050565b6000611a2c83610cc2565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b611a6f8383611a98565b611a7c60008484846117da565b6108855760405162461bcd60e51b815260040161083a90612a50565b6001600160a01b038216611abe5760405162461bcd60e51b815260040161083a90612b56565b6000818152600260205260409020546001600160a01b031615611af35760405162461bcd60e51b815260040161083a90612b9a565b611aff60008383611708565b6001600160a01b0382166000908152600360205260408120805460019290611b28908490612948565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611b929061223d565b90600052602060002090601f016020900481019282611bb45760008555611bfa565b82601f10611bcd5782800160ff19823516178555611bfa565b82800160010185558215611bfa579182015b82811115611bfa578235825591602001919060010190611bdf565b50611c06929150611c0a565b5090565b5b80821115611c065760008155600101611c0b565b6001600160e01b031981165b8114610a4757600080fd5b803561073c81611c1f565b600060208284031215611c5657611c56600080fd5b60006108938484611c36565b8015155b82525050565b6020810161073c8284611c62565b60005b83811015611c95578181015183820152602001611c7d565b8381111561097e5750506000910152565b6000611cb0825190565b808452602084019350611cc7818560208601611c7a565b601f01601f19169290920192915050565b60208082528101610f038184611ca6565b80611c2b565b803561073c81611ce9565b600060208284031215611d0f57611d0f600080fd5b60006108938484611cef565b60006001600160a01b03821661073c565b611c6681611d1b565b6020810161073c8284611d2c565b611c2b81611d1b565b803561073c81611d43565b60008060408385031215611d6d57611d6d600080fd5b6000611d798585611d4c565b9250506020611d8a85828601611cef565b9150509250929050565b80611c66565b6020810161073c8284611d94565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715611de457611de4611da8565b6040525050565b6000611df660405190565b9050611e028282611dbe565b919050565b600067ffffffffffffffff821115611e2157611e21611da8565b601f19601f83011660200192915050565b82818337506000910152565b6000611e51611e4c84611e07565b611deb565b905082815260208101848484011115611e6c57611e6c600080fd5b611e77848285611e32565b509392505050565b600082601f830112611e9357611e93600080fd5b8135610893848260208601611e3e565b60008060008060808587031215611ebc57611ebc600080fd5b6000611ec88787611d4c565b9450506020611ed987828801611d4c565b9350506040611eea87828801611cef565b925050606085013567ffffffffffffffff811115611f0a57611f0a600080fd5b611f1687828801611e7f565b91505092959194509250565b6001600160e01b03198116611c66565b6020810161073c8284611f22565b600080600060608486031215611f5857611f58600080fd5b6000611f648686611d4c565b9350506020611f7586828701611d4c565b9250506040611f8686828701611cef565b9150509250925092565b60008083601f840112611fa557611fa5600080fd5b50813567ffffffffffffffff811115611fc057611fc0600080fd5b602083019150836020820283011115611fdb57611fdb600080fd5b9250929050565b600080600060408486031215611ffa57611ffa600080fd5b60006120068686611d4c565b935050602084013567ffffffffffffffff81111561202657612026600080fd5b61203286828701611f90565b92509250509250925092565b60006020828403121561205357612053600080fd5b60006108938484611d4c565b801515611c2b565b803561073c8161205f565b60006020828403121561208757612087600080fd5b60006108938484612067565b60008083601f8401126120a8576120a8600080fd5b50813567ffffffffffffffff8111156120c3576120c3600080fd5b602083019150836001820283011115611fdb57611fdb600080fd5b600080602083850312156120f4576120f4600080fd5b823567ffffffffffffffff81111561210e5761210e600080fd5b61211a85828601612093565b92509250509250929050565b6000806000806040858703121561213f5761213f600080fd5b843567ffffffffffffffff81111561215957612159600080fd5b61216587828801611f90565b9450945050602085013567ffffffffffffffff81111561218757612187600080fd5b61219387828801611f90565b95989497509550505050565b600080604083850312156121b5576121b5600080fd5b60006121c18585611d4c565b9250506020611d8a85828601612067565b600080604083850312156121e8576121e8600080fd5b60006121f48585611d4c565b9250506020611d8a85828601611d4c565b6000806040838503121561221b5761221b600080fd5b6000611d798585611cef565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061225157607f821691505b6020821081141561226457612264612227565b50919050565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015291505b5060400190565b6020808252810161073c8161226a565b603e81526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015291506122a4565b6020808252810161073c816122bb565b602e81526000602082017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581526d1c881b9bdc88185c1c1c9bdd995960921b602082015291506122a4565b6020808252810161073c81612325565b603181526000602082017f6f6e6c7920626f6f6d20726f6f6d20636f6e74726163742063616e206c6f636b8152702f756e6c6f636b20636f706f6e656e747360781b602082015291506122a4565b6020808252810161073c81612380565b634e487b7160e01b600052603260045260246000fd5b601881526000602082017f6120636f736d65746963206973206e6f74206c6f636b65640000000000000000815291505b5060200190565b6020808252810161073c816123f4565b634e487b7160e01b600052601160045260246000fd5b60006000198214156124655761246561243b565b5060010190565b602b81526000602082017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b602082015291506122a4565b6020808252810161073c8161246c565b60008161073c565b6009815260006020820168373ab6361030b2323960b91b81529150612424565b6020808252810161073c816124cc565b602c81526000602082017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b602082015291506122a4565b6020808252810161073c816124fc565b601881526000602082017f4552433732313a20696e76616c696420746f6b656e204944000000000000000081529150612424565b6020808252810161073c81612555565b602981526000602082017f4552433732313a2061646472657373207a65726f206973206e6f7420612076618152683634b21037bbb732b960b91b602082015291506122a4565b6020808252810161073c81612599565b602b81526000602082017f61646472657373206973206e6f74206f776e6572206f6620612070726f76696481526a656420636f736d6574696360a81b602082015291506122a4565b6020808252810161073c816125ef565b60138152600060208201721b5a5b9d1a5b99c81b9bdd08195b98589b1959606a1b81529150612424565b6020808252810161073c81612647565b60168152600060208201756d757374206d696e7420323520617420612074696d6560501b81529150612424565b6020808252810161073c81612681565b600e81526000602082016d7265616368656420737570706c7960901b81529150612424565b6020808252810161073c816126be565b60006126fd825190565b61270b818560208601611c7a565b9290920192915050565b600061272182856126f3565b915061089382846126f3565b600d81526000602082016c1a5b9d985b1a59081a5b9c1d5d609a1b81529150612424565b6020808252810161073c8161272d565b601d81526000602082017f77686974656c697374206d696e74696e67206e6f7420656e61626c656400000081529150612424565b6020808252810161073c81612761565b60168152600060208201751b9bdd08195b9bdd59da081dda1a5d195b1a5cdd195960521b81529150612424565b6020808252810161073c816127a5565b6000828210156127f4576127f461243b565b500390565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015291506122a4565b6020808252810161073c816127f9565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015291506122a4565b6020808252810161073c8161284c565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b602082015291506122a4565b6020808252810161073c816128a5565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015291506122a4565b6020808252810161073c816128f7565b6000821982111561295b5761295b61243b565b500190565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000612424565b6020808252810161073c81612960565b604081016129b08285611d2c565b610f036020830184611d94565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c65720000000000000081529150612424565b6020808252810161073c816129bd565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015291506122a4565b6020808252810161073c81612a01565b634e487b7160e01b600052601260045260246000fd5b600082612a8557612a85612a60565b500490565b600082612a9957612a99612a60565b500690565b60808101612aac8287611d2c565b612ab96020830186611d2c565b612ac66040830185611d94565b8181036060830152612ad88184611ca6565b9695505050505050565b805161073c81611c1f565b600060208284031215612b0257612b02600080fd5b60006108938484612ae2565b634e487b7160e01b600052603160045260246000fd5b60208082527f4552433732313a206d696e7420746f20746865207a65726f206164647265737391019081526000612424565b6020808252810161073c81612b24565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529150612424565b6020808252810161073c81612b6656fea2646970667358221220bfdf3f04a9c546da4913a52fe2d7e7e61196fa1924206f18219ac0bf8af2958664736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : uri (string):
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000