Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
150 MIRRORBRIDGEPASS
Holders
136
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 MIRRORBRIDGEPASSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NFTBridgePass
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "openzeppelin-contracts/contracts/utils/Base64.sol"; import "openzeppelin-contracts/contracts/token/ERC721/ERC721.sol"; import "openzeppelin-contracts/contracts/utils/Strings.sol"; /** * @title IL1ERC20Bridge */ interface IL1ERC20Bridge { /** * @dev Deposit an amount of ETH to a recipient's balance on L2. * @param _to L2 address to credit the withdrawal to. * @param _l2Gas Gas limit required to complete the deposit on L2. * @param _data Optional data to forward to L2. This data is provided * solely as a convenience for external contracts. Aside from enforcing a maximum * length, these contracts provide no guarantees about its content. */ function depositETHTo( address _to, uint32 _l2Gas, bytes calldata _data ) external payable; } interface INFTBridgePass { function l2TokenBridge() external view returns (address); function l2Gas() external view returns (uint32); } contract NFTBridgePass is INFTBridgePass, ERC721 { address public immutable override l2TokenBridge; uint32 public immutable override l2Gas; uint256 public immutable price; uint256 public immutable limit; string public baseURI; string public description; string public imageURI; uint256 public totalSupply = 0; constructor( address _l2TokenBridge, uint32 _l2Gas, uint256 _price, uint256 _limit, string memory _baseURI, string memory _description, string memory _imageURI ) ERC721("Mirror L2 Launch Invite", "MIRRORBRIDGEPASS") { l2TokenBridge = _l2TokenBridge; l2Gas = _l2Gas; price = _price; limit = _limit; baseURI = _baseURI; description = _description; imageURI = _imageURI; } function tokenURI(uint256 tokenId) public view override returns (string memory) { return string( abi.encodePacked( "data:application/json;base64,", Base64.encode( bytes( string( abi.encodePacked( '{"name": "', name(), abi.encodePacked( " ", Strings.toString(tokenId), "/", Strings.toString(limit) ), '", "description": "', description, '", "animation_url": "', _constructURI(tokenId, ownerOf(tokenId)), '", "image": "', imageURI, '", "attributes":[{ "trait_type": "Serial", "value": ', Strings.toString(tokenId), "}] }" ) ) ) ) ) ); } function contractURI() public view returns (string memory) { return string( abi.encodePacked( "data:application/json;base64,", Base64.encode( bytes( string( abi.encodePacked( '{"name": "', name(), '", "description": "', description, '", "image": "', imageURI, '", "external_link": "https://mirror.xyz" }' ) ) ) ) ) ); } function mint() external payable returns (uint256 tokenId) { require(msg.value == price, "invalid value"); require(totalSupply < limit, "sold out"); tokenId = ++totalSupply; _mint(msg.sender, tokenId); if (l2TokenBridge != address(0)) { IL1ERC20Bridge(l2TokenBridge).depositETHTo{value: msg.value}( msg.sender, l2Gas, "" ); } else { // Send Ether back _sendEther(payable(msg.sender), msg.value); } } function _sendEther(address payable recipient, uint256 amount) internal { // Ensure sufficient balance. require(address(this).balance >= amount, "insufficient balance"); // Send the value. // slither-disable-next-line low-level-calls (bool success, ) = recipient.call{value: amount, gas: gasleft()}(""); require(success, "recipient reverted"); } function _constructURI(uint256 tokenId, address owner) internal view returns (string memory) { return string( abi.encodePacked( baseURI, "?totalTickets=", Strings.toString(limit), "&ticketNumber=", Strings.toString(tokenId), "&ownerAddress=", _addressToString(owner) ) ); } // https://ethereum.stackexchange.com/questions/8346/convert-address-to-string/8447#8447 function _addressToString(address x) internal pure returns (string memory) { bytes memory s = new bytes(40); for (uint256 i = 0; i < 20; i++) { bytes1 b = bytes1(uint8(uint256(uint160(x)) / (2**(8 * (19 - i))))); bytes1 hi = bytes1(uint8(b) / 16); bytes1 lo = bytes1(uint8(b) - 16 * uint8(hi)); s[2 * i] = _char(hi); s[2 * i + 1] = _char(lo); } return string(abi.encodePacked("0x", s)); } function _char(bytes1 b) internal pure returns (bytes1 c) { if (uint8(b) < 10) return bytes1(uint8(b) + 0x30); else return bytes1(uint8(b) + 0x57); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Base64.sol) pragma solidity ^0.8.0; /** * @dev Provides a set of functions to operate with Base64 strings. * * _Available since v4.5._ */ library Base64 { /** * @dev Base64 Encoding/Decoding Table */ string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /** * @dev Converts a `bytes` to its Bytes64 `string` representation. */ function encode(bytes memory data) internal pure returns (string memory) { /** * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol */ if (data.length == 0) return ""; // Loads the table into memory string memory table = _TABLE; // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter // and split into 4 numbers of 6 bits. // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up // - `data.length + 2` -> Round up // - `/ 3` -> Number of 3-bytes chunks // - `4 *` -> 4 characters for each chunk string memory result = new string(4 * ((data.length + 2) / 3)); assembly { // Prepare the lookup table (skip the first "length" byte) let tablePtr := add(table, 1) // Prepare result pointer, jump over length let resultPtr := add(result, 32) // Run over the input, 3 bytes at a time for { let dataPtr := data let endPtr := add(data, mload(data)) } lt(dataPtr, endPtr) { } { // Advance 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // To write each character, shift the 3 bytes (18 bits) chunk // 4 times in blocks of 6 bits for each character (18, 12, 6, 0) // and apply logical AND with 0x3F which is the number of // the previous character in the ASCII table prior to the Base64 Table // The result is then added to the table to get the character to write, // and finally write it in the result pointer but with a left shift // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F)))) resultPtr := add(resultPtr, 1) // Advance mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F)))) resultPtr := add(resultPtr, 1) // Advance } // When data `bytes` is not exactly 3 bytes long // it is padded with `=` characters at the end switch mod(mload(data), 3) case 1 { mstore8(sub(resultPtr, 1), 0x3d) mstore8(sub(resultPtr, 2), 0x3d) } case 2 { mstore8(sub(resultPtr, 1), 0x3d) } } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: 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 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `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 (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/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 v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "remappings": [ "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "src/=src/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london" }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_l2TokenBridge","type":"address"},{"internalType":"uint32","name":"_l2Gas","type":"uint32"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_limit","type":"uint256"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"string","name":"_description","type":"string"},{"internalType":"string","name":"_imageURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"description","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":[],"name":"imageURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"l2Gas","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"l2TokenBridge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
61010060405260006009553480156200001757600080fd5b506040516200269d3803806200269d8339810160408190526200003a91620002bd565b604080518082018252601781527f4d6972726f72204c32204c61756e636820496e7669746500000000000000000060208083019182528351808501909452601084526f4d4952524f524252494447455041535360801b908401528151919291620000a79160009162000130565b508051620000bd90600190602084019062000130565b5050506001600160a01b03871660805263ffffffff861660a05260c085905260e08490528251620000f690600690602086019062000130565b5081516200010c90600790602085019062000130565b5080516200012290600890602084019062000130565b5050505050505050620003d3565b8280546200013e9062000396565b90600052602060002090601f016020900481019282620001625760008555620001ad565b82601f106200017d57805160ff1916838001178555620001ad565b82800160010185558215620001ad579182015b82811115620001ad57825182559160200191906001019062000190565b50620001bb929150620001bf565b5090565b5b80821115620001bb5760008155600101620001c0565b805163ffffffff81168114620001eb57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200021857600080fd5b81516001600160401b0380821115620002355762000235620001f0565b604051601f8301601f19908116603f01168101908282118183101715620002605762000260620001f0565b816040528381526020925086838588010111156200027d57600080fd5b600091505b83821015620002a1578582018301518183018401529082019062000282565b83821115620002b35760008385830101525b9695505050505050565b600080600080600080600060e0888a031215620002d957600080fd5b87516001600160a01b0381168114620002f157600080fd5b96506200030160208901620001d6565b604089015160608a015160808b015192985090965094506001600160401b03808211156200032e57600080fd5b6200033c8b838c0162000206565b945060a08a01519150808211156200035357600080fd5b620003618b838c0162000206565b935060c08a01519150808211156200037857600080fd5b50620003878a828b0162000206565b91505092959891949750929550565b600181811c90821680620003ab57607f821691505b60208210811415620003cd57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161225f6200043e600039600081816103d90152818161076701528181610b37015261136a0152600081816103850152610708015260008181610269015261082a01526000818161033c015281816107e3015261085f015261225f6000f3fe6080604052600436106101405760003560e01c80636c0360eb116100b6578063a22cb4651161006f578063a22cb465146103a7578063a4d66daf146103c7578063b88d4fde146103fb578063c87b56dd1461041b578063e8a3d4851461043b578063e985e9c51461045057600080fd5b80636c0360eb146102e057806370a08231146102f55780637284e4161461031557806391c49bf81461032a57806395d89b411461035e578063a035b1fe1461037357600080fd5b8063135d088d11610108578063135d088d1461020c57806318160ddd1461022157806323b872dd146102375780633cbb69791461025757806342842e0e146102a05780636352211e146102c057600080fd5b806301ffc9a71461014557806306fdde031461017a578063081812fc1461019c578063095ea7b3146101d45780631249c58b146101f6575b600080fd5b34801561015157600080fd5b506101656101603660046117d9565b610470565b60405190151581526020015b60405180910390f35b34801561018657600080fd5b5061018f6104c2565b6040516101719190611855565b3480156101a857600080fd5b506101bc6101b7366004611868565b610554565b6040516001600160a01b039091168152602001610171565b3480156101e057600080fd5b506101f46101ef366004611898565b6105ee565b005b6101fe610704565b604051908152602001610171565b34801561021857600080fd5b5061018f6108d5565b34801561022d57600080fd5b506101fe60095481565b34801561024357600080fd5b506101f46102523660046118c2565b610963565b34801561026357600080fd5b5061028b7f000000000000000000000000000000000000000000000000000000000000000081565b60405163ffffffff9091168152602001610171565b3480156102ac57600080fd5b506101f46102bb3660046118c2565b610994565b3480156102cc57600080fd5b506101bc6102db366004611868565b6109af565b3480156102ec57600080fd5b5061018f610a26565b34801561030157600080fd5b506101fe6103103660046118fe565b610a33565b34801561032157600080fd5b5061018f610ab9565b34801561033657600080fd5b506101bc7f000000000000000000000000000000000000000000000000000000000000000081565b34801561036a57600080fd5b5061018f610ac6565b34801561037f57600080fd5b506101fe7f000000000000000000000000000000000000000000000000000000000000000081565b3480156103b357600080fd5b506101f46103c2366004611919565b610ad5565b3480156103d357600080fd5b506101fe7f000000000000000000000000000000000000000000000000000000000000000081565b34801561040757600080fd5b506101f461041636600461196b565b610ae4565b34801561042757600080fd5b5061018f610436366004611868565b610b1c565b34801561044757600080fd5b5061018f610be9565b34801561045c57600080fd5b5061016561046b366004611a47565b610c30565b60006001600160e01b031982166380ac58cd60e01b14806104a157506001600160e01b03198216635b5e139f60e01b145b806104bc57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546104d190611a7a565b80601f01602080910402602001604051908101604052809291908181526020018280546104fd90611a7a565b801561054a5780601f1061051f5761010080835404028352916020019161054a565b820191906000526020600020905b81548152906001019060200180831161052d57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166105d25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006105f9826109af565b9050806001600160a01b0316836001600160a01b031614156106675760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105c9565b336001600160a01b038216148061068357506106838133610c30565b6106f55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105c9565b6106ff8383610c5e565b505050565b60007f000000000000000000000000000000000000000000000000000000000000000034146107655760405162461bcd60e51b815260206004820152600d60248201526c696e76616c69642076616c756560981b60448201526064016105c9565b7f0000000000000000000000000000000000000000000000000000000000000000600954106107c15760405162461bcd60e51b81526020600482015260086024820152671cdbdb19081bdd5d60c21b60448201526064016105c9565b6009600081546107d090611acb565b918290555090506107e13382610ccc565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316156108c857604051639a2ac6d560e01b815233600482015263ffffffff7f000000000000000000000000000000000000000000000000000000000000000016602482015260606044820152600060648201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690639a2ac6d59034906084016000604051808303818588803b1580156108ac57600080fd5b505af11580156108c0573d6000803e3d6000fd5b505050505090565b6108d23334610e0e565b90565b600880546108e290611a7a565b80601f016020809104026020016040519081016040528092919081815260200182805461090e90611a7a565b801561095b5780601f106109305761010080835404028352916020019161095b565b820191906000526020600020905b81548152906001019060200180831161093e57829003601f168201915b505050505081565b61096d3382610eee565b6109895760405162461bcd60e51b81526004016105c990611ae6565b6106ff838383610fc5565b6106ff83838360405180602001604052806000815250610ae4565b6000818152600260205260408120546001600160a01b0316806104bc5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105c9565b600680546108e290611a7a565b60006001600160a01b038216610a9d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016105c9565b506001600160a01b031660009081526003602052604090205490565b600780546108e290611a7a565b6060600180546104d190611a7a565b610ae0338383611161565b5050565b610aee3383610eee565b610b0a5760405162461bcd60e51b81526004016105c990611ae6565b610b1684848484611230565b50505050565b6060610bc3610b296104c2565b610b3284611263565b610b5b7f0000000000000000000000000000000000000000000000000000000000000000611263565b604051602001610b6c929190611b37565b6040516020818303038152906040526007610b8f86610b8a886109af565b611361565b6008610b9a88611263565b604051602001610baf96959493929190611c1a565b6040516020818303038152906040526113ca565b604051602001610bd39190611d5a565b6040516020818303038152906040529050919050565b6060610c0c610bf66104c2565b60076008604051602001610baf93929190611d9f565b604051602001610c1c9190611d5a565b604051602081830303815290604052905090565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610c93826109af565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038216610d225760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105c9565b6000818152600260205260409020546001600160a01b031615610d875760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105c9565b6001600160a01b0382166000908152600360205260408120805460019290610db0908490611e57565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80471015610e555760405162461bcd60e51b8152602060048201526014602482015273696e73756666696369656e742062616c616e636560601b60448201526064016105c9565b6000826001600160a01b0316825a6040519091906000818181858888f193505050503d8060008114610ea3576040519150601f19603f3d011682016040523d82523d6000602084013e610ea8565b606091505b50509050806106ff5760405162461bcd60e51b81526020600482015260126024820152711c9958da5c1a595b9d081c995d995c9d195960721b60448201526064016105c9565b6000818152600260205260408120546001600160a01b0316610f675760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105c9565b6000610f72836109af565b9050806001600160a01b0316846001600160a01b03161480610f995750610f998185610c30565b80610fbd5750836001600160a01b0316610fb284610554565b6001600160a01b0316145b949350505050565b826001600160a01b0316610fd8826109af565b6001600160a01b03161461103c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016105c9565b6001600160a01b03821661109e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105c9565b6110a9600082610c5e565b6001600160a01b03831660009081526003602052604081208054600192906110d2908490611e6f565b90915550506001600160a01b0382166000908152600360205260408120805460019290611100908490611e57565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b031614156111c35760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105c9565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61123b848484610fc5565b6112478484848461151e565b610b165760405162461bcd60e51b81526004016105c990611e86565b6060816112875750506040805180820190915260018152600360fc1b602082015290565b8160005b81156112b1578061129b81611acb565b91506112aa9050600a83611eee565b915061128b565b60008167ffffffffffffffff8111156112cc576112cc611955565b6040519080825280601f01601f1916602001820160405280156112f6576020820181803683370190505b5090505b8415610fbd5761130b600183611e6f565b9150611318600a86611f02565b611323906030611e57565b60f81b81838151811061133857611338611f16565b60200101906001600160f81b031916908160001a90535061135a600a86611eee565b94506112fa565b6060600661138e7f0000000000000000000000000000000000000000000000000000000000000000611263565b61139785611263565b6113a08561161c565b6040516020016113b39493929190611f2c565b604051602081830303815290604052905092915050565b60608151600014156113ea57505060408051602081019091526000815290565b60006040518060600160405280604081526020016121ea60409139905060006003845160026114199190611e57565b6114239190611eee565b61142e906004611fcb565b67ffffffffffffffff81111561144657611446611955565b6040519080825280601f01601f191660200182016040528015611470576020820181803683370190505b509050600182016020820185865187015b808210156114dc576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611481565b50506003865106600181146114f8576002811461150b57611513565b603d6001830353603d6002830353611513565b603d60018303535b509195945050505050565b60006001600160a01b0384163b1561161157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611562903390899088908890600401611fea565b6020604051808303816000875af192505050801561159d575060408051601f3d908101601f1916820190925261159a91810190612027565b60015b6115f7573d8080156115cb576040519150601f19603f3d011682016040523d82523d6000602084013e6115d0565b606091505b5080516115ef5760405162461bcd60e51b81526004016105c990611e86565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610fbd565b506001949350505050565b60408051602880825260608281019093526000919060208201818036833701905050905060005b601481101561175c576000611659826013611e6f565b611664906008611fcb565b61166f906002612128565b611682906001600160a01b038716611eee565b60f81b9050600060108260f81c6116999190612134565b60f81b905060008160f81c60106116b09190612156565b8360f81c6116be9190612177565b60f81b90506116cc82611785565b856116d8866002611fcb565b815181106116e8576116e8611f16565b60200101906001600160f81b031916908160001a90535061170881611785565b85611714866002611fcb565b61171f906001611e57565b8151811061172f5761172f611f16565b60200101906001600160f81b031916908160001a905350505050808061175490611acb565b915050611643565b508060405160200161176e919061219a565b604051602081830303815290604052915050919050565b6000600a60f883901c10156117ac576117a360f883901c60306121c4565b60f81b92915050565b6117a360f883901c60576121c4565b919050565b6001600160e01b0319811681146117d657600080fd5b50565b6000602082840312156117eb57600080fd5b81356117f6816117c0565b9392505050565b60005b83811015611818578181015183820152602001611800565b83811115610b165750506000910152565b600081518084526118418160208601602086016117fd565b601f01601f19169290920160200192915050565b6020815260006117f66020830184611829565b60006020828403121561187a57600080fd5b5035919050565b80356001600160a01b03811681146117bb57600080fd5b600080604083850312156118ab57600080fd5b6118b483611881565b946020939093013593505050565b6000806000606084860312156118d757600080fd5b6118e084611881565b92506118ee60208501611881565b9150604084013590509250925092565b60006020828403121561191057600080fd5b6117f682611881565b6000806040838503121561192c57600080fd5b61193583611881565b91506020830135801515811461194a57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561198157600080fd5b61198a85611881565b935061199860208601611881565b925060408501359150606085013567ffffffffffffffff808211156119bc57600080fd5b818701915087601f8301126119d057600080fd5b8135818111156119e2576119e2611955565b604051601f8201601f19908116603f01168101908382118183101715611a0a57611a0a611955565b816040528281528a6020848701011115611a2357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611a5a57600080fd5b611a6383611881565b9150611a7160208401611881565b90509250929050565b600181811c90821680611a8e57607f821691505b60208210811415611aaf57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000600019821415611adf57611adf611ab5565b5060010190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600160fd1b815260008351611b538160018501602088016117fd565b602f60f81b6001918401918201528351611b748160028401602088016117fd565b01600201949350505050565b8054600090600181811c9080831680611b9a57607f831692505b6020808410821415611bbc57634e487b7160e01b600052602260045260246000fd5b818015611bd05760018114611be157611c0e565b60ff19861689528489019650611c0e565b60008881526020902060005b86811015611c065781548b820152908501908301611bed565b505084890196505b50505050505092915050565b693d913730b6b2911d101160b11b81528651600090611c4081600a850160208c016117fd565b875190830190611c5781600a840160208c016117fd565b72111610113232b9b1b934b83a34b7b7111d101160691b600a9290910191820152611c85601d820188611b80565b741116101130b734b6b0ba34b7b72fbab936111d101160591b81528651909150611cb6816015840160208a016117fd565b6c1116101134b6b0b3b2911d101160991b60159290910191820152611cde6022820186611b80565b90507f222c202261747472696275746573223a5b7b202274726169745f74797065223a8152730101129b2b934b0b6111610113b30b63ab2911d160651b60208201528351611d338160348401602088016117fd565b611d4c603482840101637d5d207d60e01b815260040190565b9a9950505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251611d9281601d8501602087016117fd565b91909101601d0192915050565b693d913730b6b2911d101160b11b81528351600090611dc581600a8501602089016117fd565b72111610113232b9b1b934b83a34b7b7111d101160691b600a91840191820152611df2601d820186611b80565b6c1116101134b6b0b3b2911d101160991b81529050611e14600d820185611b80565b7f222c202265787465726e616c5f6c696e6b223a202268747470733a2f2f6d6972815269726f722e78797a22207d60b01b6020820152602a019695505050505050565b60008219821115611e6a57611e6a611ab5565b500190565b600082821015611e8157611e81611ab5565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082611efd57611efd611ed8565b500490565b600082611f1157611f11611ed8565b500690565b634e487b7160e01b600052603260045260246000fd5b6000611f388287611b80565b6d3f746f74616c5469636b6574733d60901b81528551611f5f81600e840160208a016117fd565b6d267469636b65744e756d6265723d60901b600e92909101918201528451611f8e81601c8401602089016117fd565b6d266f776e6572416464726573733d60901b601c92909101918201528351611fbd81602a8401602088016117fd565b01602a019695505050505050565b6000816000190483118215151615611fe557611fe5611ab5565b500290565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061201d90830184611829565b9695505050505050565b60006020828403121561203957600080fd5b81516117f6816117c0565b600181815b8085111561207f57816000190482111561206557612065611ab5565b8085161561207257918102915b93841c9390800290612049565b509250929050565b600082612096575060016104bc565b816120a3575060006104bc565b81600181146120b957600281146120c3576120df565b60019150506104bc565b60ff8411156120d4576120d4611ab5565b50506001821b6104bc565b5060208310610133831016604e8410600b8410161715612102575081810a6104bc565b61210c8383612044565b806000190482111561212057612120611ab5565b029392505050565b60006117f68383612087565b600060ff83168061214757612147611ed8565b8060ff84160491505092915050565b600060ff821660ff84168160ff048111821515161561212057612120611ab5565b600060ff821660ff84168082101561219157612191611ab5565b90039392505050565b61060f60f31b8152600082516121b78160028501602087016117fd565b9190910160020192915050565b600060ff821660ff84168060ff038211156121e1576121e1611ab5565b01939250505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212208b15361b82a0ff2ec4ab005ec84d7a85188446d09c4a6b1d1a74c8333e0d6b6964736f6c634300080a003300000000000000000000000099c9fc46f92e8a1c0dec1b1747d010903e884be10000000000000000000000000000000000000000000000000000000000030d40000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000000000000009600000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000001d68747470733a2f2f6c322d696e766974652e76657263656c2e6170702f0000000000000000000000000000000000000000000000000000000000000000000064416e206578636c75736976652c206c696d697465642065646974696f6e20696e7669746174696f6e204e465420746f20706172746963697061746520696e20746865206c61756e6368206f662061206269672075706461746520746f204d6972726f722e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b726569656b783433756e32757269796a63736d6934647a7264333267667a7235637735716c36787269686268357a767a34353471736c6d000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101405760003560e01c80636c0360eb116100b6578063a22cb4651161006f578063a22cb465146103a7578063a4d66daf146103c7578063b88d4fde146103fb578063c87b56dd1461041b578063e8a3d4851461043b578063e985e9c51461045057600080fd5b80636c0360eb146102e057806370a08231146102f55780637284e4161461031557806391c49bf81461032a57806395d89b411461035e578063a035b1fe1461037357600080fd5b8063135d088d11610108578063135d088d1461020c57806318160ddd1461022157806323b872dd146102375780633cbb69791461025757806342842e0e146102a05780636352211e146102c057600080fd5b806301ffc9a71461014557806306fdde031461017a578063081812fc1461019c578063095ea7b3146101d45780631249c58b146101f6575b600080fd5b34801561015157600080fd5b506101656101603660046117d9565b610470565b60405190151581526020015b60405180910390f35b34801561018657600080fd5b5061018f6104c2565b6040516101719190611855565b3480156101a857600080fd5b506101bc6101b7366004611868565b610554565b6040516001600160a01b039091168152602001610171565b3480156101e057600080fd5b506101f46101ef366004611898565b6105ee565b005b6101fe610704565b604051908152602001610171565b34801561021857600080fd5b5061018f6108d5565b34801561022d57600080fd5b506101fe60095481565b34801561024357600080fd5b506101f46102523660046118c2565b610963565b34801561026357600080fd5b5061028b7f0000000000000000000000000000000000000000000000000000000000030d4081565b60405163ffffffff9091168152602001610171565b3480156102ac57600080fd5b506101f46102bb3660046118c2565b610994565b3480156102cc57600080fd5b506101bc6102db366004611868565b6109af565b3480156102ec57600080fd5b5061018f610a26565b34801561030157600080fd5b506101fe6103103660046118fe565b610a33565b34801561032157600080fd5b5061018f610ab9565b34801561033657600080fd5b506101bc7f00000000000000000000000099c9fc46f92e8a1c0dec1b1747d010903e884be181565b34801561036a57600080fd5b5061018f610ac6565b34801561037f57600080fd5b506101fe7f000000000000000000000000000000000000000000000000016345785d8a000081565b3480156103b357600080fd5b506101f46103c2366004611919565b610ad5565b3480156103d357600080fd5b506101fe7f000000000000000000000000000000000000000000000000000000000000009681565b34801561040757600080fd5b506101f461041636600461196b565b610ae4565b34801561042757600080fd5b5061018f610436366004611868565b610b1c565b34801561044757600080fd5b5061018f610be9565b34801561045c57600080fd5b5061016561046b366004611a47565b610c30565b60006001600160e01b031982166380ac58cd60e01b14806104a157506001600160e01b03198216635b5e139f60e01b145b806104bc57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546104d190611a7a565b80601f01602080910402602001604051908101604052809291908181526020018280546104fd90611a7a565b801561054a5780601f1061051f5761010080835404028352916020019161054a565b820191906000526020600020905b81548152906001019060200180831161052d57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166105d25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006105f9826109af565b9050806001600160a01b0316836001600160a01b031614156106675760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105c9565b336001600160a01b038216148061068357506106838133610c30565b6106f55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105c9565b6106ff8383610c5e565b505050565b60007f000000000000000000000000000000000000000000000000016345785d8a000034146107655760405162461bcd60e51b815260206004820152600d60248201526c696e76616c69642076616c756560981b60448201526064016105c9565b7f0000000000000000000000000000000000000000000000000000000000000096600954106107c15760405162461bcd60e51b81526020600482015260086024820152671cdbdb19081bdd5d60c21b60448201526064016105c9565b6009600081546107d090611acb565b918290555090506107e13382610ccc565b7f00000000000000000000000099c9fc46f92e8a1c0dec1b1747d010903e884be16001600160a01b0316156108c857604051639a2ac6d560e01b815233600482015263ffffffff7f0000000000000000000000000000000000000000000000000000000000030d4016602482015260606044820152600060648201527f00000000000000000000000099c9fc46f92e8a1c0dec1b1747d010903e884be16001600160a01b031690639a2ac6d59034906084016000604051808303818588803b1580156108ac57600080fd5b505af11580156108c0573d6000803e3d6000fd5b505050505090565b6108d23334610e0e565b90565b600880546108e290611a7a565b80601f016020809104026020016040519081016040528092919081815260200182805461090e90611a7a565b801561095b5780601f106109305761010080835404028352916020019161095b565b820191906000526020600020905b81548152906001019060200180831161093e57829003601f168201915b505050505081565b61096d3382610eee565b6109895760405162461bcd60e51b81526004016105c990611ae6565b6106ff838383610fc5565b6106ff83838360405180602001604052806000815250610ae4565b6000818152600260205260408120546001600160a01b0316806104bc5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105c9565b600680546108e290611a7a565b60006001600160a01b038216610a9d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016105c9565b506001600160a01b031660009081526003602052604090205490565b600780546108e290611a7a565b6060600180546104d190611a7a565b610ae0338383611161565b5050565b610aee3383610eee565b610b0a5760405162461bcd60e51b81526004016105c990611ae6565b610b1684848484611230565b50505050565b6060610bc3610b296104c2565b610b3284611263565b610b5b7f0000000000000000000000000000000000000000000000000000000000000096611263565b604051602001610b6c929190611b37565b6040516020818303038152906040526007610b8f86610b8a886109af565b611361565b6008610b9a88611263565b604051602001610baf96959493929190611c1a565b6040516020818303038152906040526113ca565b604051602001610bd39190611d5a565b6040516020818303038152906040529050919050565b6060610c0c610bf66104c2565b60076008604051602001610baf93929190611d9f565b604051602001610c1c9190611d5a565b604051602081830303815290604052905090565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610c93826109af565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038216610d225760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105c9565b6000818152600260205260409020546001600160a01b031615610d875760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105c9565b6001600160a01b0382166000908152600360205260408120805460019290610db0908490611e57565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80471015610e555760405162461bcd60e51b8152602060048201526014602482015273696e73756666696369656e742062616c616e636560601b60448201526064016105c9565b6000826001600160a01b0316825a6040519091906000818181858888f193505050503d8060008114610ea3576040519150601f19603f3d011682016040523d82523d6000602084013e610ea8565b606091505b50509050806106ff5760405162461bcd60e51b81526020600482015260126024820152711c9958da5c1a595b9d081c995d995c9d195960721b60448201526064016105c9565b6000818152600260205260408120546001600160a01b0316610f675760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105c9565b6000610f72836109af565b9050806001600160a01b0316846001600160a01b03161480610f995750610f998185610c30565b80610fbd5750836001600160a01b0316610fb284610554565b6001600160a01b0316145b949350505050565b826001600160a01b0316610fd8826109af565b6001600160a01b03161461103c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016105c9565b6001600160a01b03821661109e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105c9565b6110a9600082610c5e565b6001600160a01b03831660009081526003602052604081208054600192906110d2908490611e6f565b90915550506001600160a01b0382166000908152600360205260408120805460019290611100908490611e57565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b031614156111c35760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105c9565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61123b848484610fc5565b6112478484848461151e565b610b165760405162461bcd60e51b81526004016105c990611e86565b6060816112875750506040805180820190915260018152600360fc1b602082015290565b8160005b81156112b1578061129b81611acb565b91506112aa9050600a83611eee565b915061128b565b60008167ffffffffffffffff8111156112cc576112cc611955565b6040519080825280601f01601f1916602001820160405280156112f6576020820181803683370190505b5090505b8415610fbd5761130b600183611e6f565b9150611318600a86611f02565b611323906030611e57565b60f81b81838151811061133857611338611f16565b60200101906001600160f81b031916908160001a90535061135a600a86611eee565b94506112fa565b6060600661138e7f0000000000000000000000000000000000000000000000000000000000000096611263565b61139785611263565b6113a08561161c565b6040516020016113b39493929190611f2c565b604051602081830303815290604052905092915050565b60608151600014156113ea57505060408051602081019091526000815290565b60006040518060600160405280604081526020016121ea60409139905060006003845160026114199190611e57565b6114239190611eee565b61142e906004611fcb565b67ffffffffffffffff81111561144657611446611955565b6040519080825280601f01601f191660200182016040528015611470576020820181803683370190505b509050600182016020820185865187015b808210156114dc576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250611481565b50506003865106600181146114f8576002811461150b57611513565b603d6001830353603d6002830353611513565b603d60018303535b509195945050505050565b60006001600160a01b0384163b1561161157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611562903390899088908890600401611fea565b6020604051808303816000875af192505050801561159d575060408051601f3d908101601f1916820190925261159a91810190612027565b60015b6115f7573d8080156115cb576040519150601f19603f3d011682016040523d82523d6000602084013e6115d0565b606091505b5080516115ef5760405162461bcd60e51b81526004016105c990611e86565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610fbd565b506001949350505050565b60408051602880825260608281019093526000919060208201818036833701905050905060005b601481101561175c576000611659826013611e6f565b611664906008611fcb565b61166f906002612128565b611682906001600160a01b038716611eee565b60f81b9050600060108260f81c6116999190612134565b60f81b905060008160f81c60106116b09190612156565b8360f81c6116be9190612177565b60f81b90506116cc82611785565b856116d8866002611fcb565b815181106116e8576116e8611f16565b60200101906001600160f81b031916908160001a90535061170881611785565b85611714866002611fcb565b61171f906001611e57565b8151811061172f5761172f611f16565b60200101906001600160f81b031916908160001a905350505050808061175490611acb565b915050611643565b508060405160200161176e919061219a565b604051602081830303815290604052915050919050565b6000600a60f883901c10156117ac576117a360f883901c60306121c4565b60f81b92915050565b6117a360f883901c60576121c4565b919050565b6001600160e01b0319811681146117d657600080fd5b50565b6000602082840312156117eb57600080fd5b81356117f6816117c0565b9392505050565b60005b83811015611818578181015183820152602001611800565b83811115610b165750506000910152565b600081518084526118418160208601602086016117fd565b601f01601f19169290920160200192915050565b6020815260006117f66020830184611829565b60006020828403121561187a57600080fd5b5035919050565b80356001600160a01b03811681146117bb57600080fd5b600080604083850312156118ab57600080fd5b6118b483611881565b946020939093013593505050565b6000806000606084860312156118d757600080fd5b6118e084611881565b92506118ee60208501611881565b9150604084013590509250925092565b60006020828403121561191057600080fd5b6117f682611881565b6000806040838503121561192c57600080fd5b61193583611881565b91506020830135801515811461194a57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561198157600080fd5b61198a85611881565b935061199860208601611881565b925060408501359150606085013567ffffffffffffffff808211156119bc57600080fd5b818701915087601f8301126119d057600080fd5b8135818111156119e2576119e2611955565b604051601f8201601f19908116603f01168101908382118183101715611a0a57611a0a611955565b816040528281528a6020848701011115611a2357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611a5a57600080fd5b611a6383611881565b9150611a7160208401611881565b90509250929050565b600181811c90821680611a8e57607f821691505b60208210811415611aaf57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000600019821415611adf57611adf611ab5565b5060010190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b600160fd1b815260008351611b538160018501602088016117fd565b602f60f81b6001918401918201528351611b748160028401602088016117fd565b01600201949350505050565b8054600090600181811c9080831680611b9a57607f831692505b6020808410821415611bbc57634e487b7160e01b600052602260045260246000fd5b818015611bd05760018114611be157611c0e565b60ff19861689528489019650611c0e565b60008881526020902060005b86811015611c065781548b820152908501908301611bed565b505084890196505b50505050505092915050565b693d913730b6b2911d101160b11b81528651600090611c4081600a850160208c016117fd565b875190830190611c5781600a840160208c016117fd565b72111610113232b9b1b934b83a34b7b7111d101160691b600a9290910191820152611c85601d820188611b80565b741116101130b734b6b0ba34b7b72fbab936111d101160591b81528651909150611cb6816015840160208a016117fd565b6c1116101134b6b0b3b2911d101160991b60159290910191820152611cde6022820186611b80565b90507f222c202261747472696275746573223a5b7b202274726169745f74797065223a8152730101129b2b934b0b6111610113b30b63ab2911d160651b60208201528351611d338160348401602088016117fd565b611d4c603482840101637d5d207d60e01b815260040190565b9a9950505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251611d9281601d8501602087016117fd565b91909101601d0192915050565b693d913730b6b2911d101160b11b81528351600090611dc581600a8501602089016117fd565b72111610113232b9b1b934b83a34b7b7111d101160691b600a91840191820152611df2601d820186611b80565b6c1116101134b6b0b3b2911d101160991b81529050611e14600d820185611b80565b7f222c202265787465726e616c5f6c696e6b223a202268747470733a2f2f6d6972815269726f722e78797a22207d60b01b6020820152602a019695505050505050565b60008219821115611e6a57611e6a611ab5565b500190565b600082821015611e8157611e81611ab5565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082611efd57611efd611ed8565b500490565b600082611f1157611f11611ed8565b500690565b634e487b7160e01b600052603260045260246000fd5b6000611f388287611b80565b6d3f746f74616c5469636b6574733d60901b81528551611f5f81600e840160208a016117fd565b6d267469636b65744e756d6265723d60901b600e92909101918201528451611f8e81601c8401602089016117fd565b6d266f776e6572416464726573733d60901b601c92909101918201528351611fbd81602a8401602088016117fd565b01602a019695505050505050565b6000816000190483118215151615611fe557611fe5611ab5565b500290565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061201d90830184611829565b9695505050505050565b60006020828403121561203957600080fd5b81516117f6816117c0565b600181815b8085111561207f57816000190482111561206557612065611ab5565b8085161561207257918102915b93841c9390800290612049565b509250929050565b600082612096575060016104bc565b816120a3575060006104bc565b81600181146120b957600281146120c3576120df565b60019150506104bc565b60ff8411156120d4576120d4611ab5565b50506001821b6104bc565b5060208310610133831016604e8410600b8410161715612102575081810a6104bc565b61210c8383612044565b806000190482111561212057612120611ab5565b029392505050565b60006117f68383612087565b600060ff83168061214757612147611ed8565b8060ff84160491505092915050565b600060ff821660ff84168160ff048111821515161561212057612120611ab5565b600060ff821660ff84168082101561219157612191611ab5565b90039392505050565b61060f60f31b8152600082516121b78160028501602087016117fd565b9190910160020192915050565b600060ff821660ff84168060ff038211156121e1576121e1611ab5565b01939250505056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212208b15361b82a0ff2ec4ab005ec84d7a85188446d09c4a6b1d1a74c8333e0d6b6964736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000099c9fc46f92e8a1c0dec1b1747d010903e884be10000000000000000000000000000000000000000000000000000000000030d40000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000000000000000000000000000000000000000009600000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000001d68747470733a2f2f6c322d696e766974652e76657263656c2e6170702f0000000000000000000000000000000000000000000000000000000000000000000064416e206578636c75736976652c206c696d697465642065646974696f6e20696e7669746174696f6e204e465420746f20706172746963697061746520696e20746865206c61756e6368206f662061206269672075706461746520746f204d6972726f722e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b726569656b783433756e32757269796a63736d6934647a7264333267667a7235637735716c36787269686268357a767a34353471736c6d000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _l2TokenBridge (address): 0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1
Arg [1] : _l2Gas (uint32): 200000
Arg [2] : _price (uint256): 100000000000000000
Arg [3] : _limit (uint256): 150
Arg [4] : _baseURI (string): https://l2-invite.vercel.app/
Arg [5] : _description (string): An exclusive, limited edition invitation NFT to participate in the launch of a big update to Mirror.
Arg [6] : _imageURI (string): ipfs://bafkreiekx43un2uriyjcsmi4dzrd32gfzr5cw5ql6xrihbh5zvz454qslm
-----Encoded View---------------
18 Constructor Arguments found :
Arg [0] : 00000000000000000000000099c9fc46f92e8a1c0dec1b1747d010903e884be1
Arg [1] : 0000000000000000000000000000000000000000000000000000000000030d40
Arg [2] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000096
Arg [4] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [6] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [7] : 000000000000000000000000000000000000000000000000000000000000001d
Arg [8] : 68747470733a2f2f6c322d696e766974652e76657263656c2e6170702f000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [10] : 416e206578636c75736976652c206c696d697465642065646974696f6e20696e
Arg [11] : 7669746174696f6e204e465420746f20706172746963697061746520696e2074
Arg [12] : 6865206c61756e6368206f662061206269672075706461746520746f204d6972
Arg [13] : 726f722e00000000000000000000000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [15] : 697066733a2f2f6261666b726569656b783433756e32757269796a63736d6934
Arg [16] : 647a7264333267667a7235637735716c36787269686268357a767a3435347173
Arg [17] : 6c6d000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.