ERC-721
Overview
Max Total Supply
152 MP
Holders
150
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MegaplexPass
Compiler Version
v0.8.9+commit.e5eed63a
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/utils/Address.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import './ERC721Batch.sol'; import './Delegated.sol'; import './Royalties.sol'; contract MegaplexPass is ERC721Batch, Delegated, Royalties { using Address for address; using Strings for uint256; struct MintConfig{ uint64 ethPrice; uint16 maxMint; uint16 maxOrder; uint16 maxSupply; SaleState saleState; } enum SaleState{ NONE, MAINSALE } MintConfig public config = MintConfig( 0.25 ether, //ethPrice 300, //maxMint 300, //maxOrder 300, //maxSupply SaleState.NONE ); string public tokenURIPrefix; string public tokenURISuffix; address payable public treasury = payable(0x2Be23419b258c3c82EE0C0E41B4a9C600e8860bd); constructor() Delegated() ERC721B("Megaplex Pass", "MP") Royalties( treasury, 1000, 10000 ){ setDelegate(treasury, true); } //payable function mint( uint16 quantity ) external payable { require( quantity > 0, "Must order 1+" ); MintConfig memory cfg = config; require( cfg.saleState == SaleState.MAINSALE, "Sale is not active" ); require( quantity <= cfg.maxOrder, "Order too big" ); Owner memory prev = owners[msg.sender]; require( prev.purchased + quantity <= cfg.maxMint, "Mint limit reached" ); uint supply = totalSupply(); require( supply + quantity <= cfg.maxSupply, "Mint/Order exceeds supply" ); require( msg.value == cfg.ethPrice * quantity, "Ether sent is not correct" ); unchecked{ owners[msg.sender] = Owner( prev.balance + quantity, prev.purchased + quantity ); for(uint256 i; i < quantity; ++i ){ _mint( msg.sender, supply + i ); } } Address.sendValue(treasury, msg.value); } //onlyDelegates function mintTo(uint16[] calldata quantity, address[] calldata recipient) external payable onlyDelegates{ require(quantity.length == recipient.length, "Must provide equal quantities and recipients" ); uint256 totalQuantity = 0; unchecked{ for(uint256 i = 0; i < quantity.length; ++i){ totalQuantity += quantity[i]; } } uint supply = totalSupply(); require( supply + totalQuantity <= config.maxSupply, "Mint/order exceeds supply" ); unchecked{ for(uint256 i; i < recipient.length; ++i){ owners[recipient[i]].balance += quantity[i]; for(uint256 j; j < quantity[i]; ++j ){ _mint( recipient[i], supply + j ); } } } } function setConfig( MintConfig calldata newConfig ) external onlyDelegates{ require( newConfig.maxOrder <= newConfig.maxSupply, "max order must be lte max supply" ); require( totalSupply() <= newConfig.maxSupply, "max supply must be gte total supply" ); require( newConfig.saleState <= type(SaleState).max, "invalid sale state" ); config = newConfig; } function setTokenURI( string calldata prefix, string calldata suffix ) external onlyDelegates{ tokenURIPrefix = prefix; tokenURISuffix = suffix; } //only owner or treasury function setDefaultRoyalty( uint16 feeNumerator, uint16 feeDenominator ) external { require(msg.sender == treasury || msg.sender == owner(), "Only the treasury or owner can set royalties"); _setDefaultRoyalty( treasury, feeNumerator, feeDenominator ); } //only treasure function setTreasury( address payable newTreasury ) external { require(msg.sender == treasury, "Only the current treasury can set a successor"); _setDefaultRoyalty( newTreasury, defaultRoyalty.fraction.numerator, defaultRoyalty.fraction.denominator ); treasury = newTreasury; } //view: IERC165 function supportsInterface(bytes4 interfaceId) public view override(ERC721EnumerableB, Royalties) returns (bool) { return ERC721EnumerableB.supportsInterface(interfaceId) || Royalties.supportsInterface(interfaceId); } //view: IERC721Metadata function tokenURI( uint256 tokenId ) external view returns( string memory ){ require(_exists(tokenId), "query for nonexistent token"); return string(abi.encodePacked(tokenURIPrefix, tokenId.toString(), tokenURISuffix)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; contract Royalties is IERC2981{ struct Fraction{ uint16 numerator; uint16 denominator; } struct Royalty{ address receiver; Fraction fraction; } Royalty public defaultRoyalty; //mapping(uint => Royalty) public tokenRoyalties; constructor( address receiver, uint16 royaltyNum, uint16 royaltyDenom ){ _setDefaultRoyalty( receiver, royaltyNum, royaltyDenom ); } //view: IERC2981 /** * @dev See {IERC2981-royaltyInfo}. **/ function royaltyInfo(uint256, uint256 _salePrice) external view virtual returns (address, uint256) { /* Royalty memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } */ uint256 royaltyAmount = (_salePrice * defaultRoyalty.fraction.numerator) / defaultRoyalty.fraction.denominator; return (defaultRoyalty.receiver, royaltyAmount); } //view: IERC165 /** * @dev See {IERC165-supportsInterface}. **/ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC2981).interfaceId; } function _setDefaultRoyalty( address receiver, uint16 royaltyNum, uint16 royaltyDenom ) internal { defaultRoyalty.receiver = receiver; defaultRoyalty.fraction = Fraction(royaltyNum, royaltyDenom); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface IERC721Batch { function isOwnerOf( address account, uint[] calldata tokenIds ) external view returns( bool ); function safeTransferBatch( address from, address to, uint[] calldata tokenIds, bytes calldata data ) external; function transferBatch( address from, address to, uint[] calldata tokenIds ) external; function walletOfOwner( address account ) external view returns( uint[] memory ); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "./ERC721B.sol"; abstract contract ERC721EnumerableB is ERC721B, IERC721Enumerable { function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC721B, IERC165) returns( bool ){ return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface( interfaceId ); } function tokenOfOwnerByIndex( address owner, uint256 index ) external view returns( uint256 ){ require( owners[ owner ].balance > index, "ERC721EnumerableB: owner index out of bounds" ); uint256 count; uint256 tokenId; for( tokenId = 0; tokenId < 8888; ++tokenId ){ if( owner != tokens[tokenId] ) continue; if( index == count++ ) break; } return tokenId; } function tokenByIndex( uint256 index ) external view returns( uint256 ){ require( _exists( index ), "ERC721EnumerableB: query for nonexistent token"); return index; } function totalSupply() public view returns( uint256 ){ return _supply; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "./IERC721Batch.sol"; import "./ERC721EnumerableB.sol"; abstract contract ERC721Batch is ERC721EnumerableB, IERC721Batch { function isOwnerOf( address account, uint[] calldata tokenIds ) external view returns( bool ){ for(uint i; i < tokenIds.length; ++i ){ if( account != tokens[ tokenIds[i] ] ) return false; } return true; } function safeTransferBatch( address from, address to, uint256[] calldata tokenIds, bytes calldata data ) external{ for(uint i; i < tokenIds.length; ++i ){ safeTransferFrom( from, to, tokenIds[i], data ); } } function transferBatch( address from, address to, uint256[] calldata tokenIds ) external{ for(uint i; i < tokenIds.length; ++i ){ transferFrom( from, to, tokenIds[i] ); } } function walletOfOwner( address account ) external view returns( uint[] memory ){ uint256 count; uint256 quantity = owners[ account ].balance; uint256[] memory wallet = new uint[]( quantity ); for( uint i = 0; i < 8888; ++i ){ if( account == tokens[i] ){ wallet[ count++ ] = i; if( count == quantity ) break; } } return wallet; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; abstract contract ERC721B is Context, ERC165, IERC721, IERC721Metadata { using Address for address; struct Owner{ uint16 balance; uint16 purchased; } mapping(uint256 => address) public tokens; mapping(address => Owner) public owners; uint256 internal _supply; string private _name; string private _symbol; mapping(uint256 => address) internal _tokenApprovals; mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_ ){ _name = name_; _symbol = symbol_; } //public view function balanceOf(address owner) external view returns( uint256 balance ){ require(owner != address(0), "ERC721B: balance query for the zero address"); return owners[owner].balance; } function name() external view returns( string memory name_ ){ return _name; } function ownerOf(uint256 tokenId) public virtual view returns( address owner ){ require(_exists(tokenId), "ERC721B: query for nonexistent token"); return tokens[tokenId]; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns( bool isSupported ){ return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } function symbol() external view returns( string memory symbol_ ){ return _symbol; } //approvals function approve(address to, uint tokenId) external{ address owner = tokens[tokenId]; require(to != owner, "ERC721B: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721B: caller is not owner nor approved for all" ); _approve(to, tokenId); } function getApproved(uint256 tokenId) public view returns( address approver ){ require(_exists(tokenId), "ERC721: query for nonexistent token"); return _tokenApprovals[tokenId]; } function isApprovedForAll(address owner, address operator) public view returns( bool isApproved ){ return _operatorApprovals[owner][operator]; } function setApprovalForAll(address operator, bool approved) external{ _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } //transfers function safeTransferFrom(address from, address to, uint256 tokenId) external{ safeTransferFrom(from, to, tokenId, ""); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public{ require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721B: caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } function transferFrom(address from, address to, uint256 tokenId) public{ //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721B: caller is not owner nor approved"); _transfer(from, to, tokenId); } //internal function _approve(address to, uint tokenId) internal{ _tokenApprovals[tokenId] = to; emit Approval(tokens[tokenId], to, tokenId); } 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("ERC721B: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } function _exists(uint256 tokenId) internal view returns( bool ){ return tokens[tokenId] != address(0); } function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns( bool isApproved ){ require(_exists(tokenId), "ERC721B: query for nonexistent token"); address owner = tokens[tokenId]; return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } function _mint( address to, uint256 tokenId ) internal{ require(!_exists(tokenId), "ERC721B: mint for existing token"); ++_supply; tokens[ tokenId ] = to; emit Transfer( address(0), to, tokenId ); } function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal{ _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721B: transfer to non ERC721Receiver implementer"); } function _transfer(address from, address to, uint256 tokenId) internal virtual{ require(tokens[tokenId] == from, "ERC721B: transfer of token that is not own"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked{ --owners[from].balance; ++owners[to].balance; } tokens[tokenId] = to; emit Transfer(from, to, tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; contract Delegated is Ownable{ mapping(address => bool) internal _delegates; modifier onlyDelegates { require(_delegates[msg.sender], "Invalid delegate" ); _; } constructor() Ownable(){ setDelegate( owner(), true ); } //onlyOwner function isDelegate( address addr ) external view onlyOwner returns( bool ){ return _delegates[addr]; } function setDelegate( address addr, bool isDelegate_ ) public onlyOwner{ _delegates[addr] = isDelegate_; } function transferOwnership(address newOwner) public override onlyOwner { super.transferOwnership( newOwner ); setDelegate( owner(), true ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"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":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"config","outputs":[{"internalType":"uint64","name":"ethPrice","type":"uint64"},{"internalType":"uint16","name":"maxMint","type":"uint16"},{"internalType":"uint16","name":"maxOrder","type":"uint16"},{"internalType":"uint16","name":"maxSupply","type":"uint16"},{"internalType":"enum MegaplexPass.SaleState","name":"saleState","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultRoyalty","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"components":[{"internalType":"uint16","name":"numerator","type":"uint16"},{"internalType":"uint16","name":"denominator","type":"uint16"}],"internalType":"struct Royalties.Fraction","name":"fraction","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"approver","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":"isApproved","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isDelegate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"isOwnerOf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"quantity","type":"uint16"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"quantity","type":"uint16[]"},{"internalType":"address[]","name":"recipient","type":"address[]"}],"name":"mintTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"name_","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"owners","outputs":[{"internalType":"uint16","name":"balance","type":"uint16"},{"internalType":"uint16","name":"purchased","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint64","name":"ethPrice","type":"uint64"},{"internalType":"uint16","name":"maxMint","type":"uint16"},{"internalType":"uint16","name":"maxOrder","type":"uint16"},{"internalType":"uint16","name":"maxSupply","type":"uint16"},{"internalType":"enum MegaplexPass.SaleState","name":"saleState","type":"uint8"}],"internalType":"struct MegaplexPass.MintConfig","name":"newConfig","type":"tuple"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"feeNumerator","type":"uint16"},{"internalType":"uint16","name":"feeDenominator","type":"uint16"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"isDelegate_","type":"bool"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"prefix","type":"string"},{"internalType":"string","name":"suffix","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newTreasury","type":"address"}],"name":"setTreasury","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":"symbol_","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenURIPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenURISuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokens","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"tokenIds","type":"uint256[]"}],"name":"transferBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6101206040526703782dace9d9000060805261012c60a081905260c081905260e052600061010052600b80546001600160781b0319166d012c012c012c03782dace9d90000179055600e8054732be23419b258c3c82ee0c0e41b4a9c600e8860bd6001600160a01b03199091161790553480156200007c57600080fd5b50600e54604080518082018252600d81526c4d656761706c6578205061737360981b60208083019182528351808501909452600284526104d560f41b9084015281516001600160a01b03909416936103e89361271093929091620000e39160039162000297565b508051620000f990600490602084019062000297565b5050506200011662000110620001ab60201b60201c565b620001af565b620001356200012d6007546001600160a01b031690565b600162000201565b600980546001600160a01b0319166001600160a01b0385161790556040805180820190915261ffff8084168083529083166020909201829052600a805463ffffffff1916909117620100009092029190911790555050600e54620001a591506001600160a01b0316600162000201565b6200037a565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200020b62000236565b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6007546001600160a01b03163314620002955760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b828054620002a5906200033d565b90600052602060002090601f016020900481019282620002c9576000855562000314565b82601f10620002e457805160ff191683800117855562000314565b8280016001018555821562000314579182015b8281111562000314578251825591602001919060010190620002f7565b506200032292915062000326565b5090565b5b8082111562000322576000815560010162000327565b600181811c908216806200035257607f821691505b602082108114156200037457634e487b7160e01b600052602260045260246000fd5b50919050565b612f30806200038a6000396000f3fe6080604052600436106102305760003560e01c806361d027b31161012e578063b88d4fde116100ab578063dbbc853b1161006f578063dbbc853b14610776578063e985e9c51461078b578063ececaf00146107d4578063f0f44260146107f4578063f2fde38b1461081457600080fd5b8063b88d4fde146106e1578063c042314514610701578063c0ac998314610721578063c87b56dd14610736578063d48ede991461075657600080fd5b806379502c55116100f257806379502c551461061d5780638da5cb5b1461067b57806395d89b4114610699578063a22cb465146106ae578063ae7bf4c8146106ce57600080fd5b806361d027b3146105305780636352211e1461055057806370a0823114610570578063715018a6146105905780637885fdc7146105a557600080fd5b806323cf0a22116101bc5780634a994eef116101805780634a994eef1461047a5780634d44660c1461049a5780634f64b2be146104ba5780634f6ccce7146104f057806357cbcfb31461051057600080fd5b806323cf0a22146103bb5780632a55205a146103ce5780632f745c591461040d57806342842e0e1461042d578063438b63001461044d57600080fd5b8063081812fc11610203578063081812fc14610302578063095ea7b31461033a5780630ca5336b1461035c57806318160ddd1461037c57806323b872dd1461039b57600080fd5b806301ffc9a714610235578063022914a71461026a57806306fdde03146102c057806307779627146102e2575b600080fd5b34801561024157600080fd5b506102556102503660046123a0565b610834565b60405190151581526020015b60405180910390f35b34801561027657600080fd5b506102a56102853660046123d2565b60016020526000908152604090205461ffff808216916201000090041682565b6040805161ffff938416815292909116602083015201610261565b3480156102cc57600080fd5b506102d5610860565b6040516102619190612447565b3480156102ee57600080fd5b506102556102fd3660046123d2565b6108f2565b34801561030e57600080fd5b5061032261031d36600461245a565b61091b565b6040516001600160a01b039091168152602001610261565b34801561034657600080fd5b5061035a610355366004612473565b61099f565b005b34801561036857600080fd5b5061035a61037736600461249f565b610aa7565b34801561038857600080fd5b506002545b604051908152602001610261565b3480156103a757600080fd5b5061035a6103b63660046124b7565b610c36565b61035a6103c9366004612508565b610c67565b3480156103da57600080fd5b506103ee6103e9366004612525565b610fcf565b604080516001600160a01b039093168352602083019190915201610261565b34801561041957600080fd5b5061038d610428366004612473565b611013565b34801561043957600080fd5b5061035a6104483660046124b7565b6110f7565b34801561045957600080fd5b5061046d6104683660046123d2565b611112565b6040516102619190612547565b34801561048657600080fd5b5061035a61049536600461258b565b6111f7565b3480156104a657600080fd5b506102556104b536600461260d565b61122a565b3480156104c657600080fd5b506103226104d536600461245a565b6000602081905290815260409020546001600160a01b031681565b3480156104fc57600080fd5b5061038d61050b36600461245a565b61129e565b34801561051c57600080fd5b5061035a61052b366004612661565b611310565b34801561053c57600080fd5b50600e54610322906001600160a01b031681565b34801561055c57600080fd5b5061032261056b36600461245a565b6113af565b34801561057c57600080fd5b5061038d61058b3660046123d2565b6113f2565b34801561059c57600080fd5b5061035a61147e565b3480156105b157600080fd5b5060095460408051808201909152600a5461ffff8082168352620100009091041660208201526105e8916001600160a01b03169082565b604080516001600160a01b039093168352815161ffff9081166020808601919091529092015190911690820152606001610261565b34801561062957600080fd5b50600b5461066a906001600160401b0381169061ffff600160401b8204811691600160501b8104821691600160601b8204169060ff600160701b9091041685565b6040516102619594939291906126a5565b34801561068757600080fd5b506007546001600160a01b0316610322565b3480156106a557600080fd5b506102d5611492565b3480156106ba57600080fd5b5061035a6106c936600461258b565b6114a1565b61035a6106dc3660046126fd565b61150d565b3480156106ed57600080fd5b5061035a6106fc36600461277e565b61176a565b34801561070d57600080fd5b5061035a61071c36600461285d565b61179c565b34801561072d57600080fd5b506102d56117e1565b34801561074257600080fd5b506102d561075136600461245a565b61186f565b34801561076257600080fd5b5061035a6107713660046128f6565b6118fb565b34801561078257600080fd5b506102d5611943565b34801561079757600080fd5b506102556107a6366004612955565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156107e057600080fd5b5061035a6107ef366004612983565b611950565b34801561080057600080fd5b5061035a61080f3660046123d2565b6119c5565b34801561082057600080fd5b5061035a61082f3660046123d2565b611a73565b600061083f82611aa3565b8061085a575063152a902d60e11b6001600160e01b03198316145b92915050565b60606003805461086f90612a17565b80601f016020809104026020016040519081016040528092919081815260200182805461089b90612a17565b80156108e85780601f106108bd576101008083540402835291602001916108e8565b820191906000526020600020905b8154815290600101906020018083116108cb57829003601f168201915b5050505050905090565b60006108fc611ac8565b506001600160a01b031660009081526008602052604090205460ff1690565b600061092682611b22565b6109835760405162461bcd60e51b815260206004820152602360248201527f4552433732313a20717565727920666f72206e6f6e6578697374656e7420746f60448201526235b2b760e91b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000818152602081905260409020546001600160a01b03908116908316811415610a165760405162461bcd60e51b815260206004820152602260248201527f455243373231423a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b606482015260840161097a565b336001600160a01b0382161480610a325750610a3281336107a6565b610a985760405162461bcd60e51b815260206004820152603160248201527f455243373231423a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527008185c1c1c9bdd995908199bdc88185b1b607a1b606482015260840161097a565b610aa28383611b3f565b505050565b3360009081526008602052604090205460ff16610ad65760405162461bcd60e51b815260040161097a90612a4c565b610ae66080820160608301612508565b61ffff16610afa6060830160408401612508565b61ffff161115610b4c5760405162461bcd60e51b815260206004820181905260248201527f6d6178206f72646572206d757374206265206c7465206d617820737570706c79604482015260640161097a565b610b5c6080820160608301612508565b61ffff16610b6960025490565b1115610bc35760405162461bcd60e51b815260206004820152602360248201527f6d617820737570706c79206d7573742062652067746520746f74616c20737570604482015262706c7960e81b606482015260840161097a565b6001610bd560a0830160808401612a83565b6001811115610be657610be661268f565b1115610c295760405162461bcd60e51b8152602060048201526012602482015271696e76616c69642073616c6520737461746560701b604482015260640161097a565b80600b610aa28282612af5565b610c403382611ba5565b610c5c5760405162461bcd60e51b815260040161097a90612bcb565b610aa2838383611c43565b60008161ffff1611610cab5760405162461bcd60e51b815260206004820152600d60248201526c4d757374206f7264657220312b60981b604482015260640161097a565b6040805160a081018252600b80546001600160401b038116835261ffff600160401b820481166020850152600160501b8204811694840194909452600160601b81049093166060830152600092608083019060ff600160701b909104166001811115610d1957610d1961268f565b6001811115610d2a57610d2a61268f565b9052509050600181608001516001811115610d4757610d4761268f565b14610d895760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b604482015260640161097a565b806040015161ffff168261ffff161115610dd55760405162461bcd60e51b815260206004820152600d60248201526c4f7264657220746f6f2062696760981b604482015260640161097a565b3360009081526001602090815260409182902082518084019093525461ffff8082168452620100009091048116838301819052918401511690610e19908590612c2a565b61ffff161115610e605760405162461bcd60e51b8152602060048201526012602482015271135a5b9d081b1a5b5a5d081c995858da195960721b604482015260640161097a565b6000610e6b60025490565b9050826060015161ffff168461ffff1682610e869190612c50565b1115610ed45760405162461bcd60e51b815260206004820152601960248201527f4d696e742f4f72646572206578636565647320737570706c7900000000000000604482015260640161097a565b8251610ee59061ffff861690612c68565b6001600160401b03163414610f3c5760405162461bcd60e51b815260206004820152601960248201527f45746865722073656e74206973206e6f7420636f727265637400000000000000604482015260640161097a565b604080518082018252835161ffff908701811682526020808601518801821681840190815233600090815260019092529381209251835494518316620100000263ffffffff199095169216919091179290921790555b8461ffff16811015610fb257610faa33828401611d6d565b600101610f92565b50600e54610fc9906001600160a01b031634611e2f565b50505050565b600a546000908190819061ffff620100008204811691610ff0911686612c97565b610ffa9190612ccc565b6009546001600160a01b031693509150505b9250929050565b6001600160a01b03821660009081526001602052604081205461ffff1682106110935760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c65423a206f776e657220696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161097a565b6000805b6122b88110156110ef576000818152602081905260409020546001600160a01b038681169116146110c7576110df565b816110d181612ce0565b92508414156110df576110ef565b6110e881612ce0565b9050611097565b949350505050565b610aa28383836040518060200160405280600081525061176a565b6001600160a01b0381166000908152600160205260408120546060919061ffff1681816001600160401b0381111561114c5761114c612768565b604051908082528060200260200182016040528015611175578160200160208202803683370190505b50905060005b6122b88110156111ee576000818152602081905260409020546001600160a01b03878116911614156111de578082856111b381612ce0565b9650815181106111c5576111c5612cfb565b602002602001018181525050828414156111de576111ee565b6111e781612ce0565b905061117b565b50949350505050565b6111ff611ac8565b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6000805b828110156112915760008085858481811061124b5761124b612cfb565b60209081029290920135835250810191909152604001600020546001600160a01b03868116911614611281576000915050611297565b61128a81612ce0565b905061122e565b50600190505b9392505050565b60006112a982611b22565b61130c5760405162461bcd60e51b815260206004820152602e60248201527f455243373231456e756d657261626c65423a20717565727920666f72206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b606482015260840161097a565b5090565b600e546001600160a01b031633148061133357506007546001600160a01b031633145b6113945760405162461bcd60e51b815260206004820152602c60248201527f4f6e6c7920746865207472656173757279206f72206f776e65722063616e207360448201526b657420726f79616c7469657360a01b606482015260840161097a565b600e546113ab906001600160a01b03168383611f48565b5050565b60006113ba82611b22565b6113d65760405162461bcd60e51b815260040161097a90612d11565b506000908152602081905260409020546001600160a01b031690565b60006001600160a01b03821661145e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231423a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b606482015260840161097a565b506001600160a01b031660009081526001602052604090205461ffff1690565b611486611ac8565b6114906000611fa5565b565b60606004805461086f90612a17565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3360009081526008602052604090205460ff1661153c5760405162461bcd60e51b815260040161097a90612a4c565b8281146115a05760405162461bcd60e51b815260206004820152602c60248201527f4d7573742070726f7669646520657175616c207175616e74697469657320616e60448201526b6420726563697069656e747360a01b606482015260840161097a565b6000805b848110156115e4578585828181106115be576115be612cfb565b90506020020160208101906115d39190612508565b61ffff1691909101906001016115a4565b5060006115f060025490565b600b54909150600160601b900461ffff1661160b8383612c50565b11156116595760405162461bcd60e51b815260206004820152601960248201527f4d696e742f6f72646572206578636565647320737570706c7900000000000000604482015260640161097a565b60005b838110156117615786868281811061167657611676612cfb565b905060200201602081019061168b9190612508565b600160008787858181106116a1576116a1612cfb565b90506020020160208101906116b691906123d2565b6001600160a01b0316815260208101919091526040016000908120805461ffff19811661ffff9182169490940116929092179091555b8787838181106116fe576116fe612cfb565b90506020020160208101906117139190612508565b61ffff168110156117585761175086868481811061173357611733612cfb565b905060200201602081019061174891906123d2565b828501611d6d565b6001016116ec565b5060010161165c565b50505050505050565b6117743383611ba5565b6117905760405162461bcd60e51b815260040161097a90612bcb565b610fc984848484611ff7565b60005b818110156117da576117ca85858585858181106117be576117be612cfb565b90506020020135610c36565b6117d381612ce0565b905061179f565b5050505050565b600c80546117ee90612a17565b80601f016020809104026020016040519081016040528092919081815260200182805461181a90612a17565b80156118675780601f1061183c57610100808354040283529160200191611867565b820191906000526020600020905b81548152906001019060200180831161184a57829003601f168201915b505050505081565b606061187a82611b22565b6118c65760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e0000000000604482015260640161097a565b600c6118d18361202a565b600d6040516020016118e593929190612def565b6040516020818303038152906040529050919050565b3360009081526008602052604090205460ff1661192a5760405162461bcd60e51b815260040161097a90612a4c565b611936600c85856122fa565b506117da600d83836122fa565b600d80546117ee90612a17565b60005b83811015611761576119b5878787878581811061197257611972612cfb565b9050602002013586868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061176a92505050565b6119be81612ce0565b9050611953565b600e546001600160a01b03163314611a355760405162461bcd60e51b815260206004820152602d60248201527f4f6e6c79207468652063757272656e742074726561737572792063616e20736560448201526c3a10309039bab1b1b2b9b9b7b960991b606482015260840161097a565b600a54611a5190829061ffff8082169162010000900416611f48565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b611a7b611ac8565b611a8481612127565b611aa0611a996007546001600160a01b031690565b60016111f7565b50565b60006001600160e01b0319821663780e9d6360e01b148061085a575061085a8261219d565b6007546001600160a01b031633146114905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161097a565b6000908152602081905260409020546001600160a01b0316151590565b600081815260056020908152604080832080546001600160a01b0319166001600160a01b0387811691821790925592849052818420549151859492909116917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a45050565b6000611bb082611b22565b611bcc5760405162461bcd60e51b815260040161097a90612d11565b6000828152602081905260409020546001600160a01b03908116908416811480611c0f5750836001600160a01b0316611c048461091b565b6001600160a01b0316145b806110ef57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff166110ef565b6000818152602081905260409020546001600160a01b03848116911614611cbf5760405162461bcd60e51b815260206004820152602a60248201527f455243373231423a207472616e73666572206f6620746f6b656e20746861742060448201526934b9903737ba1037bbb760b11b606482015260840161097a565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b038781168086526001808652848720805461ffff1980821661ffff92831660001901831617909255938a1680895286892080549283169286169093019094161790558686529385905282852080549092168117909155905184939192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611d7681611b22565b15611dc35760405162461bcd60e51b815260206004820181905260248201527f455243373231423a206d696e7420666f72206578697374696e6720746f6b656e604482015260640161097a565b600260008154611dd290612ce0565b9091555060008181526020819052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80471015611e7f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161097a565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611ecc576040519150601f19603f3d011682016040523d82523d6000602084013e611ed1565b606091505b5050905080610aa25760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161097a565b600980546001600160a01b039094166001600160a01b0319909416939093179092556040805180820190915261ffff918216808252929091166020909101819052600a80546201000090920263ffffffff19909216909217179055565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612002848484611c43565b61200e848484846121ed565b610fc95760405162461bcd60e51b815260040161097a90612e22565b60608161204e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612078578061206281612ce0565b91506120719050600a83612ccc565b9150612052565b6000816001600160401b0381111561209257612092612768565b6040519080825280601f01601f1916602001820160405280156120bc576020820181803683370190505b5090505b84156110ef576120d1600183612e75565b91506120de600a86612e8c565b6120e9906030612c50565b60f81b8183815181106120fe576120fe612cfb565b60200101906001600160f81b031916908160001a905350612120600a86612ccc565b94506120c0565b61212f611ac8565b6001600160a01b0381166121945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161097a565b611aa081611fa5565b60006001600160e01b031982166380ac58cd60e01b14806121ce57506001600160e01b03198216635b5e139f60e01b145b8061085a57506301ffc9a760e01b6001600160e01b031983161461085a565b60006001600160a01b0384163b156122ef57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612231903390899088908890600401612ea0565b602060405180830381600087803b15801561224b57600080fd5b505af192505050801561227b575060408051601f3d908101601f1916820190925261227891810190612edd565b60015b6122d5573d8080156122a9576040519150601f19603f3d011682016040523d82523d6000602084013e6122ae565b606091505b5080516122cd5760405162461bcd60e51b815260040161097a90612e22565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110ef565b506001949350505050565b82805461230690612a17565b90600052602060002090601f016020900481019282612328576000855561236e565b82601f106123415782800160ff1982351617855561236e565b8280016001018555821561236e579182015b8281111561236e578235825591602001919060010190612353565b5061130c9291505b8082111561130c5760008155600101612376565b6001600160e01b031981168114611aa057600080fd5b6000602082840312156123b257600080fd5b81356112978161238a565b6001600160a01b0381168114611aa057600080fd5b6000602082840312156123e457600080fd5b8135611297816123bd565b60005b8381101561240a5781810151838201526020016123f2565b83811115610fc95750506000910152565b600081518084526124338160208601602086016123ef565b601f01601f19169290920160200192915050565b602081526000611297602083018461241b565b60006020828403121561246c57600080fd5b5035919050565b6000806040838503121561248657600080fd5b8235612491816123bd565b946020939093013593505050565b600060a082840312156124b157600080fd5b50919050565b6000806000606084860312156124cc57600080fd5b83356124d7816123bd565b925060208401356124e7816123bd565b929592945050506040919091013590565b61ffff81168114611aa057600080fd5b60006020828403121561251a57600080fd5b8135611297816124f8565b6000806040838503121561253857600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b8181101561257f57835183529284019291840191600101612563565b50909695505050505050565b6000806040838503121561259e57600080fd5b82356125a9816123bd565b9150602083013580151581146125be57600080fd5b809150509250929050565b60008083601f8401126125db57600080fd5b5081356001600160401b038111156125f257600080fd5b6020830191508360208260051b850101111561100c57600080fd5b60008060006040848603121561262257600080fd5b833561262d816123bd565b925060208401356001600160401b0381111561264857600080fd5b612654868287016125c9565b9497909650939450505050565b6000806040838503121561267457600080fd5b823561267f816124f8565b915060208301356125be816124f8565b634e487b7160e01b600052602160045260246000fd5b6001600160401b038616815261ffff858116602083015284811660408301528316606082015260a08101600283106126ed57634e487b7160e01b600052602160045260246000fd5b8260808301529695505050505050565b6000806000806040858703121561271357600080fd5b84356001600160401b038082111561272a57600080fd5b612736888389016125c9565b9096509450602087013591508082111561274f57600080fd5b5061275c878288016125c9565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561279457600080fd5b843561279f816123bd565b935060208501356127af816123bd565b92506040850135915060608501356001600160401b03808211156127d257600080fd5b818701915087601f8301126127e657600080fd5b8135818111156127f8576127f8612768565b604051601f8201601f19908116603f0116810190838211818310171561282057612820612768565b816040528281528a602084870101111561283957600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806000806060858703121561287357600080fd5b843561287e816123bd565b9350602085013561288e816123bd565b925060408501356001600160401b038111156128a957600080fd5b61275c878288016125c9565b60008083601f8401126128c757600080fd5b5081356001600160401b038111156128de57600080fd5b60208301915083602082850101111561100c57600080fd5b6000806000806040858703121561290c57600080fd5b84356001600160401b038082111561292357600080fd5b61292f888389016128b5565b9096509450602087013591508082111561294857600080fd5b5061275c878288016128b5565b6000806040838503121561296857600080fd5b8235612973816123bd565b915060208301356125be816123bd565b6000806000806000806080878903121561299c57600080fd5b86356129a7816123bd565b955060208701356129b7816123bd565b945060408701356001600160401b03808211156129d357600080fd5b6129df8a838b016125c9565b909650945060608901359150808211156129f857600080fd5b50612a0589828a016128b5565b979a9699509497509295939492505050565b600181811c90821680612a2b57607f821691505b602082108114156124b157634e487b7160e01b600052602260045260246000fd5b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60028110611aa057600080fd5b600060208284031215612a9557600080fd5b813561129781612a76565b6000813561085a816124f8565b6000813561085a81612a76565b60028210612ad857634e487b7160e01b600052602160045260246000fd5b805460ff60701b191660709290921b60ff60701b16919091179055565b81356001600160401b038116808214612b0d57600080fd5b825467ffffffffffffffff1981168217845591506020840135612b2f816124f8565b69ffff0000000000000000604091821b1669ffffffffffffffffffff19841683178117855590850135612b61816124f8565b6bffffffffffffffffffffffff19939093169091171760509190911b61ffff60501b16178155612bb6612b9660608401612aa0565b82805461ffff60601b191660609290921b61ffff60601b16919091179055565b6113ab612bc560808401612aad565b82612aba565b60208082526029908201527f455243373231423a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600061ffff808316818516808303821115612c4757612c47612c14565b01949350505050565b60008219821115612c6357612c63612c14565b500190565b60006001600160401b0380831681851681830481118215151615612c8e57612c8e612c14565b02949350505050565b6000816000190483118215151615612cb157612cb1612c14565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612cdb57612cdb612cb6565b500490565b6000600019821415612cf457612cf4612c14565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60208082526024908201527f455243373231423a20717565727920666f72206e6f6e6578697374656e74207460408201526337b5b2b760e11b606082015260800190565b8054600090600181811c9080831680612d6f57607f831692505b6020808410821415612d9157634e487b7160e01b600052602260045260246000fd5b818015612da55760018114612db657612de3565b60ff19861689528489019650612de3565b60008881526020902060005b86811015612ddb5781548b820152908501908301612dc2565b505084890196505b50505050505092915050565b6000612dfb8286612d55565b8451612e0b8183602089016123ef565b612e1781830186612d55565b979650505050505050565b60208082526033908201527f455243373231423a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b600082821015612e8757612e87612c14565b500390565b600082612e9b57612e9b612cb6565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612ed39083018461241b565b9695505050505050565b600060208284031215612eef57600080fd5b81516112978161238a56fea26469706673582212200efee9603eb3ffd7f551f30085018d05a08a862fb244fbd04a7a97b26b969e1d64736f6c63430008090033
Deployed Bytecode
0x6080604052600436106102305760003560e01c806361d027b31161012e578063b88d4fde116100ab578063dbbc853b1161006f578063dbbc853b14610776578063e985e9c51461078b578063ececaf00146107d4578063f0f44260146107f4578063f2fde38b1461081457600080fd5b8063b88d4fde146106e1578063c042314514610701578063c0ac998314610721578063c87b56dd14610736578063d48ede991461075657600080fd5b806379502c55116100f257806379502c551461061d5780638da5cb5b1461067b57806395d89b4114610699578063a22cb465146106ae578063ae7bf4c8146106ce57600080fd5b806361d027b3146105305780636352211e1461055057806370a0823114610570578063715018a6146105905780637885fdc7146105a557600080fd5b806323cf0a22116101bc5780634a994eef116101805780634a994eef1461047a5780634d44660c1461049a5780634f64b2be146104ba5780634f6ccce7146104f057806357cbcfb31461051057600080fd5b806323cf0a22146103bb5780632a55205a146103ce5780632f745c591461040d57806342842e0e1461042d578063438b63001461044d57600080fd5b8063081812fc11610203578063081812fc14610302578063095ea7b31461033a5780630ca5336b1461035c57806318160ddd1461037c57806323b872dd1461039b57600080fd5b806301ffc9a714610235578063022914a71461026a57806306fdde03146102c057806307779627146102e2575b600080fd5b34801561024157600080fd5b506102556102503660046123a0565b610834565b60405190151581526020015b60405180910390f35b34801561027657600080fd5b506102a56102853660046123d2565b60016020526000908152604090205461ffff808216916201000090041682565b6040805161ffff938416815292909116602083015201610261565b3480156102cc57600080fd5b506102d5610860565b6040516102619190612447565b3480156102ee57600080fd5b506102556102fd3660046123d2565b6108f2565b34801561030e57600080fd5b5061032261031d36600461245a565b61091b565b6040516001600160a01b039091168152602001610261565b34801561034657600080fd5b5061035a610355366004612473565b61099f565b005b34801561036857600080fd5b5061035a61037736600461249f565b610aa7565b34801561038857600080fd5b506002545b604051908152602001610261565b3480156103a757600080fd5b5061035a6103b63660046124b7565b610c36565b61035a6103c9366004612508565b610c67565b3480156103da57600080fd5b506103ee6103e9366004612525565b610fcf565b604080516001600160a01b039093168352602083019190915201610261565b34801561041957600080fd5b5061038d610428366004612473565b611013565b34801561043957600080fd5b5061035a6104483660046124b7565b6110f7565b34801561045957600080fd5b5061046d6104683660046123d2565b611112565b6040516102619190612547565b34801561048657600080fd5b5061035a61049536600461258b565b6111f7565b3480156104a657600080fd5b506102556104b536600461260d565b61122a565b3480156104c657600080fd5b506103226104d536600461245a565b6000602081905290815260409020546001600160a01b031681565b3480156104fc57600080fd5b5061038d61050b36600461245a565b61129e565b34801561051c57600080fd5b5061035a61052b366004612661565b611310565b34801561053c57600080fd5b50600e54610322906001600160a01b031681565b34801561055c57600080fd5b5061032261056b36600461245a565b6113af565b34801561057c57600080fd5b5061038d61058b3660046123d2565b6113f2565b34801561059c57600080fd5b5061035a61147e565b3480156105b157600080fd5b5060095460408051808201909152600a5461ffff8082168352620100009091041660208201526105e8916001600160a01b03169082565b604080516001600160a01b039093168352815161ffff9081166020808601919091529092015190911690820152606001610261565b34801561062957600080fd5b50600b5461066a906001600160401b0381169061ffff600160401b8204811691600160501b8104821691600160601b8204169060ff600160701b9091041685565b6040516102619594939291906126a5565b34801561068757600080fd5b506007546001600160a01b0316610322565b3480156106a557600080fd5b506102d5611492565b3480156106ba57600080fd5b5061035a6106c936600461258b565b6114a1565b61035a6106dc3660046126fd565b61150d565b3480156106ed57600080fd5b5061035a6106fc36600461277e565b61176a565b34801561070d57600080fd5b5061035a61071c36600461285d565b61179c565b34801561072d57600080fd5b506102d56117e1565b34801561074257600080fd5b506102d561075136600461245a565b61186f565b34801561076257600080fd5b5061035a6107713660046128f6565b6118fb565b34801561078257600080fd5b506102d5611943565b34801561079757600080fd5b506102556107a6366004612955565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156107e057600080fd5b5061035a6107ef366004612983565b611950565b34801561080057600080fd5b5061035a61080f3660046123d2565b6119c5565b34801561082057600080fd5b5061035a61082f3660046123d2565b611a73565b600061083f82611aa3565b8061085a575063152a902d60e11b6001600160e01b03198316145b92915050565b60606003805461086f90612a17565b80601f016020809104026020016040519081016040528092919081815260200182805461089b90612a17565b80156108e85780601f106108bd576101008083540402835291602001916108e8565b820191906000526020600020905b8154815290600101906020018083116108cb57829003601f168201915b5050505050905090565b60006108fc611ac8565b506001600160a01b031660009081526008602052604090205460ff1690565b600061092682611b22565b6109835760405162461bcd60e51b815260206004820152602360248201527f4552433732313a20717565727920666f72206e6f6e6578697374656e7420746f60448201526235b2b760e91b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000818152602081905260409020546001600160a01b03908116908316811415610a165760405162461bcd60e51b815260206004820152602260248201527f455243373231423a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b606482015260840161097a565b336001600160a01b0382161480610a325750610a3281336107a6565b610a985760405162461bcd60e51b815260206004820152603160248201527f455243373231423a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527008185c1c1c9bdd995908199bdc88185b1b607a1b606482015260840161097a565b610aa28383611b3f565b505050565b3360009081526008602052604090205460ff16610ad65760405162461bcd60e51b815260040161097a90612a4c565b610ae66080820160608301612508565b61ffff16610afa6060830160408401612508565b61ffff161115610b4c5760405162461bcd60e51b815260206004820181905260248201527f6d6178206f72646572206d757374206265206c7465206d617820737570706c79604482015260640161097a565b610b5c6080820160608301612508565b61ffff16610b6960025490565b1115610bc35760405162461bcd60e51b815260206004820152602360248201527f6d617820737570706c79206d7573742062652067746520746f74616c20737570604482015262706c7960e81b606482015260840161097a565b6001610bd560a0830160808401612a83565b6001811115610be657610be661268f565b1115610c295760405162461bcd60e51b8152602060048201526012602482015271696e76616c69642073616c6520737461746560701b604482015260640161097a565b80600b610aa28282612af5565b610c403382611ba5565b610c5c5760405162461bcd60e51b815260040161097a90612bcb565b610aa2838383611c43565b60008161ffff1611610cab5760405162461bcd60e51b815260206004820152600d60248201526c4d757374206f7264657220312b60981b604482015260640161097a565b6040805160a081018252600b80546001600160401b038116835261ffff600160401b820481166020850152600160501b8204811694840194909452600160601b81049093166060830152600092608083019060ff600160701b909104166001811115610d1957610d1961268f565b6001811115610d2a57610d2a61268f565b9052509050600181608001516001811115610d4757610d4761268f565b14610d895760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b604482015260640161097a565b806040015161ffff168261ffff161115610dd55760405162461bcd60e51b815260206004820152600d60248201526c4f7264657220746f6f2062696760981b604482015260640161097a565b3360009081526001602090815260409182902082518084019093525461ffff8082168452620100009091048116838301819052918401511690610e19908590612c2a565b61ffff161115610e605760405162461bcd60e51b8152602060048201526012602482015271135a5b9d081b1a5b5a5d081c995858da195960721b604482015260640161097a565b6000610e6b60025490565b9050826060015161ffff168461ffff1682610e869190612c50565b1115610ed45760405162461bcd60e51b815260206004820152601960248201527f4d696e742f4f72646572206578636565647320737570706c7900000000000000604482015260640161097a565b8251610ee59061ffff861690612c68565b6001600160401b03163414610f3c5760405162461bcd60e51b815260206004820152601960248201527f45746865722073656e74206973206e6f7420636f727265637400000000000000604482015260640161097a565b604080518082018252835161ffff908701811682526020808601518801821681840190815233600090815260019092529381209251835494518316620100000263ffffffff199095169216919091179290921790555b8461ffff16811015610fb257610faa33828401611d6d565b600101610f92565b50600e54610fc9906001600160a01b031634611e2f565b50505050565b600a546000908190819061ffff620100008204811691610ff0911686612c97565b610ffa9190612ccc565b6009546001600160a01b031693509150505b9250929050565b6001600160a01b03821660009081526001602052604081205461ffff1682106110935760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c65423a206f776e657220696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161097a565b6000805b6122b88110156110ef576000818152602081905260409020546001600160a01b038681169116146110c7576110df565b816110d181612ce0565b92508414156110df576110ef565b6110e881612ce0565b9050611097565b949350505050565b610aa28383836040518060200160405280600081525061176a565b6001600160a01b0381166000908152600160205260408120546060919061ffff1681816001600160401b0381111561114c5761114c612768565b604051908082528060200260200182016040528015611175578160200160208202803683370190505b50905060005b6122b88110156111ee576000818152602081905260409020546001600160a01b03878116911614156111de578082856111b381612ce0565b9650815181106111c5576111c5612cfb565b602002602001018181525050828414156111de576111ee565b6111e781612ce0565b905061117b565b50949350505050565b6111ff611ac8565b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6000805b828110156112915760008085858481811061124b5761124b612cfb565b60209081029290920135835250810191909152604001600020546001600160a01b03868116911614611281576000915050611297565b61128a81612ce0565b905061122e565b50600190505b9392505050565b60006112a982611b22565b61130c5760405162461bcd60e51b815260206004820152602e60248201527f455243373231456e756d657261626c65423a20717565727920666f72206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b606482015260840161097a565b5090565b600e546001600160a01b031633148061133357506007546001600160a01b031633145b6113945760405162461bcd60e51b815260206004820152602c60248201527f4f6e6c7920746865207472656173757279206f72206f776e65722063616e207360448201526b657420726f79616c7469657360a01b606482015260840161097a565b600e546113ab906001600160a01b03168383611f48565b5050565b60006113ba82611b22565b6113d65760405162461bcd60e51b815260040161097a90612d11565b506000908152602081905260409020546001600160a01b031690565b60006001600160a01b03821661145e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231423a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b606482015260840161097a565b506001600160a01b031660009081526001602052604090205461ffff1690565b611486611ac8565b6114906000611fa5565b565b60606004805461086f90612a17565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3360009081526008602052604090205460ff1661153c5760405162461bcd60e51b815260040161097a90612a4c565b8281146115a05760405162461bcd60e51b815260206004820152602c60248201527f4d7573742070726f7669646520657175616c207175616e74697469657320616e60448201526b6420726563697069656e747360a01b606482015260840161097a565b6000805b848110156115e4578585828181106115be576115be612cfb565b90506020020160208101906115d39190612508565b61ffff1691909101906001016115a4565b5060006115f060025490565b600b54909150600160601b900461ffff1661160b8383612c50565b11156116595760405162461bcd60e51b815260206004820152601960248201527f4d696e742f6f72646572206578636565647320737570706c7900000000000000604482015260640161097a565b60005b838110156117615786868281811061167657611676612cfb565b905060200201602081019061168b9190612508565b600160008787858181106116a1576116a1612cfb565b90506020020160208101906116b691906123d2565b6001600160a01b0316815260208101919091526040016000908120805461ffff19811661ffff9182169490940116929092179091555b8787838181106116fe576116fe612cfb565b90506020020160208101906117139190612508565b61ffff168110156117585761175086868481811061173357611733612cfb565b905060200201602081019061174891906123d2565b828501611d6d565b6001016116ec565b5060010161165c565b50505050505050565b6117743383611ba5565b6117905760405162461bcd60e51b815260040161097a90612bcb565b610fc984848484611ff7565b60005b818110156117da576117ca85858585858181106117be576117be612cfb565b90506020020135610c36565b6117d381612ce0565b905061179f565b5050505050565b600c80546117ee90612a17565b80601f016020809104026020016040519081016040528092919081815260200182805461181a90612a17565b80156118675780601f1061183c57610100808354040283529160200191611867565b820191906000526020600020905b81548152906001019060200180831161184a57829003601f168201915b505050505081565b606061187a82611b22565b6118c65760405162461bcd60e51b815260206004820152601b60248201527f717565727920666f72206e6f6e6578697374656e7420746f6b656e0000000000604482015260640161097a565b600c6118d18361202a565b600d6040516020016118e593929190612def565b6040516020818303038152906040529050919050565b3360009081526008602052604090205460ff1661192a5760405162461bcd60e51b815260040161097a90612a4c565b611936600c85856122fa565b506117da600d83836122fa565b600d80546117ee90612a17565b60005b83811015611761576119b5878787878581811061197257611972612cfb565b9050602002013586868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061176a92505050565b6119be81612ce0565b9050611953565b600e546001600160a01b03163314611a355760405162461bcd60e51b815260206004820152602d60248201527f4f6e6c79207468652063757272656e742074726561737572792063616e20736560448201526c3a10309039bab1b1b2b9b9b7b960991b606482015260840161097a565b600a54611a5190829061ffff8082169162010000900416611f48565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b611a7b611ac8565b611a8481612127565b611aa0611a996007546001600160a01b031690565b60016111f7565b50565b60006001600160e01b0319821663780e9d6360e01b148061085a575061085a8261219d565b6007546001600160a01b031633146114905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161097a565b6000908152602081905260409020546001600160a01b0316151590565b600081815260056020908152604080832080546001600160a01b0319166001600160a01b0387811691821790925592849052818420549151859492909116917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a45050565b6000611bb082611b22565b611bcc5760405162461bcd60e51b815260040161097a90612d11565b6000828152602081905260409020546001600160a01b03908116908416811480611c0f5750836001600160a01b0316611c048461091b565b6001600160a01b0316145b806110ef57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff166110ef565b6000818152602081905260409020546001600160a01b03848116911614611cbf5760405162461bcd60e51b815260206004820152602a60248201527f455243373231423a207472616e73666572206f6620746f6b656e20746861742060448201526934b9903737ba1037bbb760b11b606482015260840161097a565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b038781168086526001808652848720805461ffff1980821661ffff92831660001901831617909255938a1680895286892080549283169286169093019094161790558686529385905282852080549092168117909155905184939192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611d7681611b22565b15611dc35760405162461bcd60e51b815260206004820181905260248201527f455243373231423a206d696e7420666f72206578697374696e6720746f6b656e604482015260640161097a565b600260008154611dd290612ce0565b9091555060008181526020819052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80471015611e7f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161097a565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611ecc576040519150601f19603f3d011682016040523d82523d6000602084013e611ed1565b606091505b5050905080610aa25760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161097a565b600980546001600160a01b039094166001600160a01b0319909416939093179092556040805180820190915261ffff918216808252929091166020909101819052600a80546201000090920263ffffffff19909216909217179055565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612002848484611c43565b61200e848484846121ed565b610fc95760405162461bcd60e51b815260040161097a90612e22565b60608161204e5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612078578061206281612ce0565b91506120719050600a83612ccc565b9150612052565b6000816001600160401b0381111561209257612092612768565b6040519080825280601f01601f1916602001820160405280156120bc576020820181803683370190505b5090505b84156110ef576120d1600183612e75565b91506120de600a86612e8c565b6120e9906030612c50565b60f81b8183815181106120fe576120fe612cfb565b60200101906001600160f81b031916908160001a905350612120600a86612ccc565b94506120c0565b61212f611ac8565b6001600160a01b0381166121945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161097a565b611aa081611fa5565b60006001600160e01b031982166380ac58cd60e01b14806121ce57506001600160e01b03198216635b5e139f60e01b145b8061085a57506301ffc9a760e01b6001600160e01b031983161461085a565b60006001600160a01b0384163b156122ef57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612231903390899088908890600401612ea0565b602060405180830381600087803b15801561224b57600080fd5b505af192505050801561227b575060408051601f3d908101601f1916820190925261227891810190612edd565b60015b6122d5573d8080156122a9576040519150601f19603f3d011682016040523d82523d6000602084013e6122ae565b606091505b5080516122cd5760405162461bcd60e51b815260040161097a90612e22565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506110ef565b506001949350505050565b82805461230690612a17565b90600052602060002090601f016020900481019282612328576000855561236e565b82601f106123415782800160ff1982351617855561236e565b8280016001018555821561236e579182015b8281111561236e578235825591602001919060010190612353565b5061130c9291505b8082111561130c5760008155600101612376565b6001600160e01b031981168114611aa057600080fd5b6000602082840312156123b257600080fd5b81356112978161238a565b6001600160a01b0381168114611aa057600080fd5b6000602082840312156123e457600080fd5b8135611297816123bd565b60005b8381101561240a5781810151838201526020016123f2565b83811115610fc95750506000910152565b600081518084526124338160208601602086016123ef565b601f01601f19169290920160200192915050565b602081526000611297602083018461241b565b60006020828403121561246c57600080fd5b5035919050565b6000806040838503121561248657600080fd5b8235612491816123bd565b946020939093013593505050565b600060a082840312156124b157600080fd5b50919050565b6000806000606084860312156124cc57600080fd5b83356124d7816123bd565b925060208401356124e7816123bd565b929592945050506040919091013590565b61ffff81168114611aa057600080fd5b60006020828403121561251a57600080fd5b8135611297816124f8565b6000806040838503121561253857600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b8181101561257f57835183529284019291840191600101612563565b50909695505050505050565b6000806040838503121561259e57600080fd5b82356125a9816123bd565b9150602083013580151581146125be57600080fd5b809150509250929050565b60008083601f8401126125db57600080fd5b5081356001600160401b038111156125f257600080fd5b6020830191508360208260051b850101111561100c57600080fd5b60008060006040848603121561262257600080fd5b833561262d816123bd565b925060208401356001600160401b0381111561264857600080fd5b612654868287016125c9565b9497909650939450505050565b6000806040838503121561267457600080fd5b823561267f816124f8565b915060208301356125be816124f8565b634e487b7160e01b600052602160045260246000fd5b6001600160401b038616815261ffff858116602083015284811660408301528316606082015260a08101600283106126ed57634e487b7160e01b600052602160045260246000fd5b8260808301529695505050505050565b6000806000806040858703121561271357600080fd5b84356001600160401b038082111561272a57600080fd5b612736888389016125c9565b9096509450602087013591508082111561274f57600080fd5b5061275c878288016125c9565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561279457600080fd5b843561279f816123bd565b935060208501356127af816123bd565b92506040850135915060608501356001600160401b03808211156127d257600080fd5b818701915087601f8301126127e657600080fd5b8135818111156127f8576127f8612768565b604051601f8201601f19908116603f0116810190838211818310171561282057612820612768565b816040528281528a602084870101111561283957600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806000806060858703121561287357600080fd5b843561287e816123bd565b9350602085013561288e816123bd565b925060408501356001600160401b038111156128a957600080fd5b61275c878288016125c9565b60008083601f8401126128c757600080fd5b5081356001600160401b038111156128de57600080fd5b60208301915083602082850101111561100c57600080fd5b6000806000806040858703121561290c57600080fd5b84356001600160401b038082111561292357600080fd5b61292f888389016128b5565b9096509450602087013591508082111561294857600080fd5b5061275c878288016128b5565b6000806040838503121561296857600080fd5b8235612973816123bd565b915060208301356125be816123bd565b6000806000806000806080878903121561299c57600080fd5b86356129a7816123bd565b955060208701356129b7816123bd565b945060408701356001600160401b03808211156129d357600080fd5b6129df8a838b016125c9565b909650945060608901359150808211156129f857600080fd5b50612a0589828a016128b5565b979a9699509497509295939492505050565b600181811c90821680612a2b57607f821691505b602082108114156124b157634e487b7160e01b600052602260045260246000fd5b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60028110611aa057600080fd5b600060208284031215612a9557600080fd5b813561129781612a76565b6000813561085a816124f8565b6000813561085a81612a76565b60028210612ad857634e487b7160e01b600052602160045260246000fd5b805460ff60701b191660709290921b60ff60701b16919091179055565b81356001600160401b038116808214612b0d57600080fd5b825467ffffffffffffffff1981168217845591506020840135612b2f816124f8565b69ffff0000000000000000604091821b1669ffffffffffffffffffff19841683178117855590850135612b61816124f8565b6bffffffffffffffffffffffff19939093169091171760509190911b61ffff60501b16178155612bb6612b9660608401612aa0565b82805461ffff60601b191660609290921b61ffff60601b16919091179055565b6113ab612bc560808401612aad565b82612aba565b60208082526029908201527f455243373231423a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600061ffff808316818516808303821115612c4757612c47612c14565b01949350505050565b60008219821115612c6357612c63612c14565b500190565b60006001600160401b0380831681851681830481118215151615612c8e57612c8e612c14565b02949350505050565b6000816000190483118215151615612cb157612cb1612c14565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612cdb57612cdb612cb6565b500490565b6000600019821415612cf457612cf4612c14565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60208082526024908201527f455243373231423a20717565727920666f72206e6f6e6578697374656e74207460408201526337b5b2b760e11b606082015260800190565b8054600090600181811c9080831680612d6f57607f831692505b6020808410821415612d9157634e487b7160e01b600052602260045260246000fd5b818015612da55760018114612db657612de3565b60ff19861689528489019650612de3565b60008881526020902060005b86811015612ddb5781548b820152908501908301612dc2565b505084890196505b50505050505092915050565b6000612dfb8286612d55565b8451612e0b8183602089016123ef565b612e1781830186612d55565b979650505050505050565b60208082526033908201527f455243373231423a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b600082821015612e8757612e87612c14565b500390565b600082612e9b57612e9b612cb6565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612ed39083018461241b565b9695505050505050565b600060208284031215612eef57600080fd5b81516112978161238a56fea26469706673582212200efee9603eb3ffd7f551f30085018d05a08a862fb244fbd04a7a97b26b969e1d64736f6c63430008090033
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.