Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 28 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Master Sig C... | 16977436 | 631 days ago | IN | 0 ETH | 0.00255603 | ||||
Props Mint | 16977343 | 631 days ago | IN | 0 ETH | 0.00208642 | ||||
Props Mint | 16970864 | 632 days ago | IN | 0 ETH | 0.00311271 | ||||
Props Mint | 16963401 | 633 days ago | IN | 0 ETH | 0.00069301 | ||||
Props Mint | 16960796 | 633 days ago | IN | 0 ETH | 0.00136964 | ||||
Props Mint | 16956639 | 634 days ago | IN | 0 ETH | 0.00121304 | ||||
Props Mint | 16956590 | 634 days ago | IN | 0 ETH | 0.00156297 | ||||
Props Mint | 16950342 | 634 days ago | IN | 0 ETH | 0.00147592 | ||||
Props Mint | 16950275 | 634 days ago | IN | 0 ETH | 0.00141204 | ||||
Props Mint | 16950091 | 634 days ago | IN | 0 ETH | 0.0017482 | ||||
Props Mint | 16949886 | 634 days ago | IN | 0 ETH | 0.00184352 | ||||
Props Mint | 16949827 | 634 days ago | IN | 0 ETH | 0.0021176 | ||||
Props Mint | 16949730 | 634 days ago | IN | 0 ETH | 0.00204588 | ||||
Props Mint | 16949273 | 635 days ago | IN | 0 ETH | 0.00283114 | ||||
Props Mint | 16949263 | 635 days ago | IN | 0 ETH | 0.00199319 | ||||
Props Mint | 16949074 | 635 days ago | IN | 0 ETH | 0.00223067 | ||||
Props Mint | 16948849 | 635 days ago | IN | 0 ETH | 0.00218008 | ||||
Props Mint | 16948722 | 635 days ago | IN | 0 ETH | 0.00191179 | ||||
Props Mint | 16948626 | 635 days ago | IN | 0 ETH | 0.00332043 | ||||
Props Mint | 16948621 | 635 days ago | IN | 0 ETH | 0.00282003 | ||||
Props Mint | 16948543 | 635 days ago | IN | 0 ETH | 0.00275247 | ||||
Props Mint | 16948444 | 635 days ago | IN | 0 ETH | 0.0029563 | ||||
Props Mint | 16948180 | 635 days ago | IN | 0 ETH | 0.00234912 | ||||
Set Base Suffix ... | 16948141 | 635 days ago | IN | 0 ETH | 0.00823896 | ||||
Set Default Roya... | 16947876 | 635 days ago | IN | 0 ETH | 0.0016732 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
PROPS
Compiler Version
v0.8.18+commit.87f61d96
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.17; /** * * * PPPPPPPPPPPPPPPPP RRRRRRRRRRRRRRRRR OOOOOOOOO PPPPPPPPPPPPPPPPP SSSSSSSSSSSSSSS * P::::::::::::::::P R::::::::::::::::R OO:::::::::OO P::::::::::::::::P SS:::::::::::::::S * P::::::PPPPPP:::::P R::::::RRRRRR:::::R OO:::::::::::::OO P::::::PPPPPP:::::P S:::::SSSSSS::::::S * PP:::::P P:::::PRR:::::R R:::::RO:::::::OOO:::::::OPP:::::P P:::::PS:::::S SSSSSSS * P::::P P:::::P R::::R R:::::RO::::::O O::::::O P::::P P:::::PS:::::S * P::::P P:::::P R::::R R:::::RO:::::O O:::::O P::::P P:::::PS:::::S * P::::PPPPPP:::::P R::::RRRRRR:::::R O:::::O O:::::O P::::PPPPPP:::::P S::::SSSS * P:::::::::::::PP R:::::::::::::RR O:::::O O:::::O P:::::::::::::PP SS::::::SSSSS * P::::PPPPPPPPP R::::RRRRRR:::::R O:::::O O:::::O P::::PPPPPPPPP SSS::::::::SS * P::::P R::::R R:::::RO:::::O O:::::O P::::P SSSSSS::::S * P::::P R::::R R:::::RO:::::O O:::::O P::::P S:::::S * P::::P R::::R R:::::RO::::::O O::::::O P::::P S:::::S * PP::::::PP RR:::::R R:::::RO:::::::OOO:::::::OPP::::::PP SSSSSSS S:::::S * P::::::::P R::::::R R:::::R OO:::::::::::::OO P::::::::P S::::::SSSSSS:::::S * P::::::::P R::::::R R:::::R OO:::::::::OO P::::::::P S:::::::::::::::SS * PPPPPPPPPP RRRRRRRR RRRRRRR OOOOOOOOO PPPPPPPPPP SSSSSSSSSSSSSSS * * DEV: @ghooost0x2a ********************************** * @author: @ghooost0x2a * @founders: @ghooost0x2a / @youareinmymovie ********************************** * ERC721B - Ultra Low Gas ***************************************************************** * ERC721B2FA is based on ERC721B low gas contract by @squuebo_nft ***************************************************************** * .-----. * .' - - '. * / .-. .-. \ * | | | | | | * \ \o/ \o/ / * _/ ^ \_ * | \ '---' / | * / /`--. .--`\ \ * / /'---` `---'\ \ * '.__. .__.' * `| |` * | \ * \ '--. * '. `\ * `'---. | * ,__) / * `..' */ import "./ERC721B2FAEnumLitePausable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract PROPS is ERC721B2FAEnumLitePausable { using Address for address; using Strings for uint256; event Withdrawn(address indexed payee, uint256 weiAmount); uint256 public MAX_SUPPLY = 2 ** 256 - 1; uint256 public mint_price = 0; bool public MINT_OPEN = false; string internal baseURI = ""; string internal altBaseURI = ""; string internal uriSuffix = ""; string internal contract_URI = ""; address public payment_recipient = 0xA94F799A34887582987eC8C050f080e252B70A21; address internal MASTER_SIGNER = address(0); uint256 public MASTER_SIG_VALIDITY = 60; mapping(uint256 => bool) public use_static_metadata; struct Master_Approval { address approved_address; uint256 master_sig_timestamp; } struct EIP712Domain { string name; string version; uint256 chainId; address verifyingContract; } bytes32 constant EIP712DOMAIN_TYPEHASH = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); bytes32 constant MA_TYPEHASH = keccak256( "Master_Approval(address approved_address,uint256 master_sig_timestamp)" ); bytes32 DOMAIN_SEPARATOR; constructor() ERC721B2FAEnumLitePausable("PROPS", "PROPS", 1) { DOMAIN_SEPARATOR = hash( EIP712Domain({ name: "PROPS", version: "1", //chainId: block.chainId, chainId: 1, // verifyingContract: this verifyingContract: address(this) }) ); } fallback() external payable {} receive() external payable {} function hash( EIP712Domain memory eip712Domain ) internal pure returns (bytes32) { return keccak256( abi.encode( EIP712DOMAIN_TYPEHASH, keccak256(bytes(eip712Domain.name)), keccak256(bytes(eip712Domain.version)), eip712Domain.chainId, eip712Domain.verifyingContract ) ); } function hash(Master_Approval memory m_a) internal pure returns (bytes32) { return keccak256( abi.encode( MA_TYPEHASH, m_a.approved_address, m_a.master_sig_timestamp ) ); } function get_master_signer() external view onlyDelegates returns (address master_signer) { return MASTER_SIGNER; } function get_signer( Master_Approval calldata m_a, bytes memory _master_signature ) public view returns (address) { bytes32 digest = keccak256( abi.encodePacked("\x19\x01", DOMAIN_SEPARATOR, hash(m_a)) ); (bytes32 r, bytes32 s, uint8 v) = split_signature(_master_signature); return ecrecover(digest, v, r, s); } function split_signature( 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) } function tokenURI( uint256 tokenId ) external view override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); if (use_static_metadata[tokenId]) { return bytes(baseURI).length > 0 ? string( abi.encodePacked( altBaseURI, tokenId.toString(), uriSuffix ) ) : ""; } else { return bytes(baseURI).length > 0 ? string( abi.encodePacked(baseURI, tokenId.toString(), uriSuffix) ) : ""; } } function setBaseSuffixURI( string calldata newBaseURI, string calldata newAltBaseURI, string calldata newURISuffix, string calldata newContractURI ) external onlyDelegates { baseURI = newBaseURI; uriSuffix = newURISuffix; altBaseURI = newAltBaseURI; contract_URI = newContractURI; } function contractURI() public view returns (string memory) { return contract_URI; } function toggleMint(bool mint_open) external onlyDelegates { MINT_OPEN = mint_open; } function resetStaticMetadataTokens( uint256[] calldata _new_static_tokens ) external onlyDelegates { for (uint256 i = 0; i < _new_static_tokens.length; i++) { use_static_metadata[i] = false; } } function setStaticMetadataTokens( uint256[] calldata _new_static_tokens ) external onlyDelegates { for (uint256 i = 0; i < _new_static_tokens.length; i++) { use_static_metadata[i] = true; } } function setMasterSigConf( address _master_signer, uint256 _master_sig_validity ) external onlyDelegates { MASTER_SIGNER = _master_signer; MASTER_SIG_VALIDITY = _master_sig_validity; } function setPaymentRecipient(address addy) external onlyDelegates { payment_recipient = addy; } function setReducedMaxSupply( uint256 new_max_supply ) external onlyDelegates { require(new_max_supply < MAX_SUPPLY, "Can only set a lower size."); require( new_max_supply >= totalSupply(), "New supply lower than current totalSupply" ); MAX_SUPPLY = new_max_supply; } function setMintPrice(uint256 new_mint_price) external onlyDelegates { mint_price = new_mint_price; } // Mint fns function ghostyMint( uint256 quantity, address[] memory recipients ) external onlyDelegates { if (recipients.length == 1) { for (uint256 i = 0; i < quantity; i++) { _minty(1, recipients[0]); } } else { require( quantity == recipients.length, "Number of recipients doesn't match quantity." ); for (uint256 i = 0; i < recipients.length; i++) { _minty(1, recipients[i]); } } } // Mint function propsMint( Master_Approval calldata m_a, bytes memory _master_sig ) external payable { require(MINT_OPEN || _isDelegate(_msgSender()), "Mint not open yet!"); if (mint_price > 0) { require(msg.value == mint_price, "Invalid amount of ETH"); } if (MASTER_SIGNER != address(0)) { require( get_signer(m_a, _master_sig) == MASTER_SIGNER, "Invalid master sig!" ); require( m_a.approved_address == _msgSender(), "Not approved minter!" ); require( m_a.master_sig_timestamp + MASTER_SIG_VALIDITY > block.timestamp, "Master sig has expired!" ); } _minty(1, _msgSender()); } function _minty(uint256 quantity, address addy) internal { require(quantity > 0, "Can't mint 0 tokens!"); require(quantity + totalSupply() <= MAX_SUPPLY, "Max supply reached!"); for (uint256 i = 0; i < quantity; i++) { _safeMint(addy, next()); } } function withdraw() external onlyDelegates { require( payment_recipient != address(0), "Don't send ETH to null address" ); uint256 contract_balance = address(this).balance; address payable w_addy = payable(payment_recipient); (bool success, ) = w_addy.call{value: (contract_balance)}(""); require(success, "Withdrawal failed!"); emit Withdrawn(w_addy, contract_balance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.8.14; /*** ************************************************************************* * ERC721B - Ultra Low Gas * * @author: @ghooost0x2a * ************************************************************************* * ERC721B2FA is a modified version of EnumerableLite, by @squuebo_nft * ************************************************************************* * ::::::: :::::::: ::: * * :+: :+: :+: :+: :+: :+: :+: :+: * * +:+ :+:+ +:+ +:+ +:+ +:+ +:+ * * +#+ + +:+ +#++:+ +#+ +#++:++#++: * * +#+# +#+ +#+ +#+ +#+ +#+ +#+ * * #+# #+# #+# #+# #+# #+# #+# * * ####### ########## ### ### * *************************************************************************/ import "./ERC721B.sol"; import "./IBatch.sol"; import "./UpdatableOperatorFilterer.sol"; import "./RevokableDefaultOperatorFilterer.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; abstract contract ERC721B2FAEnumLitePausable is ERC721B, RevokableDefaultOperatorFilterer, IBatch, IERC721Enumerable { constructor( string memory _name, string memory _symbol, uint256 _offset ) ERC721B(_name, _symbol, _offset) {} function setDefaultRoyalty( address receiver, uint96 feeNumerator ) external onlyDelegates { _setDefaultRoyalty(receiver, feeNumerator); } function burn(uint256 tokenId) public virtual { require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved" ); _burn(tokenId); } function deleteDefaultRoyalty() external onlyDelegates { _deleteDefaultRoyalty(); } function setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) external onlyDelegates { _setTokenRoyalty(tokenId, receiver, feeNumerator); } function resetTokenRoyalty(uint256 tokenId) external onlyDelegates { _resetTokenRoyalty(tokenId); } function isOwnerOf( address account, uint256[] calldata tokenIds ) external view override returns (bool) { for (uint256 i; i < tokenIds.length; ++i) { if (_owners[tokenIds[i]] != account) return false; } return true; } function owner() public view virtual override(Ownable, UpdatableOperatorFilterer) returns (address) { return Ownable.owner(); } function supportsInterface( bytes4 interfaceId ) public view virtual override(IERC165, ERC721B) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } function tokenOfOwnerByIndex( address owner_addy, uint256 index ) public view override returns (uint256 tokenId) { uint256 count; for (uint256 i; i < _owners.length; ++i) { if (owner_addy == _owners[i]) { if (count == index) return i; else ++count; } } require(false, "ERC721Enumerable: owner index out of bounds"); } function tokenByIndex( uint256 index ) external view virtual override returns (uint256) { require( index < totalSupply(), "ERC721Enumerable: global index out of bounds" ); return index; } function totalSupply() public view override(ERC721B, IERC721Enumerable) returns (uint256) { return _owners.length - _offset; } function transferBatch( address from, address to, uint256[] calldata tokenIds, bytes calldata data ) external override { for (uint256 i; i < tokenIds.length; ++i) { safeTransferFrom(from, to, tokenIds[i], data); } } function walletOfOwner( address account ) external view override returns (uint256[] memory) { uint256 quantity = balanceOf(account); uint256[] memory wallet = new uint256[](quantity); for (uint256 i; i < quantity; ++i) { wallet[i] = tokenOfOwnerByIndex(account, i); } return wallet; } }
// 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 pragma solidity ^0.8.13; import "./RevokableOperatorFilterer.sol"; /** * @title RevokableDefaultOperatorFilterer * @notice Inherits from RevokableOperatorFilterer and automatically subscribes to the default OpenSea subscription. * Note that OpenSea will disable creator fee enforcement if filtered operators begin fulfilling orders * on-chain, eg, if the registry is revoked or bypassed. */ abstract contract RevokableDefaultOperatorFilterer is RevokableOperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() RevokableOperatorFilterer( 0x000000000000AAeB6D7670E522A718067333cd4E, DEFAULT_SUBSCRIPTION, true ) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "./IOperatorFilterRegistry.sol"; /** * @title UpdatableOperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. This contract allows the Owner to update the * OperatorFilterRegistry address via updateOperatorFilterRegistryAddress, including to the zero address, * which will bypass registry checks. * Note that OpenSea will still disable creator fee enforcement if filtered operators begin fulfilling orders * on-chain, eg, if the registry is revoked or bypassed. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract UpdatableOperatorFilterer { error OperatorNotAllowed(address operator); error OnlyOwner(); IOperatorFilterRegistry public operatorFilterRegistry; constructor( address _registry, address subscriptionOrRegistrantToCopy, bool subscribe ) { IOperatorFilterRegistry registry = IOperatorFilterRegistry(_registry); operatorFilterRegistry = registry; // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(registry).code.length > 0) { if (subscribe) { registry.registerAndSubscribe( address(this), subscriptionOrRegistrantToCopy ); } else { if (subscriptionOrRegistrantToCopy != address(0)) { registry.registerAndCopyEntries( address(this), subscriptionOrRegistrantToCopy ); } else { registry.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @notice Update the address that the contract will make OperatorFilter checks against. When set to the zero * address, checks will be bypassed. OnlyOwner. */ function updateOperatorFilterRegistryAddress(address newRegistry) public virtual { if (msg.sender != owner()) { revert OnlyOwner(); } operatorFilterRegistry = IOperatorFilterRegistry(newRegistry); } /** * @dev assume the contract has an owner, but leave specific Ownable implementation up to inheriting contract */ function owner() public view virtual returns (address); function _checkFilterOperator(address operator) internal view virtual { IOperatorFilterRegistry registry = operatorFilterRegistry; // Check registry code length to facilitate testing in environments without a deployed registry. if ( address(registry) != address(0) && address(registry).code.length > 0 ) { if (!registry.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
// SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.8.13; interface IBatch { function isOwnerOf(address account, uint256[] calldata tokenIds) external view returns (bool); function transferBatch( address from, address to, uint256[] calldata tokenIds, bytes calldata data ) external; function walletOfOwner(address account) external view returns (uint256[] memory); }
// SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.8.15; /**************************************** * @author: @ghooost0x2a * * @team: GoldenX * **************************************** * Blimpie-ERC721 provides low-gas * * mints + transfers * ****************************************/ //INTERFACES import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; //CONTRACTS import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "./Delegated.sol"; abstract contract ERC721B is Context, ERC165, ERC2981, IERC721, IERC721Metadata, Delegated { using Address for address; string private _name; string private _symbol; uint256 internal _offset; address[] internal _owners; mapping(uint256 => address) private _tokenApprovals; mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_, uint256 offset) { _name = name_; _symbol = symbol_; _offset = offset; for (uint256 i; i < _offset; ++i) { _owners.push(address(0)); } } //public function balanceOf( address owner ) public view virtual override returns (uint256) { require( owner != address(0), "ERC721: balance query for the zero address" ); uint256 count; for (uint256 i; i < _owners.length; ++i) { if (owner == _owners[i]) ++count; } return count; } function name() external view virtual override returns (string memory) { return _name; } function next() public view returns (uint256) { return _owners.length; } function ownerOf( uint256 tokenId ) public view virtual override returns (address) { address owner = _owners[tokenId]; require( owner != address(0), "ERC721: owner query for nonexistent token" ); return owner; } function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC165, IERC165, ERC2981) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } function symbol() external view virtual override returns (string memory) { return _symbol; } function totalSupply() public view virtual returns (uint256) { return _owners.length - _offset; } function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } function getApproved( uint256 tokenId ) public view virtual override returns (address) { require( _exists(tokenId), "ERC721: approved query for nonexistent token" ); return _tokenApprovals[tokenId]; } function isApprovedForAll( address owner, address operator ) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } function setApprovalForAll( address operator, bool approved ) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved" ); _transfer(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) external virtual override { safeTransferFrom(from, to, tokenId, ""); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved" ); _safeTransfer(from, to, tokenId, _data); } //internal function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } function _exists(uint256 tokenId) internal view virtual returns (bool) { return tokenId < _owners.length && _owners[tokenId] != address(0); } function _isApprovedOrOwner( address spender, uint256 tokenId ) internal view virtual returns (bool) { require( _exists(tokenId), "ERC721: operator query for nonexistent token" ); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _owners.push(to); emit Transfer(address(0), to, tokenId); } function _burn(uint256 tokenId) internal virtual { address owner = ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _owners[tokenId] = address(0); _resetTokenRoyalty(tokenId); emit Transfer(owner, address(0), tokenId); } function _transfer( address from, address to, uint256 tokenId ) internal virtual { require( ownerOf(tokenId) == from, "ERC721: transfer of token that is not own" ); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _owners[tokenId] = to; emit Transfer(from, to, tokenId); } function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ownerOf(tokenId), to, tokenId); } function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received( _msgSender(), from, tokenId, _data ) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert( "ERC721: transfer to non ERC721Receiver implementer" ); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "./UpdatableOperatorFilterer.sol"; import "./IOperatorFilterRegistry.sol"; /** * @title RevokableOperatorFilterer * @notice This contract is meant to allow contracts to permanently skip OperatorFilterRegistry checks if desired. The * Registry itself has an "unregister" function, but if the contract is ownable, the owner can re-register at * any point. As implemented, this abstract contract allows the contract owner to permanently skip the * OperatorFilterRegistry checks by calling revokeOperatorFilterRegistry. Once done, the registry * address cannot be further updated. * Note that OpenSea will still disable creator fee enforcement if filtered operators begin fulfilling orders * on-chain, eg, if the registry is revoked or bypassed. */ abstract contract RevokableOperatorFilterer is UpdatableOperatorFilterer { error RegistryHasBeenRevoked(); error InitialRegistryAddressCannotBeZeroAddress(); bool public isOperatorFilterRegistryRevoked; constructor( address _registry, address subscriptionOrRegistrantToCopy, bool subscribe ) UpdatableOperatorFilterer( _registry, subscriptionOrRegistrantToCopy, subscribe ) { // don't allow creating a contract with a permanently revoked registry if (_registry == address(0)) { revert InitialRegistryAddressCannotBeZeroAddress(); } } function _checkFilterOperator(address operator) internal view virtual override { if (address(operatorFilterRegistry) != address(0)) { super._checkFilterOperator(operator); } } /** * @notice Update the address that the contract will make OperatorFilter checks against. When set to the zero * address, checks will be permanently bypassed, and the address cannot be updated again. OnlyOwner. */ function updateOperatorFilterRegistryAddress(address newRegistry) public override { if (msg.sender != owner()) { revert OnlyOwner(); } // if registry has been revoked, do not allow further updates if (isOperatorFilterRegistryRevoked) { revert RegistryHasBeenRevoked(); } operatorFilterRegistry = IOperatorFilterRegistry(newRegistry); } /** * @notice Revoke the OperatorFilterRegistry address, permanently bypassing checks. OnlyOwner. */ function revokeOperatorFilterRegistry() public { if (msg.sender != owner()) { revert OnlyOwner(); } // if registry has been revoked, do not allow further updates if (isOperatorFilterRegistryRevoked) { revert RegistryHasBeenRevoked(); } // set to zero address to bypass checks operatorFilterRegistry = IOperatorFilterRegistry(address(0)); isOperatorFilterRegistryRevoked = true; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; contract Delegated is Ownable { mapping(address => bool) internal _delegates; modifier onlyDelegates() { require(_delegates[msg.sender], "Invalid delegate"); _; } constructor() Ownable() { setDelegate(owner(), true); } //onlyOwner function isDelegate(address addr) external view onlyOwner returns (bool) { return _delegates[addr]; } function _isDelegate(address addr) internal view returns (bool) { return _delegates[addr]; } function setDelegate(address addr, bool isDelegate_) public onlyOwner { _delegates[addr] = isDelegate_; } function transferOwnership(address newOwner) public virtual override onlyOwner { _delegates[newOwner] = true; super.transferOwnership(newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InitialRegistryAddressCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"OnlyOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"RegistryHasBeenRevoked","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"MASTER_SIG_VALIDITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_OPEN","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"get_master_signer","outputs":[{"internalType":"address","name":"master_signer","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"approved_address","type":"address"},{"internalType":"uint256","name":"master_sig_timestamp","type":"uint256"}],"internalType":"struct PROPS.Master_Approval","name":"m_a","type":"tuple"},{"internalType":"bytes","name":"_master_signature","type":"bytes"}],"name":"get_signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address[]","name":"recipients","type":"address[]"}],"name":"ghostyMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isDelegate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOperatorFilterRegistryRevoked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"isOwnerOf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint_price","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":"next","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilterRegistry","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"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":[],"name":"payment_recipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"approved_address","type":"address"},{"internalType":"uint256","name":"master_sig_timestamp","type":"uint256"}],"internalType":"struct PROPS.Master_Approval","name":"m_a","type":"tuple"},{"internalType":"bytes","name":"_master_sig","type":"bytes"}],"name":"propsMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_new_static_tokens","type":"uint256[]"}],"name":"resetStaticMetadataTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"resetTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revokeOperatorFilterRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"},{"internalType":"string","name":"newAltBaseURI","type":"string"},{"internalType":"string","name":"newURISuffix","type":"string"},{"internalType":"string","name":"newContractURI","type":"string"}],"name":"setBaseSuffixURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"isDelegate_","type":"bool"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_master_signer","type":"address"},{"internalType":"uint256","name":"_master_sig_validity","type":"uint256"}],"name":"setMasterSigConf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"new_mint_price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addy","type":"address"}],"name":"setPaymentRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"new_max_supply","type":"uint256"}],"name":"setReducedMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_new_static_tokens","type":"uint256[]"}],"name":"setStaticMetadataTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"split_signature","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":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"mint_open","type":"bool"}],"name":"toggleMint","outputs":[],"stateMutability":"nonpayable","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_addy","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRegistry","type":"address"}],"name":"updateOperatorFilterRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"use_static_metadata","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
600019600b556000600c819055600d805460ff1916905560a06040526080908152600e906200002f90826200063c565b50604080516020810190915260008152600f906200004e90826200063c565b506040805160208101909152600081526010906200006d90826200063c565b506040805160208101909152600081526011906200008c90826200063c565b50601280546001600160a01b031990811673a94f799a34887582987ec8c050f080e252b70a2117909155601380549091169055603c601455348015620000d157600080fd5b506040518060400160405280600581526020016450524f505360d81b8152506040518060400160405280600581526020016450524f505360d81b81525060016daaeb6d7670e522a718067333cd4e733cc6cdda760b79bafa08df41ecfa224f810dceb660018282828888886200015662000150620003db60201b60201c565b620003df565b6200016c6200016462000431565b60016200044d565b60046200017a84826200063c565b5060056200018983826200063c565b50600681905560005b600654811015620001f057600780546001810182556000919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880180546001600160a01b0319169055620001e88162000708565b905062000192565b5050600a80546001600160a01b0319166001600160a01b0387169081179091558592503b1590506200032e5781156200028d57604051633e9f1edf60e11b81523060048201526001600160a01b038481166024830152821690637d3e3dbe906044015b600060405180830381600087803b1580156200026e57600080fd5b505af115801562000283573d6000803e3d6000fd5b505050506200032e565b6001600160a01b03831615620002d25760405163a0af290360e01b81523060048201526001600160a01b03848116602483015282169063a0af29039060440162000253565b604051632210724360e11b81523060048201526001600160a01b03821690634420e48690602401600060405180830381600087803b1580156200031457600080fd5b505af115801562000329573d6000803e3d6000fd5b505050505b5050506001600160a01b03841690506200035b5760405163c49d17ad60e01b815260040160405180910390fd5b505050505050620003d260405180608001604052806040518060400160405280600581526020016450524f505360d81b8152508152602001604051806040016040528060018152602001603160f81b815250815260200160018152602001306001600160a01b03168152506200048260201b60201c565b60165562000730565b3390565b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000620004486200052060201b620020a01760201c565b905090565b620004576200052f565b6001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f82600001518051906020012083602001518051906020012084604001518560600151604051602001620005039594939291909485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b604051602081830303815290604052805190602001209050919050565b6002546001600160a01b031690565b336200053a62000431565b6001600160a01b031614620005955760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620005c257607f821691505b602082108103620005e357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200063757600081815260208120601f850160051c81016020861015620006125750805b601f850160051c820191505b8181101562000633578281556001016200061e565b5050505b505050565b81516001600160401b0381111562000658576200065862000597565b6200067081620006698454620005ad565b84620005e9565b602080601f831160018114620006a857600084156200068f5750858301515b600019600386901b1c1916600185901b17855562000633565b600085815260208120601f198616915b82811015620006d957888601518255948401946001909101908401620006b8565b5085821015620006f85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000600182016200072957634e487b7160e01b600052601160045260246000fd5b5060010190565b6138d280620007406000396000f3fe60806040526004361061033f5760003560e01c80635944c753116101ae578063b88d4fde116100eb578063df8f39b31161008f578063e985e9c51161006c578063e985e9c5146109c0578063ecba222a14610a09578063f2fde38b14610a2a578063f4a0a52814610a4a57005b8063df8f39b314610975578063e8a3d48514610995578063e8d7e478146109aa57005b8063c89a554f116100c8578063c89a554f146108d7578063d1a8e768146108f7578063d5d32a3614610917578063d9c2820f1461093757005b8063b88d4fde14610877578063b8d1e53214610897578063c87b56dd146108b757005b80638da5cb5b11610152578063aa1b103f1161012f578063aa1b103f14610802578063b0ccc31e14610817578063b534a5c414610837578063b7c34a9c1461085757005b80638da5cb5b146107b857806395d89b41146107cd578063a22cb465146107e257005b806370a082311161018b57806370a0823114610743578063715018a6146107635780638a4dcd85146107785780638a616bc01461079857005b80635944c753146106ee5780635ef9432a1461070e5780636352211e1461072357005b80632a55205a1161027c5780634345c62c116102205780634c333278116101fd5780634c333278146106845780634c8fe526146106995780634d44660c146106ae5780634f6ccce7146106ce57005b80634345c62c14610624578063438b6300146106375780634a994eef1461066457005b806332cb6b0c1161025957806332cb6b0c146105b95780633ccfd60b146105cf57806342842e0e146105e457806342966c681461060457005b80632a55205a1461053a5780632f745c5914610579578063302b08851461059957005b80630c6f8777116102e35780631cb63f02116102c05780631cb63f02146104ba57806323b872dd146104da578063273eaca6146104fa5780632983c4b81461051a57005b80630c6f87771461045157806318160ddd146104815780631a4231a4146104a457005b8063077796271161031c57806307779627146103bf578063081812fc146103df578063088b694314610417578063095ea7b31461043157005b806301ffc9a71461034857806304634d8d1461037d57806306fdde031461039d57005b3661034657005b005b34801561035457600080fd5b50610368610363366004612cdf565b610a6a565b60405190151581526020015b60405180910390f35b34801561038957600080fd5b50610346610398366004612d2a565b610a95565b3480156103a957600080fd5b506103b2610adb565b6040516103749190612dad565b3480156103cb57600080fd5b506103686103da366004612dc0565b610b6d565b3480156103eb57600080fd5b506103ff6103fa366004612ddb565b610b9a565b6040516001600160a01b039091168152602001610374565b34801561042357600080fd5b50600d546103689060ff1681565b34801561043d57600080fd5b5061034661044c366004612df4565b610c22565b34801561045d57600080fd5b5061036861046c366004612ddb565b60156020526000908152604090205460ff1681565b34801561048d57600080fd5b50610496610d37565b604051908152602001610374565b3480156104b057600080fd5b50610496600c5481565b3480156104c657600080fd5b506103466104d5366004612e64565b610d4e565b3480156104e657600080fd5b506103466104f5366004612f1c565b610e62565b34801561050657600080fd5b506012546103ff906001600160a01b031681565b34801561052657600080fd5b50610346610535366004612dc0565b610e94565b34801561054657600080fd5b5061055a610555366004612f58565b610ee5565b604080516001600160a01b039093168352602083019190915201610374565b34801561058557600080fd5b50610496610594366004612df4565b610f93565b3480156105a557600080fd5b506103466105b4366004612fbe565b61105e565b3480156105c557600080fd5b50610496600b5481565b3480156105db57600080fd5b506103466110c3565b3480156105f057600080fd5b506103466105ff366004612f1c565b61122e565b34801561061057600080fd5b5061034661061f366004612ddb565b611249565b61034661063236600461306e565b6112c0565b34801561064357600080fd5b50610657610652366004612dc0565b6114ab565b60405161037491906130c3565b34801561067057600080fd5b5061034661067f366004613117565b61154a565b34801561069057600080fd5b506103ff61157d565b3480156106a557600080fd5b50600754610496565b3480156106ba57600080fd5b506103686106c9366004613141565b6115bc565b3480156106da57600080fd5b506104966106e9366004612ddb565b61163e565b3480156106fa57600080fd5b50610346610709366004613193565b6116af565b34801561071a57600080fd5b506103466116e9565b34801561072f57600080fd5b506103ff61073e366004612ddb565b611765565b34801561074f57600080fd5b5061049661075e366004612dc0565b6117f1565b34801561076f57600080fd5b506103466118bf565b34801561078457600080fd5b506103466107933660046131cf565b6118d3565b3480156107a457600080fd5b506103466107b3366004612ddb565b611915565b3480156107c457600080fd5b506103ff611955565b3480156107d957600080fd5b506103b2611969565b3480156107ee57600080fd5b506103466107fd366004613117565b611978565b34801561080e57600080fd5b50610346611a3c565b34801561082357600080fd5b50600a546103ff906001600160a01b031681565b34801561084357600080fd5b5061034661085236600461322b565b611a74565b34801561086357600080fd5b50610346610872366004612ddb565b611af2565b34801561088357600080fd5b506103466108923660046132bb565b611be0565b3480156108a357600080fd5b506103466108b2366004612dc0565b611c18565b3480156108c357600080fd5b506103b26108d2366004612ddb565b611c9e565b3480156108e357600080fd5b506103466108f2366004612fbe565b611db9565b34801561090357600080fd5b50610346610912366004613322565b611e1b565b34801561092357600080fd5b506103ff61093236600461306e565b611e8c565b34801561094357600080fd5b506109576109523660046133e5565b611f60565b60408051938452602084019290925260ff1690820152606001610374565b34801561098157600080fd5b50610346610990366004612df4565b611fd4565b3480156109a157600080fd5b506103b2612029565b3480156109b657600080fd5b5061049660145481565b3480156109cc57600080fd5b506103686109db366004613419565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b348015610a1557600080fd5b50600a5461036890600160a01b900460ff1681565b348015610a3657600080fd5b50610346610a45366004612dc0565b612038565b348015610a5657600080fd5b50610346610a65366004612ddb565b61206c565b60006001600160e01b0319821663780e9d6360e01b1480610a8f5750610a8f826120af565b92915050565b3360009081526003602052604090205460ff16610acd5760405162461bcd60e51b8152600401610ac490613443565b60405180910390fd5b610ad782826120ef565b5050565b606060048054610aea9061346d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b169061346d565b8015610b635780601f10610b3857610100808354040283529160200191610b63565b820191906000526020600020905b815481529060010190602001808311610b4657829003601f168201915b5050505050905090565b6000610b776121a9565b506001600160a01b03811660009081526003602052604090205460ff165b919050565b6000610ba582612208565b610c065760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ac4565b506000908152600860205260409020546001600160a01b031690565b6000610c2d82611765565b9050806001600160a01b0316836001600160a01b031603610c9a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610ac4565b336001600160a01b0382161480610cb65750610cb681336109db565b610d285760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ac4565b610d328383612252565b505050565b600654600754600091610d49916134bd565b905090565b3360009081526003602052604090205460ff16610d7d5760405162461bcd60e51b8152600401610ac490613443565b8051600103610dc85760005b82811015610d3257610db6600183600081518110610da957610da96134d0565b60200260200101516122c0565b80610dc0816134e6565b915050610d89565b80518214610e2d5760405162461bcd60e51b815260206004820152602c60248201527f4e756d626572206f6620726563697069656e747320646f65736e2774206d617460448201526b31b41038bab0b73a34ba3c9760a11b6064820152608401610ac4565b60005b8151811015610d3257610e506001838381518110610da957610da96134d0565b80610e5a816134e6565b915050610e30565b610e6d335b8261238f565b610e895760405162461bcd60e51b8152600401610ac4906134ff565b610d32838383612479565b3360009081526003602052604090205460ff16610ec35760405162461bcd60e51b8152600401610ac490613443565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610f5a5750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610f79906001600160601b031687613550565b610f839190613567565b91519350909150505b9250929050565b60008060005b6007548110156110015760078181548110610fb657610fb66134d0565b6000918252602090912001546001600160a01b0390811690861603610ff157838203610fe5579150610a8f9050565b610fee826134e6565b91505b610ffa816134e6565b9050610f99565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610ac4565b3360009081526003602052604090205460ff1661108d5760405162461bcd60e51b8152600401610ac490613443565b60005b81811015610d32576000818152601560205260409020805460ff19166001179055806110bb816134e6565b915050611090565b3360009081526003602052604090205460ff166110f25760405162461bcd60e51b8152600401610ac490613443565b6012546001600160a01b031661114a5760405162461bcd60e51b815260206004820152601e60248201527f446f6e27742073656e642045544820746f206e756c6c206164647265737300006044820152606401610ac4565b60125460405147916001600160a01b031690600090829084908381818185875af1925050503d806000811461119b576040519150601f19603f3d011682016040523d82523d6000602084013e6111a0565b606091505b50509050806111e65760405162461bcd60e51b81526020600482015260126024820152715769746864726177616c206661696c65642160701b6044820152606401610ac4565b816001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d58460405161122191815260200190565b60405180910390a2505050565b610d3283838360405180602001604052806000815250611be0565b61125233610e67565b6112b45760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608401610ac4565b6112bd816125cf565b50565b600d5460ff16806112e057503360009081526003602052604090205460ff165b6113215760405162461bcd60e51b81526020600482015260126024820152714d696e74206e6f74206f70656e207965742160701b6044820152606401610ac4565b600c541561137257600c5434146113725760405162461bcd60e51b8152602060048201526015602482015274092dcecc2d8d2c840c2dadeeadce840decc408aa89605b1b6044820152606401610ac4565b6013546001600160a01b0316156114a0576013546001600160a01b03166113998383611e8c565b6001600160a01b0316146113e55760405162461bcd60e51b8152602060048201526013602482015272496e76616c6964206d6173746572207369672160681b6044820152606401610ac4565b336113f36020840184612dc0565b6001600160a01b0316146114405760405162461bcd60e51b81526020600482015260146024820152734e6f7420617070726f766564206d696e7465722160601b6044820152606401610ac4565b4260145483602001356114539190613589565b116114a05760405162461bcd60e51b815260206004820152601760248201527f4d617374657220736967206861732065787069726564210000000000000000006044820152606401610ac4565b610ad76001336122c0565b606060006114b8836117f1565b90506000816001600160401b038111156114d4576114d4612e1e565b6040519080825280602002602001820160405280156114fd578160200160208202803683370190505b50905060005b82811015611542576115158582610f93565b828281518110611527576115276134d0565b602090810291909101015261153b816134e6565b9050611503565b509392505050565b6115526121a9565b6001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b3360009081526003602052604081205460ff166115ac5760405162461bcd60e51b8152600401610ac490613443565b506013546001600160a01b031690565b6000805b8281101561163157846001600160a01b031660078585848181106115e6576115e66134d0565b90506020020135815481106115fd576115fd6134d0565b6000918252602090912001546001600160a01b031614611621576000915050611637565b61162a816134e6565b90506115c0565b50600190505b9392505050565b6000611648610d37565b82106116ab5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610ac4565b5090565b3360009081526003602052604090205460ff166116de5760405162461bcd60e51b8152600401610ac490613443565b610d3283838361267b565b6116f1611955565b6001600160a01b0316336001600160a01b03161461172257604051635fc483c560e01b815260040160405180910390fd5b600a54600160a01b900460ff161561174d57604051631551a48f60e11b815260040160405180910390fd5b600a80546001600160a81b031916600160a01b179055565b6000806007838154811061177b5761177b6134d0565b6000918252602090912001546001600160a01b0316905080610a8f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610ac4565b60006001600160a01b03821661185c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610ac4565b6000805b6007548110156118b8576007818154811061187d5761187d6134d0565b6000918252602090912001546001600160a01b03908116908516036118a8576118a5826134e6565b91505b6118b1816134e6565b9050611860565b5092915050565b6118c76121a9565b6118d16000612746565b565b3360009081526003602052604090205460ff166119025760405162461bcd60e51b8152600401610ac490613443565b600d805460ff1916911515919091179055565b3360009081526003602052604090205460ff166119445760405162461bcd60e51b8152600401610ac490613443565b600090815260016020526040812055565b6000610d496002546001600160a01b031690565b606060058054610aea9061346d565b336001600160a01b038316036119d05760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ac4565b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3360009081526003602052604090205460ff16611a6b5760405162461bcd60e51b8152600401610ac490613443565b6118d160008055565b60005b83811015611ae957611ad98787878785818110611a9657611a966134d0565b9050602002013586868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611be092505050565b611ae2816134e6565b9050611a77565b50505050505050565b3360009081526003602052604090205460ff16611b215760405162461bcd60e51b8152600401610ac490613443565b600b548110611b725760405162461bcd60e51b815260206004820152601a60248201527f43616e206f6e6c79207365742061206c6f7765722073697a652e0000000000006044820152606401610ac4565b611b7a610d37565b811015611bdb5760405162461bcd60e51b815260206004820152602960248201527f4e657720737570706c79206c6f776572207468616e2063757272656e7420746f60448201526874616c537570706c7960b81b6064820152608401610ac4565b600b55565b611bea338361238f565b611c065760405162461bcd60e51b8152600401610ac4906134ff565b611c1284848484612798565b50505050565b611c20611955565b6001600160a01b0316336001600160a01b031614611c5157604051635fc483c560e01b815260040160405180910390fd5b600a54600160a01b900460ff1615611c7c57604051631551a48f60e11b815260040160405180910390fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6060611ca982612208565b611d0d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610ac4565b60008281526015602052604090205460ff1615611d83576000600e8054611d339061346d565b905011611d4f5760405180602001604052806000815250610a8f565b600f611d5a836127cb565b6010604051602001611d6e9392919061360f565b60405160208183030381529060405292915050565b6000600e8054611d929061346d565b905011611dae5760405180602001604052806000815250610a8f565b600e611d5a836127cb565b3360009081526003602052604090205460ff16611de85760405162461bcd60e51b8152600401610ac490613443565b60005b81811015610d32576000818152601560205260409020805460ff1916905580611e13816134e6565b915050611deb565b3360009081526003602052604090205460ff16611e4a5760405162461bcd60e51b8152600401610ac490613443565b600e611e57888a83613690565b506010611e65848683613690565b50600f611e73868883613690565b506011611e81828483613690565b505050505050505050565b600080601654611eab85803603810190611ea69190613750565b61285d565b60405161190160f01b6020820152602281019290925260428201526062016040516020818303038152906040528051906020012090506000806000611eef86611f60565b60408051600081526020810180835289905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa158015611f4a573d6000803e3d6000fd5b5050604051601f19015198975050505050505050565b60008060008351604114611fb65760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ac4565b50505060208101516040820151606090920151909260009190911a90565b3360009081526003602052604090205460ff166120035760405162461bcd60e51b8152600401610ac490613443565b601380546001600160a01b0319166001600160a01b039390931692909217909155601455565b606060118054610aea9061346d565b6120406121a9565b6001600160a01b0381166000908152600360205260409020805460ff191660011790556112bd816128d0565b3360009081526003602052604090205460ff1661209b5760405162461bcd60e51b8152600401610ac490613443565b600c55565b6002546001600160a01b031690565b60006001600160e01b031982166380ac58cd60e01b14806120e057506001600160e01b03198216635b5e139f60e01b145b80610a8f5750610a8f82612946565b6127106001600160601b038216111561211a5760405162461bcd60e51b8152600401610ac4906137a6565b6001600160a01b0382166121705760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610ac4565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b336121b2611955565b6001600160a01b0316146118d15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ac4565b60075460009082108015610a8f575060006001600160a01b031660078381548110612235576122356134d0565b6000918252602090912001546001600160a01b0316141592915050565b600081815260086020526040902080546001600160a01b0319166001600160a01b038416908117909155819061228782611765565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600082116123075760405162461bcd60e51b815260206004820152601460248201527343616e2774206d696e74203020746f6b656e732160601b6044820152606401610ac4565b600b54612312610d37565b61231c9084613589565b11156123605760405162461bcd60e51b81526020600482015260136024820152724d617820737570706c7920726561636865642160681b6044820152606401610ac4565b60005b82811015610d325761237d8261237860075490565b61297b565b80612387816134e6565b915050612363565b600061239a82612208565b6123fb5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ac4565b600061240683611765565b9050806001600160a01b0316846001600160a01b031614806124415750836001600160a01b031661243684610b9a565b6001600160a01b0316145b8061247157506001600160a01b0380821660009081526009602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661248c82611765565b6001600160a01b0316146124f45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610ac4565b6001600160a01b0382166125565760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ac4565b612561600082612252565b8160078281548110612575576125756134d0565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b60006125da82611765565b90506125e7600083612252565b6000600783815481106125fc576125fc6134d0565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555061263f82600090815260016020526040812055565b60405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6127106001600160601b03821611156126a65760405162461bcd60e51b8152600401610ac4906137a6565b6001600160a01b0382166126fc5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610ac4565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600190529190942093519051909116600160a01b029116179055565b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127a3848484612479565b6127af84848484612995565b611c125760405162461bcd60e51b8152600401610ac4906137f0565b606060006127d883612a96565b60010190506000816001600160401b038111156127f7576127f7612e1e565b6040519080825280601f01601f191660200182016040528015612821576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461282b57509392505050565b80516020808301516040516000936128b3937f3056ace57bb6fd091687532bcd44c0a7489bbc9a2ccb2b63195613461a573f62939192019283526001600160a01b03919091166020830152604082015260600190565b604051602081830303815290604052805190602001209050919050565b6128d86121a9565b6001600160a01b03811661293d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ac4565b6112bd81612746565b60006001600160e01b0319821663152a902d60e11b1480610a8f57506301ffc9a760e01b6001600160e01b0319831614610a8f565b610ad7828260405180602001604052806000815250612b6e565b60006001600160a01b0384163b15612a8b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129d9903390899088908890600401613842565b6020604051808303816000875af1925050508015612a14575060408051601f3d908101601f19168201909252612a119181019061387f565b60015b612a71573d808015612a42576040519150601f19603f3d011682016040523d82523d6000602084013e612a47565b606091505b508051600003612a695760405162461bcd60e51b8152600401610ac4906137f0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612471565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612ad55772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612b01576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612b1f57662386f26fc10000830492506010015b6305f5e1008310612b37576305f5e100830492506008015b6127108310612b4b57612710830492506004015b60648310612b5d576064830492506002015b600a8310610a8f5760010192915050565b612b788383612ba1565b612b856000848484612995565b610d325760405162461bcd60e51b8152600401610ac4906137f0565b6001600160a01b038216612bf75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ac4565b612c0081612208565b15612c4d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ac4565b6007805460018101825560009182527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b0319811681146112bd57600080fd5b600060208284031215612cf157600080fd5b813561163781612cc9565b80356001600160a01b0381168114610b9557600080fd5b80356001600160601b0381168114610b9557600080fd5b60008060408385031215612d3d57600080fd5b612d4683612cfc565b9150612d5460208401612d13565b90509250929050565b60005b83811015612d78578181015183820152602001612d60565b50506000910152565b60008151808452612d99816020860160208601612d5d565b601f01601f19169290920160200192915050565b6020815260006116376020830184612d81565b600060208284031215612dd257600080fd5b61163782612cfc565b600060208284031215612ded57600080fd5b5035919050565b60008060408385031215612e0757600080fd5b612e1083612cfc565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612e5c57612e5c612e1e565b604052919050565b60008060408385031215612e7757600080fd5b823591506020808401356001600160401b0380821115612e9657600080fd5b818601915086601f830112612eaa57600080fd5b813581811115612ebc57612ebc612e1e565b8060051b9150612ecd848301612e34565b8181529183018401918481019089841115612ee757600080fd5b938501935b83851015612f0c57612efd85612cfc565b82529385019390850190612eec565b8096505050505050509250929050565b600080600060608486031215612f3157600080fd5b612f3a84612cfc565b9250612f4860208501612cfc565b9150604084013590509250925092565b60008060408385031215612f6b57600080fd5b50508035926020909101359150565b60008083601f840112612f8c57600080fd5b5081356001600160401b03811115612fa357600080fd5b6020830191508360208260051b8501011115610f8c57600080fd5b60008060208385031215612fd157600080fd5b82356001600160401b03811115612fe757600080fd5b612ff385828601612f7a565b90969095509350505050565b600082601f83011261301057600080fd5b81356001600160401b0381111561302957613029612e1e565b61303c601f8201601f1916602001612e34565b81815284602083860101111561305157600080fd5b816020850160208301376000918101602001919091529392505050565b600080828403606081121561308257600080fd5b604081121561309057600080fd5b5082915060408301356001600160401b038111156130ad57600080fd5b6130b985828601612fff565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b818110156130fb578351835292840192918401916001016130df565b50909695505050505050565b80358015158114610b9557600080fd5b6000806040838503121561312a57600080fd5b61313383612cfc565b9150612d5460208401613107565b60008060006040848603121561315657600080fd5b61315f84612cfc565b925060208401356001600160401b0381111561317a57600080fd5b61318686828701612f7a565b9497909650939450505050565b6000806000606084860312156131a857600080fd5b833592506131b860208501612cfc565b91506131c660408501612d13565b90509250925092565b6000602082840312156131e157600080fd5b61163782613107565b60008083601f8401126131fc57600080fd5b5081356001600160401b0381111561321357600080fd5b602083019150836020828501011115610f8c57600080fd5b6000806000806000806080878903121561324457600080fd5b61324d87612cfc565b955061325b60208801612cfc565b945060408701356001600160401b038082111561327757600080fd5b6132838a838b01612f7a565b9096509450606089013591508082111561329c57600080fd5b506132a989828a016131ea565b979a9699509497509295939492505050565b600080600080608085870312156132d157600080fd5b6132da85612cfc565b93506132e860208601612cfc565b92506040850135915060608501356001600160401b0381111561330a57600080fd5b61331687828801612fff565b91505092959194509250565b6000806000806000806000806080898b03121561333e57600080fd5b88356001600160401b038082111561335557600080fd5b6133618c838d016131ea565b909a50985060208b013591508082111561337a57600080fd5b6133868c838d016131ea565b909850965060408b013591508082111561339f57600080fd5b6133ab8c838d016131ea565b909650945060608b01359150808211156133c457600080fd5b506133d18b828c016131ea565b999c989b5096995094979396929594505050565b6000602082840312156133f757600080fd5b81356001600160401b0381111561340d57600080fd5b61247184828501612fff565b6000806040838503121561342c57600080fd5b61343583612cfc565b9150612d5460208401612cfc565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b600181811c9082168061348157607f821691505b6020821081036134a157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610a8f57610a8f6134a7565b634e487b7160e01b600052603260045260246000fd5b6000600182016134f8576134f86134a7565b5060010190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b8082028115828204841417610a8f57610a8f6134a7565b60008261358457634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610a8f57610a8f6134a7565b600081546135a98161346d565b600182811680156135c157600181146135d657613605565b60ff1984168752821515830287019450613605565b8560005260208060002060005b858110156135fc5781548a8201529084019082016135e3565b50505082870194505b5050505092915050565b600061361b828661359c565b845161362b818360208901612d5d565b6136378183018661359c565b979650505050505050565b601f821115610d3257600081815260208120601f850160051c810160208610156136695750805b601f850160051c820191505b8181101561368857828155600101613675565b505050505050565b6001600160401b038311156136a7576136a7612e1e565b6136bb836136b5835461346d565b83613642565b6000601f8411600181146136ef57600085156136d75750838201355b600019600387901b1c1916600186901b178355613749565b600083815260209020601f19861690835b828110156137205786850135825560209485019460019092019101613700565b508682101561373d5760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b60006040828403121561376257600080fd5b604051604081018181106001600160401b038211171561378457613784612e1e565b60405261379083612cfc565b8152602083013560208201528091505092915050565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061387590830184612d81565b9695505050505050565b60006020828403121561389157600080fd5b815161163781612cc956fea2646970667358221220c18ea1edef8838d18074bbc6efc8baaa4c2a274319a9d571508406c993a8ac6164736f6c63430008120033
Deployed Bytecode
0x60806040526004361061033f5760003560e01c80635944c753116101ae578063b88d4fde116100eb578063df8f39b31161008f578063e985e9c51161006c578063e985e9c5146109c0578063ecba222a14610a09578063f2fde38b14610a2a578063f4a0a52814610a4a57005b8063df8f39b314610975578063e8a3d48514610995578063e8d7e478146109aa57005b8063c89a554f116100c8578063c89a554f146108d7578063d1a8e768146108f7578063d5d32a3614610917578063d9c2820f1461093757005b8063b88d4fde14610877578063b8d1e53214610897578063c87b56dd146108b757005b80638da5cb5b11610152578063aa1b103f1161012f578063aa1b103f14610802578063b0ccc31e14610817578063b534a5c414610837578063b7c34a9c1461085757005b80638da5cb5b146107b857806395d89b41146107cd578063a22cb465146107e257005b806370a082311161018b57806370a0823114610743578063715018a6146107635780638a4dcd85146107785780638a616bc01461079857005b80635944c753146106ee5780635ef9432a1461070e5780636352211e1461072357005b80632a55205a1161027c5780634345c62c116102205780634c333278116101fd5780634c333278146106845780634c8fe526146106995780634d44660c146106ae5780634f6ccce7146106ce57005b80634345c62c14610624578063438b6300146106375780634a994eef1461066457005b806332cb6b0c1161025957806332cb6b0c146105b95780633ccfd60b146105cf57806342842e0e146105e457806342966c681461060457005b80632a55205a1461053a5780632f745c5914610579578063302b08851461059957005b80630c6f8777116102e35780631cb63f02116102c05780631cb63f02146104ba57806323b872dd146104da578063273eaca6146104fa5780632983c4b81461051a57005b80630c6f87771461045157806318160ddd146104815780631a4231a4146104a457005b8063077796271161031c57806307779627146103bf578063081812fc146103df578063088b694314610417578063095ea7b31461043157005b806301ffc9a71461034857806304634d8d1461037d57806306fdde031461039d57005b3661034657005b005b34801561035457600080fd5b50610368610363366004612cdf565b610a6a565b60405190151581526020015b60405180910390f35b34801561038957600080fd5b50610346610398366004612d2a565b610a95565b3480156103a957600080fd5b506103b2610adb565b6040516103749190612dad565b3480156103cb57600080fd5b506103686103da366004612dc0565b610b6d565b3480156103eb57600080fd5b506103ff6103fa366004612ddb565b610b9a565b6040516001600160a01b039091168152602001610374565b34801561042357600080fd5b50600d546103689060ff1681565b34801561043d57600080fd5b5061034661044c366004612df4565b610c22565b34801561045d57600080fd5b5061036861046c366004612ddb565b60156020526000908152604090205460ff1681565b34801561048d57600080fd5b50610496610d37565b604051908152602001610374565b3480156104b057600080fd5b50610496600c5481565b3480156104c657600080fd5b506103466104d5366004612e64565b610d4e565b3480156104e657600080fd5b506103466104f5366004612f1c565b610e62565b34801561050657600080fd5b506012546103ff906001600160a01b031681565b34801561052657600080fd5b50610346610535366004612dc0565b610e94565b34801561054657600080fd5b5061055a610555366004612f58565b610ee5565b604080516001600160a01b039093168352602083019190915201610374565b34801561058557600080fd5b50610496610594366004612df4565b610f93565b3480156105a557600080fd5b506103466105b4366004612fbe565b61105e565b3480156105c557600080fd5b50610496600b5481565b3480156105db57600080fd5b506103466110c3565b3480156105f057600080fd5b506103466105ff366004612f1c565b61122e565b34801561061057600080fd5b5061034661061f366004612ddb565b611249565b61034661063236600461306e565b6112c0565b34801561064357600080fd5b50610657610652366004612dc0565b6114ab565b60405161037491906130c3565b34801561067057600080fd5b5061034661067f366004613117565b61154a565b34801561069057600080fd5b506103ff61157d565b3480156106a557600080fd5b50600754610496565b3480156106ba57600080fd5b506103686106c9366004613141565b6115bc565b3480156106da57600080fd5b506104966106e9366004612ddb565b61163e565b3480156106fa57600080fd5b50610346610709366004613193565b6116af565b34801561071a57600080fd5b506103466116e9565b34801561072f57600080fd5b506103ff61073e366004612ddb565b611765565b34801561074f57600080fd5b5061049661075e366004612dc0565b6117f1565b34801561076f57600080fd5b506103466118bf565b34801561078457600080fd5b506103466107933660046131cf565b6118d3565b3480156107a457600080fd5b506103466107b3366004612ddb565b611915565b3480156107c457600080fd5b506103ff611955565b3480156107d957600080fd5b506103b2611969565b3480156107ee57600080fd5b506103466107fd366004613117565b611978565b34801561080e57600080fd5b50610346611a3c565b34801561082357600080fd5b50600a546103ff906001600160a01b031681565b34801561084357600080fd5b5061034661085236600461322b565b611a74565b34801561086357600080fd5b50610346610872366004612ddb565b611af2565b34801561088357600080fd5b506103466108923660046132bb565b611be0565b3480156108a357600080fd5b506103466108b2366004612dc0565b611c18565b3480156108c357600080fd5b506103b26108d2366004612ddb565b611c9e565b3480156108e357600080fd5b506103466108f2366004612fbe565b611db9565b34801561090357600080fd5b50610346610912366004613322565b611e1b565b34801561092357600080fd5b506103ff61093236600461306e565b611e8c565b34801561094357600080fd5b506109576109523660046133e5565b611f60565b60408051938452602084019290925260ff1690820152606001610374565b34801561098157600080fd5b50610346610990366004612df4565b611fd4565b3480156109a157600080fd5b506103b2612029565b3480156109b657600080fd5b5061049660145481565b3480156109cc57600080fd5b506103686109db366004613419565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b348015610a1557600080fd5b50600a5461036890600160a01b900460ff1681565b348015610a3657600080fd5b50610346610a45366004612dc0565b612038565b348015610a5657600080fd5b50610346610a65366004612ddb565b61206c565b60006001600160e01b0319821663780e9d6360e01b1480610a8f5750610a8f826120af565b92915050565b3360009081526003602052604090205460ff16610acd5760405162461bcd60e51b8152600401610ac490613443565b60405180910390fd5b610ad782826120ef565b5050565b606060048054610aea9061346d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b169061346d565b8015610b635780601f10610b3857610100808354040283529160200191610b63565b820191906000526020600020905b815481529060010190602001808311610b4657829003601f168201915b5050505050905090565b6000610b776121a9565b506001600160a01b03811660009081526003602052604090205460ff165b919050565b6000610ba582612208565b610c065760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ac4565b506000908152600860205260409020546001600160a01b031690565b6000610c2d82611765565b9050806001600160a01b0316836001600160a01b031603610c9a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610ac4565b336001600160a01b0382161480610cb65750610cb681336109db565b610d285760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ac4565b610d328383612252565b505050565b600654600754600091610d49916134bd565b905090565b3360009081526003602052604090205460ff16610d7d5760405162461bcd60e51b8152600401610ac490613443565b8051600103610dc85760005b82811015610d3257610db6600183600081518110610da957610da96134d0565b60200260200101516122c0565b80610dc0816134e6565b915050610d89565b80518214610e2d5760405162461bcd60e51b815260206004820152602c60248201527f4e756d626572206f6620726563697069656e747320646f65736e2774206d617460448201526b31b41038bab0b73a34ba3c9760a11b6064820152608401610ac4565b60005b8151811015610d3257610e506001838381518110610da957610da96134d0565b80610e5a816134e6565b915050610e30565b610e6d335b8261238f565b610e895760405162461bcd60e51b8152600401610ac4906134ff565b610d32838383612479565b3360009081526003602052604090205460ff16610ec35760405162461bcd60e51b8152600401610ac490613443565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610f5a5750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610f79906001600160601b031687613550565b610f839190613567565b91519350909150505b9250929050565b60008060005b6007548110156110015760078181548110610fb657610fb66134d0565b6000918252602090912001546001600160a01b0390811690861603610ff157838203610fe5579150610a8f9050565b610fee826134e6565b91505b610ffa816134e6565b9050610f99565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610ac4565b3360009081526003602052604090205460ff1661108d5760405162461bcd60e51b8152600401610ac490613443565b60005b81811015610d32576000818152601560205260409020805460ff19166001179055806110bb816134e6565b915050611090565b3360009081526003602052604090205460ff166110f25760405162461bcd60e51b8152600401610ac490613443565b6012546001600160a01b031661114a5760405162461bcd60e51b815260206004820152601e60248201527f446f6e27742073656e642045544820746f206e756c6c206164647265737300006044820152606401610ac4565b60125460405147916001600160a01b031690600090829084908381818185875af1925050503d806000811461119b576040519150601f19603f3d011682016040523d82523d6000602084013e6111a0565b606091505b50509050806111e65760405162461bcd60e51b81526020600482015260126024820152715769746864726177616c206661696c65642160701b6044820152606401610ac4565b816001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d58460405161122191815260200190565b60405180910390a2505050565b610d3283838360405180602001604052806000815250611be0565b61125233610e67565b6112b45760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608401610ac4565b6112bd816125cf565b50565b600d5460ff16806112e057503360009081526003602052604090205460ff165b6113215760405162461bcd60e51b81526020600482015260126024820152714d696e74206e6f74206f70656e207965742160701b6044820152606401610ac4565b600c541561137257600c5434146113725760405162461bcd60e51b8152602060048201526015602482015274092dcecc2d8d2c840c2dadeeadce840decc408aa89605b1b6044820152606401610ac4565b6013546001600160a01b0316156114a0576013546001600160a01b03166113998383611e8c565b6001600160a01b0316146113e55760405162461bcd60e51b8152602060048201526013602482015272496e76616c6964206d6173746572207369672160681b6044820152606401610ac4565b336113f36020840184612dc0565b6001600160a01b0316146114405760405162461bcd60e51b81526020600482015260146024820152734e6f7420617070726f766564206d696e7465722160601b6044820152606401610ac4565b4260145483602001356114539190613589565b116114a05760405162461bcd60e51b815260206004820152601760248201527f4d617374657220736967206861732065787069726564210000000000000000006044820152606401610ac4565b610ad76001336122c0565b606060006114b8836117f1565b90506000816001600160401b038111156114d4576114d4612e1e565b6040519080825280602002602001820160405280156114fd578160200160208202803683370190505b50905060005b82811015611542576115158582610f93565b828281518110611527576115276134d0565b602090810291909101015261153b816134e6565b9050611503565b509392505050565b6115526121a9565b6001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b3360009081526003602052604081205460ff166115ac5760405162461bcd60e51b8152600401610ac490613443565b506013546001600160a01b031690565b6000805b8281101561163157846001600160a01b031660078585848181106115e6576115e66134d0565b90506020020135815481106115fd576115fd6134d0565b6000918252602090912001546001600160a01b031614611621576000915050611637565b61162a816134e6565b90506115c0565b50600190505b9392505050565b6000611648610d37565b82106116ab5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610ac4565b5090565b3360009081526003602052604090205460ff166116de5760405162461bcd60e51b8152600401610ac490613443565b610d3283838361267b565b6116f1611955565b6001600160a01b0316336001600160a01b03161461172257604051635fc483c560e01b815260040160405180910390fd5b600a54600160a01b900460ff161561174d57604051631551a48f60e11b815260040160405180910390fd5b600a80546001600160a81b031916600160a01b179055565b6000806007838154811061177b5761177b6134d0565b6000918252602090912001546001600160a01b0316905080610a8f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610ac4565b60006001600160a01b03821661185c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610ac4565b6000805b6007548110156118b8576007818154811061187d5761187d6134d0565b6000918252602090912001546001600160a01b03908116908516036118a8576118a5826134e6565b91505b6118b1816134e6565b9050611860565b5092915050565b6118c76121a9565b6118d16000612746565b565b3360009081526003602052604090205460ff166119025760405162461bcd60e51b8152600401610ac490613443565b600d805460ff1916911515919091179055565b3360009081526003602052604090205460ff166119445760405162461bcd60e51b8152600401610ac490613443565b600090815260016020526040812055565b6000610d496002546001600160a01b031690565b606060058054610aea9061346d565b336001600160a01b038316036119d05760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ac4565b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3360009081526003602052604090205460ff16611a6b5760405162461bcd60e51b8152600401610ac490613443565b6118d160008055565b60005b83811015611ae957611ad98787878785818110611a9657611a966134d0565b9050602002013586868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611be092505050565b611ae2816134e6565b9050611a77565b50505050505050565b3360009081526003602052604090205460ff16611b215760405162461bcd60e51b8152600401610ac490613443565b600b548110611b725760405162461bcd60e51b815260206004820152601a60248201527f43616e206f6e6c79207365742061206c6f7765722073697a652e0000000000006044820152606401610ac4565b611b7a610d37565b811015611bdb5760405162461bcd60e51b815260206004820152602960248201527f4e657720737570706c79206c6f776572207468616e2063757272656e7420746f60448201526874616c537570706c7960b81b6064820152608401610ac4565b600b55565b611bea338361238f565b611c065760405162461bcd60e51b8152600401610ac4906134ff565b611c1284848484612798565b50505050565b611c20611955565b6001600160a01b0316336001600160a01b031614611c5157604051635fc483c560e01b815260040160405180910390fd5b600a54600160a01b900460ff1615611c7c57604051631551a48f60e11b815260040160405180910390fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6060611ca982612208565b611d0d5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610ac4565b60008281526015602052604090205460ff1615611d83576000600e8054611d339061346d565b905011611d4f5760405180602001604052806000815250610a8f565b600f611d5a836127cb565b6010604051602001611d6e9392919061360f565b60405160208183030381529060405292915050565b6000600e8054611d929061346d565b905011611dae5760405180602001604052806000815250610a8f565b600e611d5a836127cb565b3360009081526003602052604090205460ff16611de85760405162461bcd60e51b8152600401610ac490613443565b60005b81811015610d32576000818152601560205260409020805460ff1916905580611e13816134e6565b915050611deb565b3360009081526003602052604090205460ff16611e4a5760405162461bcd60e51b8152600401610ac490613443565b600e611e57888a83613690565b506010611e65848683613690565b50600f611e73868883613690565b506011611e81828483613690565b505050505050505050565b600080601654611eab85803603810190611ea69190613750565b61285d565b60405161190160f01b6020820152602281019290925260428201526062016040516020818303038152906040528051906020012090506000806000611eef86611f60565b60408051600081526020810180835289905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa158015611f4a573d6000803e3d6000fd5b5050604051601f19015198975050505050505050565b60008060008351604114611fb65760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ac4565b50505060208101516040820151606090920151909260009190911a90565b3360009081526003602052604090205460ff166120035760405162461bcd60e51b8152600401610ac490613443565b601380546001600160a01b0319166001600160a01b039390931692909217909155601455565b606060118054610aea9061346d565b6120406121a9565b6001600160a01b0381166000908152600360205260409020805460ff191660011790556112bd816128d0565b3360009081526003602052604090205460ff1661209b5760405162461bcd60e51b8152600401610ac490613443565b600c55565b6002546001600160a01b031690565b60006001600160e01b031982166380ac58cd60e01b14806120e057506001600160e01b03198216635b5e139f60e01b145b80610a8f5750610a8f82612946565b6127106001600160601b038216111561211a5760405162461bcd60e51b8152600401610ac4906137a6565b6001600160a01b0382166121705760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610ac4565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b336121b2611955565b6001600160a01b0316146118d15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ac4565b60075460009082108015610a8f575060006001600160a01b031660078381548110612235576122356134d0565b6000918252602090912001546001600160a01b0316141592915050565b600081815260086020526040902080546001600160a01b0319166001600160a01b038416908117909155819061228782611765565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600082116123075760405162461bcd60e51b815260206004820152601460248201527343616e2774206d696e74203020746f6b656e732160601b6044820152606401610ac4565b600b54612312610d37565b61231c9084613589565b11156123605760405162461bcd60e51b81526020600482015260136024820152724d617820737570706c7920726561636865642160681b6044820152606401610ac4565b60005b82811015610d325761237d8261237860075490565b61297b565b80612387816134e6565b915050612363565b600061239a82612208565b6123fb5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ac4565b600061240683611765565b9050806001600160a01b0316846001600160a01b031614806124415750836001600160a01b031661243684610b9a565b6001600160a01b0316145b8061247157506001600160a01b0380821660009081526009602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661248c82611765565b6001600160a01b0316146124f45760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610ac4565b6001600160a01b0382166125565760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ac4565b612561600082612252565b8160078281548110612575576125756134d0565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b60006125da82611765565b90506125e7600083612252565b6000600783815481106125fc576125fc6134d0565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555061263f82600090815260016020526040812055565b60405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6127106001600160601b03821611156126a65760405162461bcd60e51b8152600401610ac4906137a6565b6001600160a01b0382166126fc5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610ac4565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600190529190942093519051909116600160a01b029116179055565b600280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127a3848484612479565b6127af84848484612995565b611c125760405162461bcd60e51b8152600401610ac4906137f0565b606060006127d883612a96565b60010190506000816001600160401b038111156127f7576127f7612e1e565b6040519080825280601f01601f191660200182016040528015612821576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461282b57509392505050565b80516020808301516040516000936128b3937f3056ace57bb6fd091687532bcd44c0a7489bbc9a2ccb2b63195613461a573f62939192019283526001600160a01b03919091166020830152604082015260600190565b604051602081830303815290604052805190602001209050919050565b6128d86121a9565b6001600160a01b03811661293d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ac4565b6112bd81612746565b60006001600160e01b0319821663152a902d60e11b1480610a8f57506301ffc9a760e01b6001600160e01b0319831614610a8f565b610ad7828260405180602001604052806000815250612b6e565b60006001600160a01b0384163b15612a8b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129d9903390899088908890600401613842565b6020604051808303816000875af1925050508015612a14575060408051601f3d908101601f19168201909252612a119181019061387f565b60015b612a71573d808015612a42576040519150601f19603f3d011682016040523d82523d6000602084013e612a47565b606091505b508051600003612a695760405162461bcd60e51b8152600401610ac4906137f0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612471565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612ad55772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612b01576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612b1f57662386f26fc10000830492506010015b6305f5e1008310612b37576305f5e100830492506008015b6127108310612b4b57612710830492506004015b60648310612b5d576064830492506002015b600a8310610a8f5760010192915050565b612b788383612ba1565b612b856000848484612995565b610d325760405162461bcd60e51b8152600401610ac4906137f0565b6001600160a01b038216612bf75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ac4565b612c0081612208565b15612c4d5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ac4565b6007805460018101825560009182527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b0319811681146112bd57600080fd5b600060208284031215612cf157600080fd5b813561163781612cc9565b80356001600160a01b0381168114610b9557600080fd5b80356001600160601b0381168114610b9557600080fd5b60008060408385031215612d3d57600080fd5b612d4683612cfc565b9150612d5460208401612d13565b90509250929050565b60005b83811015612d78578181015183820152602001612d60565b50506000910152565b60008151808452612d99816020860160208601612d5d565b601f01601f19169290920160200192915050565b6020815260006116376020830184612d81565b600060208284031215612dd257600080fd5b61163782612cfc565b600060208284031215612ded57600080fd5b5035919050565b60008060408385031215612e0757600080fd5b612e1083612cfc565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612e5c57612e5c612e1e565b604052919050565b60008060408385031215612e7757600080fd5b823591506020808401356001600160401b0380821115612e9657600080fd5b818601915086601f830112612eaa57600080fd5b813581811115612ebc57612ebc612e1e565b8060051b9150612ecd848301612e34565b8181529183018401918481019089841115612ee757600080fd5b938501935b83851015612f0c57612efd85612cfc565b82529385019390850190612eec565b8096505050505050509250929050565b600080600060608486031215612f3157600080fd5b612f3a84612cfc565b9250612f4860208501612cfc565b9150604084013590509250925092565b60008060408385031215612f6b57600080fd5b50508035926020909101359150565b60008083601f840112612f8c57600080fd5b5081356001600160401b03811115612fa357600080fd5b6020830191508360208260051b8501011115610f8c57600080fd5b60008060208385031215612fd157600080fd5b82356001600160401b03811115612fe757600080fd5b612ff385828601612f7a565b90969095509350505050565b600082601f83011261301057600080fd5b81356001600160401b0381111561302957613029612e1e565b61303c601f8201601f1916602001612e34565b81815284602083860101111561305157600080fd5b816020850160208301376000918101602001919091529392505050565b600080828403606081121561308257600080fd5b604081121561309057600080fd5b5082915060408301356001600160401b038111156130ad57600080fd5b6130b985828601612fff565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b818110156130fb578351835292840192918401916001016130df565b50909695505050505050565b80358015158114610b9557600080fd5b6000806040838503121561312a57600080fd5b61313383612cfc565b9150612d5460208401613107565b60008060006040848603121561315657600080fd5b61315f84612cfc565b925060208401356001600160401b0381111561317a57600080fd5b61318686828701612f7a565b9497909650939450505050565b6000806000606084860312156131a857600080fd5b833592506131b860208501612cfc565b91506131c660408501612d13565b90509250925092565b6000602082840312156131e157600080fd5b61163782613107565b60008083601f8401126131fc57600080fd5b5081356001600160401b0381111561321357600080fd5b602083019150836020828501011115610f8c57600080fd5b6000806000806000806080878903121561324457600080fd5b61324d87612cfc565b955061325b60208801612cfc565b945060408701356001600160401b038082111561327757600080fd5b6132838a838b01612f7a565b9096509450606089013591508082111561329c57600080fd5b506132a989828a016131ea565b979a9699509497509295939492505050565b600080600080608085870312156132d157600080fd5b6132da85612cfc565b93506132e860208601612cfc565b92506040850135915060608501356001600160401b0381111561330a57600080fd5b61331687828801612fff565b91505092959194509250565b6000806000806000806000806080898b03121561333e57600080fd5b88356001600160401b038082111561335557600080fd5b6133618c838d016131ea565b909a50985060208b013591508082111561337a57600080fd5b6133868c838d016131ea565b909850965060408b013591508082111561339f57600080fd5b6133ab8c838d016131ea565b909650945060608b01359150808211156133c457600080fd5b506133d18b828c016131ea565b999c989b5096995094979396929594505050565b6000602082840312156133f757600080fd5b81356001600160401b0381111561340d57600080fd5b61247184828501612fff565b6000806040838503121561342c57600080fd5b61343583612cfc565b9150612d5460208401612cfc565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b600181811c9082168061348157607f821691505b6020821081036134a157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b81810381811115610a8f57610a8f6134a7565b634e487b7160e01b600052603260045260246000fd5b6000600182016134f8576134f86134a7565b5060010190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b8082028115828204841417610a8f57610a8f6134a7565b60008261358457634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610a8f57610a8f6134a7565b600081546135a98161346d565b600182811680156135c157600181146135d657613605565b60ff1984168752821515830287019450613605565b8560005260208060002060005b858110156135fc5781548a8201529084019082016135e3565b50505082870194505b5050505092915050565b600061361b828661359c565b845161362b818360208901612d5d565b6136378183018661359c565b979650505050505050565b601f821115610d3257600081815260208120601f850160051c810160208610156136695750805b601f850160051c820191505b8181101561368857828155600101613675565b505050505050565b6001600160401b038311156136a7576136a7612e1e565b6136bb836136b5835461346d565b83613642565b6000601f8411600181146136ef57600085156136d75750838201355b600019600387901b1c1916600186901b178355613749565b600083815260209020601f19861690835b828110156137205786850135825560209485019460019092019101613700565b508682101561373d5760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b60006040828403121561376257600080fd5b604051604081018181106001600160401b038211171561378457613784612e1e565b60405261379083612cfc565b8152602083013560208201528091505092915050565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061387590830184612d81565b9695505050505050565b60006020828403121561389157600080fd5b815161163781612cc956fea2646970667358221220c18ea1edef8838d18074bbc6efc8baaa4c2a274319a9d571508406c993a8ac6164736f6c63430008120033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.