Overview
Max Total Supply
0 CloneX Forging
Holders
2,432
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
RedeemableToken
Compiler Version
v0.8.16+commit.07a7930e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /* RTFKT Legal Overview [https://rtfkt.com/legaloverview] 1. RTFKT Platform Terms of Services [Document #1, https://rtfkt.com/tos] 2. End Use License Terms A. Digital Collectible Terms (RTFKT-Owned Content) [Document #2-A, https://rtfkt.com/legal-2A] B. Digital Collectible Terms (Third Party Content) [Document #2-B, https://rtfkt.com/legal-2B] C. Digital Collectible Limited Commercial Use License Terms (RTFKT-Owned Content) [Document #2-C, https://rtfkt.com/legal-2C] D. Digital Collectible Terms [Document #2-D, https://rtfkt.com/legal-2D] 3. Policies or other documentation A. RTFKT Privacy Policy [Document #3-A, https://rtfkt.com/privacy] B. NFT Issuance and Marketing Policy [Document #3-B, https://rtfkt.com/legal-3B] C. Transfer Fees [Document #3C, https://rtfkt.com/legal-3C] C. 1. Commercialization Registration [https://rtfkt.typeform.com/to/u671kiRl] 4. General notices A. Murakami Short Verbiage – User Experience Notice [Document #X-1, https://rtfkt.com/legal-X1] */ pragma solidity ^0.8.15; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"; abstract contract ERC721 { function ownerOf(uint256 tokenId) public view virtual returns (address); } abstract contract ForgeTokenContract { function forgeToken(uint256 amount, uint256 tokenId, address owner) public virtual; } abstract contract CloneXMetadata { function getDNA(uint256 tokenId) public view virtual returns(bytes1); function isMurakami(uint256 tokenId) public view virtual returns(bool); } contract RedeemableToken is ERC1155, Ownable, ERC1155Burnable { constructor() ERC1155("") { // Will predefine the 72 IDs over here in the future tokenURIs[1] = ""; cloneWearableIds[0x31] = [6, 12]; cloneWearableIds[0x32] = [13, 20]; cloneWearableIds[0x33] = [21, 28]; cloneWearableIds[0x34] = [29, 36]; cloneWearableIds[0x35] = [37, 44]; cloneWearableIds[0x36] = [45, 52]; cloneWearableIds[0x37] = [53, 60]; cloneWearableIds[0x38] = [61, 68]; cantForge[5] = true; cantForge[12] = true; cantForge[20] = true; cantForge[28] = true; cantForge[36] = true; cantForge[44] = true; cantForge[52] = true; cantForge[60] = true; cantForge[68] = true; cantForge[74] = true; } address redemptionMiddlewareContract = 0xEf3cF123a094Fffa3422b5e016eDaAe01FD550C8; address cloneXContractAddress = 0x32dAa83a8e69Fd4A007b41B66D01389F9E9b6BCe; address cloneXMetadataAddress = 0x7B8fB12136C1E50FB6f01FcB17F4005F3Fd3F7C6; address forgingContractAddress; mapping (uint256 => mapping(uint256 => uint256)) public wearableSupply; // ref : CLoneX_Supply_Territory.xls (no + 1) mapping (uint256 => uint256) public generalSupply; mapping (uint256 => string) public tokenURIs; mapping (bytes1 => uint256[2]) cloneWearableIds; mapping (uint256 => bool) public cantForge; struct Remaining { uint256 WearableId; uint256 RemainingMints; } event newRedeemBatch(address owner, address initialCollection, uint256[] cloneXIds, uint256[] wearablesIds, uint256[] amounts); event newForge(uint256[] tokenIds, uint256[] amounts, address owner); function redeemBatch(address owner, address initialCollection, uint256[] calldata cloneXIds, uint256[] calldata wearableIds, uint256[] calldata amounts) public payable { require(msg.sender == redemptionMiddlewareContract, "Not authorized"); require(initialCollection == cloneXContractAddress, "Not authorized"); require(cloneXIds.length == wearableIds.length, "Mismatch of length"); require(cloneXIds.length == amounts.length, "Mismatch of length"); // Setting up interfaces ERC721 CloneXCollection = ERC721(cloneXContractAddress); CloneXMetadata cloneMetadata = CloneXMetadata(cloneXMetadataAddress); for(uint256 i = 0; i < cloneXIds.length; ++i) { require(CloneXCollection.ownerOf(cloneXIds[i]) == owner, "Don't own that token"); bytes1 dna = cloneMetadata.getDNA(cloneXIds[i]); require(dna != 0x00, "Clone metadata not set"); bool isMurakamiDrip = cloneMetadata.isMurakami(cloneXIds[i]); // Check if DNA and/or drip is matching require( (wearableIds[i] >= cloneWearableIds[dna][0] && wearableIds[i] <= cloneWearableIds[dna][1]) || (isMurakamiDrip && (wearableIds[i] >= (cloneWearableIds[0x38][1] + 1) && wearableIds[i] <= (cloneWearableIds[0x38][1] + 6) )) || (wearableIds[i] >= 1 && wearableIds[i] <= (cloneWearableIds[0x31][0] - 1) ), "Mismatch of wearable ID" ); // Check avail quantity if(wearableIds[i] >= 1 && wearableIds[i] <= 5) require(wearableSupply[cloneXIds[i]][wearableIds[i]] + amounts[i] <= 1, "Can't redeem more"); else require(wearableSupply[cloneXIds[i]][wearableIds[i]] + amounts[i] <= 2, "Can't redeem more"); // Updating supplyinh wearableSupply[cloneXIds[i]][wearableIds[i]] = wearableSupply[cloneXIds[i]][wearableIds[i]] + amounts[i]; generalSupply[wearableIds[i]] = generalSupply[wearableIds[i]] + amounts[i]; // Minting batch _mint(owner, wearableIds[i], amounts[i], ""); } emit newRedeemBatch(owner, initialCollection, cloneXIds, wearableIds, amounts); } // Forge function function forgeToken(uint256[] calldata tokenIds, uint256[] calldata amounts) public { require(forgingContractAddress != 0x0000000000000000000000000000000000000000, "No forging address set for this token"); for(uint256 i = 0; i < tokenIds.length; ++i) { require(balanceOf(msg.sender, tokenIds[i]) >= amounts[i], "Doesn't own the token"); // Check if the user own one of the ERC-1155 require(!cantForge[tokenIds[i]], "Can't forge such token"); burn(msg.sender, tokenIds[i], amounts[i]); // Burn one the ERC-1155 token ForgeTokenContract forgingContract = ForgeTokenContract(forgingContractAddress); forgingContract.forgeToken(amounts[i], tokenIds[i], msg.sender); // Mint the ERC-721 token } emit newForge(tokenIds, amounts, msg.sender); } // Airdrop function function airdropTokens(uint256[] calldata tokenIds, uint256[] calldata amount, address[] calldata owners) public onlyOwner { for(uint256 i = 0; i < tokenIds.length; ++i) { _mint(owners[i], tokenIds[i], amount[i], ""); } } // -------- // Getter // -------- function uri(uint256 tokenId) public view virtual override returns (string memory) { return tokenURIs[tokenId]; } // To be called off-chain // Returns array of Remaining struct which contains the wearable ID and remaining mints for a given token ID function remainingMints(uint256 tokenId) external view returns (Remaining[] memory) { CloneXMetadata cloneMetadata = CloneXMetadata(cloneXMetadataAddress); bytes1 dna = cloneMetadata.getDNA(tokenId); bool isMurakamiDrip = cloneMetadata.isMurakami(tokenId); (uint256 start, uint256 finish) = (cloneWearableIds[dna][0], cloneWearableIds[dna][1]); // Starting with 5 clonex genesis items uint256 totalWearables = 5; totalWearables = totalWearables + (finish - start); if (isMurakamiDrip) { totalWearables += 6; } Remaining[] memory remaining = new Remaining[](totalWearables+1); uint256 count = 0; // CloneX DNA check for (uint256 i = start; i <= finish; i++) { remaining[count] = Remaining(i, 2 - wearableSupply[tokenId][i]); count++; } // Murakami drip check if (isMurakamiDrip) { for (uint256 i = (cloneWearableIds[0x38][1] + 1); i <= (cloneWearableIds[0x38][1] + 6); i++) { remaining[count] = Remaining(i, 2 - wearableSupply[tokenId][i]); count++; } } // CloneX Genesis check for (uint256 i = 1; i <= (cloneWearableIds[0x31][0] - 1); i++) { remaining[count] = Remaining(i, 1 - wearableSupply[tokenId][i]); count++; } return remaining; } // -------- // Setter // -------- function setTokenURIs(uint256 tokenId, string calldata newUri) public onlyOwner { tokenURIs[tokenId] = newUri; } function setCloneX(address newAddress) public onlyOwner { cloneXContractAddress = newAddress; } function setCloneXMetadata(address newAddress) public onlyOwner { cloneXMetadataAddress = newAddress; } function setForgingAddress(address newAddress) public onlyOwner { forgingContractAddress = newAddress; } function setMiddleware(address newContractAddress) public onlyOwner { redemptionMiddlewareContract = newContractAddress; } function setWearableRange(bytes1 dna, uint256[2] calldata range) public onlyOwner { cloneWearableIds[dna][0] = range[0]; cloneWearableIds[dna][1] = range[1]; } function toggleForgeable(uint256 tokenId) public onlyOwner { cantForge[tokenId] = !cantForge[tokenId]; } // In case someone send money to the contract by mistake function withdrawFunds() public onlyOwner { payable(msg.sender).transfer(address(this).balance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol) pragma solidity ^0.8.0; import "../ERC1155.sol"; /** * @dev Extension of {ERC1155} that allows token holders to destroy both their * own tokens and those that they have been approved to use. * * _Available since v3.1._ */ abstract contract ERC1155Burnable is ERC1155 { function burn( address account, uint256 id, uint256 value ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burn(account, id, value); } function burnBatch( address account, uint256[] memory ids, uint256[] memory values ) public virtual { require( account == _msgSender() || isApprovedForAll(account, _msgSender()), "ERC1155: caller is not owner nor approved" ); _burnBatch(account, ids, values); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, to, ids, amounts, data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) 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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"newForge","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"initialCollection","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"cloneXIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"wearablesIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"newRedeemBatch","type":"event"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amount","type":"uint256[]"},{"internalType":"address[]","name":"owners","type":"address[]"}],"name":"airdropTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cantForge","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"forgeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"generalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"initialCollection","type":"address"},{"internalType":"uint256[]","name":"cloneXIds","type":"uint256[]"},{"internalType":"uint256[]","name":"wearableIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"redeemBatch","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"remainingMints","outputs":[{"components":[{"internalType":"uint256","name":"WearableId","type":"uint256"},{"internalType":"uint256","name":"RemainingMints","type":"uint256"}],"internalType":"struct RedeemableToken.Remaining[]","name":"","type":"tuple[]"}],"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":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"setCloneX","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"setCloneXMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"setForgingAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newContractAddress","type":"address"}],"name":"setMiddleware","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"newUri","type":"string"}],"name":"setTokenURIs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes1","name":"dna","type":"bytes1"},{"internalType":"uint256[2]","name":"range","type":"uint256[2]"}],"name":"setWearableRange","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"toggleForgeable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenURIs","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"wearableSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600480546001600160a01b031990811673ef3cf123a094fffa3422b5e016edaae01fd550c8179091556005805482167332daa83a8e69fd4a007b41b66d01389f9e9b6bce17905560068054909116737b8fb12136c1e50fb6f01fcb17f4005f3fd3f7c61790553480156200007757600080fd5b50604080516020810190915260008152620000928162000542565b506200009e3362000554565b604080516020808201909252600080825260019052600a9091527fbbc70db1b6c7afd11e79c0fb0051300458f1a3acb8ee9789d9b6b26c61ad9bc790620000e69082620006aa565b506040805180820190915260068152600c602080830191909152603160f81b600052600b90526200013b907f8065279e23db622913f662dd7bda9f54374533b89e030da6cf5c8ba84d842eb6906002620005a6565b5060408051808201909152600d81526014602080830191909152601960f91b600052600b905262000190907f437da0fa3b5568582bd33a911225bac62ab6995bb4d35d4ca75e755ab9b1ab12906002620005a6565b506040805180820190915260158152601c602080830191909152603360f81b600052600b9052620001e5907f9a4728ba571730b983e330e7fc5ae3f179249acd09a0375c98b4ed2c35d80ea1906002620005a6565b5060408051808201909152601d81526024602080830191909152600d60fa1b600052600b90526200023a907f2825c59c953ff6cbad56935a8df9e099805eb95fee287202def1a52226457789906002620005a6565b506040805180820190915260258152602c602080830191909152603560f81b600052600b90526200028f907f4aa5c8b52a55919bb2a4d6af74d6ed6ecfc3a1a2bb232aa3885725969d606da9906002620005a6565b5060408051808201909152602d81526034602080830191909152601b60f91b600052600b9052620002e4907f73da132a6b75fd5bfa75259f990f67266ed8cf474e73aa41dce0e2acfcf942d6906002620005a6565b506040805180820190915260358152603c602080830191909152603760f81b600052600b905262000339907f5df34c83a4edfaefbbbff6f78516eb4e0b131e33579aacad74ada43d6e0126fb906002620005a6565b5060408051808201909152603d81526044602080830191909152600760fb1b600052600b90526200038e907f0d6e7dbb57ef4b0f0876c6467ffb030d74d604e1da83bf11b49878582df3d30d906002620005a6565b50600c6020527f2cd9ebf6ff19cdd7ffcc447d7c7d47b5991f5c7392a04512134e765802361fa68054600160ff1991821681179092557f37877ab6ac9e279d19a4db3294b259b5a4163c0ed597627ae79e33d80cde4db880548216831790557f55664edbebd57273ba1f6d1c017cd920bbceea562d5502a6837280a660edef9580548216831790557f3377e215baa0ca35d3616f499e5c09359a769b94ce0637346960541be030732b80548216831790557ff4f95248eca59b48e9cd3638622a015b64dafb646d244700610e94a2243ae99e80548216831790557f3b2dcd766b1e6e901ec8247b9d753cc6a9192a740b545c4df7f412281bec917f80548216831790557fbae274710ebfde648b5b9df374a8740ee00d008663de7c52a2f11f9cd00fc9c380548216831790557f5175c0b6eb66f6a89d517d8f3b9050b4741e41569221c140e28ab4d1383030e180548216831790557f96b4f44406f30879aa77d6b0fdea83dc73be4c43f64afc2b9aa7cff913d85c1f8054821683179055604a6000527fda82c5f074260cd23221e4ae00d071f0dd5ce46844c7ceba1da504364741fd718054909116909117905562000776565b6002620005508282620006aa565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8260028101928215620005dc579160200282015b82811115620005dc578251829060ff16905591602001919060010190620005ba565b50620005ea929150620005ee565b5090565b5b80821115620005ea5760008155600101620005ef565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200063057607f821691505b6020821081036200065157634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620006a557600081815260208120601f850160051c81016020861015620006805750805b601f850160051c820191505b81811015620006a1578281556001016200068c565b5050505b505050565b81516001600160401b03811115620006c657620006c662000605565b620006de81620006d784546200061b565b8462000657565b602080601f831160018114620007165760008415620006fd5750858301515b600019600386901b1c1916600185901b178555620006a1565b600085815260208120601f198616915b82811015620007475788860151825594840194600190910190840162000726565b5085821015620007665787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6137ec80620007866000396000f3fe6080604052600436106101c15760003560e01c80636c8b703f116100f7578063a22cb46511610095578063e985e9c511610064578063e985e9c51461054c578063f242432a14610595578063f2fde38b146105b5578063f5298aca146105d557600080fd5b8063a22cb465146104cc578063b7d8e1a9146104ec578063c72a3b871461050c578063cfea3ca31461052c57600080fd5b80637bbd1995116100d15780637bbd1995146104375780638da5cb5b14610457578063a0403eed1461047f578063a1af1b02146104ac57600080fd5b80636c8b703f146103e2578063715018a614610402578063761cf5821461041757600080fd5b80632eb2c2d6116101645780634e1273f41161013e5780634e1273f4146103385780635e3b75d9146103655780636aa2b286146103925780636b20c454146103c257600080fd5b80632eb2c2d6146102d8578063397d1481146102f85780634b04d6b71461031857600080fd5b80630ec4830f116101a05780630ec4830f14610256578063181d38391461026b57806324600fc31461028b578063290dc752146102a057600080fd5b8062fdd58e146101c657806301ffc9a7146101f95780630e89341c14610229575b600080fd5b3480156101d257600080fd5b506101e66101e136600461282f565b6105f5565b6040519081526020015b60405180910390f35b34801561020557600080fd5b50610219610214366004612871565b61068f565b60405190151581526020016101f0565b34801561023557600080fd5b50610249610244366004612895565b6106df565b6040516101f091906128f4565b610269610264366004612952565b610781565b005b34801561027757600080fd5b50610269610286366004612a10565b6110a8565b34801561029757600080fd5b506102696110f4565b3480156102ac57600080fd5b506101e66102bb366004612a2d565b600860209081526000928352604080842090915290825290205481565b3480156102e457600080fd5b506102696102f3366004612b98565b61114d565b34801561030457600080fd5b50610269610313366004612c5b565b6111e4565b34801561032457600080fd5b50610269610333366004612a10565b61123b565b34801561034457600080fd5b50610358610353366004612c97565b611287565b6040516101f09190612d9e565b34801561037157600080fd5b50610385610380366004612895565b6113b0565b6040516101f09190612db1565b34801561039e57600080fd5b506102196103ad366004612895565b600c6020526000908152604090205460ff1681565b3480156103ce57600080fd5b506102696103dd366004612e00565b611770565b3480156103ee57600080fd5b506102496103fd366004612895565b6117b8565b34801561040e57600080fd5b50610269611852565b34801561042357600080fd5b50610269610432366004612895565b611888565b34801561044357600080fd5b50610269610452366004612e75565b6118d2565b34801561046357600080fd5b506003546040516001600160a01b0390911681526020016101f0565b34801561048b57600080fd5b506101e661049a366004612895565b60096020526000908152604090205481565b3480156104b857600080fd5b506102696104c7366004612ee0565b611b75565b3480156104d857600080fd5b506102696104e7366004612f69565b611bbe565b3480156104f857600080fd5b50610269610507366004612a10565b611bcd565b34801561051857600080fd5b50610269610527366004612a10565b611c19565b34801561053857600080fd5b50610269610547366004612fa2565b611c65565b34801561055857600080fd5b5061021961056736600461303b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156105a157600080fd5b506102696105b0366004613069565b611d08565b3480156105c157600080fd5b506102696105d0366004612a10565b611d4d565b3480156105e157600080fd5b506102696105f03660046130d1565b611de5565b60006001600160a01b0383166106665760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b14806106c057506001600160e01b031982166303a24d0760e21b145b8061068957506301ffc9a760e01b6001600160e01b0319831614610689565b6000818152600a602052604090208054606091906106fc90613106565b80601f016020809104026020016040519081016040528092919081815260200182805461072890613106565b80156107755780601f1061074a57610100808354040283529160200191610775565b820191906000526020600020905b81548152906001019060200180831161075857829003601f168201915b50505050509050919050565b6004546001600160a01b031633146107cc5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015260640161065d565b6005546001600160a01b0388811691161461081a5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015260640161065d565b84831461085e5760405162461bcd60e51b815260206004820152601260248201527109ad2e6dac2e8c6d040decc40d8cadccee8d60731b604482015260640161065d565b8481146108a25760405162461bcd60e51b815260206004820152601260248201527109ad2e6dac2e8c6d040decc40d8cadccee8d60731b604482015260640161065d565b6005546006546001600160a01b03918216911660005b87811015611056578a6001600160a01b0316836001600160a01b0316636352211e8b8b858181106108eb576108eb613140565b905060200201356040518263ffffffff1660e01b815260040161091091815260200190565b602060405180830381865afa15801561092d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109519190613156565b6001600160a01b03161461099e5760405162461bcd60e51b81526020600482015260146024820152732237b713ba1037bbb7103a3430ba103a37b5b2b760611b604482015260640161065d565b6000826001600160a01b0316635bb209a58b8b858181106109c1576109c1613140565b905060200201356040518263ffffffff1660e01b81526004016109e691815260200190565b602060405180830381865afa158015610a03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a279190613173565b90506001600160f81b03198116600003610a7c5760405162461bcd60e51b815260206004820152601660248201527510db1bdb99481b595d1859185d18481b9bdd081cd95d60521b604482015260640161065d565b6000836001600160a01b0316632e5a18268c8c86818110610a9f57610a9f613140565b905060200201356040518263ffffffff1660e01b8152600401610ac491815260200190565b602060405180830381865afa158015610ae1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b059190613190565b6001600160f81b031983166000908152600b6020526040902054909150898985818110610b3457610b34613140565b9050602002013510158015610b7d57506001600160f81b031982166000908152600b6020526040902060010154898985818110610b7357610b73613140565b9050602002013511155b80610c195750808015610c195750600760fb1b600052600b60205260008051602061379783398151915254610bb39060016131c3565b898985818110610bc557610bc5613140565b9050602002013510158015610c195750600760fb1b600052600b60205260008051602061379783398151915254610bfd9060066131c3565b898985818110610c0f57610c0f613140565b9050602002013511155b80610c9a57506001898985818110610c3357610c33613140565b9050602002013510158015610c9a5750603160f81b600052600b6020527f8065279e23db622913f662dd7bda9f54374533b89e030da6cf5c8ba84d842eb654610c7e906001906131d6565b898985818110610c9057610c90613140565b9050602002013511155b610ce65760405162461bcd60e51b815260206004820152601760248201527f4d69736d61746368206f66207765617261626c65204944000000000000000000604482015260640161065d565b6001898985818110610cfa57610cfa613140565b9050602002013510158015610d2857506005898985818110610d1e57610d1e613140565b9050602002013511155b15610dee576001878785818110610d4157610d41613140565b90506020020135600860008e8e88818110610d5e57610d5e613140565b90506020020135815260200190815260200160002060008c8c88818110610d8757610d87613140565b90506020020135815260200190815260200160002054610da791906131c3565b1115610de95760405162461bcd60e51b815260206004820152601160248201527043616e27742072656465656d206d6f726560781b604482015260640161065d565b610eaa565b6002878785818110610e0257610e02613140565b90506020020135600860008e8e88818110610e1f57610e1f613140565b90506020020135815260200190815260200160002060008c8c88818110610e4857610e48613140565b90506020020135815260200190815260200160002054610e6891906131c3565b1115610eaa5760405162461bcd60e51b815260206004820152601160248201527043616e27742072656465656d206d6f726560781b604482015260640161065d565b868684818110610ebc57610ebc613140565b90506020020135600860008d8d87818110610ed957610ed9613140565b90506020020135815260200190815260200160002060008b8b87818110610f0257610f02613140565b90506020020135815260200190815260200160002054610f2291906131c3565b600860008d8d87818110610f3857610f38613140565b90506020020135815260200190815260200160002060008b8b87818110610f6157610f61613140565b90506020020135815260200190815260200160002081905550868684818110610f8c57610f8c613140565b90506020020135600960008b8b87818110610fa957610fa9613140565b90506020020135815260200190815260200160002054610fc991906131c3565b600960008b8b87818110610fdf57610fdf613140565b905060200201358152602001908152602001600020819055506110438d8a8a8681811061100e5761100e613140565b9050602002013589898781811061102757611027613140565b9050602002013560405180602001604052806000815250611e28565b50508061104f906131e9565b90506108b8565b507fc753461743f093ff8bb6ca2bcaa0fc2ae8408f31a46decf20908e63a3cac3e4c8a8a8a8a8a8a8a8a604051611094989796959493929190613234565b60405180910390a150505050505050505050565b6003546001600160a01b031633146110d25760405162461bcd60e51b815260040161065d90613298565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b0316331461111e5760405162461bcd60e51b815260040161065d90613298565b60405133904780156108fc02916000818181858888f1935050505015801561114a573d6000803e3d6000fd5b50565b6001600160a01b03851633148061116957506111698533610567565b6111d05760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161065d565b6111dd8585858585611f33565b5050505050565b6003546001600160a01b0316331461120e5760405162461bcd60e51b815260040161065d90613298565b6001600160f81b0319919091166000908152600b6020908152604090912082358155910135600190910155565b6003546001600160a01b031633146112655760405162461bcd60e51b815260040161065d90613298565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b606081518351146112ec5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161065d565b600083516001600160401b0381111561130757611307612a4f565b604051908082528060200260200182016040528015611330578160200160208202803683370190505b50905060005b84518110156113a85761137b85828151811061135457611354613140565b602002602001015185838151811061136e5761136e613140565b60200260200101516105f5565b82828151811061138d5761138d613140565b60209081029190910101526113a1816131e9565b9050611336565b509392505050565b600654604051635bb209a560e01b8152600481018390526060916001600160a01b0316906000908290635bb209a590602401602060405180830381865afa1580156113ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114239190613173565b60405163172d0c1360e11b8152600481018690529091506000906001600160a01b03841690632e5a182690602401602060405180830381865afa15801561146e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114929190613190565b6001600160f81b031983166000908152600b6020526040902080546001909101549192509060056114c383836131d6565b6114cd90826131c3565b905083156114e3576114e06006826131c3565b90505b60006114f08260016131c3565b6001600160401b0381111561150757611507612a4f565b60405190808252806020026020018201604052801561154c57816020015b60408051808201909152600080825260208201528152602001906001900390816115255790505b5090506000845b8481116115cf5760408051808201825282815260008d815260086020908152838220858352815292902054909182019061158e9060026131d6565b8152508383815181106115a3576115a3613140565b602002602001018190525081806115b9906131e9565b92505080806115c7906131e9565b915050611553565b5085156116a857600760fb1b6000908152600b602052600080516020613797833981519152546116009060016131c3565b90505b600760fb1b600052600b6020526000805160206137978339815191525461162b9060066131c3565b81116116a65760408051808201825282815260008d81526008602090815283822085835281529290205490918201906116659060026131d6565b81525083838151811061167a5761167a613140565b60200260200101819052508180611690906131e9565b925050808061169e906131e9565b915050611603565b505b60015b603160f81b600052600b6020527f8065279e23db622913f662dd7bda9f54374533b89e030da6cf5c8ba84d842eb6546116e6906001906131d6565b81116117615760408051808201825282815260008d81526008602090815283822085835281529290205490918201906117209060016131d6565b81525083838151811061173557611735613140565b6020026020010181905250818061174b906131e9565b9250508080611759906131e9565b9150506116ab565b50909998505050505050505050565b6001600160a01b03831633148061178c575061178c8333610567565b6117a85760405162461bcd60e51b815260040161065d906132cd565b6117b38383836120cf565b505050565b600a60205260009081526040902080546117d190613106565b80601f01602080910402602001604051908101604052809291908181526020018280546117fd90613106565b801561184a5780601f1061181f5761010080835404028352916020019161184a565b820191906000526020600020905b81548152906001019060200180831161182d57829003601f168201915b505050505081565b6003546001600160a01b0316331461187c5760405162461bcd60e51b815260040161065d90613298565b6118866000612259565b565b6003546001600160a01b031633146118b25760405162461bcd60e51b815260040161065d90613298565b6000908152600c60205260409020805460ff19811660ff90911615179055565b6007546001600160a01b031660000361193b5760405162461bcd60e51b815260206004820152602560248201527f4e6f20666f7267696e6720616464726573732073657420666f722074686973206044820152643a37b5b2b760d91b606482015260840161065d565b60005b83811015611b2f5782828281811061195857611958613140565b905060200201356119813387878581811061197557611975613140565b905060200201356105f5565b10156119c75760405162461bcd60e51b81526020600482015260156024820152742237b2b9b713ba1037bbb7103a3432903a37b5b2b760591b604482015260640161065d565b600c60008686848181106119dd576119dd613140565b602090810292909201358352508101919091526040016000205460ff1615611a405760405162461bcd60e51b815260206004820152601660248201527521b0b713ba103337b933b29039bab1b4103a37b5b2b760511b604482015260640161065d565b611a7b33868684818110611a5657611a56613140565b90506020020135858585818110611a6f57611a6f613140565b90506020020135611de5565b6007546001600160a01b031680633a208337858585818110611a9f57611a9f613140565b90506020020135888886818110611ab857611ab8613140565b6040516001600160e01b031960e087901b16815260048101949094526020029190910135602483015250336044820152606401600060405180830381600087803b158015611b0557600080fd5b505af1158015611b19573d6000803e3d6000fd5b505050505080611b28906131e9565b905061193e565b507f9aa0937a34ea9c131de63b8e9bef48f5c9a36106698c73f7f823b5e13be5e3108484848433604051611b67959493929190613316565b60405180910390a150505050565b6003546001600160a01b03163314611b9f5760405162461bcd60e51b815260040161065d90613298565b6000838152600a60205260409020611bb882848361339e565b50505050565b611bc93383836122ab565b5050565b6003546001600160a01b03163314611bf75760405162461bcd60e51b815260040161065d90613298565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b03163314611c435760405162461bcd60e51b815260040161065d90613298565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b03163314611c8f5760405162461bcd60e51b815260040161065d90613298565b60005b85811015611cff57611cef838383818110611caf57611caf613140565b9050602002016020810190611cc49190612a10565b888884818110611cd657611cd6613140565b9050602002013587878581811061102757611027613140565b611cf8816131e9565b9050611c92565b50505050505050565b6001600160a01b038516331480611d245750611d248533610567565b611d405760405162461bcd60e51b815260040161065d906132cd565b6111dd858585858561238b565b6003546001600160a01b03163314611d775760405162461bcd60e51b815260040161065d90613298565b6001600160a01b038116611ddc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161065d565b61114a81612259565b6001600160a01b038316331480611e015750611e018333610567565b611e1d5760405162461bcd60e51b815260040161065d906132cd565b6117b38383836124b5565b6001600160a01b038416611e885760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161065d565b336000611e94856125b9565b90506000611ea1856125b9565b90506000868152602081815260408083206001600160a01b038b16845290915281208054879290611ed39084906131c3565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611cff83600089898989612604565b8151835114611f545760405162461bcd60e51b815260040161065d9061345d565b6001600160a01b038416611f7a5760405162461bcd60e51b815260040161065d906134a5565b3360005b8451811015612061576000858281518110611f9b57611f9b613140565b602002602001015190506000858381518110611fb957611fb9613140565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156120095760405162461bcd60e51b815260040161065d906134ea565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906120469084906131c3565b925050819055505050508061205a906131e9565b9050611f7e565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516120b1929190613534565b60405180910390a46120c781878787878761275f565b505050505050565b6001600160a01b0383166120f55760405162461bcd60e51b815260040161065d90613562565b80518251146121165760405162461bcd60e51b815260040161065d9061345d565b604080516020810190915260009081905233905b83518110156121ec57600084828151811061214757612147613140565b60200260200101519050600084838151811061216557612165613140565b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156121b55760405162461bcd60e51b815260040161065d906135a5565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806121e4816131e9565b91505061212a565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161223d929190613534565b60405180910390a4604080516020810190915260009052611bb8565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03160361231e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161065d565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166123b15760405162461bcd60e51b815260040161065d906134a5565b3360006123bd856125b9565b905060006123ca856125b9565b90506000868152602081815260408083206001600160a01b038c1684529091529020548581101561240d5760405162461bcd60e51b815260040161065d906134ea565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a1682528120805488929061244a9084906131c3565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46124aa848a8a8a8a8a612604565b505050505050505050565b6001600160a01b0383166124db5760405162461bcd60e51b815260040161065d90613562565b3360006124e7846125b9565b905060006124f4846125b9565b60408051602080820183526000918290528882528181528282206001600160a01b038b16835290522054909150848110156125415760405162461bcd60e51b815260040161065d906135a5565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4604080516020810190915260009052611cff565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106125f3576125f3613140565b602090810291909101015292915050565b6001600160a01b0384163b156120c75760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061264890899089908890889088906004016135e9565b6020604051808303816000875af1925050508015612683575060408051601f3d908101601f191682019092526126809181019061362e565b60015b61272f5761268f61364b565b806308c379a0036126c857506126a3613667565b806126ae57506126ca565b8060405162461bcd60e51b815260040161065d91906128f4565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161065d565b6001600160e01b0319811663f23a6e6160e01b14611cff5760405162461bcd60e51b815260040161065d906136f0565b6001600160a01b0384163b156120c75760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906127a39089908990889088908890600401613738565b6020604051808303816000875af19250505080156127de575060408051601f3d908101601f191682019092526127db9181019061362e565b60015b6127ea5761268f61364b565b6001600160e01b0319811663bc197c8160e01b14611cff5760405162461bcd60e51b815260040161065d906136f0565b6001600160a01b038116811461114a57600080fd5b6000806040838503121561284257600080fd5b823561284d8161281a565b946020939093013593505050565b6001600160e01b03198116811461114a57600080fd5b60006020828403121561288357600080fd5b813561288e8161285b565b9392505050565b6000602082840312156128a757600080fd5b5035919050565b6000815180845260005b818110156128d4576020818501810151868301820152016128b8565b506000602082860101526020601f19601f83011685010191505092915050565b60208152600061288e60208301846128ae565b60008083601f84011261291957600080fd5b5081356001600160401b0381111561293057600080fd5b6020830191508360208260051b850101111561294b57600080fd5b9250929050565b60008060008060008060008060a0898b03121561296e57600080fd5b88356129798161281a565b975060208901356129898161281a565b965060408901356001600160401b03808211156129a557600080fd5b6129b18c838d01612907565b909850965060608b01359150808211156129ca57600080fd5b6129d68c838d01612907565b909650945060808b01359150808211156129ef57600080fd5b506129fc8b828c01612907565b999c989b5096995094979396929594505050565b600060208284031215612a2257600080fd5b813561288e8161281a565b60008060408385031215612a4057600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612a8a57612a8a612a4f565b6040525050565b60006001600160401b03821115612aaa57612aaa612a4f565b5060051b60200190565b600082601f830112612ac557600080fd5b81356020612ad282612a91565b604051612adf8282612a65565b83815260059390931b8501820192828101915086841115612aff57600080fd5b8286015b84811015612b1a5780358352918301918301612b03565b509695505050505050565b600082601f830112612b3657600080fd5b81356001600160401b03811115612b4f57612b4f612a4f565b604051612b66601f8301601f191660200182612a65565b818152846020838601011115612b7b57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215612bb057600080fd5b8535612bbb8161281a565b94506020860135612bcb8161281a565b935060408601356001600160401b0380821115612be757600080fd5b612bf389838a01612ab4565b94506060880135915080821115612c0957600080fd5b612c1589838a01612ab4565b93506080880135915080821115612c2b57600080fd5b50612c3888828901612b25565b9150509295509295909350565b6001600160f81b03198116811461114a57600080fd5b60008060608385031215612c6e57600080fd5b8235612c7981612c45565b915060608301841015612c8b57600080fd5b50926020919091019150565b60008060408385031215612caa57600080fd5b82356001600160401b0380821115612cc157600080fd5b818501915085601f830112612cd557600080fd5b81356020612ce282612a91565b604051612cef8282612a65565b83815260059390931b8501820192828101915089841115612d0f57600080fd5b948201945b83861015612d36578535612d278161281a565b82529482019490820190612d14565b96505086013592505080821115612d4c57600080fd5b50612d5985828601612ab4565b9150509250929050565b600081518084526020808501945080840160005b83811015612d9357815187529582019590820190600101612d77565b509495945050505050565b60208152600061288e6020830184612d63565b602080825282518282018190526000919060409081850190868401855b82811015612df357815180518552860151868501529284019290850190600101612dce565b5091979650505050505050565b600080600060608486031215612e1557600080fd5b8335612e208161281a565b925060208401356001600160401b0380821115612e3c57600080fd5b612e4887838801612ab4565b93506040860135915080821115612e5e57600080fd5b50612e6b86828701612ab4565b9150509250925092565b60008060008060408587031215612e8b57600080fd5b84356001600160401b0380821115612ea257600080fd5b612eae88838901612907565b90965094506020870135915080821115612ec757600080fd5b50612ed487828801612907565b95989497509550505050565b600080600060408486031215612ef557600080fd5b8335925060208401356001600160401b0380821115612f1357600080fd5b818601915086601f830112612f2757600080fd5b813581811115612f3657600080fd5b876020828501011115612f4857600080fd5b6020830194508093505050509250925092565b801515811461114a57600080fd5b60008060408385031215612f7c57600080fd5b8235612f878161281a565b91506020830135612f9781612f5b565b809150509250929050565b60008060008060008060608789031215612fbb57600080fd5b86356001600160401b0380821115612fd257600080fd5b612fde8a838b01612907565b90985096506020890135915080821115612ff757600080fd5b6130038a838b01612907565b9096509450604089013591508082111561301c57600080fd5b5061302989828a01612907565b979a9699509497509295939492505050565b6000806040838503121561304e57600080fd5b82356130598161281a565b91506020830135612f978161281a565b600080600080600060a0868803121561308157600080fd5b853561308c8161281a565b9450602086013561309c8161281a565b9350604086013592506060860135915060808601356001600160401b038111156130c557600080fd5b612c3888828901612b25565b6000806000606084860312156130e657600080fd5b83356130f18161281a565b95602085013595506040909401359392505050565b600181811c9082168061311a57607f821691505b60208210810361313a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561316857600080fd5b815161288e8161281a565b60006020828403121561318557600080fd5b815161288e81612c45565b6000602082840312156131a257600080fd5b815161288e81612f5b565b634e487b7160e01b600052601160045260246000fd5b80820180821115610689576106896131ad565b81810381811115610689576106896131ad565b6000600182016131fb576131fb6131ad565b5060010190565b81835260006001600160fb1b0383111561321b57600080fd5b8260051b80836020870137939093016020019392505050565b6001600160a01b0389811682528816602082015260a060408201819052600090613261908301888a613202565b8281036060840152613274818789613202565b90508281036080840152613289818587613202565b9b9a5050505050505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60608152600061332a606083018789613202565b828103602084015261333d818688613202565b91505060018060a01b03831660408301529695505050505050565b601f8211156117b357600081815260208120601f850160051c8101602086101561337f5750805b601f850160051c820191505b818110156120c75782815560010161338b565b6001600160401b038311156133b5576133b5612a4f565b6133c9836133c38354613106565b83613358565b6000601f8411600181146133fd57600085156133e55750838201355b600019600387901b1c1916600186901b1783556111dd565b600083815260209020601f19861690835b8281101561342e578685013582556020948501946001909201910161340e565b508682101561344b5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006135476040830185612d63565b82810360208401526135598185612d63565b95945050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090613623908301846128ae565b979650505050505050565b60006020828403121561364057600080fd5b815161288e8161285b565b600060033d11156136645760046000803e5060005160e01c5b90565b600060443d10156136755790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156136a457505050505090565b82850191508151818111156136bc5750505050505090565b843d87010160208285010111156136d65750505050505090565b6136e560208286010187612a65565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061376490830186612d63565b82810360608401526137768186612d63565b9050828103608084015261378a81856128ae565b9897505050505050505056fe0d6e7dbb57ef4b0f0876c6467ffb030d74d604e1da83bf11b49878582df3d30ea2646970667358221220d92b1bba906608649a31236818ccda1f74cd9cdba9215f0f2bfb33bd8fc3377e64736f6c63430008100033
Deployed Bytecode
0x6080604052600436106101c15760003560e01c80636c8b703f116100f7578063a22cb46511610095578063e985e9c511610064578063e985e9c51461054c578063f242432a14610595578063f2fde38b146105b5578063f5298aca146105d557600080fd5b8063a22cb465146104cc578063b7d8e1a9146104ec578063c72a3b871461050c578063cfea3ca31461052c57600080fd5b80637bbd1995116100d15780637bbd1995146104375780638da5cb5b14610457578063a0403eed1461047f578063a1af1b02146104ac57600080fd5b80636c8b703f146103e2578063715018a614610402578063761cf5821461041757600080fd5b80632eb2c2d6116101645780634e1273f41161013e5780634e1273f4146103385780635e3b75d9146103655780636aa2b286146103925780636b20c454146103c257600080fd5b80632eb2c2d6146102d8578063397d1481146102f85780634b04d6b71461031857600080fd5b80630ec4830f116101a05780630ec4830f14610256578063181d38391461026b57806324600fc31461028b578063290dc752146102a057600080fd5b8062fdd58e146101c657806301ffc9a7146101f95780630e89341c14610229575b600080fd5b3480156101d257600080fd5b506101e66101e136600461282f565b6105f5565b6040519081526020015b60405180910390f35b34801561020557600080fd5b50610219610214366004612871565b61068f565b60405190151581526020016101f0565b34801561023557600080fd5b50610249610244366004612895565b6106df565b6040516101f091906128f4565b610269610264366004612952565b610781565b005b34801561027757600080fd5b50610269610286366004612a10565b6110a8565b34801561029757600080fd5b506102696110f4565b3480156102ac57600080fd5b506101e66102bb366004612a2d565b600860209081526000928352604080842090915290825290205481565b3480156102e457600080fd5b506102696102f3366004612b98565b61114d565b34801561030457600080fd5b50610269610313366004612c5b565b6111e4565b34801561032457600080fd5b50610269610333366004612a10565b61123b565b34801561034457600080fd5b50610358610353366004612c97565b611287565b6040516101f09190612d9e565b34801561037157600080fd5b50610385610380366004612895565b6113b0565b6040516101f09190612db1565b34801561039e57600080fd5b506102196103ad366004612895565b600c6020526000908152604090205460ff1681565b3480156103ce57600080fd5b506102696103dd366004612e00565b611770565b3480156103ee57600080fd5b506102496103fd366004612895565b6117b8565b34801561040e57600080fd5b50610269611852565b34801561042357600080fd5b50610269610432366004612895565b611888565b34801561044357600080fd5b50610269610452366004612e75565b6118d2565b34801561046357600080fd5b506003546040516001600160a01b0390911681526020016101f0565b34801561048b57600080fd5b506101e661049a366004612895565b60096020526000908152604090205481565b3480156104b857600080fd5b506102696104c7366004612ee0565b611b75565b3480156104d857600080fd5b506102696104e7366004612f69565b611bbe565b3480156104f857600080fd5b50610269610507366004612a10565b611bcd565b34801561051857600080fd5b50610269610527366004612a10565b611c19565b34801561053857600080fd5b50610269610547366004612fa2565b611c65565b34801561055857600080fd5b5061021961056736600461303b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156105a157600080fd5b506102696105b0366004613069565b611d08565b3480156105c157600080fd5b506102696105d0366004612a10565b611d4d565b3480156105e157600080fd5b506102696105f03660046130d1565b611de5565b60006001600160a01b0383166106665760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b14806106c057506001600160e01b031982166303a24d0760e21b145b8061068957506301ffc9a760e01b6001600160e01b0319831614610689565b6000818152600a602052604090208054606091906106fc90613106565b80601f016020809104026020016040519081016040528092919081815260200182805461072890613106565b80156107755780601f1061074a57610100808354040283529160200191610775565b820191906000526020600020905b81548152906001019060200180831161075857829003601f168201915b50505050509050919050565b6004546001600160a01b031633146107cc5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015260640161065d565b6005546001600160a01b0388811691161461081a5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015260640161065d565b84831461085e5760405162461bcd60e51b815260206004820152601260248201527109ad2e6dac2e8c6d040decc40d8cadccee8d60731b604482015260640161065d565b8481146108a25760405162461bcd60e51b815260206004820152601260248201527109ad2e6dac2e8c6d040decc40d8cadccee8d60731b604482015260640161065d565b6005546006546001600160a01b03918216911660005b87811015611056578a6001600160a01b0316836001600160a01b0316636352211e8b8b858181106108eb576108eb613140565b905060200201356040518263ffffffff1660e01b815260040161091091815260200190565b602060405180830381865afa15801561092d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109519190613156565b6001600160a01b03161461099e5760405162461bcd60e51b81526020600482015260146024820152732237b713ba1037bbb7103a3430ba103a37b5b2b760611b604482015260640161065d565b6000826001600160a01b0316635bb209a58b8b858181106109c1576109c1613140565b905060200201356040518263ffffffff1660e01b81526004016109e691815260200190565b602060405180830381865afa158015610a03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a279190613173565b90506001600160f81b03198116600003610a7c5760405162461bcd60e51b815260206004820152601660248201527510db1bdb99481b595d1859185d18481b9bdd081cd95d60521b604482015260640161065d565b6000836001600160a01b0316632e5a18268c8c86818110610a9f57610a9f613140565b905060200201356040518263ffffffff1660e01b8152600401610ac491815260200190565b602060405180830381865afa158015610ae1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b059190613190565b6001600160f81b031983166000908152600b6020526040902054909150898985818110610b3457610b34613140565b9050602002013510158015610b7d57506001600160f81b031982166000908152600b6020526040902060010154898985818110610b7357610b73613140565b9050602002013511155b80610c195750808015610c195750600760fb1b600052600b60205260008051602061379783398151915254610bb39060016131c3565b898985818110610bc557610bc5613140565b9050602002013510158015610c195750600760fb1b600052600b60205260008051602061379783398151915254610bfd9060066131c3565b898985818110610c0f57610c0f613140565b9050602002013511155b80610c9a57506001898985818110610c3357610c33613140565b9050602002013510158015610c9a5750603160f81b600052600b6020527f8065279e23db622913f662dd7bda9f54374533b89e030da6cf5c8ba84d842eb654610c7e906001906131d6565b898985818110610c9057610c90613140565b9050602002013511155b610ce65760405162461bcd60e51b815260206004820152601760248201527f4d69736d61746368206f66207765617261626c65204944000000000000000000604482015260640161065d565b6001898985818110610cfa57610cfa613140565b9050602002013510158015610d2857506005898985818110610d1e57610d1e613140565b9050602002013511155b15610dee576001878785818110610d4157610d41613140565b90506020020135600860008e8e88818110610d5e57610d5e613140565b90506020020135815260200190815260200160002060008c8c88818110610d8757610d87613140565b90506020020135815260200190815260200160002054610da791906131c3565b1115610de95760405162461bcd60e51b815260206004820152601160248201527043616e27742072656465656d206d6f726560781b604482015260640161065d565b610eaa565b6002878785818110610e0257610e02613140565b90506020020135600860008e8e88818110610e1f57610e1f613140565b90506020020135815260200190815260200160002060008c8c88818110610e4857610e48613140565b90506020020135815260200190815260200160002054610e6891906131c3565b1115610eaa5760405162461bcd60e51b815260206004820152601160248201527043616e27742072656465656d206d6f726560781b604482015260640161065d565b868684818110610ebc57610ebc613140565b90506020020135600860008d8d87818110610ed957610ed9613140565b90506020020135815260200190815260200160002060008b8b87818110610f0257610f02613140565b90506020020135815260200190815260200160002054610f2291906131c3565b600860008d8d87818110610f3857610f38613140565b90506020020135815260200190815260200160002060008b8b87818110610f6157610f61613140565b90506020020135815260200190815260200160002081905550868684818110610f8c57610f8c613140565b90506020020135600960008b8b87818110610fa957610fa9613140565b90506020020135815260200190815260200160002054610fc991906131c3565b600960008b8b87818110610fdf57610fdf613140565b905060200201358152602001908152602001600020819055506110438d8a8a8681811061100e5761100e613140565b9050602002013589898781811061102757611027613140565b9050602002013560405180602001604052806000815250611e28565b50508061104f906131e9565b90506108b8565b507fc753461743f093ff8bb6ca2bcaa0fc2ae8408f31a46decf20908e63a3cac3e4c8a8a8a8a8a8a8a8a604051611094989796959493929190613234565b60405180910390a150505050505050505050565b6003546001600160a01b031633146110d25760405162461bcd60e51b815260040161065d90613298565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b0316331461111e5760405162461bcd60e51b815260040161065d90613298565b60405133904780156108fc02916000818181858888f1935050505015801561114a573d6000803e3d6000fd5b50565b6001600160a01b03851633148061116957506111698533610567565b6111d05760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161065d565b6111dd8585858585611f33565b5050505050565b6003546001600160a01b0316331461120e5760405162461bcd60e51b815260040161065d90613298565b6001600160f81b0319919091166000908152600b6020908152604090912082358155910135600190910155565b6003546001600160a01b031633146112655760405162461bcd60e51b815260040161065d90613298565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b606081518351146112ec5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161065d565b600083516001600160401b0381111561130757611307612a4f565b604051908082528060200260200182016040528015611330578160200160208202803683370190505b50905060005b84518110156113a85761137b85828151811061135457611354613140565b602002602001015185838151811061136e5761136e613140565b60200260200101516105f5565b82828151811061138d5761138d613140565b60209081029190910101526113a1816131e9565b9050611336565b509392505050565b600654604051635bb209a560e01b8152600481018390526060916001600160a01b0316906000908290635bb209a590602401602060405180830381865afa1580156113ff573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114239190613173565b60405163172d0c1360e11b8152600481018690529091506000906001600160a01b03841690632e5a182690602401602060405180830381865afa15801561146e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114929190613190565b6001600160f81b031983166000908152600b6020526040902080546001909101549192509060056114c383836131d6565b6114cd90826131c3565b905083156114e3576114e06006826131c3565b90505b60006114f08260016131c3565b6001600160401b0381111561150757611507612a4f565b60405190808252806020026020018201604052801561154c57816020015b60408051808201909152600080825260208201528152602001906001900390816115255790505b5090506000845b8481116115cf5760408051808201825282815260008d815260086020908152838220858352815292902054909182019061158e9060026131d6565b8152508383815181106115a3576115a3613140565b602002602001018190525081806115b9906131e9565b92505080806115c7906131e9565b915050611553565b5085156116a857600760fb1b6000908152600b602052600080516020613797833981519152546116009060016131c3565b90505b600760fb1b600052600b6020526000805160206137978339815191525461162b9060066131c3565b81116116a65760408051808201825282815260008d81526008602090815283822085835281529290205490918201906116659060026131d6565b81525083838151811061167a5761167a613140565b60200260200101819052508180611690906131e9565b925050808061169e906131e9565b915050611603565b505b60015b603160f81b600052600b6020527f8065279e23db622913f662dd7bda9f54374533b89e030da6cf5c8ba84d842eb6546116e6906001906131d6565b81116117615760408051808201825282815260008d81526008602090815283822085835281529290205490918201906117209060016131d6565b81525083838151811061173557611735613140565b6020026020010181905250818061174b906131e9565b9250508080611759906131e9565b9150506116ab565b50909998505050505050505050565b6001600160a01b03831633148061178c575061178c8333610567565b6117a85760405162461bcd60e51b815260040161065d906132cd565b6117b38383836120cf565b505050565b600a60205260009081526040902080546117d190613106565b80601f01602080910402602001604051908101604052809291908181526020018280546117fd90613106565b801561184a5780601f1061181f5761010080835404028352916020019161184a565b820191906000526020600020905b81548152906001019060200180831161182d57829003601f168201915b505050505081565b6003546001600160a01b0316331461187c5760405162461bcd60e51b815260040161065d90613298565b6118866000612259565b565b6003546001600160a01b031633146118b25760405162461bcd60e51b815260040161065d90613298565b6000908152600c60205260409020805460ff19811660ff90911615179055565b6007546001600160a01b031660000361193b5760405162461bcd60e51b815260206004820152602560248201527f4e6f20666f7267696e6720616464726573732073657420666f722074686973206044820152643a37b5b2b760d91b606482015260840161065d565b60005b83811015611b2f5782828281811061195857611958613140565b905060200201356119813387878581811061197557611975613140565b905060200201356105f5565b10156119c75760405162461bcd60e51b81526020600482015260156024820152742237b2b9b713ba1037bbb7103a3432903a37b5b2b760591b604482015260640161065d565b600c60008686848181106119dd576119dd613140565b602090810292909201358352508101919091526040016000205460ff1615611a405760405162461bcd60e51b815260206004820152601660248201527521b0b713ba103337b933b29039bab1b4103a37b5b2b760511b604482015260640161065d565b611a7b33868684818110611a5657611a56613140565b90506020020135858585818110611a6f57611a6f613140565b90506020020135611de5565b6007546001600160a01b031680633a208337858585818110611a9f57611a9f613140565b90506020020135888886818110611ab857611ab8613140565b6040516001600160e01b031960e087901b16815260048101949094526020029190910135602483015250336044820152606401600060405180830381600087803b158015611b0557600080fd5b505af1158015611b19573d6000803e3d6000fd5b505050505080611b28906131e9565b905061193e565b507f9aa0937a34ea9c131de63b8e9bef48f5c9a36106698c73f7f823b5e13be5e3108484848433604051611b67959493929190613316565b60405180910390a150505050565b6003546001600160a01b03163314611b9f5760405162461bcd60e51b815260040161065d90613298565b6000838152600a60205260409020611bb882848361339e565b50505050565b611bc93383836122ab565b5050565b6003546001600160a01b03163314611bf75760405162461bcd60e51b815260040161065d90613298565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b03163314611c435760405162461bcd60e51b815260040161065d90613298565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b03163314611c8f5760405162461bcd60e51b815260040161065d90613298565b60005b85811015611cff57611cef838383818110611caf57611caf613140565b9050602002016020810190611cc49190612a10565b888884818110611cd657611cd6613140565b9050602002013587878581811061102757611027613140565b611cf8816131e9565b9050611c92565b50505050505050565b6001600160a01b038516331480611d245750611d248533610567565b611d405760405162461bcd60e51b815260040161065d906132cd565b6111dd858585858561238b565b6003546001600160a01b03163314611d775760405162461bcd60e51b815260040161065d90613298565b6001600160a01b038116611ddc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161065d565b61114a81612259565b6001600160a01b038316331480611e015750611e018333610567565b611e1d5760405162461bcd60e51b815260040161065d906132cd565b6117b38383836124b5565b6001600160a01b038416611e885760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161065d565b336000611e94856125b9565b90506000611ea1856125b9565b90506000868152602081815260408083206001600160a01b038b16845290915281208054879290611ed39084906131c3565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611cff83600089898989612604565b8151835114611f545760405162461bcd60e51b815260040161065d9061345d565b6001600160a01b038416611f7a5760405162461bcd60e51b815260040161065d906134a5565b3360005b8451811015612061576000858281518110611f9b57611f9b613140565b602002602001015190506000858381518110611fb957611fb9613140565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156120095760405162461bcd60e51b815260040161065d906134ea565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906120469084906131c3565b925050819055505050508061205a906131e9565b9050611f7e565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516120b1929190613534565b60405180910390a46120c781878787878761275f565b505050505050565b6001600160a01b0383166120f55760405162461bcd60e51b815260040161065d90613562565b80518251146121165760405162461bcd60e51b815260040161065d9061345d565b604080516020810190915260009081905233905b83518110156121ec57600084828151811061214757612147613140565b60200260200101519050600084838151811061216557612165613140565b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156121b55760405162461bcd60e51b815260040161065d906135a5565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806121e4816131e9565b91505061212a565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161223d929190613534565b60405180910390a4604080516020810190915260009052611bb8565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03160361231e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161065d565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166123b15760405162461bcd60e51b815260040161065d906134a5565b3360006123bd856125b9565b905060006123ca856125b9565b90506000868152602081815260408083206001600160a01b038c1684529091529020548581101561240d5760405162461bcd60e51b815260040161065d906134ea565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a1682528120805488929061244a9084906131c3565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46124aa848a8a8a8a8a612604565b505050505050505050565b6001600160a01b0383166124db5760405162461bcd60e51b815260040161065d90613562565b3360006124e7846125b9565b905060006124f4846125b9565b60408051602080820183526000918290528882528181528282206001600160a01b038b16835290522054909150848110156125415760405162461bcd60e51b815260040161065d906135a5565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4604080516020810190915260009052611cff565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106125f3576125f3613140565b602090810291909101015292915050565b6001600160a01b0384163b156120c75760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061264890899089908890889088906004016135e9565b6020604051808303816000875af1925050508015612683575060408051601f3d908101601f191682019092526126809181019061362e565b60015b61272f5761268f61364b565b806308c379a0036126c857506126a3613667565b806126ae57506126ca565b8060405162461bcd60e51b815260040161065d91906128f4565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161065d565b6001600160e01b0319811663f23a6e6160e01b14611cff5760405162461bcd60e51b815260040161065d906136f0565b6001600160a01b0384163b156120c75760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906127a39089908990889088908890600401613738565b6020604051808303816000875af19250505080156127de575060408051601f3d908101601f191682019092526127db9181019061362e565b60015b6127ea5761268f61364b565b6001600160e01b0319811663bc197c8160e01b14611cff5760405162461bcd60e51b815260040161065d906136f0565b6001600160a01b038116811461114a57600080fd5b6000806040838503121561284257600080fd5b823561284d8161281a565b946020939093013593505050565b6001600160e01b03198116811461114a57600080fd5b60006020828403121561288357600080fd5b813561288e8161285b565b9392505050565b6000602082840312156128a757600080fd5b5035919050565b6000815180845260005b818110156128d4576020818501810151868301820152016128b8565b506000602082860101526020601f19601f83011685010191505092915050565b60208152600061288e60208301846128ae565b60008083601f84011261291957600080fd5b5081356001600160401b0381111561293057600080fd5b6020830191508360208260051b850101111561294b57600080fd5b9250929050565b60008060008060008060008060a0898b03121561296e57600080fd5b88356129798161281a565b975060208901356129898161281a565b965060408901356001600160401b03808211156129a557600080fd5b6129b18c838d01612907565b909850965060608b01359150808211156129ca57600080fd5b6129d68c838d01612907565b909650945060808b01359150808211156129ef57600080fd5b506129fc8b828c01612907565b999c989b5096995094979396929594505050565b600060208284031215612a2257600080fd5b813561288e8161281a565b60008060408385031215612a4057600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612a8a57612a8a612a4f565b6040525050565b60006001600160401b03821115612aaa57612aaa612a4f565b5060051b60200190565b600082601f830112612ac557600080fd5b81356020612ad282612a91565b604051612adf8282612a65565b83815260059390931b8501820192828101915086841115612aff57600080fd5b8286015b84811015612b1a5780358352918301918301612b03565b509695505050505050565b600082601f830112612b3657600080fd5b81356001600160401b03811115612b4f57612b4f612a4f565b604051612b66601f8301601f191660200182612a65565b818152846020838601011115612b7b57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215612bb057600080fd5b8535612bbb8161281a565b94506020860135612bcb8161281a565b935060408601356001600160401b0380821115612be757600080fd5b612bf389838a01612ab4565b94506060880135915080821115612c0957600080fd5b612c1589838a01612ab4565b93506080880135915080821115612c2b57600080fd5b50612c3888828901612b25565b9150509295509295909350565b6001600160f81b03198116811461114a57600080fd5b60008060608385031215612c6e57600080fd5b8235612c7981612c45565b915060608301841015612c8b57600080fd5b50926020919091019150565b60008060408385031215612caa57600080fd5b82356001600160401b0380821115612cc157600080fd5b818501915085601f830112612cd557600080fd5b81356020612ce282612a91565b604051612cef8282612a65565b83815260059390931b8501820192828101915089841115612d0f57600080fd5b948201945b83861015612d36578535612d278161281a565b82529482019490820190612d14565b96505086013592505080821115612d4c57600080fd5b50612d5985828601612ab4565b9150509250929050565b600081518084526020808501945080840160005b83811015612d9357815187529582019590820190600101612d77565b509495945050505050565b60208152600061288e6020830184612d63565b602080825282518282018190526000919060409081850190868401855b82811015612df357815180518552860151868501529284019290850190600101612dce565b5091979650505050505050565b600080600060608486031215612e1557600080fd5b8335612e208161281a565b925060208401356001600160401b0380821115612e3c57600080fd5b612e4887838801612ab4565b93506040860135915080821115612e5e57600080fd5b50612e6b86828701612ab4565b9150509250925092565b60008060008060408587031215612e8b57600080fd5b84356001600160401b0380821115612ea257600080fd5b612eae88838901612907565b90965094506020870135915080821115612ec757600080fd5b50612ed487828801612907565b95989497509550505050565b600080600060408486031215612ef557600080fd5b8335925060208401356001600160401b0380821115612f1357600080fd5b818601915086601f830112612f2757600080fd5b813581811115612f3657600080fd5b876020828501011115612f4857600080fd5b6020830194508093505050509250925092565b801515811461114a57600080fd5b60008060408385031215612f7c57600080fd5b8235612f878161281a565b91506020830135612f9781612f5b565b809150509250929050565b60008060008060008060608789031215612fbb57600080fd5b86356001600160401b0380821115612fd257600080fd5b612fde8a838b01612907565b90985096506020890135915080821115612ff757600080fd5b6130038a838b01612907565b9096509450604089013591508082111561301c57600080fd5b5061302989828a01612907565b979a9699509497509295939492505050565b6000806040838503121561304e57600080fd5b82356130598161281a565b91506020830135612f978161281a565b600080600080600060a0868803121561308157600080fd5b853561308c8161281a565b9450602086013561309c8161281a565b9350604086013592506060860135915060808601356001600160401b038111156130c557600080fd5b612c3888828901612b25565b6000806000606084860312156130e657600080fd5b83356130f18161281a565b95602085013595506040909401359392505050565b600181811c9082168061311a57607f821691505b60208210810361313a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561316857600080fd5b815161288e8161281a565b60006020828403121561318557600080fd5b815161288e81612c45565b6000602082840312156131a257600080fd5b815161288e81612f5b565b634e487b7160e01b600052601160045260246000fd5b80820180821115610689576106896131ad565b81810381811115610689576106896131ad565b6000600182016131fb576131fb6131ad565b5060010190565b81835260006001600160fb1b0383111561321b57600080fd5b8260051b80836020870137939093016020019392505050565b6001600160a01b0389811682528816602082015260a060408201819052600090613261908301888a613202565b8281036060840152613274818789613202565b90508281036080840152613289818587613202565b9b9a5050505050505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60608152600061332a606083018789613202565b828103602084015261333d818688613202565b91505060018060a01b03831660408301529695505050505050565b601f8211156117b357600081815260208120601f850160051c8101602086101561337f5750805b601f850160051c820191505b818110156120c75782815560010161338b565b6001600160401b038311156133b5576133b5612a4f565b6133c9836133c38354613106565b83613358565b6000601f8411600181146133fd57600085156133e55750838201355b600019600387901b1c1916600186901b1783556111dd565b600083815260209020601f19861690835b8281101561342e578685013582556020948501946001909201910161340e565b508682101561344b5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006135476040830185612d63565b82810360208401526135598185612d63565b95945050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090613623908301846128ae565b979650505050505050565b60006020828403121561364057600080fd5b815161288e8161285b565b600060033d11156136645760046000803e5060005160e01c5b90565b600060443d10156136755790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156136a457505050505090565b82850191508151818111156136bc5750505050505090565b843d87010160208285010111156136d65750505050505090565b6136e560208286010187612a65565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061376490830186612d63565b82810360608401526137768186612d63565b9050828103608084015261378a81856128ae565b9897505050505050505056fe0d6e7dbb57ef4b0f0876c6467ffb030d74d604e1da83bf11b49878582df3d30ea2646970667358221220d92b1bba906608649a31236818ccda1f74cd9cdba9215f0f2bfb33bd8fc3377e64736f6c63430008100033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.