Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 175 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Create NFT Witho... | 15418687 | 894 days ago | IN | 0 ETH | 0.00316387 | ||||
Create NFT Witho... | 15411977 | 895 days ago | IN | 0 ETH | 0.00448167 | ||||
Create NFT Witho... | 15411604 | 895 days ago | IN | 0 ETH | 0.0071838 | ||||
Create NFT Witho... | 15392732 | 898 days ago | IN | 0 ETH | 0.00867703 | ||||
Create NFT Witho... | 15389998 | 899 days ago | IN | 0 ETH | 0.00417295 | ||||
Update Max Allow... | 15389750 | 899 days ago | IN | 0 ETH | 0.00032224 | ||||
Create NFT Witho... | 15371243 | 902 days ago | IN | 0 ETH | 0.00477376 | ||||
Create NFT Witho... | 15367362 | 902 days ago | IN | 0 ETH | 0.00746795 | ||||
Create NFT Witho... | 15360862 | 903 days ago | IN | 0 ETH | 0.00574651 | ||||
Create NFT Witho... | 15354455 | 904 days ago | IN | 0 ETH | 0.00585162 | ||||
Create NFT Witho... | 15354451 | 904 days ago | IN | 0 ETH | 0.00500403 | ||||
Create NFT Witho... | 15352901 | 904 days ago | IN | 0 ETH | 0.00948404 | ||||
Create NFT Witho... | 15350484 | 905 days ago | IN | 0 ETH | 0.0044344 | ||||
Create NFT Witho... | 15350466 | 905 days ago | IN | 0 ETH | 0.00574682 | ||||
Create NFT Witho... | 15346720 | 905 days ago | IN | 0 ETH | 0.01498596 | ||||
Create NFT Witho... | 15343187 | 906 days ago | IN | 0 ETH | 0.0047231 | ||||
Create NFT Witho... | 15338941 | 907 days ago | IN | 0 ETH | 0.00243875 | ||||
Create NFT Witho... | 15333135 | 908 days ago | IN | 0 ETH | 0.00430966 | ||||
Create NFT Witho... | 15329379 | 908 days ago | IN | 0 ETH | 0.00546781 | ||||
Create NFT Witho... | 15328443 | 908 days ago | IN | 0 ETH | 0.00600796 | ||||
Create NFT Witho... | 15328327 | 908 days ago | IN | 0 ETH | 0.0066633 | ||||
Create NFT Witho... | 15322181 | 909 days ago | IN | 0 ETH | 0.00966293 | ||||
Create NFT Witho... | 15318532 | 910 days ago | IN | 0 ETH | 0.00859885 | ||||
Create NFT Witho... | 15316460 | 910 days ago | IN | 0 ETH | 0.01385218 | ||||
Create NFT Witho... | 15316091 | 910 days ago | IN | 0 ETH | 0.01564508 |
Latest 25 internal transactions (View All)
Advanced mode:
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
MetaverseNFTFactory
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/proxy/Clones.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./MetaverseNFT.sol"; /** * MetaverseNFT is a cloneable contract for your NFT collection. * It's adapted from OpenZeppeling ERC721 implementation upgradeable versions. * This is needed to make it possible to create clones that work via delegatecall * ! The constructor is replaced with initializer, too * This way, deployment costs about 350k gas instead of 4.5M. * 1. https://forum.openzeppelin.com/t/how-to-set-implementation-contracts-for-clones/6085/4 * 2. https://github.com/OpenZeppelin/workshops/tree/master/02-contracts-clone/contracts/2-uniswap * 3. https://docs.openzeppelin.com/contracts/4.x/api/proxy */ contract MetaverseNFTFactory is Ownable { address public immutable proxyImplementation; IERC721 public earlyAccessPass; uint256 public maxAllowedAmount = 50 ether; // launch for free if your collection collects less than this amount // bitmask params uint32 constant SHOULD_START_AT_ONE = 1 << 1; uint32 constant SHOULD_START_SALE = 1 << 2; uint32 constant SHOULD_LOCK_PAYOUT_CHANGE = 1 << 3; event NFTCreated( address deployedAddress, // creation parameters uint256 price, uint256 maxSupply, uint256 nReserved, string name, string symbol, bool shouldUseJSONExtension, bool shouldStartAtOne, bool shouldStartSale, bool shouldLockPayoutChange ); modifier hasAccess(address creator) { // check that creator owns NFT require( address(earlyAccessPass) == address(0) || earlyAccessPass.balanceOf(msg.sender) > 0, "MetaverseNFTFactory: Early Access Pass is required" ); _; } modifier checkTotalAmount(uint256 amount) { require( amount < maxAllowedAmount, "MetaverseNFTFactory: Collection total amount is too high" ); _; } constructor(address _earlyAccessPass) { proxyImplementation = address(new MetaverseNFT()); earlyAccessPass = IERC721(_earlyAccessPass); emit NFTCreated( proxyImplementation, 0, 0, 0, "IMPLEMENTATION", "IMPLEMENTATION", false, false, false, false ); } function updateEarlyAccessPass(address _earlyAccessPass) public onlyOwner { earlyAccessPass = IERC721(_earlyAccessPass); } function updateMaxAllowedAmount(uint256 _maxAllowedAmount) public onlyOwner { maxAllowedAmount = _maxAllowedAmount; } function createNFT( uint256 _startPrice, uint256 _maxSupply, uint256 _nReserved, uint256 _maxTokensPerMint, uint256 _royaltyFee, string memory _uri, string memory _name, string memory _symbol ) external hasAccess(msg.sender) { address clone = Clones.clone(proxyImplementation); MetaverseNFT(payable(clone)).initialize( _startPrice, _maxSupply, _nReserved, _maxTokensPerMint, _royaltyFee, _uri, _name, _symbol, false ); MetaverseNFT(payable(clone)).transferOwnership(msg.sender); emit NFTCreated( clone, _startPrice, _maxSupply, _nReserved, _name, _symbol, false, false, false, false ); } function createNFTWithSettings( uint256 _startPrice, uint256 _maxSupply, uint256 _nReserved, uint256 _maxTokensPerMint, uint256 _royaltyFee, string memory _uri, string memory _name, string memory _symbol, address payoutReceiver, bool shouldUseJSONExtension, uint16 miscParams ) external hasAccess(msg.sender) { address clone = Clones.clone(proxyImplementation); // params is a bitmask of: // bool shouldUseJSONExtension = (miscParams & 0x01) == 0x01; // bool startTokenIdAtOne = (miscParams & 0x02) == 0x02; // bool shouldStartSale = (miscParams & 0x04) == 0x04; // bool shouldLockPayoutChange = (miscParams & 0x08) == 0x08; MetaverseNFT(payable(clone)).initialize( _startPrice, _maxSupply, _nReserved, _maxTokensPerMint, _royaltyFee, _uri, _name, _symbol, miscParams & SHOULD_START_AT_ONE != 0 ); if (shouldUseJSONExtension) { MetaverseNFT(payable(clone)).setPostfixURI(".json"); } if (miscParams & SHOULD_START_SALE != 0) { MetaverseNFT(payable(clone)).startSale(); } if (payoutReceiver != address(0)) { MetaverseNFT(payable(clone)).setPayoutReceiver(payoutReceiver); } if (miscParams & SHOULD_LOCK_PAYOUT_CHANGE != 0) { MetaverseNFT(payable(clone)).lockPayoutChange(); } MetaverseNFT(payable(clone)).transferOwnership(msg.sender); emit NFTCreated( clone, _startPrice, _maxSupply, _nReserved, _name, _symbol, shouldUseJSONExtension, miscParams & SHOULD_START_AT_ONE != 0, miscParams & SHOULD_START_SALE != 0, miscParams & SHOULD_LOCK_PAYOUT_CHANGE != 0 ); } function createNFTWithoutAccessPass( uint256 _startPrice, uint256 _maxSupply, uint256 _nReserved, uint256 _maxTokensPerMint, uint256 _royaltyFee, string memory _uri, string memory _name, string memory _symbol, address payoutReceiver, bool shouldUseJSONExtension, uint16 miscParams ) external checkTotalAmount(_startPrice * _maxSupply) { address clone = Clones.clone(proxyImplementation); // params is a bitmask of: // bool shouldUseJSONExtension = (miscParams & 0x01) == 0x01; // bool startTokenIdAtOne = (miscParams & 0x02) == 0x02; // bool shouldStartSale = (miscParams & 0x04) == 0x04; // bool shouldLockPayoutChange = (miscParams & 0x08) == 0x08; MetaverseNFT(payable(clone)).initialize( _startPrice, _maxSupply, _nReserved, _maxTokensPerMint, _royaltyFee, _uri, _name, _symbol, miscParams & SHOULD_START_AT_ONE != 0 ); if (shouldUseJSONExtension) { MetaverseNFT(payable(clone)).setPostfixURI(".json"); } if (miscParams & SHOULD_START_SALE != 0) { MetaverseNFT(payable(clone)).startSale(); } if (payoutReceiver != address(0)) { MetaverseNFT(payable(clone)).setPayoutReceiver(payoutReceiver); } if (miscParams & SHOULD_LOCK_PAYOUT_CHANGE != 0) { MetaverseNFT(payable(clone)).lockPayoutChange(); } MetaverseNFT(payable(clone)).transferOwnership(msg.sender); emit NFTCreated( clone, _startPrice, _maxSupply, _nReserved, _name, _symbol, shouldUseJSONExtension, miscParams & SHOULD_START_AT_ONE != 0, miscParams & SHOULD_START_SALE != 0, miscParams & SHOULD_LOCK_PAYOUT_CHANGE != 0 ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for * deploying minimal proxy contracts, also known as "clones". * * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies * > a minimal bytecode implementation that delegates all calls to a known, fixed address. * * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2` * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the * deterministic method. * * _Available since v3.4._ */ library Clones { /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`. * * This function uses the create opcode, which should never revert. */ function clone(address implementation) internal returns (address instance) { assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create(0, ptr, 0x37) } require(instance != address(0), "ERC1167: create failed"); } /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`. * * This function uses the create2 opcode and a `salt` to deterministically deploy * the clone. Using the same `implementation` and `salt` multiple time will revert, since * the clones cannot be deployed twice at the same address. */ function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) { assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create2(0, ptr, 0x37, salt) } require(instance != address(0), "ERC1167: create2 failed"); } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress( address implementation, bytes32 salt, address deployer ) internal pure returns (address predicted) { assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000) mstore(add(ptr, 0x38), shl(0x60, deployer)) mstore(add(ptr, 0x4c), salt) mstore(add(ptr, 0x6c), keccak256(ptr, 0x37)) predicted := keccak256(add(ptr, 0x37), 0x55) } } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress(address implementation, bytes32 salt) internal view returns (address predicted) { return predictDeterministicAddress(implementation, salt, address(this)); } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /** * @title LICENSE REQUIREMENT * @dev This contract is licensed under the MIT license. * @dev You're not allowed to remove DEVELOPER() and DEVELOPER_ADDRESS() from contract */ import "erc721a-upgradeable/contracts/ERC721AUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165Checker.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "./interfaces/INFTExtension.sol"; import "./interfaces/IMetaverseNFT.sol"; import "./utils/OpenseaProxy.sol"; // Want to launch your own collection? // Check out https://buildship.xyz // ,:loxO0KXXc // ,cdOKKKOxol:lKWl // ;oOXKko:, ;KNc // 'ox0X0d: cNK, // ',' ;xXX0x: dWk // ,cdO0KKKKKXKo, ,0Nl // ;oOXKko:,;kWMNl dWO' // ,o0XKd:' oNMMK: cXX: // 'ckNNk: ;KMN0c cXXl // 'OWMMWKOdl;' cl; oXXc // ;cclldxOKXKkl, ;kNO; // ;cdk0kl' ;clxXXo // ':oxo' c0WMMMMK; // :l: lNMWXxOWWo // '; :xdc' :XWd // , cXK; // ':, xXl // ;: ' o0c // ;c;,,,,' lx; // ''' cc // ,' contract MetaverseNFT is ERC721AUpgradeable, ReentrancyGuardUpgradeable, OwnableUpgradeable, IMetaverseNFT // implements IERC2981 { using Address for address; using SafeERC20 for IERC20; using Counters for Counters.Counter; Counters.Counter private _tokenIndexCounter; // token index counter uint256 public constant SALE_STARTS_AT_INFINITY = 2**256 - 1; uint256 public constant DEVELOPER_FEE = 500; // of 10,000 = 5% uint256 public startTimestamp = SALE_STARTS_AT_INFINITY; uint256 public reserved; uint256 public maxSupply; uint256 public maxPerMint; uint256 public price; uint256 public royaltyFee; address public royaltyReceiver; address public payoutReceiver = address(0x0); address public uriExtension = address(0x0); bool public isFrozen; bool public isPayoutChangeLocked; bool private isOpenSeaProxyActive = true; bool private startAtOne = false; /** * @dev Additional data for each token that needs to be stored and accessed on-chain */ mapping(uint256 => bytes32) public data; /** * @dev List of connected extensions */ INFTExtension[] public extensions; string public PROVENANCE_HASH = ""; string private CONTRACT_URI = ""; string private BASE_URI; string private URI_POSTFIX = ""; event ExtensionAdded(address indexed extensionAddress); event ExtensionRevoked(address indexed extensionAddress); event ExtensionURIAdded(address indexed extensionAddress); function initialize( uint256 _price, uint256 _maxSupply, uint256 _nReserved, uint256 _maxPerMint, uint256 _royaltyFee, string memory _uri, string memory _name, string memory _symbol, bool _startAtOne ) public initializer { startTimestamp = SALE_STARTS_AT_INFINITY; price = _price; reserved = _nReserved; maxPerMint = _maxPerMint; maxSupply = _maxSupply; royaltyFee = _royaltyFee; royaltyReceiver = address(this); startAtOne = _startAtOne; // Need help with uploading metadata? Try https://buildship.xyz BASE_URI = _uri; __ReentrancyGuard_init(); __ERC721A_init(_name, _symbol); __Ownable_init(); } // This constructor ensures that this contract can only be used as a master copy // Marking constructor as initializer makes sure that real initializer cannot be called // Thus, as the owner of the contract is 0x0, no one can do anything with the contract // on the other hand, it's impossible to call this function in proxy, // so the real initializer is the only initializer /// @custom:oz-upgrades-unsafe-allow constructor constructor() initializer {} function _baseURI() internal view override returns (string memory) { return BASE_URI; } function _startTokenId() internal view virtual override returns (uint256) { return startAtOne ? 1 : 0; } function contractURI() public view returns (string memory uri) { uri = bytes(CONTRACT_URI).length > 0 ? CONTRACT_URI : _baseURI(); } function tokenURI(uint256 tokenId) public view override returns (string memory) { if (uriExtension != address(0)) { string memory uri = INFTURIExtension(uriExtension).tokenURI( tokenId ); if (bytes(uri).length > 0) { return uri; } } if (bytes(URI_POSTFIX).length > 0) { return string(abi.encodePacked(super.tokenURI(tokenId), URI_POSTFIX)); } else { return super.tokenURI(tokenId); } } function startTokenId() public view returns (uint256) { return _startTokenId(); } // ----- Admin functions ----- function setBaseURI(string calldata uri) public onlyOwner { BASE_URI = uri; } // Contract-level metadata for Opensea function setContractURI(string calldata uri) public onlyOwner { CONTRACT_URI = uri; } function setPostfixURI(string calldata postfix) public onlyOwner { URI_POSTFIX = postfix; } function setPrice(uint256 _price) public onlyOwner { price = _price; } // Freeze forever, irreversible function freeze() public onlyOwner { isFrozen = true; } // Lock changing withdraw address function lockPayoutChange() public onlyOwner { isPayoutChangeLocked = true; } function isExtensionAdded(address _extension) public view returns (bool) { for (uint256 index = 0; index < extensions.length; index++) { if (address(extensions[index]) == _extension) { return true; } } return false; } function extensionsLength() public view returns (uint256) { return extensions.length; } // Extensions are allowed to mint function addExtension(address _extension) public onlyOwner { require(_extension != address(this), "Cannot add self as extension"); require(!isExtensionAdded(_extension), "Extension already added"); extensions.push(INFTExtension(_extension)); emit ExtensionAdded(_extension); } function revokeExtension(address _extension) public onlyOwner { uint256 index = 0; for (; index < extensions.length; index++) { if (extensions[index] == INFTExtension(_extension)) { break; } } extensions[index] = extensions[extensions.length - 1]; extensions.pop(); emit ExtensionRevoked(_extension); } function setExtensionTokenURI(address extension) public onlyOwner { require(extension != address(this), "Cannot add self as extension"); require( extension == address(0x0) || ERC165Checker.supportsInterface( extension, type(INFTURIExtension).interfaceId ), "Not conforms to extension" ); uriExtension = extension; emit ExtensionURIAdded(extension); } // function to disable gasless listings for security in case // opensea ever shuts down or is compromised // from CryptoCoven https://etherscan.io/address/0x5180db8f5c931aae63c74266b211f580155ecac8#code function setIsOpenSeaProxyActive(bool _isOpenSeaProxyActive) public onlyOwner { isOpenSeaProxyActive = _isOpenSeaProxyActive; } // ---- Minting ---- function _mintConsecutive( uint256 nTokens, address to, bytes32 extraData ) internal { require( _totalMinted() + nTokens + reserved <= maxSupply, "Not enough Tokens left." ); uint256 currentTokenIndex = _currentIndex; _safeMint(to, nTokens, ""); if (extraData.length > 0) { for (uint256 i; i < nTokens; i++) { uint256 tokenId = currentTokenIndex + i; data[tokenId] = extraData; } } } // ---- Mint control ---- modifier whenSaleStarted() { require(saleStarted(), "Sale not started"); _; } modifier whenNotFrozen() { require(!isFrozen, "Minting is frozen"); _; } modifier whenNotPayoutChangeLocked() { require(!isPayoutChangeLocked, "Payout change is locked"); _; } modifier onlyExtension() { require( isExtensionAdded(msg.sender), "Extension should be added to contract before minting" ); _; } // ---- Mint public ---- // Contract can sell tokens function mint(uint256 nTokens) external payable nonReentrant whenSaleStarted { require( nTokens <= maxPerMint, "You cannot mint more than MAX_TOKENS_PER_MINT tokens at once!" ); require(nTokens * price <= msg.value, "Inconsistent amount sent!"); _mintConsecutive(nTokens, msg.sender, 0x0); } // Owner can claim free tokens function claim(uint256 nTokens, address to) external nonReentrant onlyOwner { require(nTokens <= reserved, "That would exceed the max reserved."); reserved = reserved - nTokens; _mintConsecutive(nTokens, to, 0x0); } // ---- Mint via extension function mintExternal( uint256 nTokens, address to, bytes32 extraData ) external payable onlyExtension nonReentrant { _mintConsecutive(nTokens, to, extraData); } // ---- Sale control ---- function updateStartTimestamp(uint256 _startTimestamp) public onlyOwner whenNotFrozen { startTimestamp = _startTimestamp; } function startSale() public onlyOwner whenNotFrozen { startTimestamp = block.timestamp; } function stopSale() public onlyOwner { startTimestamp = SALE_STARTS_AT_INFINITY; } function saleStarted() public view returns (bool) { return block.timestamp >= startTimestamp; } // ---- Offchain Info ---- // This should be set before sales open. function setProvenanceHash(string memory provenanceHash) public onlyOwner { PROVENANCE_HASH = provenanceHash; } function setRoyaltyFee(uint256 _royaltyFee) public onlyOwner { royaltyFee = _royaltyFee; } function setRoyaltyReceiver(address _receiver) public onlyOwner { royaltyReceiver = _receiver; } function setPayoutReceiver(address _receiver) public onlyOwner whenNotPayoutChangeLocked { payoutReceiver = payable(_receiver); } function royaltyInfo(uint256, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount) { // We use the same contract to split royalties: 5% of royalty goes to the developer receiver = royaltyReceiver; royaltyAmount = (salePrice * royaltyFee) / 10000; } function getPayoutReceiver() public view returns (address payable receiver) { receiver = payoutReceiver != address(0x0) ? payable(payoutReceiver) : payable(owner()); } // ---- Allow royalty deposits from Opensea ----- receive() external payable {} // ---- Withdraw ----- function withdraw() public virtual onlyOwner { uint256 balance = address(this).balance; uint256 amount = (balance * (10000 - DEVELOPER_FEE)) / 10000; address payable receiver = getPayoutReceiver(); address payable dev = DEVELOPER_ADDRESS(); Address.sendValue(receiver, amount); Address.sendValue(dev, balance - amount); } function withdrawToken(IERC20 token) public virtual onlyOwner { uint256 balance = token.balanceOf(address(this)); uint256 amount = (balance * (10000 - DEVELOPER_FEE)) / 10000; address payable receiver = getPayoutReceiver(); address payable dev = DEVELOPER_ADDRESS(); token.safeTransfer(receiver, amount); token.safeTransfer(dev, balance - amount); } function DEVELOPER() public pure returns (string memory _url) { _url = "https://buildship.xyz"; } function DEVELOPER_ADDRESS() public pure returns (address payable _dev) { _dev = payable(0x704C043CeB93bD6cBE570C6A2708c3E1C0310587); } // -------- ERC721 overrides -------- function supportsInterface(bytes4 interfaceId) public view override returns (bool) { return interfaceId == type(IERC2981).interfaceId || interfaceId == type(IMetaverseNFT).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Override isApprovedForAll to allowlist user's OpenSea proxy accounts to enable gas-less listings. * Taken from CryptoCoven: https://etherscan.io/address/0x5180db8f5c931aae63c74266b211f580155ecac8#code */ function isApprovedForAll(address owner, address operator) public view override returns (bool) { // Get a reference to OpenSea's proxy registry contract by instantiating // the contract using the already existing address. ProxyRegistry proxyRegistry = ProxyRegistry( 0xa5409ec958C83C3f309868babACA7c86DCB077c1 ); if ( isOpenSeaProxyActive && address(proxyRegistry.proxies(owner)) == operator ) { return true; } return super.isApprovedForAll(owner, operator); } }
// SPDX-License-Identifier: MIT 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 // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import "./IERC721AUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721AUpgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721AUpgradeable { using AddressUpgradeable for address; using StringsUpgradeable for uint256; // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; function __ERC721A_init(string memory name_, string memory symbol_) internal onlyInitializing { __ERC721A_init_unchained(name_, symbol_); } function __ERC721A_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC721Upgradeable).interfaceId || interfaceId == type(IERC721MetadataUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721AUpgradeable.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721ReceiverUpgradeable(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[42] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuardUpgradeable is Initializable { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; function __ReentrancyGuard_init() internal onlyInitializing { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal onlyInitializing { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Library used to query support of an interface declared via {IERC165}. * * Note that these functions return the actual result of the query: they do not * `revert` if an interface is not supported. It is up to the caller to decide * what to do in these cases. */ library ERC165Checker { // As per the EIP-165 spec, no interface should ever match 0xffffffff bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff; /** * @dev Returns true if `account` supports the {IERC165} interface, */ function supportsERC165(address account) internal view returns (bool) { // Any contract that implements ERC165 must explicitly indicate support of // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid return _supportsERC165Interface(account, type(IERC165).interfaceId) && !_supportsERC165Interface(account, _INTERFACE_ID_INVALID); } /** * @dev Returns true if `account` supports the interface defined by * `interfaceId`. Support for {IERC165} itself is queried automatically. * * See {IERC165-supportsInterface}. */ function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) { // query support of both ERC165 as per the spec and support of _interfaceId return supportsERC165(account) && _supportsERC165Interface(account, interfaceId); } /** * @dev Returns a boolean array where each value corresponds to the * interfaces passed in and whether they're supported or not. This allows * you to batch check interfaces for a contract where your expectation * is that some interfaces may not be supported. * * See {IERC165-supportsInterface}. * * _Available since v3.4._ */ function getSupportedInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool[] memory) { // an array of booleans corresponding to interfaceIds and whether they're supported or not bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length); // query support of ERC165 itself if (supportsERC165(account)) { // query support of each interface in interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { interfaceIdsSupported[i] = _supportsERC165Interface(account, interfaceIds[i]); } } return interfaceIdsSupported; } /** * @dev Returns true if `account` supports all the interfaces defined in * `interfaceIds`. Support for {IERC165} itself is queried automatically. * * Batch-querying can lead to gas savings by skipping repeated checks for * {IERC165} support. * * See {IERC165-supportsInterface}. */ function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) { // query support of ERC165 itself if (!supportsERC165(account)) { return false; } // query support of each interface in _interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { if (!_supportsERC165Interface(account, interfaceIds[i])) { return false; } } // all interfaces supported return true; } /** * @notice Query if a contract implements an interface, does not check ERC165 support * @param account The address of the contract to query for support of an interface * @param interfaceId The interface identifier, as specified in ERC-165 * @return true if the contract at account indicates support of the interface with * identifier interfaceId, false otherwise * @dev Assumes that account contains a contract that supports ERC165, otherwise * the behavior of this method is undefined. This precondition can be checked * with {supportsERC165}. * Interface identification is specified in ERC-165. */ function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) { bytes memory encodedParams = abi.encodeWithSelector(IERC165.supportsInterface.selector, interfaceId); (bool success, bytes memory result) = account.staticcall{gas: 30000}(encodedParams); if (result.length < 32) return false; return success && abi.decode(result, (bool)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard */ interface IERC2981 is IERC165 { /** * @dev Called with the sale price to determine how much royalty is owed and to whom. * @param tokenId - the NFT asset queried for royalty information * @param salePrice - the sale price of the NFT asset specified by `tokenId` * @return receiver - address of who should be sent the royalty payment * @return royaltyAmount - the royalty payment amount for `salePrice` */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; interface INFTExtension is IERC165 { } interface INFTURIExtension is INFTExtension { function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; interface IAvatarNFT { function DEVELOPER() external pure returns (string memory _url); function DEVELOPER_ADDRESS() external pure returns (address payable _dev); // ------ View functions ------ function saleStarted() external view returns (bool); function isExtensionAdded(address extension) external view returns (bool); /** Extra information stored for each tokenId. Optional, provided on mint */ function data(uint256 tokenId) external view returns (bytes32); // ------ Mint functions ------ /** Mint from NFTExtension contract. Optionally provide data parameter. */ function mintExternal( uint256 tokenId, address to, bytes32 data ) external payable; // ------ Admin functions ------ function addExtension(address extension) external; function revokeExtension(address extension) external; function withdraw() external; } interface IMetaverseNFT is IAvatarNFT { // ------ View functions ------ /** Recommended royalty for tokenId sale. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); // ------ Admin functions ------ function setRoyaltyReceiver(address receiver) external; function setRoyaltyFee(uint256 fee) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; // These contract definitions are used to create a reference to the OpenSea // ProxyRegistry contract by using the registry's address (see isApprovedForAll). interface OwnableDelegateProxy { } interface ProxyRegistry { function proxies(address) external view returns (OwnableDelegateProxy); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol"; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721AUpgradeable is IERC721Upgradeable, IERC721MetadataUpgradeable { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721ReceiverUpgradeable { /** * @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.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @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 ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`. */ modifier initializer() { bool isTopLevelCall = _setInitializedVersion(1); if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original * initialization step. This is essential to configure modules that are added through upgrades and that require * initialization. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. */ modifier reinitializer(uint8 version) { bool isTopLevelCall = _setInitializedVersion(version); if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(version); } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. */ function _disableInitializers() internal virtual { _setInitializedVersion(type(uint8).max); } function _setInitializedVersion(uint8 version) private returns (bool) { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, and for the lowest level // of initializers, because in other contexts the contract may have been reentered. if (_initializing) { require( version == 1 && !AddressUpgradeable.isContract(address(this)), "Initializable: contract is already initialized" ); return false; } else { require(_initialized < version, "Initializable: contract is already initialized"); _initialized = version; return true; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721Upgradeable.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721MetadataUpgradeable is IERC721Upgradeable { /** * @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 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 IERC165Upgradeable { /** * @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 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 pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
{ "optimizer": { "enabled": true, "runs": 10000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_earlyAccessPass","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"deployedAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"nReserved","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"symbol","type":"string"},{"indexed":false,"internalType":"bool","name":"shouldUseJSONExtension","type":"bool"},{"indexed":false,"internalType":"bool","name":"shouldStartAtOne","type":"bool"},{"indexed":false,"internalType":"bool","name":"shouldStartSale","type":"bool"},{"indexed":false,"internalType":"bool","name":"shouldLockPayoutChange","type":"bool"}],"name":"NFTCreated","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"},{"inputs":[{"internalType":"uint256","name":"_startPrice","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_nReserved","type":"uint256"},{"internalType":"uint256","name":"_maxTokensPerMint","type":"uint256"},{"internalType":"uint256","name":"_royaltyFee","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"name":"createNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startPrice","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_nReserved","type":"uint256"},{"internalType":"uint256","name":"_maxTokensPerMint","type":"uint256"},{"internalType":"uint256","name":"_royaltyFee","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"payoutReceiver","type":"address"},{"internalType":"bool","name":"shouldUseJSONExtension","type":"bool"},{"internalType":"uint16","name":"miscParams","type":"uint16"}],"name":"createNFTWithSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startPrice","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_nReserved","type":"uint256"},{"internalType":"uint256","name":"_maxTokensPerMint","type":"uint256"},{"internalType":"uint256","name":"_royaltyFee","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"payoutReceiver","type":"address"},{"internalType":"bool","name":"shouldUseJSONExtension","type":"bool"},{"internalType":"uint16","name":"miscParams","type":"uint16"}],"name":"createNFTWithoutAccessPass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"earlyAccessPass","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxAllowedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_earlyAccessPass","type":"address"}],"name":"updateEarlyAccessPass","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxAllowedAmount","type":"uint256"}],"name":"updateMaxAllowedAmount","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040526802b5e3af16b18800006002553480156200001e57600080fd5b50604051620065963803806200659683398101604081905262000041916200014c565b6200004c33620000ee565b6040516200005a906200013e565b604051809103906000f08015801562000077573d6000803e3d6000fd5b506001600160a01b039081166080819052600180546001600160a01b031916928416929092179091556040517f4d77938a6089f3548dc89f9eb42926cec38ed4cefef0c99a1f60a14901d59f1691620000df916000908190819081908190819081906200017e565b60405180910390a15062000220565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b614f19806200167d83390190565b6000602082840312156200015f57600080fd5b81516001600160a01b03811681146200017757600080fd5b9392505050565b600061014060018060a01b038b168352896020840152886040840152876060840152806080840152620001ce818401600e81526d24a6a82622a6a2a72a20aa24a7a760911b602082015260400190565b83810360a0850152600e81526d24a6a82622a6a2a72a20aa24a7a760911b602082015296151560c0840152505092151560e0840152901515610100830152151561012090910152604001949350505050565b608051611434620002496000396000818160d30152818161034e015261081401526114346000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c806365b640d511610081578063cc6accfc1161005b578063cc6accfc146101b7578063db2ef123146101ca578063f2fde38b146101dd57600080fd5b806365b640d51461017a578063715018a6146101915780638da5cb5b1461019957600080fd5b80633fd54a9e116100b25780633fd54a9e14610134578063448ccf37146101545780635a9531591461016757600080fd5b80630c870f91146100ce5780633e0116101461011f575b600080fd5b6100f57f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b61013261012d366004610ff2565b6101f0565b005b6001546100f59073ffffffffffffffffffffffffffffffffffffffff1681565b6101326101623660046110cf565b6104e0565b6101326101753660046110f1565b6105a8565b61018360025481565b604051908152602001610116565b61013261062e565b60005473ffffffffffffffffffffffffffffffffffffffff166100f5565b6101326101c536600461112c565b6106bb565b6101326101d836600461112c565b610bf6565b6101326101eb3660046110cf565b610c91565b600154339073ffffffffffffffffffffffffffffffffffffffff1615806102b657506001546040517f70a0823100000000000000000000000000000000000000000000000000000000815233600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561027c57600080fd5b505afa158015610290573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102b4919061121e565b115b610347576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4d65746176657273654e4654466163746f72793a204561726c7920416363657360448201527f732050617373206973207265717569726564000000000000000000000000000060648201526084015b60405180910390fd5b60006103727f0000000000000000000000000000000000000000000000000000000000000000610dc1565b6040517f815f1a3600000000000000000000000000000000000000000000000000000000815290915073ffffffffffffffffffffffffffffffffffffffff82169063815f1a36906103d8908d908d908d908d908d908d908d908d906000906004016112a2565b600060405180830381600087803b1580156103f257600080fd5b505af1158015610406573d6000803e3d6000fd5b50506040517ff2fde38b00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff8416925063f2fde38b9150602401600060405180830381600087803b15801561047157600080fd5b505af1158015610485573d6000803e3d6000fd5b505050507f4d77938a6089f3548dc89f9eb42926cec38ed4cefef0c99a1f60a14901d59f16818b8b8b88886000806000806040516104cc9a99989796959493929190611316565b60405180910390a150505050505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610561576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161033e565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610629576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161033e565b600255565b60005473ffffffffffffffffffffffffffffffffffffffff1633146106af576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161033e565b6106b96000610ea3565b565b600154339073ffffffffffffffffffffffffffffffffffffffff16158061078157506001546040517f70a0823100000000000000000000000000000000000000000000000000000000815233600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561074757600080fd5b505afa15801561075b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077f919061121e565b115b61080d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4d65746176657273654e4654466163746f72793a204561726c7920416363657360448201527f7320506173732069732072657175697265640000000000000000000000000000606482015260840161033e565b60006108387f0000000000000000000000000000000000000000000000000000000000000000610dc1565b90508073ffffffffffffffffffffffffffffffffffffffff1663815f1a368e8e8e8e8e8e8e8e60028d61ffff161663ffffffff16600014156040518a63ffffffff1660e01b8152600401610894999897969594939291906112a2565b600060405180830381600087803b1580156108ae57600080fd5b505af11580156108c2573d6000803e3d6000fd5b50505050831561097a576040517f0768c61800000000000000000000000000000000000000000000000000000000815260206004820152600560248201527f2e6a736f6e000000000000000000000000000000000000000000000000000000604482015273ffffffffffffffffffffffffffffffffffffffff821690630768c61890606401600060405180830381600087803b15801561096157600080fd5b505af1158015610975573d6000803e3d6000fd5b505050505b60048316156109e4578073ffffffffffffffffffffffffffffffffffffffff1663b66a0e5d6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156109cb57600080fd5b505af11580156109df573d6000803e3d6000fd5b505050505b73ffffffffffffffffffffffffffffffffffffffff851615610a82576040517f2a30e4c200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152821690632a30e4c290602401600060405180830381600087803b158015610a6957600080fd5b505af1158015610a7d573d6000803e3d6000fd5b505050505b6008831615610aec578073ffffffffffffffffffffffffffffffffffffffff1663d69b2e456040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610ad357600080fd5b505af1158015610ae7573d6000803e3d6000fd5b505050505b6040517ff2fde38b00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff82169063f2fde38b90602401600060405180830381600087803b158015610b5357600080fd5b505af1158015610b67573d6000803e3d6000fd5b505050507f4d77938a6089f3548dc89f9eb42926cec38ed4cefef0c99a1f60a14901d59f16818e8e8e8b8b8a60028b61ffff161663ffffffff166000141560048c61ffff161663ffffffff166000141560088d61ffff161663ffffffff1660001415604051610bdf9a99989796959493929190611316565b60405180910390a150505050505050505050505050565b610c008a8c61139a565b600254811061080d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4d65746176657273654e4654466163746f72793a20436f6c6c656374696f6e2060448201527f746f74616c20616d6f756e7420697320746f6f20686967680000000000000000606482015260840161033e565b60005473ffffffffffffffffffffffffffffffffffffffff163314610d12576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161033e565b73ffffffffffffffffffffffffffffffffffffffff8116610db5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161033e565b610dbe81610ea3565b50565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f091505073ffffffffffffffffffffffffffffffffffffffff8116610e9e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f455243313136373a20637265617465206661696c656400000000000000000000604482015260640161033e565b919050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f830112610f5857600080fd5b813567ffffffffffffffff80821115610f7357610f73610f18565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715610fb957610fb9610f18565b81604052838152866020858801011115610fd257600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600080600080610100898b03121561100f57600080fd5b883597506020890135965060408901359550606089013594506080890135935060a089013567ffffffffffffffff8082111561104a57600080fd5b6110568c838d01610f47565b945060c08b013591508082111561106c57600080fd5b6110788c838d01610f47565b935060e08b013591508082111561108e57600080fd5b5061109b8b828c01610f47565b9150509295985092959890939650565b803573ffffffffffffffffffffffffffffffffffffffff81168114610e9e57600080fd5b6000602082840312156110e157600080fd5b6110ea826110ab565b9392505050565b60006020828403121561110357600080fd5b5035919050565b80358015158114610e9e57600080fd5b803561ffff81168114610e9e57600080fd5b60008060008060008060008060008060006101608c8e03121561114e57600080fd5b8b359a5060208c0135995060408c0135985060608c0135975060808c0135965067ffffffffffffffff8060a08e0135111561118857600080fd5b6111988e60a08f01358f01610f47565b96508060c08e013511156111ab57600080fd5b6111bb8e60c08f01358f01610f47565b95508060e08e013511156111ce57600080fd5b506111df8d60e08e01358e01610f47565b93506111ee6101008d016110ab565b92506111fd6101208d0161110a565b915061120c6101408d0161111a565b90509295989b509295989b9093969950565b60006020828403121561123057600080fd5b5051919050565b6000815180845260005b8181101561125d57602081850181015186830182015201611241565b8181111561126f576000602083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60006101208b83528a60208401528960408401528860608401528760808401528060a08401526112d481840188611237565b905082810360c08401526112e88187611237565b905082810360e08401526112fc8186611237565b9150508215156101008301529a9950505050505050505050565b600061014073ffffffffffffffffffffffffffffffffffffffff8d1683528b60208401528a60408401528960608401528060808401526113588184018a611237565b905082810360a084015261136c8189611237565b96151560c0840152505092151560e08401529015156101008301521515610120909101529695505050505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156113f9577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b50029056fea26469706673582212204beda56e6d9160b6e38d76b24071734997d91b23e170154756d89ab1bdb6f54664736f6c6343000809003360001960fc5561010380546001600160a01b03191690556101048054600163ffff000160a01b031916600160b01b17905560a06040819052600060808190526200004d916101079162000236565b506040805160208101918290526000908190526200006f916101089162000236565b50604080516020810191829052600090819052620000919161010a9162000236565b503480156200009f57600080fd5b506000620000ae600162000115565b90508015620000c7576000805461ff0019166101001790555b80156200010e576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5062000319565b60008054610100900460ff1615620001ae578160ff1660011480156200014e57506200014c306200022760201b620029c51760201c565b155b620001a65760405162461bcd60e51b815260206004820152602e602482015260008051602062004ef983398151915260448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b506000919050565b60005460ff8084169116106200020d5760405162461bcd60e51b815260206004820152602e602482015260008051602062004ef983398151915260448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016200019d565b506000805460ff191660ff92909216919091179055600190565b6001600160a01b03163b151590565b8280546200024490620002dc565b90600052602060002090601f016020900481019282620002685760008555620002b3565b82601f106200028357805160ff1916838001178555620002b3565b82800160010185558215620002b3579182015b82811115620002b357825182559160200191906001019062000296565b50620002c1929150620002c5565b5090565b5b80821115620002c15760008155600101620002c6565b600181811c90821680620002f157607f821691505b602082108114156200031357634e487b7160e01b600052602260045260246000fd5b50919050565b614bd080620003296000396000f3fe6080604052600436106103e25760003560e01c80638da5cb5b1161020d578063c87b56dd11610128578063e67151ae116100bb578063e985e9c51161008a578063f2fde38b1161006f578063f2fde38b14610b82578063fe60d12c14610ba2578063ff1b655614610bb857600080fd5b8063e985e9c514610b34578063f0ba844014610b5457600080fd5b8063e67151ae14610ad4578063e6798baa14610af4578063e6fd48bc14610b09578063e8a3d48514610b1f57600080fd5b8063db85d59c116100f7578063db85d59c14610a5f578063ddd5e1b214610a7f578063e36b0b3714610a9f578063e43082f714610ab457600080fd5b8063c87b56dd146109fe578063d56b754614610a1e578063d5abeb0114610a34578063d69b2e4514610a4a57600080fd5b8063a0712d68116101a0578063a769310a1161016f578063a769310a14610992578063b66a0e5d146109b2578063b88d4fde146109c7578063b8997a97146109e757600080fd5b8063a0712d681461090b578063a22cb4651461091e578063a474935c1461093e578063a4f6628d1461097257600080fd5b806395d89b41116101dc57806395d89b41146108a85780639eb88b2c146108bd5780639fbc8713146108d3578063a035b1fe146108f457600080fd5b80638da5cb5b1461082a5780638dc251e31461084857806391b7f5ed14610868578063938e3d7b1461088857600080fd5b80633e4086e5116102fd57806362a5af3b1161029057806370a082311161025f57806370a08231146107b5578063715018a6146107d5578063815f1a36146107ea578063894760691461080a57600080fd5b806362a5af3b1461074b5780636352211e146107605780636b853314146107805780636e878ffb146107a057600080fd5b8063507e094f116102cc578063507e094f146106dc57806352ee4696146106f257806355f804b3146107135780635c474f9e1461073357600080fd5b80633e4086e51461066257806342842e0e14610682578063454e66c8146106a25780634690521b146106c957600080fd5b806318160ddd116103755780632a55205a116103445780632a55205a1461059557806333eeb147146105d45780633c934ab3146106075780633ccfd60b1461064d57600080fd5b806318160ddd1461051f57806320b7b8df1461053457806323b872dd146105555780632a30e4c21461057557600080fd5b8063081812fc116103b1578063081812fc14610487578063095ea7b3146104bf57806310969523146104df578063170ff3e1146104ff57600080fd5b806301ffc9a7146103ee5780630563aae51461042357806306fdde03146104435780630768c6181461046557600080fd5b366103e957005b600080fd5b3480156103fa57600080fd5b5061040e610409366004614231565b610bcd565b60405190151581526020015b60405180910390f35b34801561042f57600080fd5b50610106545b60405190815260200161041a565b34801561044f57600080fd5b50610458610c75565b60405161041a91906142c4565b34801561047157600080fd5b506104856104803660046142d7565b610d07565b005b34801561049357600080fd5b506104a76104a2366004614349565b610d78565b6040516001600160a01b03909116815260200161041a565b3480156104cb57600080fd5b506104856104da366004614377565b610dd5565b3480156104eb57600080fd5b506104856104fa3660046144c5565b610e89565b34801561050b57600080fd5b5061048561051a3660046144fa565b610efb565b34801561052b57600080fd5b50610435611095565b34801561054057600080fd5b50610103546104a7906001600160a01b031681565b34801561056157600080fd5b50610485610570366004614517565b6110ac565b34801561058157600080fd5b506104856105903660046144fa565b6110b7565b3480156105a157600080fd5b506105b56105b0366004614558565b6111b9565b604080516001600160a01b03909316835260208301919091520161041a565b3480156105e057600080fd5b506101045461040e9074010000000000000000000000000000000000000000900460ff1681565b34801561061357600080fd5b5060408051808201909152601581527f68747470733a2f2f6275696c64736869702e78797a00000000000000000000006020820152610458565b34801561065957600080fd5b506104856111f1565b34801561066e57600080fd5b5061048561067d366004614349565b6112b7565b34801561068e57600080fd5b5061048561069d366004614517565b611317565b3480156106ae57600080fd5b5073704c043ceb93bd6cbe570c6a2708c3e1c03105876104a7565b6104856106d736600461457a565b611332565b3480156106e857600080fd5b5061043560ff5481565b3480156106fe57600080fd5b50610104546104a7906001600160a01b031681565b34801561071f57600080fd5b5061048561072e3660046142d7565b61141a565b34801561073f57600080fd5b5060fc5442101561040e565b34801561075757600080fd5b50610485611481565b34801561076c57600080fd5b506104a761077b366004614349565b61151d565b34801561078c57600080fd5b5061048561079b3660046144fa565b61152f565b3480156107ac57600080fd5b506104a76116cc565b3480156107c157600080fd5b506104356107d03660046144fa565b611706565b3480156107e157600080fd5b5061048561176e565b3480156107f657600080fd5b506104856108053660046145ba565b6117d4565b34801561081657600080fd5b506104856108253660046144fa565b611948565b34801561083657600080fd5b5060c9546001600160a01b03166104a7565b34801561085457600080fd5b506104856108633660046144fa565b611ab9565b34801561087457600080fd5b50610485610883366004614349565b611b4e565b34801561089457600080fd5b506104856108a33660046142d7565b611bae565b3480156108b457600080fd5b50610458611c15565b3480156108c957600080fd5b5061043560001981565b3480156108df57600080fd5b50610102546104a7906001600160a01b031681565b34801561090057600080fd5b506104356101005481565b610485610919366004614349565b611c24565b34801561092a57600080fd5b50610485610939366004614684565b611db8565b34801561094a57600080fd5b506101045461040e907501000000000000000000000000000000000000000000900460ff1681565b34801561097e57600080fd5b5061040e61098d3660046144fa565b611e85565b34801561099e57600080fd5b506104856109ad3660046144fa565b611ef1565b3480156109be57600080fd5b506104856120a9565b3480156109d357600080fd5b506104856109e23660046146bd565b612175565b3480156109f357600080fd5b506104356101015481565b348015610a0a57600080fd5b50610458610a19366004614349565b6121d2565b348015610a2a57600080fd5b506104356101f481565b348015610a4057600080fd5b5061043560fe5481565b348015610a5657600080fd5b5061048561230b565b348015610a6b57600080fd5b506104a7610a7a366004614349565b6123a8565b348015610a8b57600080fd5b50610485610a9a36600461473d565b6123d3565b348015610aab57600080fd5b50610485612523565b348015610ac057600080fd5b50610485610acf366004614762565b612585565b348015610ae057600080fd5b50610485610aef366004614349565b61262c565b348015610b0057600080fd5b506104356126f7565b348015610b1557600080fd5b5061043560fc5481565b348015610b2b57600080fd5b50610458612701565b348015610b4057600080fd5b5061040e610b4f36600461477f565b612730565b348015610b6057600080fd5b50610435610b6f366004614349565b6101056020526000908152604090205481565b348015610b8e57600080fd5b50610485610b9d3660046144fa565b612854565b348015610bae57600080fd5b5061043560fd5481565b348015610bc457600080fd5b50610458612936565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610c6057507fffffffff0000000000000000000000000000000000000000000000000000000082167f99d7f75c00000000000000000000000000000000000000000000000000000000145b80610c6f5750610c6f826129d4565b92915050565b606060678054610c84906147ad565b80601f0160208091040260200160405190810160405280929190818152602001828054610cb0906147ad565b8015610cfd5780601f10610cd257610100808354040283529160200191610cfd565b820191906000526020600020905b815481529060010190602001808311610ce057829003601f168201915b5050505050905090565b60c9546001600160a01b03163314610d665760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b610d7361010a83836140d8565b505050565b6000610d8382612ab7565b610db9576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152606b60205260409020546001600160a01b031690565b6000610de08261151d565b9050806001600160a01b0316836001600160a01b03161415610e2e576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614610e7e57610e488133612730565b610e7e576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d73838383612b0f565b60c9546001600160a01b03163314610ee35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5d565b8051610ef79061010790602084019061417a565b5050565b60c9546001600160a01b03163314610f555760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5d565b6001600160a01b038116301415610fae5760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f74206164642073656c6620617320657874656e73696f6e000000006044820152606401610d5d565b610fb781611e85565b156110045760405162461bcd60e51b815260206004820152601760248201527f457874656e73696f6e20616c72656164792061646465640000000000000000006044820152606401610d5d565b610106805460018101825560009182527fc9ef9fceea91e87b2c84ea400a44fde78842aae8aa24cd4b502ce5fb4d91e63b0180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03841690811790915560405190917f99c6112dbaef85e57ac8ca86dd23e3c785162b58a6e810e5d5e7455b568d66b191a250565b600061109f612b83565b6066546065540303905090565b610d73838383612bbe565b60c9546001600160a01b031633146111115760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5d565b610104547501000000000000000000000000000000000000000000900460ff161561117e5760405162461bcd60e51b815260206004820152601760248201527f5061796f7574206368616e6765206973206c6f636b65640000000000000000006044820152606401610d5d565b61010380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b61010254610101546001600160a01b0390911690600090612710906111de9085614830565b6111e8919061487e565b90509250929050565b60c9546001600160a01b0316331461124b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5d565b47600061271061125d6101f482614892565b6112679084614830565b611271919061487e565b9050600061127d6116cc565b905073704c043ceb93bd6cbe570c6a2708c3e1c031058761129e8284612e60565b6112b1816112ac8587614892565b612e60565b50505050565b60c9546001600160a01b031633146113115760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5d565b61010155565b610d7383838360405180602001604052806000815250612175565b61133b33611e85565b6113ad5760405162461bcd60e51b815260206004820152603460248201527f457874656e73696f6e2073686f756c6420626520616464656420746f20636f6e60448201527f7472616374206265666f7265206d696e74696e670000000000000000000000006064820152608401610d5d565b600260975414156114005760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d5d565b6002609755611410838383612f79565b5050600160975550565b60c9546001600160a01b031633146114745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5d565b610d7361010983836140d8565b60c9546001600160a01b031633146114db5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5d565b61010480547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b600061152882613047565b5192915050565b60c9546001600160a01b031633146115895760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5d565b6001600160a01b0381163014156115e25760405162461bcd60e51b815260206004820152601c60248201527f43616e6e6f74206164642073656c6620617320657874656e73696f6e000000006044820152606401610d5d565b6001600160a01b038116158061161d575061161d817fc87b56dd000000000000000000000000000000000000000000000000000000006131de565b6116695760405162461bcd60e51b815260206004820152601960248201527f4e6f7420636f6e666f726d7320746f20657874656e73696f6e000000000000006044820152606401610d5d565b61010480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040517f92597a601f19fe4d50f14ea76d7ba45d21bad7992f7e1709c605642b190de09290600090a250565b610103546000906001600160a01b03166116f5575060c9546001600160a01b031690565b905090565b50610103546001600160a01b031690565b60006001600160a01b038216611748576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b03166000908152606a602052604090205467ffffffffffffffff1690565b60c9546001600160a01b031633146117c85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5d565b6117d26000613201565b565b60006117e0600161326b565b9050801561181557600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101001790555b60001960fc556101008a905560fd88905560ff87905560fe89905561010186905561010280547fffffffffffffffffffffffff00000000000000000000000000000000000000001630179055610104805483151577010000000000000000000000000000000000000000000000027fffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffff90911617905584516118be9061010990602088019061417a565b506118c76133bd565b6118d18484613442565b6118d96134c9565b801561193c57600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050505050505050565b60c9546001600160a01b031633146119a25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5d565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b1580156119fd57600080fd5b505afa158015611a11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a3591906148a9565b90506000612710611a486101f482614892565b611a529084614830565b611a5c919061487e565b90506000611a686116cc565b905073704c043ceb93bd6cbe570c6a2708c3e1c0310587611a936001600160a01b038616838561354e565b611ab281611aa18587614892565b6001600160a01b038816919061354e565b5050505050565b60c9546001600160a01b03163314611b135760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5d565b61010280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60c9546001600160a01b03163314611ba85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5d565b61010055565b60c9546001600160a01b03163314611c085760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5d565b610d7361010883836140d8565b606060688054610c84906147ad565b60026097541415611c775760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d5d565b600260975560fc54421015611cce5760405162461bcd60e51b815260206004820152601060248201527f53616c65206e6f742073746172746564000000000000000000000000000000006044820152606401610d5d565b60ff54811115611d465760405162461bcd60e51b815260206004820152603d60248201527f596f752063616e6e6f74206d696e74206d6f7265207468616e204d41585f544f60448201527f4b454e535f5045525f4d494e5420746f6b656e73206174206f6e6365210000006064820152608401610d5d565b346101005482611d569190614830565b1115611da45760405162461bcd60e51b815260206004820152601960248201527f496e636f6e73697374656e7420616d6f756e742073656e7421000000000000006044820152606401610d5d565b611db081336000612f79565b506001609755565b6001600160a01b038216331415611dfb576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336000818152606c602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000805b61010654811015611ee857826001600160a01b03166101068281548110611eb257611eb26148c2565b6000918252602090912001546001600160a01b03161415611ed65750600192915050565b80611ee0816148f1565b915050611e89565b50600092915050565b60c9546001600160a01b03163314611f4b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5d565b60005b61010654811015611fa957816001600160a01b03166101068281548110611f7757611f776148c2565b6000918252602090912001546001600160a01b03161415611f9757611fa9565b80611fa1816148f1565b915050611f4e565b6101068054611fba90600190614892565b81548110611fca57611fca6148c2565b60009182526020909120015461010680546001600160a01b039092169183908110611ff757611ff76148c2565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506101068054806120375761203761490c565b600082815260208120820160001990810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690559091019091556040516001600160a01b038416917fe056b30f86b962fc88925cb7559e4364707cab11d2c52e090e6c0db62eb9113591a25050565b60c9546001600160a01b031633146121035760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5d565b6101045474010000000000000000000000000000000000000000900460ff161561216f5760405162461bcd60e51b815260206004820152601160248201527f4d696e74696e672069732066726f7a656e0000000000000000000000000000006044820152606401610d5d565b4260fc55565b612180848484612bbe565b6001600160a01b0383163b156112b15761219c848484846135ce565b6112b1576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610104546060906001600160a01b0316156122b257610104546040517fc87b56dd000000000000000000000000000000000000000000000000000000008152600481018490526000916001600160a01b03169063c87b56dd9060240160006040518083038186803b15801561224657600080fd5b505afa15801561225a573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526122a0919081019061493b565b8051909150156122b05792915050565b505b600061010a80546122c2906147ad565b905011156122fd576122d382613746565b61010a6040516020016122e79291906149b2565b6040516020818303038152906040529050919050565b610c6f82613746565b919050565b60c9546001600160a01b031633146123655760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5d565b61010480547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff167501000000000000000000000000000000000000000000179055565b61010681815481106123b957600080fd5b6000918252602090912001546001600160a01b0316905081565b600260975414156124265760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d5d565b600260975560c9546001600160a01b031633146124855760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5d565b60fd548211156124fd5760405162461bcd60e51b815260206004820152602360248201527f5468617420776f756c642065786365656420746865206d61782072657365727660448201527f65642e00000000000000000000000000000000000000000000000000000000006064820152608401610d5d565b8160fd5461250b9190614892565b60fd5561251a82826000612f79565b50506001609755565b60c9546001600160a01b0316331461257d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5d565b60001960fc55565b60c9546001600160a01b031633146125df5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5d565b6101048054911515760100000000000000000000000000000000000000000000027fffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffff909216919091179055565b60c9546001600160a01b031633146126865760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5d565b6101045474010000000000000000000000000000000000000000900460ff16156126f25760405162461bcd60e51b815260206004820152601160248201527f4d696e74696e672069732066726f7a656e0000000000000000000000000000006044820152606401610d5d565b60fc55565b60006116f0612b83565b606060006101088054612713906147ad565b905011612722576116f06137e3565b6101088054610c84906147ad565b6101045460009073a5409ec958c83c3f309868babaca7c86dcb077c190760100000000000000000000000000000000000000000000900460ff16801561281357506040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152808516919083169063c45527919060240160206040518083038186803b1580156127d057600080fd5b505afa1580156127e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128089190614a9a565b6001600160a01b0316145b15612822576001915050610c6f565b6001600160a01b038085166000908152606c602090815260408083209387168352929052205460ff165b949350505050565b60c9546001600160a01b031633146128ae5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d5d565b6001600160a01b03811661292a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d5d565b61293381613201565b50565b6101078054612944906147ad565b80601f0160208091040260200160405190810160405280929190818152602001828054612970906147ad565b80156129bd5780601f10612992576101008083540402835291602001916129bd565b820191906000526020600020905b8154815290600101906020018083116129a057829003601f168201915b505050505081565b6001600160a01b03163b151590565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480612a6757507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c6f57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610c6f565b600081612ac2612b83565b11158015612ad1575060655482105b8015610c6f5750506000908152606960205260409020547c0100000000000000000000000000000000000000000000000000000000900460ff161590565b6000828152606b602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6101045460009077010000000000000000000000000000000000000000000000900460ff16612bb3576000612bb6565b60015b60ff16905090565b6000612bc982613047565b9050836001600160a01b031681600001516001600160a01b031614612c1a576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b0386161480612c385750612c388533612730565b80612c53575033612c4884610d78565b6001600160a01b0316145b905080612c8c576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038416612ccc576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612cd860008487612b0f565b6001600160a01b038581166000908152606a6020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000080821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652606990945282852080547fffffffff00000000000000000000000000000000000000000000000000000000169094177401000000000000000000000000000000000000000042909216919091021783558701808452922080549193909116612e17576065548214612e17578054602086015167ffffffffffffffff1674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611ab2565b80471015612eb05760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610d5d565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612efd576040519150601f19603f3d011682016040523d82523d6000602084013e612f02565b606091505b5050905080610d735760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610d5d565b60fe5460fd5484612f886137f3565b612f929190614ab7565b612f9c9190614ab7565b1115612fea5760405162461bcd60e51b815260206004820152601760248201527f4e6f7420656e6f75676820546f6b656e73206c6566742e0000000000000000006044820152606401610d5d565b6000606554905061300b838560405180602001604052806000815250613806565b60005b84811015611ab25760006130228284614ab7565b600090815261010560205260409020849055508061303f816148f1565b91505061300e565b6040805160608101825260008082526020820181905291810191909152818061306e612b83565b116131ac576065548110156131ac57600081815260696020908152604091829020825160608101845290546001600160a01b038116825274010000000000000000000000000000000000000000810467ffffffffffffffff16928201929092527c010000000000000000000000000000000000000000000000000000000090910460ff161515918101829052906131aa5780516001600160a01b031615613116579392505050565b5060001901600081815260696020908152604091829020825160608101845290546001600160a01b03811680835274010000000000000000000000000000000000000000820467ffffffffffffffff16938301939093527c0100000000000000000000000000000000000000000000000000000000900460ff16151592810192909252156131a5579392505050565b613116565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006131e983613a65565b80156131fa57506131fa8383613ac9565b9392505050565b60c980546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008054610100900460ff1615613308578160ff16600114801561328e5750303b155b6133005760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610d5d565b506000919050565b60005460ff8084169116106133855760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610d5d565b50600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660ff92909216919091179055600190565b600054610100900460ff1661343a5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610d5d565b6117d2613bf8565b600054610100900460ff166134bf5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610d5d565b610ef78282613c7c565b600054610100900460ff166135465760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610d5d565b6117d2613d30565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610d73908490613db6565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081526000906001600160a01b0385169063150b7a029061361c903390899088908890600401614acf565b602060405180830381600087803b15801561363657600080fd5b505af1925050508015613684575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261368191810190614b01565b60015b6136f8573d8080156136b2576040519150601f19603f3d011682016040523d82523d6000602084013e6136b7565b606091505b5080516136f0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050949350505050565b606061375182612ab7565b613787576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006137916137e3565b90508051600014156137b257604051806020016040528060008152506131fa565b806137bc84613e9b565b6040516020016137cd929190614b1e565b6040516020818303038152906040529392505050565b60606101098054610c84906147ad565b60006137fd612b83565b60655403905090565b6065546001600160a01b038416613849576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82613880576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0384166000818152606a6020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168b018116918217680100000000000000007fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090941690921783900481168b01811690920217909155858452606990925290912080547fffffffff000000000000000000000000000000000000000000000000000000001683177401000000000000000000000000000000000000000042909316929092029190911790558190818501903b15613a11575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46139c160008784806001019550876135ce565b6139f7576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808210613976578260655414613a0c57600080fd5b613a56565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210613a12575b506065556112b1600085838684565b6000613a91827f01ffc9a700000000000000000000000000000000000000000000000000000000613ac9565b8015610c6f5750613ac2827fffffffff00000000000000000000000000000000000000000000000000000000613ac9565b1592915050565b604080517fffffffff00000000000000000000000000000000000000000000000000000000831660248083019190915282518083039091018152604490910182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f01ffc9a700000000000000000000000000000000000000000000000000000000179052905160009190829081906001600160a01b0387169061753090613b76908690614b4d565b6000604051808303818686fa925050503d8060008114613bb2576040519150601f19603f3d011682016040523d82523d6000602084013e613bb7565b606091505b5091509150602081511015613bd25760009350505050610c6f565b818015613bee575080806020019051810190613bee9190614b69565b9695505050505050565b600054610100900460ff16613c755760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610d5d565b6001609755565b600054610100900460ff16613cf95760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610d5d565b8151613d0c90606790602085019061417a565b508051613d2090606890602084019061417a565b50613d29612b83565b6065555050565b600054610100900460ff16613dad5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e670000000000000000000000000000000000000000006064820152608401610d5d565b6117d233613201565b6000613e0b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613fcd9092919063ffffffff16565b805190915015610d735780806020019051810190613e299190614b69565b610d735760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610d5d565b606081613edb57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115613f055780613eef816148f1565b9150613efe9050600a8361487e565b9150613edf565b60008167ffffffffffffffff811115613f2057613f206143a3565b6040519080825280601f01601f191660200182016040528015613f4a576020820181803683370190505b5090505b841561284c57613f5f600183614892565b9150613f6c600a86614b86565b613f77906030614ab7565b60f81b818381518110613f8c57613f8c6148c2565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613fc6600a8661487e565b9450613f4e565b606061284c848460008585843b6140265760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610d5d565b600080866001600160a01b031685876040516140429190614b4d565b60006040518083038185875af1925050503d806000811461407f576040519150601f19603f3d011682016040523d82523d6000602084013e614084565b606091505b509150915061409482828661409f565b979650505050505050565b606083156140ae5750816131fa565b8251156140be5782518084602001fd5b8160405162461bcd60e51b8152600401610d5d91906142c4565b8280546140e4906147ad565b90600052602060002090601f016020900481019282614106576000855561416a565b82601f1061413d578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082351617855561416a565b8280016001018555821561416a579182015b8281111561416a57823582559160200191906001019061414f565b506141769291506141ee565b5090565b828054614186906147ad565b90600052602060002090601f0160209004810192826141a8576000855561416a565b82601f106141c157805160ff191683800117855561416a565b8280016001018555821561416a579182015b8281111561416a5782518255916020019190600101906141d3565b5b8082111561417657600081556001016141ef565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461293357600080fd5b60006020828403121561424357600080fd5b81356131fa81614203565b60005b83811015614269578181015183820152602001614251565b838111156112b15750506000910152565b6000815180845261429281602086016020860161424e565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006131fa602083018461427a565b600080602083850312156142ea57600080fd5b823567ffffffffffffffff8082111561430257600080fd5b818501915085601f83011261431657600080fd5b81358181111561432557600080fd5b86602082850101111561433757600080fd5b60209290920196919550909350505050565b60006020828403121561435b57600080fd5b5035919050565b6001600160a01b038116811461293357600080fd5b6000806040838503121561438a57600080fd5b823561439581614362565b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715614419576144196143a3565b604052919050565b600067ffffffffffffffff82111561443b5761443b6143a3565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b600061447a61447584614421565b6143d2565b905082815283838301111561448e57600080fd5b828260208301376000602084830101529392505050565b600082601f8301126144b657600080fd5b6131fa83833560208501614467565b6000602082840312156144d757600080fd5b813567ffffffffffffffff8111156144ee57600080fd5b61284c848285016144a5565b60006020828403121561450c57600080fd5b81356131fa81614362565b60008060006060848603121561452c57600080fd5b833561453781614362565b9250602084013561454781614362565b929592945050506040919091013590565b6000806040838503121561456b57600080fd5b50508035926020909101359150565b60008060006060848603121561458f57600080fd5b83359250602084013561454781614362565b801515811461293357600080fd5b8035612306816145a1565b60008060008060008060008060006101208a8c0312156145d957600080fd5b8935985060208a0135975060408a0135965060608a0135955060808a0135945060a08a013567ffffffffffffffff8082111561461457600080fd5b6146208d838e016144a5565b955060c08c013591508082111561463657600080fd5b6146428d838e016144a5565b945060e08c013591508082111561465857600080fd5b506146658c828d016144a5565b9250506146756101008b016145af565b90509295985092959850929598565b6000806040838503121561469757600080fd5b82356146a281614362565b915060208301356146b2816145a1565b809150509250929050565b600080600080608085870312156146d357600080fd5b84356146de81614362565b935060208501356146ee81614362565b925060408501359150606085013567ffffffffffffffff81111561471157600080fd5b8501601f8101871361472257600080fd5b61473187823560208401614467565b91505092959194509250565b6000806040838503121561475057600080fd5b8235915060208301356146b281614362565b60006020828403121561477457600080fd5b81356131fa816145a1565b6000806040838503121561479257600080fd5b823561479d81614362565b915060208301356146b281614362565b600181811c908216806147c157607f821691505b602082108114156147fb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600081600019048311821515161561484a5761484a614801565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261488d5761488d61484f565b500490565b6000828210156148a4576148a4614801565b500390565b6000602082840312156148bb57600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060001982141561490557614905614801565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60006020828403121561494d57600080fd5b815167ffffffffffffffff81111561496457600080fd5b8201601f8101841361497557600080fd5b805161498361447582614421565b81815285602083850101111561499857600080fd5b6149a982602083016020860161424e565b95945050505050565b6000835160206149c5828583890161424e565b845491840191600090600181811c90808316806149e357607f831692505b858310811415614a1a577f4e487b710000000000000000000000000000000000000000000000000000000085526022600452602485fd5b808015614a2e5760018114614a5d57614a8a565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00851688528388019550614a8a565b60008b81526020902060005b85811015614a825781548a820152908401908801614a69565b505083880195505b50939a9950505050505050505050565b600060208284031215614aac57600080fd5b81516131fa81614362565b60008219821115614aca57614aca614801565b500190565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613bee608083018461427a565b600060208284031215614b1357600080fd5b81516131fa81614203565b60008351614b3081846020880161424e565b835190830190614b4481836020880161424e565b01949350505050565b60008251614b5f81846020870161424e565b9190910192915050565b600060208284031215614b7b57600080fd5b81516131fa816145a1565b600082614b9557614b9561484f565b50069056fea264697066735822122069d0fed6349f3bc0abb6f0e220f3994e8186626112c560738c2472355e7cea1c64736f6c63430008090033496e697469616c697a61626c653a20636f6e747261637420697320616c7265610000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100c95760003560e01c806365b640d511610081578063cc6accfc1161005b578063cc6accfc146101b7578063db2ef123146101ca578063f2fde38b146101dd57600080fd5b806365b640d51461017a578063715018a6146101915780638da5cb5b1461019957600080fd5b80633fd54a9e116100b25780633fd54a9e14610134578063448ccf37146101545780635a9531591461016757600080fd5b80630c870f91146100ce5780633e0116101461011f575b600080fd5b6100f57f0000000000000000000000000f33f61ef663ddd7961046bfc00a325f1e0e0ca181565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b61013261012d366004610ff2565b6101f0565b005b6001546100f59073ffffffffffffffffffffffffffffffffffffffff1681565b6101326101623660046110cf565b6104e0565b6101326101753660046110f1565b6105a8565b61018360025481565b604051908152602001610116565b61013261062e565b60005473ffffffffffffffffffffffffffffffffffffffff166100f5565b6101326101c536600461112c565b6106bb565b6101326101d836600461112c565b610bf6565b6101326101eb3660046110cf565b610c91565b600154339073ffffffffffffffffffffffffffffffffffffffff1615806102b657506001546040517f70a0823100000000000000000000000000000000000000000000000000000000815233600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561027c57600080fd5b505afa158015610290573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102b4919061121e565b115b610347576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4d65746176657273654e4654466163746f72793a204561726c7920416363657360448201527f732050617373206973207265717569726564000000000000000000000000000060648201526084015b60405180910390fd5b60006103727f0000000000000000000000000f33f61ef663ddd7961046bfc00a325f1e0e0ca1610dc1565b6040517f815f1a3600000000000000000000000000000000000000000000000000000000815290915073ffffffffffffffffffffffffffffffffffffffff82169063815f1a36906103d8908d908d908d908d908d908d908d908d906000906004016112a2565b600060405180830381600087803b1580156103f257600080fd5b505af1158015610406573d6000803e3d6000fd5b50506040517ff2fde38b00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff8416925063f2fde38b9150602401600060405180830381600087803b15801561047157600080fd5b505af1158015610485573d6000803e3d6000fd5b505050507f4d77938a6089f3548dc89f9eb42926cec38ed4cefef0c99a1f60a14901d59f16818b8b8b88886000806000806040516104cc9a99989796959493929190611316565b60405180910390a150505050505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610561576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161033e565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff163314610629576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161033e565b600255565b60005473ffffffffffffffffffffffffffffffffffffffff1633146106af576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161033e565b6106b96000610ea3565b565b600154339073ffffffffffffffffffffffffffffffffffffffff16158061078157506001546040517f70a0823100000000000000000000000000000000000000000000000000000000815233600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a082319060240160206040518083038186803b15801561074757600080fd5b505afa15801561075b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077f919061121e565b115b61080d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4d65746176657273654e4654466163746f72793a204561726c7920416363657360448201527f7320506173732069732072657175697265640000000000000000000000000000606482015260840161033e565b60006108387f0000000000000000000000000f33f61ef663ddd7961046bfc00a325f1e0e0ca1610dc1565b90508073ffffffffffffffffffffffffffffffffffffffff1663815f1a368e8e8e8e8e8e8e8e60028d61ffff161663ffffffff16600014156040518a63ffffffff1660e01b8152600401610894999897969594939291906112a2565b600060405180830381600087803b1580156108ae57600080fd5b505af11580156108c2573d6000803e3d6000fd5b50505050831561097a576040517f0768c61800000000000000000000000000000000000000000000000000000000815260206004820152600560248201527f2e6a736f6e000000000000000000000000000000000000000000000000000000604482015273ffffffffffffffffffffffffffffffffffffffff821690630768c61890606401600060405180830381600087803b15801561096157600080fd5b505af1158015610975573d6000803e3d6000fd5b505050505b60048316156109e4578073ffffffffffffffffffffffffffffffffffffffff1663b66a0e5d6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156109cb57600080fd5b505af11580156109df573d6000803e3d6000fd5b505050505b73ffffffffffffffffffffffffffffffffffffffff851615610a82576040517f2a30e4c200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152821690632a30e4c290602401600060405180830381600087803b158015610a6957600080fd5b505af1158015610a7d573d6000803e3d6000fd5b505050505b6008831615610aec578073ffffffffffffffffffffffffffffffffffffffff1663d69b2e456040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610ad357600080fd5b505af1158015610ae7573d6000803e3d6000fd5b505050505b6040517ff2fde38b00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff82169063f2fde38b90602401600060405180830381600087803b158015610b5357600080fd5b505af1158015610b67573d6000803e3d6000fd5b505050507f4d77938a6089f3548dc89f9eb42926cec38ed4cefef0c99a1f60a14901d59f16818e8e8e8b8b8a60028b61ffff161663ffffffff166000141560048c61ffff161663ffffffff166000141560088d61ffff161663ffffffff1660001415604051610bdf9a99989796959493929190611316565b60405180910390a150505050505050505050505050565b610c008a8c61139a565b600254811061080d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603860248201527f4d65746176657273654e4654466163746f72793a20436f6c6c656374696f6e2060448201527f746f74616c20616d6f756e7420697320746f6f20686967680000000000000000606482015260840161033e565b60005473ffffffffffffffffffffffffffffffffffffffff163314610d12576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161033e565b73ffffffffffffffffffffffffffffffffffffffff8116610db5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161033e565b610dbe81610ea3565b50565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f091505073ffffffffffffffffffffffffffffffffffffffff8116610e9e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f455243313136373a20637265617465206661696c656400000000000000000000604482015260640161033e565b919050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f830112610f5857600080fd5b813567ffffffffffffffff80821115610f7357610f73610f18565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715610fb957610fb9610f18565b81604052838152866020858801011115610fd257600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600080600080600080610100898b03121561100f57600080fd5b883597506020890135965060408901359550606089013594506080890135935060a089013567ffffffffffffffff8082111561104a57600080fd5b6110568c838d01610f47565b945060c08b013591508082111561106c57600080fd5b6110788c838d01610f47565b935060e08b013591508082111561108e57600080fd5b5061109b8b828c01610f47565b9150509295985092959890939650565b803573ffffffffffffffffffffffffffffffffffffffff81168114610e9e57600080fd5b6000602082840312156110e157600080fd5b6110ea826110ab565b9392505050565b60006020828403121561110357600080fd5b5035919050565b80358015158114610e9e57600080fd5b803561ffff81168114610e9e57600080fd5b60008060008060008060008060008060006101608c8e03121561114e57600080fd5b8b359a5060208c0135995060408c0135985060608c0135975060808c0135965067ffffffffffffffff8060a08e0135111561118857600080fd5b6111988e60a08f01358f01610f47565b96508060c08e013511156111ab57600080fd5b6111bb8e60c08f01358f01610f47565b95508060e08e013511156111ce57600080fd5b506111df8d60e08e01358e01610f47565b93506111ee6101008d016110ab565b92506111fd6101208d0161110a565b915061120c6101408d0161111a565b90509295989b509295989b9093969950565b60006020828403121561123057600080fd5b5051919050565b6000815180845260005b8181101561125d57602081850181015186830182015201611241565b8181111561126f576000602083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60006101208b83528a60208401528960408401528860608401528760808401528060a08401526112d481840188611237565b905082810360c08401526112e88187611237565b905082810360e08401526112fc8186611237565b9150508215156101008301529a9950505050505050505050565b600061014073ffffffffffffffffffffffffffffffffffffffff8d1683528b60208401528a60408401528960608401528060808401526113588184018a611237565b905082810360a084015261136c8189611237565b96151560c0840152505092151560e08401529015156101008301521515610120909101529695505050505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156113f9577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b50029056fea26469706673582212204beda56e6d9160b6e38d76b24071734997d91b23e170154756d89ab1bdb6f54664736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _earlyAccessPass (address): 0x0000000000000000000000000000000000000000
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ 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.