Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
491 MM
Holders
259
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
5 MMLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MeetsWorld
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^ 0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./Verify.sol"; contract MeetsWorld is Ownable, ERC721Enumerable, ReentrancyGuard, VerifySignature, PaymentSplitter { using Counters for Counters.Counter; using Strings for uint256; Counters.Counter private _tokenIds; uint256 public maxTotalSupply = 4888; uint256 public maxMintingLimit = 3; uint256 public maxWhitelistminting = 3; uint256 public mutipleMintingLimit = 3; bool public whitelistMintingStart = false; bool public publicMintingStart = false; struct MintPayload { address to; uint256 nonce; uint8 _toMint; } address private verificationAdmin; mapping(address => bool) public whitelist; mapping(address => uint256) public whitelistMinted; mapping(address => uint256) public publicMinted; uint256 listingPrice = 0.16 ether; uint256 whitelistPrice = 0.11 ether; string public ipfsGateway = "https://gateway.pinata.cloud/ipfs/"; string public ipfsHash = "QmVRngmmFG8SRAQd6Z6cHMrh4YHRq1YC7N9bds6ibgEiyQ"; constructor( address[] memory _payees, uint256[] memory _shares, address _verificationAdmin ) ERC721("Meetsmeta", "MM") PaymentSplitter(_payees, _shares) payable { verificationAdmin = _verificationAdmin; } // PUBLIC function mintPassesWhitelist(uint8 _toMint) public payable nonReentrant { require(_toMint <= mutipleMintingLimit, "Only 3 NFT's mint at a time."); require(whitelistMintingStart, "Whitelist not started yet."); require(whitelist[msg.sender], "Address is not whitelisted."); require(maxTotalSupply >= (_tokenIds.current() + _toMint), "Minting Finished"); require(msg.value == whitelistPrice * _toMint, "Incorrect Amount."); require((whitelistMinted[msg.sender] + _toMint) <= maxWhitelistminting, "Whitelist minting limit reached for this address."); whitelistMinted[msg.sender] += _toMint; mintMultiple(_toMint); } function mintPassesPublic(uint8 _toMint) public payable nonReentrant { require(_toMint <= mutipleMintingLimit, "Only 3 NFT's mint at a time."); require(publicMintingStart, "Public minting not started yet."); require(maxTotalSupply >= (_tokenIds.current() + _toMint), "Minting Finished"); require(msg.value == listingPrice * _toMint, "Incorrect Amount."); require((publicMinted[msg.sender] + _toMint) <= maxMintingLimit, "Minting limit reached for this address."); publicMinted[msg.sender] += _toMint; mintMultiple(_toMint); } function mintPassesVerified(MintPayload calldata _payload, bytes memory _signature) public payable nonReentrant { require(maxTotalSupply > _tokenIds.current(), "Minting Finished"); require(msg.value == whitelistPrice * _payload._toMint, "Incorrect Amount."); require(verifyOwnerSignature(_payload, _signature), "Invalid Signature"); require((whitelistMinted[msg.sender] + _payload._toMint) <= maxWhitelistminting, "Whitelist minting limit reached for this address."); whitelistMinted[msg.sender] += _payload._toMint; mintMultiple(_payload._toMint); } function tokenURI(uint256 _tokenId) public view virtual override returns(string memory) { require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token"); return string(abi.encodePacked(ipfsGateway, ipfsHash, '/', _tokenId.toString(), '.json')); } // PUBLIC ONLY OWNER function setWhitelistMinting(bool _whitelistMintingStart) external onlyOwner { whitelistMintingStart = _whitelistMintingStart; } function setPublicMinting(bool _publicMintingStart) external onlyOwner { publicMintingStart = _publicMintingStart; } function whitelistAddress(address[] calldata addrs) public onlyOwner { for (uint i = 0; i < addrs.length; i++) { whitelist[addrs[i]] = true; } } function setVerificationAdmin(address _verificationAdmin) public onlyOwner { verificationAdmin = _verificationAdmin; } function setIpfsgateway(string memory _ipfsgateway) public onlyOwner { ipfsGateway = _ipfsgateway; } function setIpfshash(string memory _ipfshash) public onlyOwner { ipfsHash = _ipfshash; } // emergency swip out function swipOut() public onlyOwner { // transfering remaining balance to the owner if (address(this).balance > 0) { payable(owner()).transfer(address(this).balance); } } // INTERNAL function verifyOwnerSignature(MintPayload calldata _payload, bytes memory _signature) internal view returns(bool) { bytes32 ethSignedHash = getEthSignedMessageHash(getMessageHash(_payload.nonce.toString(), _payload.to)); return recoverSigner(ethSignedHash, _signature) == verificationAdmin; } function mintMultiple(uint8 _toMint) internal { uint256 newItemId; for (uint8 i = 0; i < _toMint; i++) { _tokenIds.increment(); newItemId = _tokenIds.current(); _safeMint(msg.sender, newItemId); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract VerifySignature { function getMessageHash( string memory _nonce, address to ) public pure returns (bytes32) { return keccak256(abi.encodePacked(_nonce,to)); } function getEthSignedMessageHash(bytes32 _messageHash) public pure returns (bytes32) { /* Signature is produced by signing a keccak256 hash with the following format: "\x19Ethereum Signed Message\n" + len(msg) + msg */ return keccak256( abi.encodePacked("\x19Ethereum Signed Message:\n32", _messageHash) ); } function recoverSigner(bytes32 _ethSignedMessageHash, bytes memory _signature) public pure returns (address) { (bytes32 r, bytes32 s, uint8 v) = splitSignature(_signature); return ecrecover(_ethSignedMessageHash, v, r, s); } function splitSignature(bytes memory sig) public pure returns ( bytes32 r, bytes32 s, uint8 v ) { require(sig.length == 65, "invalid signature length"); assembly { /* First 32 bytes stores the length of the signature add(sig, 32) = pointer of sig + 32 effectively, skips first 32 bytes of signature mload(p) loads next 32 bytes starting at the memory address p into memory */ // first 32 bytes, after the length prefix r := mload(add(sig, 32)) // second 32 bytes s := mload(add(sig, 64)) // final byte (first byte of the next 32 bytes) v := byte(0, mload(add(sig, 96))) } // implicitly return (r, s, v) } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) 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 making 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (finance/PaymentSplitter.sol) pragma solidity ^0.8.0; import "../token/ERC20/utils/SafeERC20.sol"; import "../utils/Address.sol"; import "../utils/Context.sol"; /** * @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 ERC20PaymentReleased(IERC20 indexed token, 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; mapping(IERC20 => uint256) private _erc20TotalReleased; mapping(IERC20 => mapping(address => uint256)) private _erc20Released; /** * @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: payees and shares length 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 total amount of `token` already released. `token` should be the address of an IERC20 * contract. */ function totalReleased(IERC20 token) public view returns (uint256) { return _erc20TotalReleased[token]; } /** * @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 amount of `token` tokens already released to a payee. `token` should be the address of an * IERC20 contract. */ function released(IERC20 token, address account) public view returns (uint256) { return _erc20Released[token][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: account has no shares"); uint256 totalReceived = address(this).balance + totalReleased(); uint256 payment = _pendingPayment(account, totalReceived, released(account)); require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] += payment; _totalReleased += payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20 * contract. */ function release(IERC20 token, address account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token); uint256 payment = _pendingPayment(account, totalReceived, released(token, account)); require(payment != 0, "PaymentSplitter: account is not due payment"); _erc20Released[token][account] += payment; _erc20TotalReleased[token] += payment; SafeERC20.safeTransfer(token, account, payment); emit ERC20PaymentReleased(token, 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_); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address[]","name":"_payees","type":"address[]"},{"internalType":"uint256[]","name":"_shares","type":"uint256[]"},{"internalType":"address","name":"_verificationAdmin","type":"address"}],"stateMutability":"payable","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":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","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":[{"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_messageHash","type":"bytes32"}],"name":"getEthSignedMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"_nonce","type":"string"},{"internalType":"address","name":"to","type":"address"}],"name":"getMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"ipfsGateway","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ipfsHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintingLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWhitelistminting","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_toMint","type":"uint8"}],"name":"mintPassesPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint8","name":"_toMint","type":"uint8"}],"internalType":"struct MeetsWorld.MintPayload","name":"_payload","type":"tuple"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mintPassesVerified","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_toMint","type":"uint8"}],"name":"mintPassesWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mutipleMintingLimit","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":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintingStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_ethSignedMessageHash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"recoverSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"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":"_ipfsgateway","type":"string"}],"name":"setIpfsgateway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_ipfshash","type":"string"}],"name":"setIpfshash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_publicMintingStart","type":"bool"}],"name":"setPublicMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_verificationAdmin","type":"address"}],"name":"setVerificationAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_whitelistMintingStart","type":"bool"}],"name":"setWhitelistMinting","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":"bytes","name":"sig","type":"bytes"}],"name":"splitSignature","outputs":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swipOut","outputs":[],"stateMutability":"nonpayable","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":"","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":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","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":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addrs","type":"address[]"}],"name":"whitelistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMintingStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6113186014556003601581905560168190556017556018805461ffff191690556702386f26fc100000601c55670186cc6acd4b0000601d5560e060405260226080818152906200405660a03980516200006191601e91602090910190620004e9565b506040518060600160405280602e815260200162004028602e913980516200009291601f91602090910190620004e9565b506040516200407838038062004078833981016040819052620000b5916200068e565b8282604051806040016040528060098152602001684d656574736d65746160b81b815250604051806040016040528060028152602001614d4d60f01b8152506200010e62000108620002a760201b60201c565b620002ab565b815162000123906001906020850190620004e9565b50805162000139906002906020840190620004e9565b50506001600b55508051825114620001b35760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620002065760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620001aa565b60005b825181101562000272576200025d8382815181106200022c576200022c62000770565b602002602001015183838151811062000249576200024962000770565b6020026020010151620002fb60201b60201c565b8062000269816200079c565b91505062000209565b5050601880546001600160a01b03909316620100000262010000600160b01b031990931692909217909155506200080f915050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620003685760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401620001aa565b60008111620003ba5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620001aa565b6001600160a01b0382166000908152600e602052604090205415620004365760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620001aa565b60108054600181019091557f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6720180546001600160a01b0319166001600160a01b0384169081179091556000908152600e60205260409020819055600c54620004a0908290620007b8565b600c55604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b828054620004f790620007d3565b90600052602060002090601f0160209004810192826200051b576000855562000566565b82601f106200053657805160ff191683800117855562000566565b8280016001018555821562000566579182015b828111156200056657825182559160200191906001019062000549565b506200057492915062000578565b5090565b5b8082111562000574576000815560010162000579565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620005d057620005d06200058f565b604052919050565b60006001600160401b03821115620005f457620005f46200058f565b5060051b60200190565b80516001600160a01b03811681146200061657600080fd5b919050565b600082601f8301126200062d57600080fd5b81516020620006466200064083620005d8565b620005a5565b82815260059290921b840181019181810190868411156200066657600080fd5b8286015b848110156200068357805183529183019183016200066a565b509695505050505050565b600080600060608486031215620006a457600080fd5b83516001600160401b0380821115620006bc57600080fd5b818601915086601f830112620006d157600080fd5b81516020620006e46200064083620005d8565b82815260059290921b8401810191818101908a8411156200070457600080fd5b948201945b838610156200072d576200071d86620005fe565b8252948201949082019062000709565b918901519197509093505050808211156200074757600080fd5b5062000756868287016200061b565b9250506200076760408501620005fe565b90509250925092565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201620007b157620007b162000786565b5060010190565b60008219821115620007ce57620007ce62000786565b500190565b600181811c90821680620007e857607f821691505b6020821081036200080957634e487b7160e01b600052602260045260246000fd5b50919050565b613809806200081f6000396000f3fe60806040526004361061031e5760003560e01c80638b83209b116101ab578063c40542ec116100f7578063de2cac8811610095578063e985e9c51161006f578063e985e9c5146109cb578063ec99c64b14610a14578063f2fde38b14610a34578063fa54080114610a5457600080fd5b8063de2cac8814610980578063deed67b914610996578063e33b7de3146109b657600080fd5b8063ce150d4b116100d1578063ce150d4b146108df578063ce7c2ac2146108ff578063d1c9448314610935578063d79779b21461094a57600080fd5b8063c40542ec1461088a578063c623674f146108aa578063c87b56dd146108bf57600080fd5b80639b19251a11610164578063b31d61b01161013e578063b31d61b014610818578063b88d4fde14610838578063ba103b5c14610858578063c30dfc081461087757600080fd5b80639b19251a1461078a578063a22cb465146107ba578063a7bb5803146107da57600080fd5b80638b83209b146106b45780638da5cb5b146106d457806395d89b41146106f257806397aba7f9146107075780639852595c1461072757806398a8cffe1461075d57600080fd5b80632f745c591161026a5780635e6ffac71161022357806370a08231116101fd57806370a082311461064c578063715018a61461066c57806376f554d914610681578063861d06b1146106a157600080fd5b80635e6ffac7146106015780636352211e1461061657806364faa5641461063657600080fd5b80632f745c59146105265780633a98ef3914610546578063406072a91461055b57806342842e0e146105a157806348b75044146105c15780634f6ccce7146105e157600080fd5b8063156a33bd116102d757806323b872dd116102b157806323b872dd146104bd578063254a4737146104dd57806328c2530b146104fd5780632ab4d0521461051057600080fd5b8063156a33bd1461047257806318160ddd14610488578063191655871461049d57600080fd5b806301ffc9a71461036c57806306fdde03146103a1578063081812fc146103c3578063083373e5146103fb578063095ea7b3146104155780631015805b1461043757600080fd5b36610367577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561037857600080fd5b5061038c610387366004612e07565b610ac2565b60405190151581526020015b60405180910390f35b3480156103ad57600080fd5b506103b6610aed565b6040516103989190612e7c565b3480156103cf57600080fd5b506103e36103de366004612e8f565b610b7f565b6040516001600160a01b039091168152602001610398565b34801561040757600080fd5b5060185461038c9060ff1681565b34801561042157600080fd5b50610435610430366004612ebd565b610c19565b005b34801561044357600080fd5b50610464610452366004612ee9565b601b6020526000908152604090205481565b604051908152602001610398565b34801561047e57600080fd5b5061046460155481565b34801561049457600080fd5b50600954610464565b3480156104a957600080fd5b506104356104b8366004612ee9565b610d2e565b3480156104c957600080fd5b506104356104d8366004612f06565b610e5f565b3480156104e957600080fd5b506104356104f8366004612f55565b610e90565b61043561050b366004613015565b610ed4565b34801561051c57600080fd5b5061046460145481565b34801561053257600080fd5b50610464610541366004612ebd565b611051565b34801561055257600080fd5b50600c54610464565b34801561056757600080fd5b5061046461057636600461306b565b6001600160a01b03918216600090815260126020908152604080832093909416825291909152205490565b3480156105ad57600080fd5b506104356105bc366004612f06565b6110e7565b3480156105cd57600080fd5b506104356105dc36600461306b565b611102565b3480156105ed57600080fd5b506104646105fc366004612e8f565b6112de565b34801561060d57600080fd5b506103b6611371565b34801561062257600080fd5b506103e3610631366004612e8f565b6113ff565b34801561064257600080fd5b5061046460165481565b34801561065857600080fd5b50610464610667366004612ee9565b611476565b34801561067857600080fd5b506104356114fd565b34801561068d57600080fd5b5061046461069c3660046130a4565b611533565b6104356106af3660046130eb565b611566565b3480156106c057600080fd5b506103e36106cf366004612e8f565b611758565b3480156106e057600080fd5b506000546001600160a01b03166103e3565b3480156106fe57600080fd5b506103b6611788565b34801561071357600080fd5b506103e361072236600461310e565b611797565b34801561073357600080fd5b50610464610742366004612ee9565b6001600160a01b03166000908152600f602052604090205490565b34801561076957600080fd5b50610464610778366004612ee9565b601a6020526000908152604090205481565b34801561079657600080fd5b5061038c6107a5366004612ee9565b60196020526000908152604090205460ff1681565b3480156107c657600080fd5b506104356107d536600461313f565b611816565b3480156107e657600080fd5b506107fa6107f536600461316d565b611825565b60408051938452602084019290925260ff1690820152606001610398565b34801561082457600080fd5b506104356108333660046131a2565b611899565b34801561084457600080fd5b50610435610853366004613217565b611935565b34801561086457600080fd5b5060185461038c90610100900460ff1681565b6104356108853660046130eb565b61196d565b34801561089657600080fd5b506104356108a5366004612f55565b611b62565b3480156108b657600080fd5b506103b6611b9f565b3480156108cb57600080fd5b506103b66108da366004612e8f565b611bac565b3480156108eb57600080fd5b506104356108fa366004612ee9565b611c60565b34801561090b57600080fd5b5061046461091a366004612ee9565b6001600160a01b03166000908152600e602052604090205490565b34801561094157600080fd5b50610435611cb4565b34801561095657600080fd5b50610464610965366004612ee9565b6001600160a01b031660009081526011602052604090205490565b34801561098c57600080fd5b5061046460175481565b3480156109a257600080fd5b506104356109b136600461316d565b611d21565b3480156109c257600080fd5b50600d54610464565b3480156109d757600080fd5b5061038c6109e636600461306b565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610a2057600080fd5b50610435610a2f36600461316d565b611d5e565b348015610a4057600080fd5b50610435610a4f366004612ee9565b611d9b565b348015610a6057600080fd5b50610464610a6f366004612e8f565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b60006001600160e01b0319821663780e9d6360e01b1480610ae75750610ae782611e33565b92915050565b606060018054610afc90613283565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2890613283565b8015610b755780601f10610b4a57610100808354040283529160200191610b75565b820191906000526020600020905b815481529060010190602001808311610b5857829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610bfd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610c24826113ff565b9050806001600160a01b0316836001600160a01b031603610c915760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610bf4565b336001600160a01b0382161480610cad5750610cad81336109e6565b610d1f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bf4565b610d298383611e83565b505050565b6001600160a01b0381166000908152600e6020526040902054610d635760405162461bcd60e51b8152600401610bf4906132bd565b6000610d6e600d5490565b610d789047613319565b90506000610da58383610da0866001600160a01b03166000908152600f602052604090205490565b611ef1565b905080600003610dc75760405162461bcd60e51b8152600401610bf490613331565b6001600160a01b0383166000908152600f602052604081208054839290610def908490613319565b9250508190555080600d6000828254610e089190613319565b90915550610e1890508382611f39565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610e693382612052565b610e855760405162461bcd60e51b8152600401610bf49061337c565b610d29838383612149565b6000546001600160a01b03163314610eba5760405162461bcd60e51b8152600401610bf4906133cd565b601880549115156101000261ff0019909216919091179055565b6002600b5403610ef65760405162461bcd60e51b8152600401610bf490613402565b6002600b5560135460145411610f1e5760405162461bcd60e51b8152600401610bf490613439565b610f2e60608301604084016130eb565b60ff16601d54610f3e9190613463565b3414610f5c5760405162461bcd60e51b8152600401610bf490613482565b610f6682826122f0565b610fa65760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964205369676e617475726560781b6044820152606401610bf4565b601654610fb960608401604085016130eb565b336000908152601a6020526040902054610fd69160ff1690613319565b1115610ff45760405162461bcd60e51b8152600401610bf4906134ad565b61100460608301604084016130eb565b336000908152601a60205260408120805460ff939093169290919061102a908490613319565b90915550611048905061104360608401604085016130eb565b612344565b50506001600b55565b600061105c83611476565b82106110be5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610bf4565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b610d2983838360405180602001604052806000815250611935565b6001600160a01b0381166000908152600e60205260409020546111375760405162461bcd60e51b8152600401610bf4906132bd565b6001600160a01b0382166000908152601160205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015611194573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b891906134fe565b6111c29190613319565b905060006111fb8383610da087876001600160a01b03918216600090815260126020908152604080832093909416825291909152205490565b90508060000361121d5760405162461bcd60e51b8152600401610bf490613331565b6001600160a01b03808516600090815260126020908152604080832093871683529290529081208054839290611254908490613319565b90915550506001600160a01b03841660009081526011602052604081208054839290611281908490613319565b909155506112929050848483612385565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b60006112e960095490565b821061134c5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610bf4565b6009828154811061135f5761135f613517565b90600052602060002001549050919050565b601e805461137e90613283565b80601f01602080910402602001604051908101604052809291908181526020018280546113aa90613283565b80156113f75780601f106113cc576101008083540402835291602001916113f7565b820191906000526020600020905b8154815290600101906020018083116113da57829003601f168201915b505050505081565b6000818152600360205260408120546001600160a01b031680610ae75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610bf4565b60006001600160a01b0382166114e15760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610bf4565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146115275760405162461bcd60e51b8152600401610bf4906133cd565b61153160006123d7565b565b6000828260405160200161154892919061352d565b60405160208183030381529060405280519060200120905092915050565b6002600b54036115885760405162461bcd60e51b8152600401610bf490613402565b6002600b5560175460ff821611156115e25760405162461bcd60e51b815260206004820152601c60248201527f4f6e6c792033204e46542773206d696e7420617420612074696d652e000000006044820152606401610bf4565b601854610100900460ff166116395760405162461bcd60e51b815260206004820152601f60248201527f5075626c6963206d696e74696e67206e6f742073746172746564207965742e006044820152606401610bf4565b8060ff1661164660135490565b6116509190613319565b60145410156116715760405162461bcd60e51b8152600401610bf490613439565b8060ff16601c546116829190613463565b34146116a05760405162461bcd60e51b8152600401610bf490613482565b601554336000908152601b60205260409020546116c19060ff841690613319565b111561171f5760405162461bcd60e51b815260206004820152602760248201527f4d696e74696e67206c696d6974207265616368656420666f722074686973206160448201526632323932b9b99760c91b6064820152608401610bf4565b336000908152601b60205260408120805460ff84169290611741908490613319565b90915550611750905081612344565b506001600b55565b60006010828154811061176d5761176d613517565b6000918252602090912001546001600160a01b031692915050565b606060028054610afc90613283565b6000806000806117a685611825565b6040805160008152602081018083528b905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa158015611801573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b611821338383612427565b5050565b6000806000835160411461187b5760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610bf4565b50505060208101516040820151606090920151909260009190911a90565b6000546001600160a01b031633146118c35760405162461bcd60e51b8152600401610bf4906133cd565b60005b81811015610d29576001601960008585858181106118e6576118e6613517565b90506020020160208101906118fb9190612ee9565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061192d81613564565b9150506118c6565b61193f3383612052565b61195b5760405162461bcd60e51b8152600401610bf49061337c565b611967848484846124f5565b50505050565b6002600b540361198f5760405162461bcd60e51b8152600401610bf490613402565b6002600b5560175460ff821611156119e95760405162461bcd60e51b815260206004820152601c60248201527f4f6e6c792033204e46542773206d696e7420617420612074696d652e000000006044820152606401610bf4565b60185460ff16611a3b5760405162461bcd60e51b815260206004820152601a60248201527f57686974656c697374206e6f742073746172746564207965742e0000000000006044820152606401610bf4565b3360009081526019602052604090205460ff16611a9a5760405162461bcd60e51b815260206004820152601b60248201527f41646472657373206973206e6f742077686974656c69737465642e00000000006044820152606401610bf4565b8060ff16611aa760135490565b611ab19190613319565b6014541015611ad25760405162461bcd60e51b8152600401610bf490613439565b8060ff16601d54611ae39190613463565b3414611b015760405162461bcd60e51b8152600401610bf490613482565b601654336000908152601a6020526040902054611b229060ff841690613319565b1115611b405760405162461bcd60e51b8152600401610bf4906134ad565b336000908152601a60205260408120805460ff84169290611741908490613319565b6000546001600160a01b03163314611b8c5760405162461bcd60e51b8152600401610bf4906133cd565b6018805460ff1916911515919091179055565b601f805461137e90613283565b6000818152600360205260409020546060906001600160a01b0316611c2b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610bf4565b601e601f611c3884612528565b604051602001611c4a93929190613616565b6040516020818303038152906040529050919050565b6000546001600160a01b03163314611c8a5760405162461bcd60e51b8152600401610bf4906133cd565b601880546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b6000546001600160a01b03163314611cde5760405162461bcd60e51b8152600401610bf4906133cd565b471561153157600080546040516001600160a01b03909116914780156108fc02929091818181858888f19350505050158015611d1e573d6000803e3d6000fd5b50565b6000546001600160a01b03163314611d4b5760405162461bcd60e51b8152600401610bf4906133cd565b805161182190601f906020840190612d58565b6000546001600160a01b03163314611d885760405162461bcd60e51b8152600401610bf4906133cd565b805161182190601e906020840190612d58565b6000546001600160a01b03163314611dc55760405162461bcd60e51b8152600401610bf4906133cd565b6001600160a01b038116611e2a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bf4565b611d1e816123d7565b60006001600160e01b031982166380ac58cd60e01b1480611e6457506001600160e01b03198216635b5e139f60e01b145b80610ae757506301ffc9a760e01b6001600160e01b0319831614610ae7565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611eb8826113ff565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600c546001600160a01b0384166000908152600e602052604081205490918391611f1b9086613463565b611f25919061367a565b611f2f919061368e565b90505b9392505050565b80471015611f895760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610bf4565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611fd6576040519150601f19603f3d011682016040523d82523d6000602084013e611fdb565b606091505b5050905080610d295760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610bf4565b6000818152600360205260408120546001600160a01b03166120cb5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bf4565b60006120d6836113ff565b9050806001600160a01b0316846001600160a01b031614806121115750836001600160a01b031661210684610b7f565b6001600160a01b0316145b8061214157506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661215c826113ff565b6001600160a01b0316146121c05760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610bf4565b6001600160a01b0382166122225760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bf4565b61222d838383612629565b612238600082611e83565b6001600160a01b038316600090815260046020526040812080546001929061226190849061368e565b90915550506001600160a01b038216600090815260046020526040812080546001929061228f908490613319565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080612313610a6f6123068660200135612528565b61069c6020880188612ee9565b6018549091506201000090046001600160a01b03166123328285611797565b6001600160a01b031614949350505050565b6000805b8260ff168160ff161015610d2957612364601380546001019055565b601354915061237333836126e1565b8061237d816136a5565b915050612348565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d299084906126fb565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316036124885760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bf4565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612500848484612149565b61250c848484846127cd565b6119675760405162461bcd60e51b8152600401610bf4906136c4565b60608160000361254f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612579578061256381613564565b91506125729050600a8361367a565b9150612553565b60008167ffffffffffffffff81111561259457612594612f72565b6040519080825280601f01601f1916602001820160405280156125be576020820181803683370190505b5090505b8415612141576125d360018361368e565b91506125e0600a86613716565b6125eb906030613319565b60f81b81838151811061260057612600613517565b60200101906001600160f81b031916908160001a905350612622600a8661367a565b94506125c2565b6001600160a01b0383166126845761267f81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b6126a7565b816001600160a01b0316836001600160a01b0316146126a7576126a783826128ce565b6001600160a01b0382166126be57610d298161296b565b826001600160a01b0316826001600160a01b031614610d2957610d298282612a1a565b611821828260405180602001604052806000815250612a5e565b6000612750826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612a919092919063ffffffff16565b805190915015610d29578080602001905181019061276e919061372a565b610d295760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610bf4565b60006001600160a01b0384163b156128c357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612811903390899088908890600401613747565b6020604051808303816000875af192505050801561284c575060408051601f3d908101601f1916820190925261284991810190613784565b60015b6128a9573d80801561287a576040519150601f19603f3d011682016040523d82523d6000602084013e61287f565b606091505b5080516000036128a15760405162461bcd60e51b8152600401610bf4906136c4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612141565b506001949350505050565b600060016128db84611476565b6128e5919061368e565b600083815260086020526040902054909150808214612938576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061297d9060019061368e565b6000838152600a6020526040812054600980549394509092849081106129a5576129a5613517565b9060005260206000200154905080600983815481106129c6576129c6613517565b6000918252602080832090910192909255828152600a909152604080822084905585825281205560098054806129fe576129fe6137a1565b6001900381819060005260206000200160009055905550505050565b6000612a2583611476565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b612a688383612aa0565b612a7560008484846127cd565b610d295760405162461bcd60e51b8152600401610bf4906136c4565b6060611f2f8484600085612bee565b6001600160a01b038216612af65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bf4565b6000818152600360205260409020546001600160a01b031615612b5b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bf4565b612b6760008383612629565b6001600160a01b0382166000908152600460205260408120805460019290612b90908490613319565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606082471015612c4f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610bf4565b6001600160a01b0385163b612ca65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610bf4565b600080866001600160a01b03168587604051612cc291906137b7565b60006040518083038185875af1925050503d8060008114612cff576040519150601f19603f3d011682016040523d82523d6000602084013e612d04565b606091505b5091509150612d14828286612d1f565b979650505050505050565b60608315612d2e575081611f32565b825115612d3e5782518084602001fd5b8160405162461bcd60e51b8152600401610bf49190612e7c565b828054612d6490613283565b90600052602060002090601f016020900481019282612d865760008555612dcc565b82601f10612d9f57805160ff1916838001178555612dcc565b82800160010185558215612dcc579182015b82811115612dcc578251825591602001919060010190612db1565b50612dd8929150612ddc565b5090565b5b80821115612dd85760008155600101612ddd565b6001600160e01b031981168114611d1e57600080fd5b600060208284031215612e1957600080fd5b8135611f3281612df1565b60005b83811015612e3f578181015183820152602001612e27565b838111156119675750506000910152565b60008151808452612e68816020860160208601612e24565b601f01601f19169290920160200192915050565b602081526000611f326020830184612e50565b600060208284031215612ea157600080fd5b5035919050565b6001600160a01b0381168114611d1e57600080fd5b60008060408385031215612ed057600080fd5b8235612edb81612ea8565b946020939093013593505050565b600060208284031215612efb57600080fd5b8135611f3281612ea8565b600080600060608486031215612f1b57600080fd5b8335612f2681612ea8565b92506020840135612f3681612ea8565b929592945050506040919091013590565b8015158114611d1e57600080fd5b600060208284031215612f6757600080fd5b8135611f3281612f47565b634e487b7160e01b600052604160045260246000fd5b600082601f830112612f9957600080fd5b813567ffffffffffffffff80821115612fb457612fb4612f72565b604051601f8301601f19908116603f01168101908282118183101715612fdc57612fdc612f72565b81604052838152866020858801011115612ff557600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080828403608081121561302957600080fd5b606081121561303757600080fd5b50829150606083013567ffffffffffffffff81111561305557600080fd5b61306185828601612f88565b9150509250929050565b6000806040838503121561307e57600080fd5b823561308981612ea8565b9150602083013561309981612ea8565b809150509250929050565b600080604083850312156130b757600080fd5b823567ffffffffffffffff8111156130ce57600080fd5b6130da85828601612f88565b925050602083013561309981612ea8565b6000602082840312156130fd57600080fd5b813560ff81168114611f3257600080fd5b6000806040838503121561312157600080fd5b82359150602083013567ffffffffffffffff81111561305557600080fd5b6000806040838503121561315257600080fd5b823561315d81612ea8565b9150602083013561309981612f47565b60006020828403121561317f57600080fd5b813567ffffffffffffffff81111561319657600080fd5b61214184828501612f88565b600080602083850312156131b557600080fd5b823567ffffffffffffffff808211156131cd57600080fd5b818501915085601f8301126131e157600080fd5b8135818111156131f057600080fd5b8660208260051b850101111561320557600080fd5b60209290920196919550909350505050565b6000806000806080858703121561322d57600080fd5b843561323881612ea8565b9350602085013561324881612ea8565b925060408501359150606085013567ffffffffffffffff81111561326b57600080fd5b61327787828801612f88565b91505092959194509250565b600181811c9082168061329757607f821691505b6020821081036132b757634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561332c5761332c613303565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526010908201526f135a5b9d1a5b99c8119a5b9a5cda195960821b604082015260600190565b600081600019048311821515161561347d5761347d613303565b500290565b60208082526011908201527024b731b7b93932b1ba1020b6b7bab73a1760791b604082015260600190565b60208082526031908201527f57686974656c697374206d696e74696e67206c696d69742072656163686564206040820152703337b9103a3434b99030b2323932b9b99760791b606082015260800190565b60006020828403121561351057600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b6000835161353f818460208801612e24565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b60006001820161357657613576613303565b5060010190565b8054600090600181811c908083168061359757607f831692505b602080841082036135b857634e487b7160e01b600052602260045260246000fd5b8180156135cc57600181146135dd5761360a565b60ff1986168952848901965061360a565b60008881526020902060005b868110156136025781548b8201529085019083016135e9565b505084890196505b50505050505092915050565b600061362b613625838761357d565b8561357d565b602f60f81b81528351613645816001840160208801612e24565b64173539b7b760d91b6001929091019182015260060195945050505050565b634e487b7160e01b600052601260045260246000fd5b60008261368957613689613664565b500490565b6000828210156136a0576136a0613303565b500390565b600060ff821660ff81036136bb576136bb613303565b60010192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261372557613725613664565b500690565b60006020828403121561373c57600080fd5b8151611f3281612f47565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061377a90830184612e50565b9695505050505050565b60006020828403121561379657600080fd5b8151611f3281612df1565b634e487b7160e01b600052603160045260246000fd5b600082516137c9818460208701612e24565b919091019291505056fea264697066735822122027c86d73e2ddb8aae694cce184532ceaedfa4c6b080c7a980a6d91f81ae419d764736f6c634300080d0033516d56526e676d6d4647385352415164365a3663484d72683459485271315943374e39626473366962674569795168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000100000000000000000000000000297c19f6d75494f09182358fe479a57f40b4a4f00000000000000000000000000000000000000000000000000000000000000004000000000000000000000000cdc43cd780362ece3719e9eafb03c9e1463e246a00000000000000000000000001b5ae38e809a3da6eba4dcdcf3f1e249e47590400000000000000000000000093081bc0d30e19968233d003165dd157366f6f64000000000000000000000000b89bf0b8e7fe14dbb7606d6196644c5665bedde400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000054000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004
Deployed Bytecode
0x60806040526004361061031e5760003560e01c80638b83209b116101ab578063c40542ec116100f7578063de2cac8811610095578063e985e9c51161006f578063e985e9c5146109cb578063ec99c64b14610a14578063f2fde38b14610a34578063fa54080114610a5457600080fd5b8063de2cac8814610980578063deed67b914610996578063e33b7de3146109b657600080fd5b8063ce150d4b116100d1578063ce150d4b146108df578063ce7c2ac2146108ff578063d1c9448314610935578063d79779b21461094a57600080fd5b8063c40542ec1461088a578063c623674f146108aa578063c87b56dd146108bf57600080fd5b80639b19251a11610164578063b31d61b01161013e578063b31d61b014610818578063b88d4fde14610838578063ba103b5c14610858578063c30dfc081461087757600080fd5b80639b19251a1461078a578063a22cb465146107ba578063a7bb5803146107da57600080fd5b80638b83209b146106b45780638da5cb5b146106d457806395d89b41146106f257806397aba7f9146107075780639852595c1461072757806398a8cffe1461075d57600080fd5b80632f745c591161026a5780635e6ffac71161022357806370a08231116101fd57806370a082311461064c578063715018a61461066c57806376f554d914610681578063861d06b1146106a157600080fd5b80635e6ffac7146106015780636352211e1461061657806364faa5641461063657600080fd5b80632f745c59146105265780633a98ef3914610546578063406072a91461055b57806342842e0e146105a157806348b75044146105c15780634f6ccce7146105e157600080fd5b8063156a33bd116102d757806323b872dd116102b157806323b872dd146104bd578063254a4737146104dd57806328c2530b146104fd5780632ab4d0521461051057600080fd5b8063156a33bd1461047257806318160ddd14610488578063191655871461049d57600080fd5b806301ffc9a71461036c57806306fdde03146103a1578063081812fc146103c3578063083373e5146103fb578063095ea7b3146104155780631015805b1461043757600080fd5b36610367577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561037857600080fd5b5061038c610387366004612e07565b610ac2565b60405190151581526020015b60405180910390f35b3480156103ad57600080fd5b506103b6610aed565b6040516103989190612e7c565b3480156103cf57600080fd5b506103e36103de366004612e8f565b610b7f565b6040516001600160a01b039091168152602001610398565b34801561040757600080fd5b5060185461038c9060ff1681565b34801561042157600080fd5b50610435610430366004612ebd565b610c19565b005b34801561044357600080fd5b50610464610452366004612ee9565b601b6020526000908152604090205481565b604051908152602001610398565b34801561047e57600080fd5b5061046460155481565b34801561049457600080fd5b50600954610464565b3480156104a957600080fd5b506104356104b8366004612ee9565b610d2e565b3480156104c957600080fd5b506104356104d8366004612f06565b610e5f565b3480156104e957600080fd5b506104356104f8366004612f55565b610e90565b61043561050b366004613015565b610ed4565b34801561051c57600080fd5b5061046460145481565b34801561053257600080fd5b50610464610541366004612ebd565b611051565b34801561055257600080fd5b50600c54610464565b34801561056757600080fd5b5061046461057636600461306b565b6001600160a01b03918216600090815260126020908152604080832093909416825291909152205490565b3480156105ad57600080fd5b506104356105bc366004612f06565b6110e7565b3480156105cd57600080fd5b506104356105dc36600461306b565b611102565b3480156105ed57600080fd5b506104646105fc366004612e8f565b6112de565b34801561060d57600080fd5b506103b6611371565b34801561062257600080fd5b506103e3610631366004612e8f565b6113ff565b34801561064257600080fd5b5061046460165481565b34801561065857600080fd5b50610464610667366004612ee9565b611476565b34801561067857600080fd5b506104356114fd565b34801561068d57600080fd5b5061046461069c3660046130a4565b611533565b6104356106af3660046130eb565b611566565b3480156106c057600080fd5b506103e36106cf366004612e8f565b611758565b3480156106e057600080fd5b506000546001600160a01b03166103e3565b3480156106fe57600080fd5b506103b6611788565b34801561071357600080fd5b506103e361072236600461310e565b611797565b34801561073357600080fd5b50610464610742366004612ee9565b6001600160a01b03166000908152600f602052604090205490565b34801561076957600080fd5b50610464610778366004612ee9565b601a6020526000908152604090205481565b34801561079657600080fd5b5061038c6107a5366004612ee9565b60196020526000908152604090205460ff1681565b3480156107c657600080fd5b506104356107d536600461313f565b611816565b3480156107e657600080fd5b506107fa6107f536600461316d565b611825565b60408051938452602084019290925260ff1690820152606001610398565b34801561082457600080fd5b506104356108333660046131a2565b611899565b34801561084457600080fd5b50610435610853366004613217565b611935565b34801561086457600080fd5b5060185461038c90610100900460ff1681565b6104356108853660046130eb565b61196d565b34801561089657600080fd5b506104356108a5366004612f55565b611b62565b3480156108b657600080fd5b506103b6611b9f565b3480156108cb57600080fd5b506103b66108da366004612e8f565b611bac565b3480156108eb57600080fd5b506104356108fa366004612ee9565b611c60565b34801561090b57600080fd5b5061046461091a366004612ee9565b6001600160a01b03166000908152600e602052604090205490565b34801561094157600080fd5b50610435611cb4565b34801561095657600080fd5b50610464610965366004612ee9565b6001600160a01b031660009081526011602052604090205490565b34801561098c57600080fd5b5061046460175481565b3480156109a257600080fd5b506104356109b136600461316d565b611d21565b3480156109c257600080fd5b50600d54610464565b3480156109d757600080fd5b5061038c6109e636600461306b565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610a2057600080fd5b50610435610a2f36600461316d565b611d5e565b348015610a4057600080fd5b50610435610a4f366004612ee9565b611d9b565b348015610a6057600080fd5b50610464610a6f366004612e8f565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b60006001600160e01b0319821663780e9d6360e01b1480610ae75750610ae782611e33565b92915050565b606060018054610afc90613283565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2890613283565b8015610b755780601f10610b4a57610100808354040283529160200191610b75565b820191906000526020600020905b815481529060010190602001808311610b5857829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610bfd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610c24826113ff565b9050806001600160a01b0316836001600160a01b031603610c915760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610bf4565b336001600160a01b0382161480610cad5750610cad81336109e6565b610d1f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610bf4565b610d298383611e83565b505050565b6001600160a01b0381166000908152600e6020526040902054610d635760405162461bcd60e51b8152600401610bf4906132bd565b6000610d6e600d5490565b610d789047613319565b90506000610da58383610da0866001600160a01b03166000908152600f602052604090205490565b611ef1565b905080600003610dc75760405162461bcd60e51b8152600401610bf490613331565b6001600160a01b0383166000908152600f602052604081208054839290610def908490613319565b9250508190555080600d6000828254610e089190613319565b90915550610e1890508382611f39565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610e693382612052565b610e855760405162461bcd60e51b8152600401610bf49061337c565b610d29838383612149565b6000546001600160a01b03163314610eba5760405162461bcd60e51b8152600401610bf4906133cd565b601880549115156101000261ff0019909216919091179055565b6002600b5403610ef65760405162461bcd60e51b8152600401610bf490613402565b6002600b5560135460145411610f1e5760405162461bcd60e51b8152600401610bf490613439565b610f2e60608301604084016130eb565b60ff16601d54610f3e9190613463565b3414610f5c5760405162461bcd60e51b8152600401610bf490613482565b610f6682826122f0565b610fa65760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964205369676e617475726560781b6044820152606401610bf4565b601654610fb960608401604085016130eb565b336000908152601a6020526040902054610fd69160ff1690613319565b1115610ff45760405162461bcd60e51b8152600401610bf4906134ad565b61100460608301604084016130eb565b336000908152601a60205260408120805460ff939093169290919061102a908490613319565b90915550611048905061104360608401604085016130eb565b612344565b50506001600b55565b600061105c83611476565b82106110be5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610bf4565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b610d2983838360405180602001604052806000815250611935565b6001600160a01b0381166000908152600e60205260409020546111375760405162461bcd60e51b8152600401610bf4906132bd565b6001600160a01b0382166000908152601160205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015611194573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b891906134fe565b6111c29190613319565b905060006111fb8383610da087876001600160a01b03918216600090815260126020908152604080832093909416825291909152205490565b90508060000361121d5760405162461bcd60e51b8152600401610bf490613331565b6001600160a01b03808516600090815260126020908152604080832093871683529290529081208054839290611254908490613319565b90915550506001600160a01b03841660009081526011602052604081208054839290611281908490613319565b909155506112929050848483612385565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b60006112e960095490565b821061134c5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610bf4565b6009828154811061135f5761135f613517565b90600052602060002001549050919050565b601e805461137e90613283565b80601f01602080910402602001604051908101604052809291908181526020018280546113aa90613283565b80156113f75780601f106113cc576101008083540402835291602001916113f7565b820191906000526020600020905b8154815290600101906020018083116113da57829003601f168201915b505050505081565b6000818152600360205260408120546001600160a01b031680610ae75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610bf4565b60006001600160a01b0382166114e15760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610bf4565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b031633146115275760405162461bcd60e51b8152600401610bf4906133cd565b61153160006123d7565b565b6000828260405160200161154892919061352d565b60405160208183030381529060405280519060200120905092915050565b6002600b54036115885760405162461bcd60e51b8152600401610bf490613402565b6002600b5560175460ff821611156115e25760405162461bcd60e51b815260206004820152601c60248201527f4f6e6c792033204e46542773206d696e7420617420612074696d652e000000006044820152606401610bf4565b601854610100900460ff166116395760405162461bcd60e51b815260206004820152601f60248201527f5075626c6963206d696e74696e67206e6f742073746172746564207965742e006044820152606401610bf4565b8060ff1661164660135490565b6116509190613319565b60145410156116715760405162461bcd60e51b8152600401610bf490613439565b8060ff16601c546116829190613463565b34146116a05760405162461bcd60e51b8152600401610bf490613482565b601554336000908152601b60205260409020546116c19060ff841690613319565b111561171f5760405162461bcd60e51b815260206004820152602760248201527f4d696e74696e67206c696d6974207265616368656420666f722074686973206160448201526632323932b9b99760c91b6064820152608401610bf4565b336000908152601b60205260408120805460ff84169290611741908490613319565b90915550611750905081612344565b506001600b55565b60006010828154811061176d5761176d613517565b6000918252602090912001546001600160a01b031692915050565b606060028054610afc90613283565b6000806000806117a685611825565b6040805160008152602081018083528b905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa158015611801573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b611821338383612427565b5050565b6000806000835160411461187b5760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610bf4565b50505060208101516040820151606090920151909260009190911a90565b6000546001600160a01b031633146118c35760405162461bcd60e51b8152600401610bf4906133cd565b60005b81811015610d29576001601960008585858181106118e6576118e6613517565b90506020020160208101906118fb9190612ee9565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061192d81613564565b9150506118c6565b61193f3383612052565b61195b5760405162461bcd60e51b8152600401610bf49061337c565b611967848484846124f5565b50505050565b6002600b540361198f5760405162461bcd60e51b8152600401610bf490613402565b6002600b5560175460ff821611156119e95760405162461bcd60e51b815260206004820152601c60248201527f4f6e6c792033204e46542773206d696e7420617420612074696d652e000000006044820152606401610bf4565b60185460ff16611a3b5760405162461bcd60e51b815260206004820152601a60248201527f57686974656c697374206e6f742073746172746564207965742e0000000000006044820152606401610bf4565b3360009081526019602052604090205460ff16611a9a5760405162461bcd60e51b815260206004820152601b60248201527f41646472657373206973206e6f742077686974656c69737465642e00000000006044820152606401610bf4565b8060ff16611aa760135490565b611ab19190613319565b6014541015611ad25760405162461bcd60e51b8152600401610bf490613439565b8060ff16601d54611ae39190613463565b3414611b015760405162461bcd60e51b8152600401610bf490613482565b601654336000908152601a6020526040902054611b229060ff841690613319565b1115611b405760405162461bcd60e51b8152600401610bf4906134ad565b336000908152601a60205260408120805460ff84169290611741908490613319565b6000546001600160a01b03163314611b8c5760405162461bcd60e51b8152600401610bf4906133cd565b6018805460ff1916911515919091179055565b601f805461137e90613283565b6000818152600360205260409020546060906001600160a01b0316611c2b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610bf4565b601e601f611c3884612528565b604051602001611c4a93929190613616565b6040516020818303038152906040529050919050565b6000546001600160a01b03163314611c8a5760405162461bcd60e51b8152600401610bf4906133cd565b601880546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b6000546001600160a01b03163314611cde5760405162461bcd60e51b8152600401610bf4906133cd565b471561153157600080546040516001600160a01b03909116914780156108fc02929091818181858888f19350505050158015611d1e573d6000803e3d6000fd5b50565b6000546001600160a01b03163314611d4b5760405162461bcd60e51b8152600401610bf4906133cd565b805161182190601f906020840190612d58565b6000546001600160a01b03163314611d885760405162461bcd60e51b8152600401610bf4906133cd565b805161182190601e906020840190612d58565b6000546001600160a01b03163314611dc55760405162461bcd60e51b8152600401610bf4906133cd565b6001600160a01b038116611e2a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bf4565b611d1e816123d7565b60006001600160e01b031982166380ac58cd60e01b1480611e6457506001600160e01b03198216635b5e139f60e01b145b80610ae757506301ffc9a760e01b6001600160e01b0319831614610ae7565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611eb8826113ff565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600c546001600160a01b0384166000908152600e602052604081205490918391611f1b9086613463565b611f25919061367a565b611f2f919061368e565b90505b9392505050565b80471015611f895760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610bf4565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611fd6576040519150601f19603f3d011682016040523d82523d6000602084013e611fdb565b606091505b5050905080610d295760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610bf4565b6000818152600360205260408120546001600160a01b03166120cb5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610bf4565b60006120d6836113ff565b9050806001600160a01b0316846001600160a01b031614806121115750836001600160a01b031661210684610b7f565b6001600160a01b0316145b8061214157506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661215c826113ff565b6001600160a01b0316146121c05760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610bf4565b6001600160a01b0382166122225760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bf4565b61222d838383612629565b612238600082611e83565b6001600160a01b038316600090815260046020526040812080546001929061226190849061368e565b90915550506001600160a01b038216600090815260046020526040812080546001929061228f908490613319565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080612313610a6f6123068660200135612528565b61069c6020880188612ee9565b6018549091506201000090046001600160a01b03166123328285611797565b6001600160a01b031614949350505050565b6000805b8260ff168160ff161015610d2957612364601380546001019055565b601354915061237333836126e1565b8061237d816136a5565b915050612348565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610d299084906126fb565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b0316036124885760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bf4565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612500848484612149565b61250c848484846127cd565b6119675760405162461bcd60e51b8152600401610bf4906136c4565b60608160000361254f5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612579578061256381613564565b91506125729050600a8361367a565b9150612553565b60008167ffffffffffffffff81111561259457612594612f72565b6040519080825280601f01601f1916602001820160405280156125be576020820181803683370190505b5090505b8415612141576125d360018361368e565b91506125e0600a86613716565b6125eb906030613319565b60f81b81838151811061260057612600613517565b60200101906001600160f81b031916908160001a905350612622600a8661367a565b94506125c2565b6001600160a01b0383166126845761267f81600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b6126a7565b816001600160a01b0316836001600160a01b0316146126a7576126a783826128ce565b6001600160a01b0382166126be57610d298161296b565b826001600160a01b0316826001600160a01b031614610d2957610d298282612a1a565b611821828260405180602001604052806000815250612a5e565b6000612750826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612a919092919063ffffffff16565b805190915015610d29578080602001905181019061276e919061372a565b610d295760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610bf4565b60006001600160a01b0384163b156128c357604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612811903390899088908890600401613747565b6020604051808303816000875af192505050801561284c575060408051601f3d908101601f1916820190925261284991810190613784565b60015b6128a9573d80801561287a576040519150601f19603f3d011682016040523d82523d6000602084013e61287f565b606091505b5080516000036128a15760405162461bcd60e51b8152600401610bf4906136c4565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612141565b506001949350505050565b600060016128db84611476565b6128e5919061368e565b600083815260086020526040902054909150808214612938576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b60095460009061297d9060019061368e565b6000838152600a6020526040812054600980549394509092849081106129a5576129a5613517565b9060005260206000200154905080600983815481106129c6576129c6613517565b6000918252602080832090910192909255828152600a909152604080822084905585825281205560098054806129fe576129fe6137a1565b6001900381819060005260206000200160009055905550505050565b6000612a2583611476565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b612a688383612aa0565b612a7560008484846127cd565b610d295760405162461bcd60e51b8152600401610bf4906136c4565b6060611f2f8484600085612bee565b6001600160a01b038216612af65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bf4565b6000818152600360205260409020546001600160a01b031615612b5b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bf4565b612b6760008383612629565b6001600160a01b0382166000908152600460205260408120805460019290612b90908490613319565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606082471015612c4f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610bf4565b6001600160a01b0385163b612ca65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610bf4565b600080866001600160a01b03168587604051612cc291906137b7565b60006040518083038185875af1925050503d8060008114612cff576040519150601f19603f3d011682016040523d82523d6000602084013e612d04565b606091505b5091509150612d14828286612d1f565b979650505050505050565b60608315612d2e575081611f32565b825115612d3e5782518084602001fd5b8160405162461bcd60e51b8152600401610bf49190612e7c565b828054612d6490613283565b90600052602060002090601f016020900481019282612d865760008555612dcc565b82601f10612d9f57805160ff1916838001178555612dcc565b82800160010185558215612dcc579182015b82811115612dcc578251825591602001919060010190612db1565b50612dd8929150612ddc565b5090565b5b80821115612dd85760008155600101612ddd565b6001600160e01b031981168114611d1e57600080fd5b600060208284031215612e1957600080fd5b8135611f3281612df1565b60005b83811015612e3f578181015183820152602001612e27565b838111156119675750506000910152565b60008151808452612e68816020860160208601612e24565b601f01601f19169290920160200192915050565b602081526000611f326020830184612e50565b600060208284031215612ea157600080fd5b5035919050565b6001600160a01b0381168114611d1e57600080fd5b60008060408385031215612ed057600080fd5b8235612edb81612ea8565b946020939093013593505050565b600060208284031215612efb57600080fd5b8135611f3281612ea8565b600080600060608486031215612f1b57600080fd5b8335612f2681612ea8565b92506020840135612f3681612ea8565b929592945050506040919091013590565b8015158114611d1e57600080fd5b600060208284031215612f6757600080fd5b8135611f3281612f47565b634e487b7160e01b600052604160045260246000fd5b600082601f830112612f9957600080fd5b813567ffffffffffffffff80821115612fb457612fb4612f72565b604051601f8301601f19908116603f01168101908282118183101715612fdc57612fdc612f72565b81604052838152866020858801011115612ff557600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080828403608081121561302957600080fd5b606081121561303757600080fd5b50829150606083013567ffffffffffffffff81111561305557600080fd5b61306185828601612f88565b9150509250929050565b6000806040838503121561307e57600080fd5b823561308981612ea8565b9150602083013561309981612ea8565b809150509250929050565b600080604083850312156130b757600080fd5b823567ffffffffffffffff8111156130ce57600080fd5b6130da85828601612f88565b925050602083013561309981612ea8565b6000602082840312156130fd57600080fd5b813560ff81168114611f3257600080fd5b6000806040838503121561312157600080fd5b82359150602083013567ffffffffffffffff81111561305557600080fd5b6000806040838503121561315257600080fd5b823561315d81612ea8565b9150602083013561309981612f47565b60006020828403121561317f57600080fd5b813567ffffffffffffffff81111561319657600080fd5b61214184828501612f88565b600080602083850312156131b557600080fd5b823567ffffffffffffffff808211156131cd57600080fd5b818501915085601f8301126131e157600080fd5b8135818111156131f057600080fd5b8660208260051b850101111561320557600080fd5b60209290920196919550909350505050565b6000806000806080858703121561322d57600080fd5b843561323881612ea8565b9350602085013561324881612ea8565b925060408501359150606085013567ffffffffffffffff81111561326b57600080fd5b61327787828801612f88565b91505092959194509250565b600181811c9082168061329757607f821691505b6020821081036132b757634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561332c5761332c613303565b500190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526010908201526f135a5b9d1a5b99c8119a5b9a5cda195960821b604082015260600190565b600081600019048311821515161561347d5761347d613303565b500290565b60208082526011908201527024b731b7b93932b1ba1020b6b7bab73a1760791b604082015260600190565b60208082526031908201527f57686974656c697374206d696e74696e67206c696d69742072656163686564206040820152703337b9103a3434b99030b2323932b9b99760791b606082015260800190565b60006020828403121561351057600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b6000835161353f818460208801612e24565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b60006001820161357657613576613303565b5060010190565b8054600090600181811c908083168061359757607f831692505b602080841082036135b857634e487b7160e01b600052602260045260246000fd5b8180156135cc57600181146135dd5761360a565b60ff1986168952848901965061360a565b60008881526020902060005b868110156136025781548b8201529085019083016135e9565b505084890196505b50505050505092915050565b600061362b613625838761357d565b8561357d565b602f60f81b81528351613645816001840160208801612e24565b64173539b7b760d91b6001929091019182015260060195945050505050565b634e487b7160e01b600052601260045260246000fd5b60008261368957613689613664565b500490565b6000828210156136a0576136a0613303565b500390565b600060ff821660ff81036136bb576136bb613303565b60010192915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008261372557613725613664565b500690565b60006020828403121561373c57600080fd5b8151611f3281612f47565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061377a90830184612e50565b9695505050505050565b60006020828403121561379657600080fd5b8151611f3281612df1565b634e487b7160e01b600052603160045260246000fd5b600082516137c9818460208701612e24565b919091019291505056fea264697066735822122027c86d73e2ddb8aae694cce184532ceaedfa4c6b080c7a980a6d91f81ae419d764736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000100000000000000000000000000297c19f6d75494f09182358fe479a57f40b4a4f00000000000000000000000000000000000000000000000000000000000000004000000000000000000000000cdc43cd780362ece3719e9eafb03c9e1463e246a00000000000000000000000001b5ae38e809a3da6eba4dcdcf3f1e249e47590400000000000000000000000093081bc0d30e19968233d003165dd157366f6f64000000000000000000000000b89bf0b8e7fe14dbb7606d6196644c5665bedde400000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000054000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004
-----Decoded View---------------
Arg [0] : _payees (address[]): 0xCDC43Cd780362ECE3719E9eafb03c9E1463E246a,0x01B5aE38E809A3dA6ebA4dCDcF3f1E249E475904,0x93081Bc0d30E19968233D003165DD157366f6F64,0xb89BF0B8e7FE14DBB7606D6196644c5665beddE4
Arg [1] : _shares (uint256[]): 84,10,2,4
Arg [2] : _verificationAdmin (address): 0x297c19f6D75494F09182358FE479a57F40B4A4F0
-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 000000000000000000000000297c19f6d75494f09182358fe479a57f40b4a4f0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [4] : 000000000000000000000000cdc43cd780362ece3719e9eafb03c9e1463e246a
Arg [5] : 00000000000000000000000001b5ae38e809a3da6eba4dcdcf3f1e249e475904
Arg [6] : 00000000000000000000000093081bc0d30e19968233d003165dd157366f6f64
Arg [7] : 000000000000000000000000b89bf0b8e7fe14dbb7606d6196644c5665bedde4
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000054
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000004
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.