More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 28 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mint | 18314622 | 489 days ago | IN | 0.025 ETH | 0.00096447 | ||||
Mint | 16903951 | 688 days ago | IN | 0.025 ETH | 0.00082363 | ||||
Mint | 16884993 | 690 days ago | IN | 0.025 ETH | 0.00262429 | ||||
Mint | 16877058 | 692 days ago | IN | 0.025 ETH | 0.00238472 | ||||
Mint | 16875318 | 692 days ago | IN | 0.025 ETH | 0.00103993 | ||||
Mint | 16805177 | 702 days ago | IN | 0.025 ETH | 0.00370052 | ||||
Mint | 16745027 | 710 days ago | IN | 0.025 ETH | 0.00323479 | ||||
Mint | 16664574 | 721 days ago | IN | 0.025 ETH | 0.00204461 | ||||
Mint | 16496942 | 745 days ago | IN | 0.025 ETH | 0.00126077 | ||||
Mint | 16335528 | 767 days ago | IN | 0.025 ETH | 0.0013631 | ||||
Mint | 16271317 | 776 days ago | IN | 0.025 ETH | 0.00099378 | ||||
Mint | 16166432 | 791 days ago | IN | 0.025 ETH | 0.00127728 | ||||
Mint | 16079960 | 803 days ago | IN | 0.025 ETH | 0.00102955 | ||||
Mint | 15992207 | 815 days ago | IN | 0.025 ETH | 0.00135352 | ||||
Mint | 15977999 | 817 days ago | IN | 0.025 ETH | 0.00136788 | ||||
Mint | 15972850 | 818 days ago | IN | 0.025 ETH | 0.00167176 | ||||
Mint | 15942295 | 822 days ago | IN | 0.025 ETH | 0.00184818 | ||||
Mint | 15899962 | 828 days ago | IN | 0.025 ETH | 0.00100067 | ||||
Transfer | 15884044 | 830 days ago | IN | 0 ETH | 0.00243231 | ||||
Mint | 15883989 | 830 days ago | IN | 0.025 ETH | 0.00211167 | ||||
Transfer | 15883982 | 830 days ago | IN | 0 ETH | 0.00128923 | ||||
Set Loot Address | 15883767 | 830 days ago | IN | 0 ETH | 0.00071305 | ||||
Set Base URI | 15883748 | 830 days ago | IN | 0 ETH | 0.00226443 | ||||
Set Relay | 15883744 | 830 days ago | IN | 0 ETH | 0.00111815 | ||||
Set Key Token Id | 15883741 | 830 days ago | IN | 0 ETH | 0.00113804 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
MagicMirror
Compiler Version
v0.8.8+commit.dddeac2f
Optimization Enabled:
Yes with 2000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; contract MagicMirror is IERC1155Receiver, ERC721, ERC2981, Ownable { using Address for address; using Strings for uint256; IERC721 public token; uint256 public price; string public baseURI; address public keyTokenAddress; uint256 public keyTokenId; address private _relay; constructor( string memory _name, string memory _symbol, IERC721 _token ) ERC721(_name, _symbol) { token = _token; } /** * *** EXTERNAL *** * * @notice Mint `tokenIds` * * @param tokenIds | the token ids to mint * * Requirements: * * - must own EightBit token with `tokenId` */ function mint(uint256[] memory tokenIds) external payable { require(msg.value == price * tokenIds.length, "MagicMirror#mint: INCORRECT_ETH_VALUE"); for (uint256 i = 0; i < tokenIds.length; i++) { if (!_exists(tokenIds[i])) { _mint(tokenIds[i], msg.sender); } else { require(ownerOf(tokenIds[i]) == msg.sender, "MagicMirror#mint: MUST_BE_OWNER"); emit PaymentReceived(msg.sender, tokenIds[i]); } } } /** * *** PUBLIC *** * * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "MagicMirror#tokenURI: TOKEN_DOES_NOT_EXIST"); return string(abi.encodePacked(baseURI, tokenId.toString())); } /** * *** ONLY OWNER *** * * @notice set the base token uri * * @param _baseURI | the new base URI */ function setBaseURI(string memory _baseURI) external onlyOwner { baseURI = _baseURI; emit SetBaseURI({ baseURI: baseURI }); } /** * *** ONLY OWNER *** * * @notice set/update the token price * * @param _price | the new price */ function setPrice(uint256 _price) external onlyOwner { price = _price; emit SetPrice({ price: price }); } /** * *** ONLY OWNER *** * * @notice set/update the key token address * * @param _keyTokenAddress | the new loot address */ function setLootAddress(address _keyTokenAddress) external onlyOwner { keyTokenAddress = _keyTokenAddress; emit SetKeyTokenAddress({ keyTokenAddress: keyTokenAddress }); } /** * *** ONLY OWNER *** * * @notice set/update the key token id * * @param _keyTokenId | the new loot token id */ function setKeyTokenId(uint256 _keyTokenId) external onlyOwner { keyTokenId = _keyTokenId; emit SetKeyTokenId({ keyTokenId: keyTokenId }); } /** * *** ONLY OWNER *** * * @notice withdraw ether */ function withdraw() external onlyOwner { uint256 balance = address(this).balance; Address.sendValue(payable(msg.sender), balance); emit WithdrawBalance({ balance: balance }); } /** * *** ONLY OWNER *** * * @notice set / update balance */ function transfer( address from, address to, uint256 tokenId ) external { require(msg.sender == _relay, "MagicMirror#transfer: ONLY_RELAY"); _transfer(from, to, tokenId); } /** * *** ONLY OWNER *** * * @notice set / update balance */ function setRelay(address relay) external onlyOwner { _relay = relay; emit SetRelay(_relay); } /** * *** INTERNAL *** * * @notice Mint relection `tokenId` * * @param tokenId | the token id to mint * * Requirements: * * - must own EightBit token with `tokenId` */ function _mint(uint256 tokenId, address operator) internal { require(token.ownerOf(tokenId) == operator, "MagicMirror#mint: MUST_OWN_BOUND_TOKEN"); _mint(operator, tokenId); emit PaymentReceived(operator, tokenId); } /** * @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 id The ID of the token being transferred * @param value The amount of tokens being transferred * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address, uint256 id, uint256 value, bytes calldata data ) external override returns (bytes4) { require(msg.sender == keyTokenAddress, "MagicMirror#onERC1155Received: ONLY_LOOT"); require(id == keyTokenId, "MagicMirror#onERC1155Received: INVALID_TOKEN_ID"); require(value == 1, "MagicMirror#onERC1155Received: BATCH_NOT_SUPPORTED"); uint256 tokenId = uint256(bytes32(data)); if (!_exists(tokenId)) { _mint(tokenId, operator); } else { emit PaymentReceived(operator, tokenId); } return this.onERC1155Received.selector; } function onERC1155BatchReceived( address, address, uint256[] calldata, uint256[] calldata, bytes calldata ) public virtual override returns (bytes4) { revert("MagicMirror#onERC1155BatchReceived: BATCH_NOT_SUPPORTED"); } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address, address, uint256 ) public virtual override { revert("MagicMirror#transferFrom: NON_TRANSFERABLE"); } /** * @dev See {IERC721-approve}. */ function approve(address, uint256) public virtual override { revert("MagicMirror#approve: NON_TRANSFERABLE"); } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address, bool) public virtual override { revert("MagicMirror#setApprovalForAll: NON_TRANSFERABLE"); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address, address, uint256 ) public virtual override { revert("MagicMirror#safeTransferFrom: NON_TRANSFERABLE"); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address, address, uint256, bytes memory ) public virtual override { revert("MagicMirror#safeTransferFrom: NON_TRANSFERABLE"); } /** * @dev See {IERC165-supportsInterface} * @param interfaceId | the interface id to query support for */ function supportsInterface(bytes4 interfaceId) public view override(IERC165, ERC721, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } event PaymentReceived(address operator, uint256 tokenId); event SetBaseURI(string baseURI); event SetKeyTokenAddress(address keyTokenAddress); event SetKeyTokenId(uint256 keyTokenId); event SetPrice(uint256 price); event SetRelay(address relay); event WithdrawBalance(uint256 balance); }
// 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.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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 (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 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `tokenId` must be already minted. * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
{ "optimizer": { "enabled": true, "runs": 2000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"contract IERC721","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"SetBaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"keyTokenAddress","type":"address"}],"name":"SetKeyTokenAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"keyTokenId","type":"uint256"}],"name":"SetKeyTokenId","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"SetPrice","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"relay","type":"address"}],"name":"SetRelay","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"balance","type":"uint256"}],"name":"WithdrawBalance","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keyTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keyTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bool","name":"","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_keyTokenId","type":"uint256"}],"name":"setKeyTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_keyTokenAddress","type":"address"}],"name":"setLootAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"relay","type":"address"}],"name":"setRelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162002bc538038062002bc5833981016040819052620000349162000272565b8251839083906200004d906000906020850190620000ff565b50805162000063906001906020840190620000ff565b505050620000806200007a620000a960201b60201c565b620000ad565b600980546001600160a01b0319166001600160a01b0392909216919091179055506200033c9050565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200010d90620002ff565b90600052602060002090601f0160209004810192826200013157600085556200017c565b82601f106200014c57805160ff19168380011785556200017c565b828001600101855582156200017c579182015b828111156200017c5782518255916020019190600101906200015f565b506200018a9291506200018e565b5090565b5b808211156200018a57600081556001016200018f565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001cd57600080fd5b81516001600160401b0380821115620001ea57620001ea620001a5565b604051601f8301601f19908116603f01168101908282118183101715620002155762000215620001a5565b816040528381526020925086838588010111156200023257600080fd5b600091505b8382101562000256578582018301518183018401529082019062000237565b83821115620002685760008385830101525b9695505050505050565b6000806000606084860312156200028857600080fd5b83516001600160401b0380821115620002a057600080fd5b620002ae87838801620001bb565b94506020860151915080821115620002c557600080fd5b50620002d486828701620001bb565b604086015190935090506001600160a01b0381168114620002f457600080fd5b809150509250925092565b600181811c908216806200031457607f821691505b602082108114156200033657634e487b7160e01b600052602260045260246000fd5b50919050565b612879806200034c6000396000f3fe6080604052600436106101e35760003560e01c80637a0d886211610102578063beabacc811610095578063f23a6e6111610064578063f23a6e61146105d9578063f2fde38b146105f9578063f8e93ef914610619578063fc0c546a1461062c57600080fd5b8063beabacc814610530578063c805f68b14610550578063c87b56dd14610570578063e985e9c51461059057600080fd5b8063a035b1fe116100d1578063a035b1fe1461048e578063a22cb465146104a4578063b88d4fde146104c4578063bc197c81146104df57600080fd5b80637a0d88621461041b5780638da5cb5b1461043b57806391b7f5ed1461045957806395d89b411461047957600080fd5b806342842e0e1161017a5780636c0360eb116101495780636c0360eb146103ad57806370a08231146103c2578063715018a6146103f05780637621aaf11461040557600080fd5b806342842e0e1461032d5780634306e4c91461034d57806355f804b31461036d5780636352211e1461038d57600080fd5b80630c62b4d2116101b65780630c62b4d21461029957806323b872dd146102b95780632a55205a146102d95780633ccfd60b1461031857600080fd5b806301ffc9a7146101e857806306fdde031461021d578063081812fc1461023f578063095ea7b314610277575b600080fd5b3480156101f457600080fd5b50610208610203366004612030565b61064c565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b5061023261065d565b60405161021491906120a9565b34801561024b57600080fd5b5061025f61025a3660046120dc565b6106ef565b6040516001600160a01b039091168152602001610214565b34801561028357600080fd5b5061029761029236600461210a565b61079a565b005b3480156102a557600080fd5b50600c5461025f906001600160a01b031681565b3480156102c557600080fd5b506102976102d4366004612136565b610808565b3480156102e557600080fd5b506102f96102f4366004612177565b610876565b604080516001600160a01b039093168352602083019190915201610214565b34801561032457600080fd5b50610297610955565b34801561033957600080fd5b50610297610348366004612136565b6109f1565b34801561035957600080fd5b50610297610368366004612199565b610a5f565b34801561037957600080fd5b50610297610388366004612255565b610b14565b34801561039957600080fd5b5061025f6103a83660046120dc565b610bb2565b3480156103b957600080fd5b50610232610c3d565b3480156103ce57600080fd5b506103e26103dd366004612199565b610ccb565b604051908152602001610214565b3480156103fc57600080fd5b50610297610d65565b34801561041157600080fd5b506103e2600d5481565b34801561042757600080fd5b506102976104363660046120dc565b610dcb565b34801561044757600080fd5b506008546001600160a01b031661025f565b34801561046557600080fd5b506102976104743660046120dc565b610e5a565b34801561048557600080fd5b50610232610ee9565b34801561049a57600080fd5b506103e2600a5481565b3480156104b057600080fd5b506102976104bf36600461229e565b610ef8565b3480156104d057600080fd5b506102976103483660046122dc565b3480156104eb57600080fd5b506104ff6104fa3660046123e3565b610f66565b6040517fffffffff000000000000000000000000000000000000000000000000000000009091168152602001610214565b34801561053c57600080fd5b5061029761054b366004612136565b610fd7565b34801561055c57600080fd5b5061029761056b366004612199565b611041565b34801561057c57600080fd5b5061023261058b3660046120dc565b6110f6565b34801561059c57600080fd5b506102086105ab3660046124a2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156105e557600080fd5b506104ff6105f43660046124d0565b6111b5565b34801561060557600080fd5b50610297610614366004612199565b6113cf565b61029761062736600461254c565b6114b1565b34801561063857600080fd5b5060095461025f906001600160a01b031681565b6000610657826116a5565b92915050565b60606000805461066c906125f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610698906125f2565b80156106e55780601f106106ba576101008083540402835291602001916106e5565b820191906000526020600020905b8154815290600101906020018083116106c857829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661077e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60405162461bcd60e51b815260206004820152602560248201527f4d616769634d6972726f7223617070726f76653a204e4f4e5f5452414e53464560448201527f5241424c450000000000000000000000000000000000000000000000000000006064820152608401610775565b60405162461bcd60e51b815260206004820152602a60248201527f4d616769634d6972726f72237472616e7366657246726f6d3a204e4f4e5f545260448201527f414e5346455241424c45000000000000000000000000000000000000000000006064820152608401610775565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff169282019290925282916109175750604080518082019091526006546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b60208101516000906127109061093b906bffffffffffffffffffffffff1687612643565b6109459190612678565b91519350909150505b9250929050565b6008546001600160a01b031633146109af5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610775565b476109ba33826116fb565b6040518181527f5f5cb80d5302aa1a394a4eaaf93ab1082109e671bee9d6889f9d6f60decb68cd906020015b60405180910390a150565b60405162461bcd60e51b815260206004820152602e60248201527f4d616769634d6972726f7223736166655472616e7366657246726f6d3a204e4f60448201527f4e5f5452414e5346455241424c450000000000000000000000000000000000006064820152608401610775565b6008546001600160a01b03163314610ab95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610775565b600c805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040519081527fc6011b7ae7b30d721892126e4d7ccaed52ae8f1d85a25317de7fd85efc07cefa906020016109e6565b6008546001600160a01b03163314610b6e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610775565b8051610b8190600b906020840190611f97565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa600b6040516109e6919061268c565b6000818152600260205260408120546001600160a01b0316806106575760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610775565b600b8054610c4a906125f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610c76906125f2565b8015610cc35780601f10610c9857610100808354040283529160200191610cc3565b820191906000526020600020905b815481529060010190602001808311610ca657829003601f168201915b505050505081565b60006001600160a01b038216610d495760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610775565b506001600160a01b031660009081526003602052604090205490565b6008546001600160a01b03163314610dbf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610775565b610dc96000611814565b565b6008546001600160a01b03163314610e255760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610775565b600d8190556040518181527f8112f8b69e0134e96c5c51273f35c96934d7d2808b7129deaff1052d66389dd9906020016109e6565b6008546001600160a01b03163314610eb45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610775565b600a8190556040518181527f4f5539c0409dfc4cb06f64cbd31237e1fbfe443f531584bf4dd77ec7fc5ba7b1906020016109e6565b60606001805461066c906125f2565b60405162461bcd60e51b815260206004820152602f60248201527f4d616769634d6972726f7223736574417070726f76616c466f72416c6c3a204e60448201527f4f4e5f5452414e5346455241424c4500000000000000000000000000000000006064820152608401610775565b60405162461bcd60e51b815260206004820152603760248201527f4d616769634d6972726f72236f6e45524331313535426174636852656365697660448201527f65643a2042415443485f4e4f545f535550504f525445440000000000000000006064820152600090608401610775565b600e546001600160a01b031633146110315760405162461bcd60e51b815260206004820181905260248201527f4d616769634d6972726f72237472616e736665723a204f4e4c595f52454c41596044820152606401610775565b61103c838383611873565b505050565b6008546001600160a01b0316331461109b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610775565b600e805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040519081527f239547ab8b5adb12e66ea1e5d00625fde80b7c1b03ed4dfec487dee3c344aefb906020016109e6565b6000818152600260205260409020546060906001600160a01b03166111835760405162461bcd60e51b815260206004820152602a60248201527f4d616769634d6972726f7223746f6b656e5552493a20544f4b454e5f444f455360448201527f5f4e4f545f4558495354000000000000000000000000000000000000000000006064820152608401610775565b600b61118e83611a4d565b60405160200161119f929190612711565b6040516020818303038152906040529050919050565b600c546000906001600160a01b031633146112385760405162461bcd60e51b815260206004820152602860248201527f4d616769634d6972726f72236f6e4552433131353552656365697665643a204f60448201527f4e4c595f4c4f4f540000000000000000000000000000000000000000000000006064820152608401610775565b600d5485146112af5760405162461bcd60e51b815260206004820152602f60248201527f4d616769634d6972726f72236f6e4552433131353552656365697665643a204960448201527f4e56414c49445f544f4b454e5f494400000000000000000000000000000000006064820152608401610775565b836001146113255760405162461bcd60e51b815260206004820152603260248201527f4d616769634d6972726f72236f6e4552433131353552656365697665643a204260448201527f415443485f4e4f545f535550504f5254454400000000000000000000000000006064820152608401610775565b60006113318385612794565b6000818152600260205260409020549091506001600160a01b031661135f5761135a8189611b87565b6113a2565b604080516001600160a01b038a168152602081018390527f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770910160405180910390a15b507ff23a6e6100000000000000000000000000000000000000000000000000000000979650505050505050565b6008546001600160a01b031633146114295760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610775565b6001600160a01b0381166114a55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610775565b6114ae81611814565b50565b8051600a546114c09190612643565b34146115345760405162461bcd60e51b815260206004820152602560248201527f4d616769634d6972726f72236d696e743a20494e434f52524543545f4554485f60448201527f56414c55450000000000000000000000000000000000000000000000000000006064820152608401610775565b60005b81518110156116a15761157a828281518110611555576115556127b2565b60200260200101516000908152600260205260409020546001600160a01b0316151590565b6115a6576115a1828281518110611593576115936127b2565b602002602001015133611b87565b61168f565b336001600160a01b03166115d28383815181106115c5576115c56127b2565b6020026020010151610bb2565b6001600160a01b0316146116285760405162461bcd60e51b815260206004820152601f60248201527f4d616769634d6972726f72236d696e743a204d5553545f42455f4f574e4552006044820152606401610775565b7f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7703383838151811061165c5761165c6127b2565b60200260200101516040516116869291906001600160a01b03929092168252602082015260400190565b60405180910390a15b80611699816127c8565b915050611537565b5050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610657575061065782611cea565b8047101561174b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610775565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611798576040519150601f19603f3d011682016040523d82523d6000602084013e61179d565b606091505b505090508061103c5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610775565b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b826001600160a01b031661188682610bb2565b6001600160a01b0316146119025760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610775565b6001600160a01b03821661197d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610775565b611988600082611dcd565b6001600160a01b03831660009081526003602052604081208054600192906119b19084906127e3565b90915550506001600160a01b03821660009081526003602052604081208054600192906119df9084906127fa565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b606081611a8d57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611ab75780611aa1816127c8565b9150611ab09050600a83612678565b9150611a91565b60008167ffffffffffffffff811115611ad257611ad26121b6565b6040519080825280601f01601f191660200182016040528015611afc576020820181803683370190505b5090505b8415611b7f57611b116001836127e3565b9150611b1e600a86612812565b611b299060306127fa565b60f81b818381518110611b3e57611b3e6127b2565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611b78600a86612678565b9450611b00565b949350505050565b6009546040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b03838116921690636352211e9060240160206040518083038186803b158015611be657600080fd5b505afa158015611bfa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c1e9190612826565b6001600160a01b031614611c9a5760405162461bcd60e51b815260206004820152602660248201527f4d616769634d6972726f72236d696e743a204d5553545f4f574e5f424f554e4460448201527f5f544f4b454e00000000000000000000000000000000000000000000000000006064820152608401610775565b611ca48183611e48565b604080516001600160a01b0383168152602081018490527f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770910160405180910390a15050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480611d7d57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061065757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610657565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190611e0f82610bb2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038216611e9e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610775565b6000818152600260205260409020546001600160a01b031615611f035760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610775565b6001600160a01b0382166000908152600360205260408120805460019290611f2c9084906127fa565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611fa3906125f2565b90600052602060002090601f016020900481019282611fc5576000855561200b565b82601f10611fde57805160ff191683800117855561200b565b8280016001018555821561200b579182015b8281111561200b578251825591602001919060010190611ff0565b5061201792915061201b565b5090565b5b80821115612017576000815560010161201c565b60006020828403121561204257600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461207257600080fd5b9392505050565b60005b8381101561209457818101518382015260200161207c565b838111156120a3576000848401525b50505050565b60208152600082518060208401526120c8816040850160208701612079565b601f01601f19169190910160400192915050565b6000602082840312156120ee57600080fd5b5035919050565b6001600160a01b03811681146114ae57600080fd5b6000806040838503121561211d57600080fd5b8235612128816120f5565b946020939093013593505050565b60008060006060848603121561214b57600080fd5b8335612156816120f5565b92506020840135612166816120f5565b929592945050506040919091013590565b6000806040838503121561218a57600080fd5b50508035926020909101359150565b6000602082840312156121ab57600080fd5b8135612072816120f5565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156121f5576121f56121b6565b604052919050565b600067ffffffffffffffff831115612217576122176121b6565b61222a6020601f19601f860116016121cc565b905082815283838301111561223e57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561226757600080fd5b813567ffffffffffffffff81111561227e57600080fd5b8201601f8101841361228f57600080fd5b611b7f848235602084016121fd565b600080604083850312156122b157600080fd5b82356122bc816120f5565b9150602083013580151581146122d157600080fd5b809150509250929050565b600080600080608085870312156122f257600080fd5b84356122fd816120f5565b9350602085013561230d816120f5565b925060408501359150606085013567ffffffffffffffff81111561233057600080fd5b8501601f8101871361234157600080fd5b612350878235602084016121fd565b91505092959194509250565b60008083601f84011261236e57600080fd5b50813567ffffffffffffffff81111561238657600080fd5b6020830191508360208260051b850101111561094e57600080fd5b60008083601f8401126123b357600080fd5b50813567ffffffffffffffff8111156123cb57600080fd5b60208301915083602082850101111561094e57600080fd5b60008060008060008060008060a0898b0312156123ff57600080fd5b883561240a816120f5565b9750602089013561241a816120f5565b9650604089013567ffffffffffffffff8082111561243757600080fd5b6124438c838d0161235c565b909850965060608b013591508082111561245c57600080fd5b6124688c838d0161235c565b909650945060808b013591508082111561248157600080fd5b5061248e8b828c016123a1565b999c989b5096995094979396929594505050565b600080604083850312156124b557600080fd5b82356124c0816120f5565b915060208301356122d1816120f5565b60008060008060008060a087890312156124e957600080fd5b86356124f4816120f5565b95506020870135612504816120f5565b94506040870135935060608701359250608087013567ffffffffffffffff81111561252e57600080fd5b61253a89828a016123a1565b979a9699509497509295939492505050565b6000602080838503121561255f57600080fd5b823567ffffffffffffffff8082111561257757600080fd5b818501915085601f83011261258b57600080fd5b81358181111561259d5761259d6121b6565b8060051b91506125ae8483016121cc565b81815291830184019184810190888411156125c857600080fd5b938501935b838510156125e6578435825293850193908501906125cd565b98975050505050505050565b600181811c9082168061260657607f821691505b6020821081141561262757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561265d5761265d61262d565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261268757612687612662565b500490565b60006020808352600084546126a0816125f2565b808487015260406001808416600081146126c157600181146126d557612703565b60ff198516838a0152606089019550612703565b896000528660002060005b858110156126fb5781548b82018601529083019088016126e0565b8a0184019650505b509398975050505050505050565b600080845461271f816125f2565b60018281168015612737576001811461274857612777565b60ff19841687528287019450612777565b8860005260208060002060005b8581101561276e5781548a820152908401908201612755565b50505082870194505b50505050835161278b818360208801612079565b01949350505050565b8035602083101561065757600019602084900360031b1b1692915050565b634e487b7160e01b600052603260045260246000fd5b60006000198214156127dc576127dc61262d565b5060010190565b6000828210156127f5576127f561262d565b500390565b6000821982111561280d5761280d61262d565b500190565b60008261282157612821612662565b500690565b60006020828403121561283857600080fd5b8151612072816120f556fea26469706673582212209469ef07a60fb51290650c38099118fbd89cd0685b88a211713b7f71df70b0af64736f6c63430008080033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000006080b6d2c02e9a0853495b87ce6a65e353b74744000000000000000000000000000000000000000000000000000000000000000c4d61676963204d6972726f720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000445424d4d00000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101e35760003560e01c80637a0d886211610102578063beabacc811610095578063f23a6e6111610064578063f23a6e61146105d9578063f2fde38b146105f9578063f8e93ef914610619578063fc0c546a1461062c57600080fd5b8063beabacc814610530578063c805f68b14610550578063c87b56dd14610570578063e985e9c51461059057600080fd5b8063a035b1fe116100d1578063a035b1fe1461048e578063a22cb465146104a4578063b88d4fde146104c4578063bc197c81146104df57600080fd5b80637a0d88621461041b5780638da5cb5b1461043b57806391b7f5ed1461045957806395d89b411461047957600080fd5b806342842e0e1161017a5780636c0360eb116101495780636c0360eb146103ad57806370a08231146103c2578063715018a6146103f05780637621aaf11461040557600080fd5b806342842e0e1461032d5780634306e4c91461034d57806355f804b31461036d5780636352211e1461038d57600080fd5b80630c62b4d2116101b65780630c62b4d21461029957806323b872dd146102b95780632a55205a146102d95780633ccfd60b1461031857600080fd5b806301ffc9a7146101e857806306fdde031461021d578063081812fc1461023f578063095ea7b314610277575b600080fd5b3480156101f457600080fd5b50610208610203366004612030565b61064c565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b5061023261065d565b60405161021491906120a9565b34801561024b57600080fd5b5061025f61025a3660046120dc565b6106ef565b6040516001600160a01b039091168152602001610214565b34801561028357600080fd5b5061029761029236600461210a565b61079a565b005b3480156102a557600080fd5b50600c5461025f906001600160a01b031681565b3480156102c557600080fd5b506102976102d4366004612136565b610808565b3480156102e557600080fd5b506102f96102f4366004612177565b610876565b604080516001600160a01b039093168352602083019190915201610214565b34801561032457600080fd5b50610297610955565b34801561033957600080fd5b50610297610348366004612136565b6109f1565b34801561035957600080fd5b50610297610368366004612199565b610a5f565b34801561037957600080fd5b50610297610388366004612255565b610b14565b34801561039957600080fd5b5061025f6103a83660046120dc565b610bb2565b3480156103b957600080fd5b50610232610c3d565b3480156103ce57600080fd5b506103e26103dd366004612199565b610ccb565b604051908152602001610214565b3480156103fc57600080fd5b50610297610d65565b34801561041157600080fd5b506103e2600d5481565b34801561042757600080fd5b506102976104363660046120dc565b610dcb565b34801561044757600080fd5b506008546001600160a01b031661025f565b34801561046557600080fd5b506102976104743660046120dc565b610e5a565b34801561048557600080fd5b50610232610ee9565b34801561049a57600080fd5b506103e2600a5481565b3480156104b057600080fd5b506102976104bf36600461229e565b610ef8565b3480156104d057600080fd5b506102976103483660046122dc565b3480156104eb57600080fd5b506104ff6104fa3660046123e3565b610f66565b6040517fffffffff000000000000000000000000000000000000000000000000000000009091168152602001610214565b34801561053c57600080fd5b5061029761054b366004612136565b610fd7565b34801561055c57600080fd5b5061029761056b366004612199565b611041565b34801561057c57600080fd5b5061023261058b3660046120dc565b6110f6565b34801561059c57600080fd5b506102086105ab3660046124a2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156105e557600080fd5b506104ff6105f43660046124d0565b6111b5565b34801561060557600080fd5b50610297610614366004612199565b6113cf565b61029761062736600461254c565b6114b1565b34801561063857600080fd5b5060095461025f906001600160a01b031681565b6000610657826116a5565b92915050565b60606000805461066c906125f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610698906125f2565b80156106e55780601f106106ba576101008083540402835291602001916106e5565b820191906000526020600020905b8154815290600101906020018083116106c857829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661077e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60405162461bcd60e51b815260206004820152602560248201527f4d616769634d6972726f7223617070726f76653a204e4f4e5f5452414e53464560448201527f5241424c450000000000000000000000000000000000000000000000000000006064820152608401610775565b60405162461bcd60e51b815260206004820152602a60248201527f4d616769634d6972726f72237472616e7366657246726f6d3a204e4f4e5f545260448201527f414e5346455241424c45000000000000000000000000000000000000000000006064820152608401610775565b60008281526007602090815260408083208151808301909252546001600160a01b038116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff169282019290925282916109175750604080518082019091526006546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b60208101516000906127109061093b906bffffffffffffffffffffffff1687612643565b6109459190612678565b91519350909150505b9250929050565b6008546001600160a01b031633146109af5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610775565b476109ba33826116fb565b6040518181527f5f5cb80d5302aa1a394a4eaaf93ab1082109e671bee9d6889f9d6f60decb68cd906020015b60405180910390a150565b60405162461bcd60e51b815260206004820152602e60248201527f4d616769634d6972726f7223736166655472616e7366657246726f6d3a204e4f60448201527f4e5f5452414e5346455241424c450000000000000000000000000000000000006064820152608401610775565b6008546001600160a01b03163314610ab95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610775565b600c805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040519081527fc6011b7ae7b30d721892126e4d7ccaed52ae8f1d85a25317de7fd85efc07cefa906020016109e6565b6008546001600160a01b03163314610b6e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610775565b8051610b8190600b906020840190611f97565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa600b6040516109e6919061268c565b6000818152600260205260408120546001600160a01b0316806106575760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610775565b600b8054610c4a906125f2565b80601f0160208091040260200160405190810160405280929190818152602001828054610c76906125f2565b8015610cc35780601f10610c9857610100808354040283529160200191610cc3565b820191906000526020600020905b815481529060010190602001808311610ca657829003601f168201915b505050505081565b60006001600160a01b038216610d495760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610775565b506001600160a01b031660009081526003602052604090205490565b6008546001600160a01b03163314610dbf5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610775565b610dc96000611814565b565b6008546001600160a01b03163314610e255760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610775565b600d8190556040518181527f8112f8b69e0134e96c5c51273f35c96934d7d2808b7129deaff1052d66389dd9906020016109e6565b6008546001600160a01b03163314610eb45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610775565b600a8190556040518181527f4f5539c0409dfc4cb06f64cbd31237e1fbfe443f531584bf4dd77ec7fc5ba7b1906020016109e6565b60606001805461066c906125f2565b60405162461bcd60e51b815260206004820152602f60248201527f4d616769634d6972726f7223736574417070726f76616c466f72416c6c3a204e60448201527f4f4e5f5452414e5346455241424c4500000000000000000000000000000000006064820152608401610775565b60405162461bcd60e51b815260206004820152603760248201527f4d616769634d6972726f72236f6e45524331313535426174636852656365697660448201527f65643a2042415443485f4e4f545f535550504f525445440000000000000000006064820152600090608401610775565b600e546001600160a01b031633146110315760405162461bcd60e51b815260206004820181905260248201527f4d616769634d6972726f72237472616e736665723a204f4e4c595f52454c41596044820152606401610775565b61103c838383611873565b505050565b6008546001600160a01b0316331461109b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610775565b600e805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040519081527f239547ab8b5adb12e66ea1e5d00625fde80b7c1b03ed4dfec487dee3c344aefb906020016109e6565b6000818152600260205260409020546060906001600160a01b03166111835760405162461bcd60e51b815260206004820152602a60248201527f4d616769634d6972726f7223746f6b656e5552493a20544f4b454e5f444f455360448201527f5f4e4f545f4558495354000000000000000000000000000000000000000000006064820152608401610775565b600b61118e83611a4d565b60405160200161119f929190612711565b6040516020818303038152906040529050919050565b600c546000906001600160a01b031633146112385760405162461bcd60e51b815260206004820152602860248201527f4d616769634d6972726f72236f6e4552433131353552656365697665643a204f60448201527f4e4c595f4c4f4f540000000000000000000000000000000000000000000000006064820152608401610775565b600d5485146112af5760405162461bcd60e51b815260206004820152602f60248201527f4d616769634d6972726f72236f6e4552433131353552656365697665643a204960448201527f4e56414c49445f544f4b454e5f494400000000000000000000000000000000006064820152608401610775565b836001146113255760405162461bcd60e51b815260206004820152603260248201527f4d616769634d6972726f72236f6e4552433131353552656365697665643a204260448201527f415443485f4e4f545f535550504f5254454400000000000000000000000000006064820152608401610775565b60006113318385612794565b6000818152600260205260409020549091506001600160a01b031661135f5761135a8189611b87565b6113a2565b604080516001600160a01b038a168152602081018390527f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770910160405180910390a15b507ff23a6e6100000000000000000000000000000000000000000000000000000000979650505050505050565b6008546001600160a01b031633146114295760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610775565b6001600160a01b0381166114a55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610775565b6114ae81611814565b50565b8051600a546114c09190612643565b34146115345760405162461bcd60e51b815260206004820152602560248201527f4d616769634d6972726f72236d696e743a20494e434f52524543545f4554485f60448201527f56414c55450000000000000000000000000000000000000000000000000000006064820152608401610775565b60005b81518110156116a15761157a828281518110611555576115556127b2565b60200260200101516000908152600260205260409020546001600160a01b0316151590565b6115a6576115a1828281518110611593576115936127b2565b602002602001015133611b87565b61168f565b336001600160a01b03166115d28383815181106115c5576115c56127b2565b6020026020010151610bb2565b6001600160a01b0316146116285760405162461bcd60e51b815260206004820152601f60248201527f4d616769634d6972726f72236d696e743a204d5553545f42455f4f574e4552006044820152606401610775565b7f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be7703383838151811061165c5761165c6127b2565b60200260200101516040516116869291906001600160a01b03929092168252602082015260400190565b60405180910390a15b80611699816127c8565b915050611537565b5050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610657575061065782611cea565b8047101561174b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610775565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611798576040519150601f19603f3d011682016040523d82523d6000602084013e61179d565b606091505b505090508061103c5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610775565b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b826001600160a01b031661188682610bb2565b6001600160a01b0316146119025760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610775565b6001600160a01b03821661197d5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610775565b611988600082611dcd565b6001600160a01b03831660009081526003602052604081208054600192906119b19084906127e3565b90915550506001600160a01b03821660009081526003602052604081208054600192906119df9084906127fa565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b606081611a8d57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611ab75780611aa1816127c8565b9150611ab09050600a83612678565b9150611a91565b60008167ffffffffffffffff811115611ad257611ad26121b6565b6040519080825280601f01601f191660200182016040528015611afc576020820181803683370190505b5090505b8415611b7f57611b116001836127e3565b9150611b1e600a86612812565b611b299060306127fa565b60f81b818381518110611b3e57611b3e6127b2565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611b78600a86612678565b9450611b00565b949350505050565b6009546040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b03838116921690636352211e9060240160206040518083038186803b158015611be657600080fd5b505afa158015611bfa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c1e9190612826565b6001600160a01b031614611c9a5760405162461bcd60e51b815260206004820152602660248201527f4d616769634d6972726f72236d696e743a204d5553545f4f574e5f424f554e4460448201527f5f544f4b454e00000000000000000000000000000000000000000000000000006064820152608401610775565b611ca48183611e48565b604080516001600160a01b0383168152602081018490527f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be770910160405180910390a15050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480611d7d57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061065757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610657565b6000818152600460205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0384169081179091558190611e0f82610bb2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038216611e9e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610775565b6000818152600260205260409020546001600160a01b031615611f035760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610775565b6001600160a01b0382166000908152600360205260408120805460019290611f2c9084906127fa565b9091555050600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611fa3906125f2565b90600052602060002090601f016020900481019282611fc5576000855561200b565b82601f10611fde57805160ff191683800117855561200b565b8280016001018555821561200b579182015b8281111561200b578251825591602001919060010190611ff0565b5061201792915061201b565b5090565b5b80821115612017576000815560010161201c565b60006020828403121561204257600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461207257600080fd5b9392505050565b60005b8381101561209457818101518382015260200161207c565b838111156120a3576000848401525b50505050565b60208152600082518060208401526120c8816040850160208701612079565b601f01601f19169190910160400192915050565b6000602082840312156120ee57600080fd5b5035919050565b6001600160a01b03811681146114ae57600080fd5b6000806040838503121561211d57600080fd5b8235612128816120f5565b946020939093013593505050565b60008060006060848603121561214b57600080fd5b8335612156816120f5565b92506020840135612166816120f5565b929592945050506040919091013590565b6000806040838503121561218a57600080fd5b50508035926020909101359150565b6000602082840312156121ab57600080fd5b8135612072816120f5565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156121f5576121f56121b6565b604052919050565b600067ffffffffffffffff831115612217576122176121b6565b61222a6020601f19601f860116016121cc565b905082815283838301111561223e57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561226757600080fd5b813567ffffffffffffffff81111561227e57600080fd5b8201601f8101841361228f57600080fd5b611b7f848235602084016121fd565b600080604083850312156122b157600080fd5b82356122bc816120f5565b9150602083013580151581146122d157600080fd5b809150509250929050565b600080600080608085870312156122f257600080fd5b84356122fd816120f5565b9350602085013561230d816120f5565b925060408501359150606085013567ffffffffffffffff81111561233057600080fd5b8501601f8101871361234157600080fd5b612350878235602084016121fd565b91505092959194509250565b60008083601f84011261236e57600080fd5b50813567ffffffffffffffff81111561238657600080fd5b6020830191508360208260051b850101111561094e57600080fd5b60008083601f8401126123b357600080fd5b50813567ffffffffffffffff8111156123cb57600080fd5b60208301915083602082850101111561094e57600080fd5b60008060008060008060008060a0898b0312156123ff57600080fd5b883561240a816120f5565b9750602089013561241a816120f5565b9650604089013567ffffffffffffffff8082111561243757600080fd5b6124438c838d0161235c565b909850965060608b013591508082111561245c57600080fd5b6124688c838d0161235c565b909650945060808b013591508082111561248157600080fd5b5061248e8b828c016123a1565b999c989b5096995094979396929594505050565b600080604083850312156124b557600080fd5b82356124c0816120f5565b915060208301356122d1816120f5565b60008060008060008060a087890312156124e957600080fd5b86356124f4816120f5565b95506020870135612504816120f5565b94506040870135935060608701359250608087013567ffffffffffffffff81111561252e57600080fd5b61253a89828a016123a1565b979a9699509497509295939492505050565b6000602080838503121561255f57600080fd5b823567ffffffffffffffff8082111561257757600080fd5b818501915085601f83011261258b57600080fd5b81358181111561259d5761259d6121b6565b8060051b91506125ae8483016121cc565b81815291830184019184810190888411156125c857600080fd5b938501935b838510156125e6578435825293850193908501906125cd565b98975050505050505050565b600181811c9082168061260657607f821691505b6020821081141561262757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561265d5761265d61262d565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261268757612687612662565b500490565b60006020808352600084546126a0816125f2565b808487015260406001808416600081146126c157600181146126d557612703565b60ff198516838a0152606089019550612703565b896000528660002060005b858110156126fb5781548b82018601529083019088016126e0565b8a0184019650505b509398975050505050505050565b600080845461271f816125f2565b60018281168015612737576001811461274857612777565b60ff19841687528287019450612777565b8860005260208060002060005b8581101561276e5781548a820152908401908201612755565b50505082870194505b50505050835161278b818360208801612079565b01949350505050565b8035602083101561065757600019602084900360031b1b1692915050565b634e487b7160e01b600052603260045260246000fd5b60006000198214156127dc576127dc61262d565b5060010190565b6000828210156127f5576127f561262d565b500390565b6000821982111561280d5761280d61262d565b500190565b60008261282157612821612662565b500690565b60006020828403121561283857600080fd5b8151612072816120f556fea26469706673582212209469ef07a60fb51290650c38099118fbd89cd0685b88a211713b7f71df70b0af64736f6c63430008080033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000006080b6d2c02e9a0853495b87ce6a65e353b74744000000000000000000000000000000000000000000000000000000000000000c4d61676963204d6972726f720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000445424d4d00000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Magic Mirror
Arg [1] : _symbol (string): EBMM
Arg [2] : _token (address): 0x6080B6D2C02E9a0853495b87Ce6a65e353b74744
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000006080b6d2c02e9a0853495b87ce6a65e353b74744
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000c
Arg [4] : 4d61676963204d6972726f720000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 45424d4d00000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
OVERVIEW
Magic Mirror allows you to put your customized EightBit character on-chainMultichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $2,665.47 | 0.475 | $1,266.1 |
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.