ERC-721
Overview
Max Total Supply
2,000 EMG
Holders
501
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
4 EMGLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MetaGods
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 /* 8888888888 888 d8b 888 888 Y8P 888 888 8888888 888 888 888 .d8888b 888 888 888 88888b.d88b. 888 888 888 888 88K 888 888 888 888 "888 "88b 888 888 888 888 "Y8888b. 888 888 888 888 888 888 888 888 Y88b 888 X88 888 Y88b 888 888 888 888 8888888888 888 "Y88888 88888P' 888 "Y88888 888 888 888 888 Y8b d88P "Y88P" 888b d888 888 .d8888b. 888 8888b d8888 888 d88P Y88b 888 88888b.d88888 888 888 888 888 888Y88888P888 .d88b. 888888 8888b. 888 .d88b. .d88888 .d8888b 888 Y888P 888 d8P Y8b 888 "88b 888 88888 d88""88b d88" 888 88K 888 Y8P 888 88888888 888 .d888888 888 888 888 888 888 888 "Y8888b. 888 " 888 Y8b. Y88b. 888 888 Y88b d88P Y88..88P Y88b 888 X88 888 888 "Y8888 "Y888 "Y888888 "Y8888P88 "Y88P" "Y88888 88888P' */ 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; } } pragma solidity ^0.8.0; /** * @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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } 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); } pragma solidity ^0.8.0; /** * @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`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; } pragma solidity ^0.8.0; /** * @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 tokenId); /** * @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); } 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 `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } pragma solidity ^0.8.0; /** * @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); } pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } pragma solidity ^0.8.0; /** * @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; } } pragma solidity ^0.8.10; abstract contract ERC721P is Context, ERC165, IERC721, IERC721Metadata { using Address for address; string private _name; string private _symbol; address[] internal _owners; mapping(uint256 => address) private _tokenApprovals; mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); uint count = 0; uint length = _owners.length; for( uint i = 0; i < length; ++i ){ if( owner == _owners[i] ){ ++count; } } delete length; return count; } function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } function name() public view virtual override returns (string memory) { return _name; } function symbol() public view virtual override returns (string memory) { return _symbol; } function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721P.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } function _exists(uint256 tokenId) internal view virtual returns (bool) { return tokenId < _owners.length && _owners[tokenId] != address(0); } function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721P.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _owners.push(to); emit Transfer(address(0), to, tokenId); } function _burn(uint256 tokenId) internal virtual { address owner = ERC721P.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _owners[tokenId] = address(0); emit Transfer(owner, address(0), tokenId); } function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721P.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _owners[tokenId] = to; emit Transfer(from, to, tokenId); } function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721P.ownerOf(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("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} } pragma solidity ^0.8.10; abstract contract ERC721Enum is ERC721P, IERC721Enumerable { function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721P) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256 tokenId) { require(index < ERC721P.balanceOf(owner), "ERC721Enum: owner ioob"); uint count; for( uint i; i < _owners.length; ++i ){ if( owner == _owners[i] ){ if( count == index ) return i; else ++count; } } require(false, "ERC721Enum: owner ioob"); } function tokensOfOwner(address owner) public view returns (uint256[] memory) { require(0 < ERC721P.balanceOf(owner), "ERC721Enum: owner ioob"); uint256 tokenCount = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenCount); for (uint256 i = 0; i < tokenCount; i++) { tokenIds[i] = tokenOfOwnerByIndex(owner, i); } return tokenIds; } function totalSupply() public view virtual override returns (uint256) { return _owners.length; } function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enum.totalSupply(), "ERC721Enum: global ioob"); return index; } } pragma solidity ^0.8.0; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. * * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you * to run tests before sending real value to this contract. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: no shares"); uint256 totalReceived = address(this).balance + totalReleased(); uint256 payment = _pendingPayment(account, totalReceived, released(account)); require(payment != 0, "PaymentSplitter: not due payment"); _released[account] += payment; _totalReleased += payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev internal logic for computing the pending payment of an `account` given the token historical balances and * already released amounts. */ function _pendingPayment( address account, uint256 totalReceived, uint256 alreadyReleased ) private view returns (uint256) { return (totalReceived * _shares[account]) / _totalShares - alreadyReleased; } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } } pragma solidity ^0.8.10; interface IWatcher { function watchTransfer(address _from, address _to, uint256 _tokenId) external; } interface IMintPass { function balanceOf(address account, uint256 id) external view returns (uint256); function isPaused() external view returns (bool); } interface IMintPassStaking { function numberOfStakedPassesByWallet(address account) external view returns (uint256); } contract MetaGods is ERC721Enum, Ownable, ReentrancyGuard, PaymentSplitter { using Strings for uint256; IMintPass public MintPass; IMintPassStaking public MintPassStaking; uint256 constant public MAX_SUPPLY = 5000; bool public isSaleActive = false; bool public isPresaleActive = false; bool public isPassClaimActive = false; uint256 public cost = 0.07 ether; uint256 public perTxnLimit = 7; uint256 public maxPresaleMint = 2; uint256 public maxPassHolderPaidMints = 4; bool public usePhase1List = true; mapping(address => uint256) public phase1WhitelistMints; mapping(address => uint256) public phase2WhitelistMints; mapping(address => uint256) public mintedWithPassByAddress; bytes32 whitelistRoot; string private baseURI; constructor( string memory name_, string memory symbol_, address[] memory payees_, uint256[] memory shares_, address mintPassAddress_, address mintPassStakingAddress_, string memory initBaseURI_ ) ERC721P(name_, symbol_) PaymentSplitter(payees_, shares_) { setMintPassContract(mintPassAddress_); setMintPassStakingContract(mintPassStakingAddress_); setBaseURI(initBaseURI_); } function mint(uint256 mintAmount_) external payable { require(isSaleActive, "Not active"); require(mintAmount_ <= perTxnLimit, "Exceeds limit" ); uint256 totalSupply = totalSupply(); require(totalSupply + mintAmount_ <= MAX_SUPPLY, "Exceeds supply" ); require(msg.value >= cost * mintAmount_); for (uint256 i = 0; i < mintAmount_; i++) { _safeMint(msg.sender, totalSupply + i); } } function mintPresale(uint256 mintAmount_, bytes32[] calldata proof_) external payable { require(isPresaleActive, "Not active"); require(_verify(_leaf(msg.sender), whitelistRoot, proof_), "Not whitelisted"); mapping(address => uint256) storage whitelistMints = (usePhase1List ? phase1WhitelistMints : phase2WhitelistMints); require(maxPresaleMint > whitelistMints[msg.sender], "Too many mints"); uint256 availableMints = maxPresaleMint - whitelistMints[msg.sender]; require(mintAmount_ <= availableMints, "Too many mints"); uint256 totalSupply = totalSupply(); require(totalSupply + mintAmount_ <= MAX_SUPPLY, "Exceeds supply"); require(msg.value >= cost * mintAmount_); whitelistMints[msg.sender] += mintAmount_; for (uint256 i = 0; i < mintAmount_; i++) { _safeMint(msg.sender, totalSupply + i); } } function mintWithPass(uint256 mintAmount_) external payable { require(MintPass.isPaused(), "Not claimable"); require(isPassClaimActive || owner() == _msgSender(), "Not active"); uint256 totalSupply = totalSupply(); require(totalSupply + mintAmount_ <= MAX_SUPPLY, "Exceeds supply"); uint256 passesOwned = MintPass.balanceOf(msg.sender, 0) + MintPassStaking.numberOfStakedPassesByWallet(msg.sender); require(passesOwned > 0, "No MintPass"); uint256 availableFreeMints = 0; if(passesOwned > mintedWithPassByAddress[msg.sender]) { availableFreeMints = passesOwned - mintedWithPassByAddress[msg.sender]; } uint256 availablePaidMints = maxPassHolderPaidMints - (mintedWithPassByAddress[msg.sender] + availableFreeMints - passesOwned); require(mintAmount_ <= availableFreeMints + availablePaidMints, "Too many"); require(mintAmount_ <= availableFreeMints || (msg.value >= cost * (mintAmount_ - availableFreeMints)), "Not enough"); mintedWithPassByAddress[msg.sender] += mintAmount_; for (uint256 i = 0; i < mintAmount_; i++) { _safeMint(msg.sender, totalSupply + i); } } function reserve(address to_, uint256 reserveAmount_) external onlyOwner { uint256 supply = totalSupply(); require(supply + reserveAmount_ <= MAX_SUPPLY, "Exceeds supply"); for (uint256 i = 0; i < reserveAmount_; i++) { _safeMint(to_, supply + i); } } function tokenURI(uint256 tokenId_) external view virtual override returns (string memory) { require(_exists(tokenId_), "Not found"); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId_.toString(), ".json")) : ""; } function isOwnerOfBatch(uint256[] calldata tokenIds_, address address_) external view returns (bool) { bool ownership = true; for (uint256 i = 0; i < tokenIds_.length; ++i) { ownership = ownership && (ownerOf(tokenIds_[i]) == address_); } return ownership; } function ownerOfBatch(uint256[] calldata tokenIds_) external view returns (address[] memory) { address[] memory addresses = new address[](tokenIds_.length); for(uint64 i = 0; i < tokenIds_.length; ++i) { addresses[i] = ownerOf(tokenIds_[i]); } return addresses; } function flipSaleState() external onlyOwner { isSaleActive = !isSaleActive; } function flipPresaleState() external onlyOwner { isPresaleActive = !isPresaleActive; } function flipPhaseList() external onlyOwner { usePhase1List = !usePhase1List; } function flipPassClaimState() external onlyOwner { isPassClaimActive = !isPassClaimActive; } function setCost(uint256 newCost_) external onlyOwner { cost = newCost_; } function setMaxPresaleMint(uint256 newMaxPresaleMint_) external onlyOwner { maxPresaleMint = newMaxPresaleMint_; } function setMaxPassHolderPaidMints(uint256 maxPassHolderPaidMints_) external onlyOwner { maxPassHolderPaidMints = maxPassHolderPaidMints_; } function setPerTxnLimit(uint256 newPerTxnLimit_) external onlyOwner { perTxnLimit = newPerTxnLimit_; } function setWhitelistRoot(bytes32 newRoot_) external onlyOwner { whitelistRoot = newRoot_; } function setBaseURI(string memory newBaseURI_) public onlyOwner { baseURI = newBaseURI_; } function setMintPassContract(address mintPassContract_) public onlyOwner { MintPass = IMintPass(mintPassContract_); } function setMintPassStakingContract(address mintPassStakingContract_) public onlyOwner { MintPassStaking = IMintPassStaking(mintPassStakingContract_); } function _leaf(address account) internal pure returns (bytes32) { return keccak256(abi.encodePacked(account)); } function _verify(bytes32 leafNode, bytes32 root, bytes32[] memory proof) internal pure returns (bool) { return MerkleProof.verify(proof, root, leafNode); } function _baseURI() internal view virtual returns (string memory) { return baseURI; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address[]","name":"payees_","type":"address[]"},{"internalType":"uint256[]","name":"shares_","type":"uint256[]"},{"internalType":"address","name":"mintPassAddress_","type":"address"},{"internalType":"address","name":"mintPassStakingAddress_","type":"address"},{"internalType":"string","name":"initBaseURI_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","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":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MintPass","outputs":[{"internalType":"contract IMintPass","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MintPassStaking","outputs":[{"internalType":"contract IMintPassStaking","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipPassClaimState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPhaseList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipPresaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"},{"internalType":"address","name":"address_","type":"address"}],"name":"isOwnerOfBatch","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPassClaimActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPassHolderPaidMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPresaleMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintAmount_","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintAmount_","type":"uint256"},{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintAmount_","type":"uint256"}],"name":"mintWithPass","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedWithPassByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","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":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"}],"name":"ownerOfBatch","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"perTxnLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"phase1WhitelistMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"phase2WhitelistMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"reserveAmount_","type":"uint256"}],"name":"reserve","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":[{"internalType":"string","name":"newBaseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newCost_","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxPassHolderPaidMints_","type":"uint256"}],"name":"setMaxPassHolderPaidMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxPresaleMint_","type":"uint256"}],"name":"setMaxPresaleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"mintPassContract_","type":"address"}],"name":"setMintPassContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"mintPassStakingContract_","type":"address"}],"name":"setMintPassStakingContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPerTxnLimit_","type":"uint256"}],"name":"setPerTxnLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newRoot_","type":"bytes32"}],"name":"setWhitelistRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usePhase1List","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600d805462ffffff60a01b1916905566f8b0a10e470000600e556007600f55600260105560046011556012805460ff191660011790553480156200004757600080fd5b5060405162003cf738038062003cf78339810160408190526200006a9162000832565b848488888160009080519060200190620000869291906200058d565b5080516200009c9060019060208401906200058d565b505050620000b9620000b36200020b60201b60201c565b6200020f565b60016006558051825114620001155760405162461bcd60e51b815260206004820152601960248201527f5061796d656e7453706c69747465723a206d69736d617463680000000000000060448201526064015b60405180910390fd5b6000825111620001685760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200010c565b60005b8251811015620001d457620001bf8382815181106200018e576200018e62000938565b6020026020010151838381518110620001ab57620001ab62000938565b60200260200101516200026160201b60201c565b80620001cb8162000964565b9150506200016b565b505050620001e8836200044f60201b60201c565b620001f382620004bc565b620001fe8162000529565b50505050505050620009da565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620002ce5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200010c565b60008111620003205760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200010c565b6001600160a01b038216600090815260096020526040902054156200039c5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200010c565b600b8054600181019091557f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90180546001600160a01b0319166001600160a01b03841690811790915560009081526009602052604090208190556007546200040690829062000982565b600755604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b6005546001600160a01b031633146200049a5760405162461bcd60e51b8152602060048201819052602482015260008051602062003cd783398151915260448201526064016200010c565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314620005075760405162461bcd60e51b8152602060048201819052602482015260008051602062003cd783398151915260448201526064016200010c565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b03163314620005745760405162461bcd60e51b8152602060048201819052602482015260008051602062003cd783398151915260448201526064016200010c565b8051620005899060179060208401906200058d565b5050565b8280546200059b906200099d565b90600052602060002090601f016020900481019282620005bf57600085556200060a565b82601f10620005da57805160ff19168380011785556200060a565b828001600101855582156200060a579182015b828111156200060a578251825591602001919060010190620005ed565b50620006189291506200061c565b5090565b5b808211156200061857600081556001016200061d565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171562000674576200067462000633565b604052919050565b600082601f8301126200068e57600080fd5b81516001600160401b03811115620006aa57620006aa62000633565b6020620006c0601f8301601f1916820162000649565b8281528582848701011115620006d557600080fd5b60005b83811015620006f5578581018301518282018401528201620006d8565b83811115620007075760008385840101525b5095945050505050565b60006001600160401b038211156200072d576200072d62000633565b5060051b60200190565b80516001600160a01b03811681146200074f57600080fd5b919050565b600082601f8301126200076657600080fd5b815160206200077f620007798362000711565b62000649565b82815260059290921b840181019181810190868411156200079f57600080fd5b8286015b84811015620007c557620007b78162000737565b8352918301918301620007a3565b509695505050505050565b600082601f830112620007e257600080fd5b81516020620007f5620007798362000711565b82815260059290921b840181019181810190868411156200081557600080fd5b8286015b84811015620007c5578051835291830191830162000819565b600080600080600080600060e0888a0312156200084e57600080fd5b87516001600160401b03808211156200086657600080fd5b620008748b838c016200067c565b985060208a01519150808211156200088b57600080fd5b620008998b838c016200067c565b975060408a0151915080821115620008b057600080fd5b620008be8b838c0162000754565b965060608a0151915080821115620008d557600080fd5b620008e38b838c01620007d0565b9550620008f360808b0162000737565b94506200090360a08b0162000737565b935060c08a01519150808211156200091a57600080fd5b50620009298a828b016200067c565b91505092959891949750929550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156200097b576200097b6200094e565b5060010190565b600082198211156200099857620009986200094e565b500190565b600181811c90821680620009b257607f821691505b60208210811415620009d457634e487b7160e01b600052602260045260246000fd5b50919050565b6132ed80620009ea6000396000f3fe6080604052600436106103855760003560e01c806370a08231116101d1578063bd19b06e11610102578063e33b7de3116100a0578063f2fde38b1161006f578063f2fde38b14610aa5578063f5011db314610ac5578063f5aa406d14610af2578063f81227d414610b1257600080fd5b8063e33b7de314610a07578063e985e9c514610a1c578063e9b253d314610a65578063ea710c1014610a8557600080fd5b8063c87b56dd116100dc578063c87b56dd14610971578063cc47a40b14610991578063ce7c2ac2146109b1578063dd461754146109e757600080fd5b8063bd19b06e1461091c578063bda8011714610931578063c041de1f1461095e57600080fd5b80639852595c1161016f578063a22cb46511610149578063a22cb465146108a6578063ac031c5c146108c6578063b4576278146108e6578063b88d4fde146108fc57600080fd5b80639852595c1461083c578063a0712d6814610872578063a18bf33f1461088557600080fd5b80638462151c116101ab5780638462151c146107bc5780638b83209b146107e95780638da5cb5b1461080957806395d89b411461082757600080fd5b806370a0823114610767578063715018a614610787578063735d2a271461079c57600080fd5b8063308c7ca2116102b65780634f6ccce71161025457806360d938dc1161022357806360d938dc146106d95780636352211e146106fa5780636d032c591461071a5780636f9bdf651461074757600080fd5b80634f6ccce71461066257806355f804b314610682578063564566a8146106a25780635daa3053146106c357600080fd5b806334918dfd1161029057806334918dfd146105f85780633a98ef391461060d57806342842e0e1461062257806344a0d68a1461064257600080fd5b8063308c7ca21461059557806332cb6b0c146105c25780633425f90c146105d857600080fd5b806313faede6116103235780631c5fd0a0116102fd5780631c5fd0a01461051f57806323b872dd146105355780632a6bf77d146105555780632f745c591461057557600080fd5b806313faede6146104c657806318160ddd146104ea57806319165587146104ff57600080fd5b8063081812fc1161035f578063081812fc14610444578063095ea7b31461047c5780630c0a6b5e1461049e57806312931f2f146104b157600080fd5b806301ffc9a7146103d3578063031ba5e91461040857806306fdde031461042257600080fd5b366103ce577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156103df57600080fd5b506103f36103ee366004612aa6565b610b27565b60405190151581526020015b60405180910390f35b34801561041457600080fd5b506012546103f39060ff1681565b34801561042e57600080fd5b50610437610b52565b6040516103ff9190612b1b565b34801561045057600080fd5b5061046461045f366004612b2e565b610be4565b6040516001600160a01b0390911681526020016103ff565b34801561048857600080fd5b5061049c610497366004612b5c565b610c71565b005b61049c6104ac366004612bd3565b610d87565b3480156104bd57600080fd5b5061049c610fe0565b3480156104d257600080fd5b506104dc600e5481565b6040519081526020016103ff565b3480156104f657600080fd5b506002546104dc565b34801561050b57600080fd5b5061049c61051a366004612c1e565b61102b565b34801561052b57600080fd5b506104dc60115481565b34801561054157600080fd5b5061049c610550366004612c3b565b6111b9565b34801561056157600080fd5b5061049c610570366004612c1e565b6111ea565b34801561058157600080fd5b506104dc610590366004612b5c565b611236565b3480156105a157600080fd5b506104dc6105b0366004612c1e565b60136020526000908152604090205481565b3480156105ce57600080fd5b506104dc61138881565b3480156105e457600080fd5b5061049c6105f3366004612b2e565b6112e5565b34801561060457600080fd5b5061049c611314565b34801561061957600080fd5b506007546104dc565b34801561062e57600080fd5b5061049c61063d366004612c3b565b61135f565b34801561064e57600080fd5b5061049c61065d366004612b2e565b61137a565b34801561066e57600080fd5b506104dc61067d366004612b2e565b6113a9565b34801561068e57600080fd5b5061049c61069d366004612d07565b611406565b3480156106ae57600080fd5b50600d546103f390600160a01b900460ff1681565b3480156106cf57600080fd5b506104dc600f5481565b3480156106e557600080fd5b50600d546103f390600160a81b900460ff1681565b34801561070657600080fd5b50610464610715366004612b2e565b611447565b34801561072657600080fd5b506104dc610735366004612c1e565b60156020526000908152604090205481565b34801561075357600080fd5b506103f3610762366004612d4f565b6114d3565b34801561077357600080fd5b506104dc610782366004612c1e565b61153a565b34801561079357600080fd5b5061049c61160c565b3480156107a857600080fd5b5061049c6107b7366004612c1e565b611642565b3480156107c857600080fd5b506107dc6107d7366004612c1e565b61168e565b6040516103ff9190612da5565b3480156107f557600080fd5b50610464610804366004612b2e565b611757565b34801561081557600080fd5b506005546001600160a01b0316610464565b34801561083357600080fd5b50610437611787565b34801561084857600080fd5b506104dc610857366004612c1e565b6001600160a01b03166000908152600a602052604090205490565b61049c610880366004612b2e565b611796565b34801561089157600080fd5b50600d546103f390600160b01b900460ff1681565b3480156108b257600080fd5b5061049c6108c1366004612df7565b61187e565b3480156108d257600080fd5b50600c54610464906001600160a01b031681565b3480156108f257600080fd5b506104dc60105481565b34801561090857600080fd5b5061049c610917366004612e30565b611943565b34801561092857600080fd5b5061049c61197b565b34801561093d57600080fd5b5061095161094c366004612eaf565b6119b9565b6040516103ff9190612ef0565b61049c61096c366004612b2e565b611a76565b34801561097d57600080fd5b5061043761098c366004612b2e565b611e2b565b34801561099d57600080fd5b5061049c6109ac366004612b5c565b611eca565b3480156109bd57600080fd5b506104dc6109cc366004612c1e565b6001600160a01b031660009081526009602052604090205490565b3480156109f357600080fd5b5061049c610a02366004612b2e565b611f57565b348015610a1357600080fd5b506008546104dc565b348015610a2857600080fd5b506103f3610a37366004612f31565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b348015610a7157600080fd5b50600d54610464906001600160a01b031681565b348015610a9157600080fd5b5061049c610aa0366004612b2e565b611f86565b348015610ab157600080fd5b5061049c610ac0366004612c1e565b611fb5565b348015610ad157600080fd5b506104dc610ae0366004612c1e565b60146020526000908152604090205481565b348015610afe57600080fd5b5061049c610b0d366004612b2e565b612050565b348015610b1e57600080fd5b5061049c61207f565b60006001600160e01b0319821663780e9d6360e01b1480610b4c5750610b4c826120ca565b92915050565b606060008054610b6190612f5f565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8d90612f5f565b8015610bda5780601f10610baf57610100808354040283529160200191610bda565b820191906000526020600020905b815481529060010190602001808311610bbd57829003601f168201915b5050505050905090565b6000610bef8261211a565b610c555760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610c7c82611447565b9050806001600160a01b0316836001600160a01b03161415610cea5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c4c565b336001600160a01b0382161480610d065750610d068133610a37565b610d785760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c4c565b610d828383612164565b505050565b600d54600160a81b900460ff16610db05760405162461bcd60e51b8152600401610c4c90612f9a565b604080513360601b6bffffffffffffffffffffffff19166020808301919091528251601481840301815260349092019092528051910120610e27906016548484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506121d292505050565b610e655760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b6044820152606401610c4c565b60125460009060ff16610e79576014610e7c565b60135b3360009081526020829052604090205460105491925010610ed05760405162461bcd60e51b815260206004820152600e60248201526d546f6f206d616e79206d696e747360901b6044820152606401610c4c565b33600090815260208290526040812054601054610eed9190612fd4565b905080851115610f305760405162461bcd60e51b815260206004820152600e60248201526d546f6f206d616e79206d696e747360901b6044820152606401610c4c565b6000610f3b60025490565b9050611388610f4a8783612feb565b1115610f685760405162461bcd60e51b8152600401610c4c90613003565b85600e54610f76919061302b565b341015610f8257600080fd5b3360009081526020849052604081208054889290610fa1908490612feb565b90915550600090505b86811015610fd757610fc533610fc08385612feb565b6121e7565b80610fcf8161304a565b915050610faa565b50505050505050565b6005546001600160a01b0316331461100a5760405162461bcd60e51b8152600401610c4c90613065565b600d805460ff60b01b198116600160b01b9182900460ff1615909102179055565b6001600160a01b0381166000908152600960205260409020546110905760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207368617265730000000000006044820152606401610c4c565b600061109b60085490565b6110a59047612feb565b905060006110d283836110cd866001600160a01b03166000908152600a602052604090205490565b612201565b9050806111215760405162461bcd60e51b815260206004820181905260248201527f5061796d656e7453706c69747465723a206e6f7420647565207061796d656e746044820152606401610c4c565b6001600160a01b0383166000908152600a602052604081208054839290611149908490612feb565b9250508190555080600860008282546111629190612feb565b909155506111729050838261223f565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6111c33382612358565b6111df5760405162461bcd60e51b8152600401610c4c9061309a565b610d8283838361243e565b6005546001600160a01b031633146112145760405162461bcd60e51b8152600401610c4c90613065565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b60006112418361153a565b821061125f5760405162461bcd60e51b8152600401610c4c906130eb565b6000805b6002548110156112cc57600281815481106112805761128061311b565b6000918252602090912001546001600160a01b03868116911614156112bc57838214156112b0579150610b4c9050565b6112b98261304a565b91505b6112c58161304a565b9050611263565b5060405162461bcd60e51b8152600401610c4c906130eb565b6005546001600160a01b0316331461130f5760405162461bcd60e51b8152600401610c4c90613065565b601055565b6005546001600160a01b0316331461133e5760405162461bcd60e51b8152600401610c4c90613065565b600d805460ff60a01b198116600160a01b9182900460ff1615909102179055565b610d8283838360405180602001604052806000815250611943565b6005546001600160a01b031633146113a45760405162461bcd60e51b8152600401610c4c90613065565b600e55565b60006113b460025490565b82106114025760405162461bcd60e51b815260206004820152601760248201527f455243373231456e756d3a20676c6f62616c20696f6f620000000000000000006044820152606401610c4c565b5090565b6005546001600160a01b031633146114305760405162461bcd60e51b8152600401610c4c90613065565b8051611443906017906020840190612a00565b5050565b6000806002838154811061145d5761145d61311b565b6000918252602090912001546001600160a01b0316905080610b4c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c4c565b60006001815b848110156115315781801561151f5750836001600160a01b03166115148787848181106115085761150861311b565b90506020020135611447565b6001600160a01b0316145b915061152a8161304a565b90506114d9565b50949350505050565b60006001600160a01b0382166115a55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c4c565b600254600090815b8181101561160357600281815481106115c8576115c861311b565b6000918252602090912001546001600160a01b03868116911614156115f3576115f08361304a565b92505b6115fc8161304a565b90506115ad565b50909392505050565b6005546001600160a01b031633146116365760405162461bcd60e51b8152600401610c4c90613065565b6116406000612594565b565b6005546001600160a01b0316331461166c5760405162461bcd60e51b8152600401610c4c90613065565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b60606116998261153a565b6000106116b85760405162461bcd60e51b8152600401610c4c906130eb565b60006116c38361153a565b90506000816001600160401b038111156116df576116df612c7c565b604051908082528060200260200182016040528015611708578160200160208202803683370190505b50905060005b8281101561174f576117208582611236565b8282815181106117325761173261311b565b6020908102919091010152806117478161304a565b91505061170e565b509392505050565b6000600b828154811061176c5761176c61311b565b6000918252602090912001546001600160a01b031692915050565b606060018054610b6190612f5f565b600d54600160a01b900460ff166117bf5760405162461bcd60e51b8152600401610c4c90612f9a565b600f548111156118015760405162461bcd60e51b815260206004820152600d60248201526c115e18d959591cc81b1a5b5a5d609a1b6044820152606401610c4c565b600061180c60025490565b905061138861181b8383612feb565b11156118395760405162461bcd60e51b8152600401610c4c90613003565b81600e54611847919061302b565b34101561185357600080fd5b60005b82811015610d825761186c33610fc08385612feb565b806118768161304a565b915050611856565b6001600160a01b0382163314156118d75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c4c565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61194d3383612358565b6119695760405162461bcd60e51b8152600401610c4c9061309a565b611975848484846125e6565b50505050565b6005546001600160a01b031633146119a55760405162461bcd60e51b8152600401610c4c90613065565b6012805460ff19811660ff90911615179055565b60606000826001600160401b038111156119d5576119d5612c7c565b6040519080825280602002602001820160405280156119fe578160200160208202803683370190505b50905060005b6001600160401b03811684111561174f57611a338585836001600160401b03168181106115085761150861311b565b82826001600160401b031681518110611a4e57611a4e61311b565b6001600160a01b0390921660209283029190910190910152611a6f81613131565b9050611a04565b600c60009054906101000a90046001600160a01b03166001600160a01b031663b187bd266040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ac9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aed9190613158565b611b295760405162461bcd60e51b815260206004820152600d60248201526c4e6f7420636c61696d61626c6560981b6044820152606401610c4c565b600d54600160b01b900460ff1680611b4b57506005546001600160a01b031633145b611b675760405162461bcd60e51b8152600401610c4c90612f9a565b6000611b7260025490565b9050611388611b818383612feb565b1115611b9f5760405162461bcd60e51b8152600401610c4c90613003565b600d54604051632b68615760e01b81523360048201526000916001600160a01b031690632b68615790602401602060405180830381865afa158015611be8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0c9190613175565b600c54604051627eeac760e11b8152336004820152600060248201526001600160a01b039091169062fdd58e90604401602060405180830381865afa158015611c59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c7d9190613175565b611c879190612feb565b905060008111611cc75760405162461bcd60e51b815260206004820152600b60248201526a4e6f204d696e745061737360a81b6044820152606401610c4c565b33600090815260156020526040812054821115611cfb5733600090815260156020526040902054611cf89083612fd4565b90505b336000908152601560205260408120548390611d18908490612feb565b611d229190612fd4565b601154611d2f9190612fd4565b9050611d3b8183612feb565b851115611d755760405162461bcd60e51b8152602060048201526008602482015267546f6f206d616e7960c01b6044820152606401610c4c565b8185111580611d9a5750611d898286612fd4565b600e54611d96919061302b565b3410155b611dd35760405162461bcd60e51b815260206004820152600a60248201526909cdee840cadcdeeaced60b31b6044820152606401610c4c565b3360009081526015602052604081208054879290611df2908490612feb565b90915550600090505b85811015611e2357611e1133610fc08388612feb565b80611e1b8161304a565b915050611dfb565b505050505050565b6060611e368261211a565b611e6e5760405162461bcd60e51b8152602060048201526009602482015268139bdd08199bdd5b9960ba1b6044820152606401610c4c565b6000611e78612619565b90506000815111611e985760405180602001604052806000815250611ec3565b80611ea284612628565b604051602001611eb392919061318e565b6040516020818303038152906040525b9392505050565b6005546001600160a01b03163314611ef45760405162461bcd60e51b8152600401610c4c90613065565b6000611eff60025490565b9050611388611f0e8383612feb565b1115611f2c5760405162461bcd60e51b8152600401610c4c90613003565b60005b8281101561197557611f4584610fc08385612feb565b80611f4f8161304a565b915050611f2f565b6005546001600160a01b03163314611f815760405162461bcd60e51b8152600401610c4c90613065565b600f55565b6005546001600160a01b03163314611fb05760405162461bcd60e51b8152600401610c4c90613065565b601155565b6005546001600160a01b03163314611fdf5760405162461bcd60e51b8152600401610c4c90613065565b6001600160a01b0381166120445760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c4c565b61204d81612594565b50565b6005546001600160a01b0316331461207a5760405162461bcd60e51b8152600401610c4c90613065565b601655565b6005546001600160a01b031633146120a95760405162461bcd60e51b8152600401610c4c90613065565b600d805460ff60a81b198116600160a81b9182900460ff1615909102179055565b60006001600160e01b031982166380ac58cd60e01b14806120fb57506001600160e01b03198216635b5e139f60e01b145b80610b4c57506301ffc9a760e01b6001600160e01b0319831614610b4c565b60025460009082108015610b4c575060006001600160a01b0316600283815481106121475761214761311b565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b038416908117909155819061219982611447565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006121df828486612725565b949350505050565b61144382826040518060200160405280600081525061273b565b6007546001600160a01b0384166000908152600960205260408120549091839161222b908661302b565b61223591906131e3565b6121df9190612fd4565b8047101561228f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610c4c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146122dc576040519150601f19603f3d011682016040523d82523d6000602084013e6122e1565b606091505b5050905080610d825760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610c4c565b60006123638261211a565b6123c45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c4c565b60006123cf83611447565b9050806001600160a01b0316846001600160a01b0316148061240a5750836001600160a01b03166123ff84610be4565b6001600160a01b0316145b806121df57506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff166121df565b826001600160a01b031661245182611447565b6001600160a01b0316146124b95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610c4c565b6001600160a01b03821661251b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c4c565b612526600082612164565b816002828154811061253a5761253a61311b565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6125f184848461243e565b6125fd8484848461276e565b6119755760405162461bcd60e51b8152600401610c4c906131f7565b606060178054610b6190612f5f565b60608161264c5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561267657806126608161304a565b915061266f9050600a836131e3565b9150612650565b6000816001600160401b0381111561269057612690612c7c565b6040519080825280601f01601f1916602001820160405280156126ba576020820181803683370190505b5090505b84156121df576126cf600183612fd4565b91506126dc600a86613249565b6126e7906030612feb565b60f81b8183815181106126fc576126fc61311b565b60200101906001600160f81b031916908160001a90535061271e600a866131e3565b94506126be565b600082612732858461286c565b14949350505050565b61274583836128d8565b612752600084848461276e565b610d825760405162461bcd60e51b8152600401610c4c906131f7565b60006001600160a01b0384163b1561286157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906127b290339089908890889060040161325d565b6020604051808303816000875af19250505080156127ed575060408051601f3d908101601f191682019092526127ea9181019061329a565b60015b612847573d80801561281b576040519150601f19603f3d011682016040523d82523d6000602084013e612820565b606091505b50805161283f5760405162461bcd60e51b8152600401610c4c906131f7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506121df565b506001949350505050565b600081815b845181101561174f57600085828151811061288e5761288e61311b565b602002602001015190508083116128b457600083815260208290526040902092506128c5565b600081815260208490526040902092505b50806128d08161304a565b915050612871565b6001600160a01b03821661292e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c4c565b6129378161211a565b156129845760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c4c565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612a0c90612f5f565b90600052602060002090601f016020900481019282612a2e5760008555612a74565b82601f10612a4757805160ff1916838001178555612a74565b82800160010185558215612a74579182015b82811115612a74578251825591602001919060010190612a59565b506114029291505b808211156114025760008155600101612a7c565b6001600160e01b03198116811461204d57600080fd5b600060208284031215612ab857600080fd5b8135611ec381612a90565b60005b83811015612ade578181015183820152602001612ac6565b838111156119755750506000910152565b60008151808452612b07816020860160208601612ac3565b601f01601f19169290920160200192915050565b602081526000611ec36020830184612aef565b600060208284031215612b4057600080fd5b5035919050565b6001600160a01b038116811461204d57600080fd5b60008060408385031215612b6f57600080fd5b8235612b7a81612b47565b946020939093013593505050565b60008083601f840112612b9a57600080fd5b5081356001600160401b03811115612bb157600080fd5b6020830191508360208260051b8501011115612bcc57600080fd5b9250929050565b600080600060408486031215612be857600080fd5b8335925060208401356001600160401b03811115612c0557600080fd5b612c1186828701612b88565b9497909650939450505050565b600060208284031215612c3057600080fd5b8135611ec381612b47565b600080600060608486031215612c5057600080fd5b8335612c5b81612b47565b92506020840135612c6b81612b47565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612cac57612cac612c7c565b604051601f8501601f19908116603f01168101908282118183101715612cd457612cd4612c7c565b81604052809350858152868686011115612ced57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612d1957600080fd5b81356001600160401b03811115612d2f57600080fd5b8201601f81018413612d4057600080fd5b6121df84823560208401612c92565b600080600060408486031215612d6457600080fd5b83356001600160401b03811115612d7a57600080fd5b612d8686828701612b88565b9094509250506020840135612d9a81612b47565b809150509250925092565b6020808252825182820181905260009190848201906040850190845b81811015612ddd57835183529284019291840191600101612dc1565b50909695505050505050565b801515811461204d57600080fd5b60008060408385031215612e0a57600080fd5b8235612e1581612b47565b91506020830135612e2581612de9565b809150509250929050565b60008060008060808587031215612e4657600080fd5b8435612e5181612b47565b93506020850135612e6181612b47565b92506040850135915060608501356001600160401b03811115612e8357600080fd5b8501601f81018713612e9457600080fd5b612ea387823560208401612c92565b91505092959194509250565b60008060208385031215612ec257600080fd5b82356001600160401b03811115612ed857600080fd5b612ee485828601612b88565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b81811015612ddd5783516001600160a01b031683529284019291840191600101612f0c565b60008060408385031215612f4457600080fd5b8235612f4f81612b47565b91506020830135612e2581612b47565b600181811c90821680612f7357607f821691505b60208210811415612f9457634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600a90820152694e6f742061637469766560b01b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015612fe657612fe6612fbe565b500390565b60008219821115612ffe57612ffe612fbe565b500190565b6020808252600e908201526d4578636565647320737570706c7960901b604082015260600190565b600081600019048311821515161561304557613045612fbe565b500290565b600060001982141561305e5761305e612fbe565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526016908201527522a9219b9918a2b73ab69d1037bbb732b91034b7b7b160511b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006001600160401b038083168181141561314e5761314e612fbe565b6001019392505050565b60006020828403121561316a57600080fd5b8151611ec381612de9565b60006020828403121561318757600080fd5b5051919050565b600083516131a0818460208801612ac3565b8351908301906131b4818360208801612ac3565b64173539b7b760d91b9101908152600501949350505050565b634e487b7160e01b600052601260045260246000fd5b6000826131f2576131f26131cd565b500490565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082613258576132586131cd565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061329090830184612aef565b9695505050505050565b6000602082840312156132ac57600080fd5b8151611ec381612a9056fea2646970667358221220b4fcb17e4cb05056bf8d781652469c5e73cdde6170fc1968e4ffea4d78af57fd64736f6c634300080a00334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000220000000000000000000000000fa263ddc8a0a3f2f55898289e17b285c412c4f3a0000000000000000000000004addb049b52bddd0aff0cedd083a2db4980323f900000000000000000000000000000000000000000000000000000000000002e00000000000000000000000000000000000000000000000000000000000000010456c797369756d204d657461676f6473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003454d47000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050000000000000000000000005f93fea2a0a052281797e6f598e85688c098ae46000000000000000000000000e7b5f5fcdeb145532242a48aa23c538bb402d4bf0000000000000000000000000876f4d2b708cf3fc376471614b0d53ee117ceff0000000000000000000000007916d6a5163868828c2953c846e784780bc07a6b000000000000000000000000b423d9916d7d9ed88472fb85c716b63077b9681d00000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000492000000000000000000000000000000000000000000000000000000000000040b00000000000000000000000000000000000000000000000000000000000001c20000000000000000000000000000000000000000000000000000000000000357000000000000000000000000000000000000000000000000000000000000195a000000000000000000000000000000000000000000000000000000000000004a68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f656c797369756d2d6d657461676f64732d676f64732f6d657461646174612d706c616365686f6c6465722f00000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103855760003560e01c806370a08231116101d1578063bd19b06e11610102578063e33b7de3116100a0578063f2fde38b1161006f578063f2fde38b14610aa5578063f5011db314610ac5578063f5aa406d14610af2578063f81227d414610b1257600080fd5b8063e33b7de314610a07578063e985e9c514610a1c578063e9b253d314610a65578063ea710c1014610a8557600080fd5b8063c87b56dd116100dc578063c87b56dd14610971578063cc47a40b14610991578063ce7c2ac2146109b1578063dd461754146109e757600080fd5b8063bd19b06e1461091c578063bda8011714610931578063c041de1f1461095e57600080fd5b80639852595c1161016f578063a22cb46511610149578063a22cb465146108a6578063ac031c5c146108c6578063b4576278146108e6578063b88d4fde146108fc57600080fd5b80639852595c1461083c578063a0712d6814610872578063a18bf33f1461088557600080fd5b80638462151c116101ab5780638462151c146107bc5780638b83209b146107e95780638da5cb5b1461080957806395d89b411461082757600080fd5b806370a0823114610767578063715018a614610787578063735d2a271461079c57600080fd5b8063308c7ca2116102b65780634f6ccce71161025457806360d938dc1161022357806360d938dc146106d95780636352211e146106fa5780636d032c591461071a5780636f9bdf651461074757600080fd5b80634f6ccce71461066257806355f804b314610682578063564566a8146106a25780635daa3053146106c357600080fd5b806334918dfd1161029057806334918dfd146105f85780633a98ef391461060d57806342842e0e1461062257806344a0d68a1461064257600080fd5b8063308c7ca21461059557806332cb6b0c146105c25780633425f90c146105d857600080fd5b806313faede6116103235780631c5fd0a0116102fd5780631c5fd0a01461051f57806323b872dd146105355780632a6bf77d146105555780632f745c591461057557600080fd5b806313faede6146104c657806318160ddd146104ea57806319165587146104ff57600080fd5b8063081812fc1161035f578063081812fc14610444578063095ea7b31461047c5780630c0a6b5e1461049e57806312931f2f146104b157600080fd5b806301ffc9a7146103d3578063031ba5e91461040857806306fdde031461042257600080fd5b366103ce577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156103df57600080fd5b506103f36103ee366004612aa6565b610b27565b60405190151581526020015b60405180910390f35b34801561041457600080fd5b506012546103f39060ff1681565b34801561042e57600080fd5b50610437610b52565b6040516103ff9190612b1b565b34801561045057600080fd5b5061046461045f366004612b2e565b610be4565b6040516001600160a01b0390911681526020016103ff565b34801561048857600080fd5b5061049c610497366004612b5c565b610c71565b005b61049c6104ac366004612bd3565b610d87565b3480156104bd57600080fd5b5061049c610fe0565b3480156104d257600080fd5b506104dc600e5481565b6040519081526020016103ff565b3480156104f657600080fd5b506002546104dc565b34801561050b57600080fd5b5061049c61051a366004612c1e565b61102b565b34801561052b57600080fd5b506104dc60115481565b34801561054157600080fd5b5061049c610550366004612c3b565b6111b9565b34801561056157600080fd5b5061049c610570366004612c1e565b6111ea565b34801561058157600080fd5b506104dc610590366004612b5c565b611236565b3480156105a157600080fd5b506104dc6105b0366004612c1e565b60136020526000908152604090205481565b3480156105ce57600080fd5b506104dc61138881565b3480156105e457600080fd5b5061049c6105f3366004612b2e565b6112e5565b34801561060457600080fd5b5061049c611314565b34801561061957600080fd5b506007546104dc565b34801561062e57600080fd5b5061049c61063d366004612c3b565b61135f565b34801561064e57600080fd5b5061049c61065d366004612b2e565b61137a565b34801561066e57600080fd5b506104dc61067d366004612b2e565b6113a9565b34801561068e57600080fd5b5061049c61069d366004612d07565b611406565b3480156106ae57600080fd5b50600d546103f390600160a01b900460ff1681565b3480156106cf57600080fd5b506104dc600f5481565b3480156106e557600080fd5b50600d546103f390600160a81b900460ff1681565b34801561070657600080fd5b50610464610715366004612b2e565b611447565b34801561072657600080fd5b506104dc610735366004612c1e565b60156020526000908152604090205481565b34801561075357600080fd5b506103f3610762366004612d4f565b6114d3565b34801561077357600080fd5b506104dc610782366004612c1e565b61153a565b34801561079357600080fd5b5061049c61160c565b3480156107a857600080fd5b5061049c6107b7366004612c1e565b611642565b3480156107c857600080fd5b506107dc6107d7366004612c1e565b61168e565b6040516103ff9190612da5565b3480156107f557600080fd5b50610464610804366004612b2e565b611757565b34801561081557600080fd5b506005546001600160a01b0316610464565b34801561083357600080fd5b50610437611787565b34801561084857600080fd5b506104dc610857366004612c1e565b6001600160a01b03166000908152600a602052604090205490565b61049c610880366004612b2e565b611796565b34801561089157600080fd5b50600d546103f390600160b01b900460ff1681565b3480156108b257600080fd5b5061049c6108c1366004612df7565b61187e565b3480156108d257600080fd5b50600c54610464906001600160a01b031681565b3480156108f257600080fd5b506104dc60105481565b34801561090857600080fd5b5061049c610917366004612e30565b611943565b34801561092857600080fd5b5061049c61197b565b34801561093d57600080fd5b5061095161094c366004612eaf565b6119b9565b6040516103ff9190612ef0565b61049c61096c366004612b2e565b611a76565b34801561097d57600080fd5b5061043761098c366004612b2e565b611e2b565b34801561099d57600080fd5b5061049c6109ac366004612b5c565b611eca565b3480156109bd57600080fd5b506104dc6109cc366004612c1e565b6001600160a01b031660009081526009602052604090205490565b3480156109f357600080fd5b5061049c610a02366004612b2e565b611f57565b348015610a1357600080fd5b506008546104dc565b348015610a2857600080fd5b506103f3610a37366004612f31565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b348015610a7157600080fd5b50600d54610464906001600160a01b031681565b348015610a9157600080fd5b5061049c610aa0366004612b2e565b611f86565b348015610ab157600080fd5b5061049c610ac0366004612c1e565b611fb5565b348015610ad157600080fd5b506104dc610ae0366004612c1e565b60146020526000908152604090205481565b348015610afe57600080fd5b5061049c610b0d366004612b2e565b612050565b348015610b1e57600080fd5b5061049c61207f565b60006001600160e01b0319821663780e9d6360e01b1480610b4c5750610b4c826120ca565b92915050565b606060008054610b6190612f5f565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8d90612f5f565b8015610bda5780601f10610baf57610100808354040283529160200191610bda565b820191906000526020600020905b815481529060010190602001808311610bbd57829003601f168201915b5050505050905090565b6000610bef8261211a565b610c555760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6000610c7c82611447565b9050806001600160a01b0316836001600160a01b03161415610cea5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c4c565b336001600160a01b0382161480610d065750610d068133610a37565b610d785760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c4c565b610d828383612164565b505050565b600d54600160a81b900460ff16610db05760405162461bcd60e51b8152600401610c4c90612f9a565b604080513360601b6bffffffffffffffffffffffff19166020808301919091528251601481840301815260349092019092528051910120610e27906016548484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506121d292505050565b610e655760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b6044820152606401610c4c565b60125460009060ff16610e79576014610e7c565b60135b3360009081526020829052604090205460105491925010610ed05760405162461bcd60e51b815260206004820152600e60248201526d546f6f206d616e79206d696e747360901b6044820152606401610c4c565b33600090815260208290526040812054601054610eed9190612fd4565b905080851115610f305760405162461bcd60e51b815260206004820152600e60248201526d546f6f206d616e79206d696e747360901b6044820152606401610c4c565b6000610f3b60025490565b9050611388610f4a8783612feb565b1115610f685760405162461bcd60e51b8152600401610c4c90613003565b85600e54610f76919061302b565b341015610f8257600080fd5b3360009081526020849052604081208054889290610fa1908490612feb565b90915550600090505b86811015610fd757610fc533610fc08385612feb565b6121e7565b80610fcf8161304a565b915050610faa565b50505050505050565b6005546001600160a01b0316331461100a5760405162461bcd60e51b8152600401610c4c90613065565b600d805460ff60b01b198116600160b01b9182900460ff1615909102179055565b6001600160a01b0381166000908152600960205260409020546110905760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207368617265730000000000006044820152606401610c4c565b600061109b60085490565b6110a59047612feb565b905060006110d283836110cd866001600160a01b03166000908152600a602052604090205490565b612201565b9050806111215760405162461bcd60e51b815260206004820181905260248201527f5061796d656e7453706c69747465723a206e6f7420647565207061796d656e746044820152606401610c4c565b6001600160a01b0383166000908152600a602052604081208054839290611149908490612feb565b9250508190555080600860008282546111629190612feb565b909155506111729050838261223f565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6111c33382612358565b6111df5760405162461bcd60e51b8152600401610c4c9061309a565b610d8283838361243e565b6005546001600160a01b031633146112145760405162461bcd60e51b8152600401610c4c90613065565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b60006112418361153a565b821061125f5760405162461bcd60e51b8152600401610c4c906130eb565b6000805b6002548110156112cc57600281815481106112805761128061311b565b6000918252602090912001546001600160a01b03868116911614156112bc57838214156112b0579150610b4c9050565b6112b98261304a565b91505b6112c58161304a565b9050611263565b5060405162461bcd60e51b8152600401610c4c906130eb565b6005546001600160a01b0316331461130f5760405162461bcd60e51b8152600401610c4c90613065565b601055565b6005546001600160a01b0316331461133e5760405162461bcd60e51b8152600401610c4c90613065565b600d805460ff60a01b198116600160a01b9182900460ff1615909102179055565b610d8283838360405180602001604052806000815250611943565b6005546001600160a01b031633146113a45760405162461bcd60e51b8152600401610c4c90613065565b600e55565b60006113b460025490565b82106114025760405162461bcd60e51b815260206004820152601760248201527f455243373231456e756d3a20676c6f62616c20696f6f620000000000000000006044820152606401610c4c565b5090565b6005546001600160a01b031633146114305760405162461bcd60e51b8152600401610c4c90613065565b8051611443906017906020840190612a00565b5050565b6000806002838154811061145d5761145d61311b565b6000918252602090912001546001600160a01b0316905080610b4c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c4c565b60006001815b848110156115315781801561151f5750836001600160a01b03166115148787848181106115085761150861311b565b90506020020135611447565b6001600160a01b0316145b915061152a8161304a565b90506114d9565b50949350505050565b60006001600160a01b0382166115a55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c4c565b600254600090815b8181101561160357600281815481106115c8576115c861311b565b6000918252602090912001546001600160a01b03868116911614156115f3576115f08361304a565b92505b6115fc8161304a565b90506115ad565b50909392505050565b6005546001600160a01b031633146116365760405162461bcd60e51b8152600401610c4c90613065565b6116406000612594565b565b6005546001600160a01b0316331461166c5760405162461bcd60e51b8152600401610c4c90613065565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b60606116998261153a565b6000106116b85760405162461bcd60e51b8152600401610c4c906130eb565b60006116c38361153a565b90506000816001600160401b038111156116df576116df612c7c565b604051908082528060200260200182016040528015611708578160200160208202803683370190505b50905060005b8281101561174f576117208582611236565b8282815181106117325761173261311b565b6020908102919091010152806117478161304a565b91505061170e565b509392505050565b6000600b828154811061176c5761176c61311b565b6000918252602090912001546001600160a01b031692915050565b606060018054610b6190612f5f565b600d54600160a01b900460ff166117bf5760405162461bcd60e51b8152600401610c4c90612f9a565b600f548111156118015760405162461bcd60e51b815260206004820152600d60248201526c115e18d959591cc81b1a5b5a5d609a1b6044820152606401610c4c565b600061180c60025490565b905061138861181b8383612feb565b11156118395760405162461bcd60e51b8152600401610c4c90613003565b81600e54611847919061302b565b34101561185357600080fd5b60005b82811015610d825761186c33610fc08385612feb565b806118768161304a565b915050611856565b6001600160a01b0382163314156118d75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c4c565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61194d3383612358565b6119695760405162461bcd60e51b8152600401610c4c9061309a565b611975848484846125e6565b50505050565b6005546001600160a01b031633146119a55760405162461bcd60e51b8152600401610c4c90613065565b6012805460ff19811660ff90911615179055565b60606000826001600160401b038111156119d5576119d5612c7c565b6040519080825280602002602001820160405280156119fe578160200160208202803683370190505b50905060005b6001600160401b03811684111561174f57611a338585836001600160401b03168181106115085761150861311b565b82826001600160401b031681518110611a4e57611a4e61311b565b6001600160a01b0390921660209283029190910190910152611a6f81613131565b9050611a04565b600c60009054906101000a90046001600160a01b03166001600160a01b031663b187bd266040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ac9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aed9190613158565b611b295760405162461bcd60e51b815260206004820152600d60248201526c4e6f7420636c61696d61626c6560981b6044820152606401610c4c565b600d54600160b01b900460ff1680611b4b57506005546001600160a01b031633145b611b675760405162461bcd60e51b8152600401610c4c90612f9a565b6000611b7260025490565b9050611388611b818383612feb565b1115611b9f5760405162461bcd60e51b8152600401610c4c90613003565b600d54604051632b68615760e01b81523360048201526000916001600160a01b031690632b68615790602401602060405180830381865afa158015611be8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0c9190613175565b600c54604051627eeac760e11b8152336004820152600060248201526001600160a01b039091169062fdd58e90604401602060405180830381865afa158015611c59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c7d9190613175565b611c879190612feb565b905060008111611cc75760405162461bcd60e51b815260206004820152600b60248201526a4e6f204d696e745061737360a81b6044820152606401610c4c565b33600090815260156020526040812054821115611cfb5733600090815260156020526040902054611cf89083612fd4565b90505b336000908152601560205260408120548390611d18908490612feb565b611d229190612fd4565b601154611d2f9190612fd4565b9050611d3b8183612feb565b851115611d755760405162461bcd60e51b8152602060048201526008602482015267546f6f206d616e7960c01b6044820152606401610c4c565b8185111580611d9a5750611d898286612fd4565b600e54611d96919061302b565b3410155b611dd35760405162461bcd60e51b815260206004820152600a60248201526909cdee840cadcdeeaced60b31b6044820152606401610c4c565b3360009081526015602052604081208054879290611df2908490612feb565b90915550600090505b85811015611e2357611e1133610fc08388612feb565b80611e1b8161304a565b915050611dfb565b505050505050565b6060611e368261211a565b611e6e5760405162461bcd60e51b8152602060048201526009602482015268139bdd08199bdd5b9960ba1b6044820152606401610c4c565b6000611e78612619565b90506000815111611e985760405180602001604052806000815250611ec3565b80611ea284612628565b604051602001611eb392919061318e565b6040516020818303038152906040525b9392505050565b6005546001600160a01b03163314611ef45760405162461bcd60e51b8152600401610c4c90613065565b6000611eff60025490565b9050611388611f0e8383612feb565b1115611f2c5760405162461bcd60e51b8152600401610c4c90613003565b60005b8281101561197557611f4584610fc08385612feb565b80611f4f8161304a565b915050611f2f565b6005546001600160a01b03163314611f815760405162461bcd60e51b8152600401610c4c90613065565b600f55565b6005546001600160a01b03163314611fb05760405162461bcd60e51b8152600401610c4c90613065565b601155565b6005546001600160a01b03163314611fdf5760405162461bcd60e51b8152600401610c4c90613065565b6001600160a01b0381166120445760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c4c565b61204d81612594565b50565b6005546001600160a01b0316331461207a5760405162461bcd60e51b8152600401610c4c90613065565b601655565b6005546001600160a01b031633146120a95760405162461bcd60e51b8152600401610c4c90613065565b600d805460ff60a81b198116600160a81b9182900460ff1615909102179055565b60006001600160e01b031982166380ac58cd60e01b14806120fb57506001600160e01b03198216635b5e139f60e01b145b80610b4c57506301ffc9a760e01b6001600160e01b0319831614610b4c565b60025460009082108015610b4c575060006001600160a01b0316600283815481106121475761214761311b565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b038416908117909155819061219982611447565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006121df828486612725565b949350505050565b61144382826040518060200160405280600081525061273b565b6007546001600160a01b0384166000908152600960205260408120549091839161222b908661302b565b61223591906131e3565b6121df9190612fd4565b8047101561228f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610c4c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146122dc576040519150601f19603f3d011682016040523d82523d6000602084013e6122e1565b606091505b5050905080610d825760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610c4c565b60006123638261211a565b6123c45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c4c565b60006123cf83611447565b9050806001600160a01b0316846001600160a01b0316148061240a5750836001600160a01b03166123ff84610be4565b6001600160a01b0316145b806121df57506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff166121df565b826001600160a01b031661245182611447565b6001600160a01b0316146124b95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610c4c565b6001600160a01b03821661251b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c4c565b612526600082612164565b816002828154811061253a5761253a61311b565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6125f184848461243e565b6125fd8484848461276e565b6119755760405162461bcd60e51b8152600401610c4c906131f7565b606060178054610b6190612f5f565b60608161264c5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561267657806126608161304a565b915061266f9050600a836131e3565b9150612650565b6000816001600160401b0381111561269057612690612c7c565b6040519080825280601f01601f1916602001820160405280156126ba576020820181803683370190505b5090505b84156121df576126cf600183612fd4565b91506126dc600a86613249565b6126e7906030612feb565b60f81b8183815181106126fc576126fc61311b565b60200101906001600160f81b031916908160001a90535061271e600a866131e3565b94506126be565b600082612732858461286c565b14949350505050565b61274583836128d8565b612752600084848461276e565b610d825760405162461bcd60e51b8152600401610c4c906131f7565b60006001600160a01b0384163b1561286157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906127b290339089908890889060040161325d565b6020604051808303816000875af19250505080156127ed575060408051601f3d908101601f191682019092526127ea9181019061329a565b60015b612847573d80801561281b576040519150601f19603f3d011682016040523d82523d6000602084013e612820565b606091505b50805161283f5760405162461bcd60e51b8152600401610c4c906131f7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506121df565b506001949350505050565b600081815b845181101561174f57600085828151811061288e5761288e61311b565b602002602001015190508083116128b457600083815260208290526040902092506128c5565b600081815260208490526040902092505b50806128d08161304a565b915050612871565b6001600160a01b03821661292e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c4c565b6129378161211a565b156129845760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c4c565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612a0c90612f5f565b90600052602060002090601f016020900481019282612a2e5760008555612a74565b82601f10612a4757805160ff1916838001178555612a74565b82800160010185558215612a74579182015b82811115612a74578251825591602001919060010190612a59565b506114029291505b808211156114025760008155600101612a7c565b6001600160e01b03198116811461204d57600080fd5b600060208284031215612ab857600080fd5b8135611ec381612a90565b60005b83811015612ade578181015183820152602001612ac6565b838111156119755750506000910152565b60008151808452612b07816020860160208601612ac3565b601f01601f19169290920160200192915050565b602081526000611ec36020830184612aef565b600060208284031215612b4057600080fd5b5035919050565b6001600160a01b038116811461204d57600080fd5b60008060408385031215612b6f57600080fd5b8235612b7a81612b47565b946020939093013593505050565b60008083601f840112612b9a57600080fd5b5081356001600160401b03811115612bb157600080fd5b6020830191508360208260051b8501011115612bcc57600080fd5b9250929050565b600080600060408486031215612be857600080fd5b8335925060208401356001600160401b03811115612c0557600080fd5b612c1186828701612b88565b9497909650939450505050565b600060208284031215612c3057600080fd5b8135611ec381612b47565b600080600060608486031215612c5057600080fd5b8335612c5b81612b47565b92506020840135612c6b81612b47565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115612cac57612cac612c7c565b604051601f8501601f19908116603f01168101908282118183101715612cd457612cd4612c7c565b81604052809350858152868686011115612ced57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612d1957600080fd5b81356001600160401b03811115612d2f57600080fd5b8201601f81018413612d4057600080fd5b6121df84823560208401612c92565b600080600060408486031215612d6457600080fd5b83356001600160401b03811115612d7a57600080fd5b612d8686828701612b88565b9094509250506020840135612d9a81612b47565b809150509250925092565b6020808252825182820181905260009190848201906040850190845b81811015612ddd57835183529284019291840191600101612dc1565b50909695505050505050565b801515811461204d57600080fd5b60008060408385031215612e0a57600080fd5b8235612e1581612b47565b91506020830135612e2581612de9565b809150509250929050565b60008060008060808587031215612e4657600080fd5b8435612e5181612b47565b93506020850135612e6181612b47565b92506040850135915060608501356001600160401b03811115612e8357600080fd5b8501601f81018713612e9457600080fd5b612ea387823560208401612c92565b91505092959194509250565b60008060208385031215612ec257600080fd5b82356001600160401b03811115612ed857600080fd5b612ee485828601612b88565b90969095509350505050565b6020808252825182820181905260009190848201906040850190845b81811015612ddd5783516001600160a01b031683529284019291840191600101612f0c565b60008060408385031215612f4457600080fd5b8235612f4f81612b47565b91506020830135612e2581612b47565b600181811c90821680612f7357607f821691505b60208210811415612f9457634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600a90820152694e6f742061637469766560b01b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015612fe657612fe6612fbe565b500390565b60008219821115612ffe57612ffe612fbe565b500190565b6020808252600e908201526d4578636565647320737570706c7960901b604082015260600190565b600081600019048311821515161561304557613045612fbe565b500290565b600060001982141561305e5761305e612fbe565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526016908201527522a9219b9918a2b73ab69d1037bbb732b91034b7b7b160511b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006001600160401b038083168181141561314e5761314e612fbe565b6001019392505050565b60006020828403121561316a57600080fd5b8151611ec381612de9565b60006020828403121561318757600080fd5b5051919050565b600083516131a0818460208801612ac3565b8351908301906131b4818360208801612ac3565b64173539b7b760d91b9101908152600501949350505050565b634e487b7160e01b600052601260045260246000fd5b6000826131f2576131f26131cd565b500490565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082613258576132586131cd565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061329090830184612aef565b9695505050505050565b6000602082840312156132ac57600080fd5b8151611ec381612a9056fea2646970667358221220b4fcb17e4cb05056bf8d781652469c5e73cdde6170fc1968e4ffea4d78af57fd64736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000220000000000000000000000000fa263ddc8a0a3f2f55898289e17b285c412c4f3a0000000000000000000000004addb049b52bddd0aff0cedd083a2db4980323f900000000000000000000000000000000000000000000000000000000000002e00000000000000000000000000000000000000000000000000000000000000010456c797369756d204d657461676f6473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003454d47000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050000000000000000000000005f93fea2a0a052281797e6f598e85688c098ae46000000000000000000000000e7b5f5fcdeb145532242a48aa23c538bb402d4bf0000000000000000000000000876f4d2b708cf3fc376471614b0d53ee117ceff0000000000000000000000007916d6a5163868828c2953c846e784780bc07a6b000000000000000000000000b423d9916d7d9ed88472fb85c716b63077b9681d00000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000492000000000000000000000000000000000000000000000000000000000000040b00000000000000000000000000000000000000000000000000000000000001c20000000000000000000000000000000000000000000000000000000000000357000000000000000000000000000000000000000000000000000000000000195a000000000000000000000000000000000000000000000000000000000000004a68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f656c797369756d2d6d657461676f64732d676f64732f6d657461646174612d706c616365686f6c6465722f00000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Elysium Metagods
Arg [1] : symbol_ (string): EMG
Arg [2] : payees_ (address[]): 0x5f93Fea2A0A052281797e6F598E85688C098aE46,0xE7B5F5fCdeB145532242a48aA23c538BB402d4BF,0x0876f4D2B708Cf3FC376471614B0d53ee117cEfF,0x7916D6a5163868828c2953c846e784780Bc07a6B,0xB423D9916d7d9Ed88472Fb85C716B63077B9681d
Arg [3] : shares_ (uint256[]): 1170,1035,450,855,6490
Arg [4] : mintPassAddress_ (address): 0xFA263DDc8a0a3f2F55898289E17B285C412c4F3a
Arg [5] : mintPassStakingAddress_ (address): 0x4adDB049b52bDDD0AFF0cEdd083a2dB4980323f9
Arg [6] : initBaseURI_ (string): https://storage.googleapis.com/elysium-metagods-gods/metadata-placeholder/
-----Encoded View---------------
27 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [4] : 000000000000000000000000fa263ddc8a0a3f2f55898289e17b285c412c4f3a
Arg [5] : 0000000000000000000000004addb049b52bddd0aff0cedd083a2db4980323f9
Arg [6] : 00000000000000000000000000000000000000000000000000000000000002e0
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [8] : 456c797369756d204d657461676f647300000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [10] : 454d470000000000000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [12] : 0000000000000000000000005f93fea2a0a052281797e6f598e85688c098ae46
Arg [13] : 000000000000000000000000e7b5f5fcdeb145532242a48aa23c538bb402d4bf
Arg [14] : 0000000000000000000000000876f4d2b708cf3fc376471614b0d53ee117ceff
Arg [15] : 0000000000000000000000007916d6a5163868828c2953c846e784780bc07a6b
Arg [16] : 000000000000000000000000b423d9916d7d9ed88472fb85c716b63077b9681d
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000492
Arg [19] : 000000000000000000000000000000000000000000000000000000000000040b
Arg [20] : 00000000000000000000000000000000000000000000000000000000000001c2
Arg [21] : 0000000000000000000000000000000000000000000000000000000000000357
Arg [22] : 000000000000000000000000000000000000000000000000000000000000195a
Arg [23] : 000000000000000000000000000000000000000000000000000000000000004a
Arg [24] : 68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f65
Arg [25] : 6c797369756d2d6d657461676f64732d676f64732f6d657461646174612d706c
Arg [26] : 616365686f6c6465722f00000000000000000000000000000000000000000000
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.