Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 836 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 20686506 | 74 days ago | IN | 0 ETH | 0.00018011 | ||||
Set Approval For... | 19801327 | 198 days ago | IN | 0 ETH | 0.00022069 | ||||
Set Approval For... | 18910145 | 323 days ago | IN | 0 ETH | 0.00045068 | ||||
Set Approval For... | 18908854 | 323 days ago | IN | 0 ETH | 0.00055391 | ||||
Set Approval For... | 18720491 | 350 days ago | IN | 0 ETH | 0.00191444 | ||||
Set Approval For... | 17534476 | 516 days ago | IN | 0 ETH | 0.00067957 | ||||
Set Approval For... | 17494706 | 521 days ago | IN | 0 ETH | 0.00044846 | ||||
Set Approval For... | 17494146 | 521 days ago | IN | 0 ETH | 0.00132302 | ||||
Set Approval For... | 17134910 | 572 days ago | IN | 0 ETH | 0.00164689 | ||||
Safe Transfer Fr... | 16856442 | 611 days ago | IN | 0 ETH | 0.00106319 | ||||
Set Approval For... | 16736461 | 628 days ago | IN | 0 ETH | 0.00131728 | ||||
Set Approval For... | 16723500 | 630 days ago | IN | 0 ETH | 0.00098632 | ||||
Transfer From | 16711427 | 632 days ago | IN | 0 ETH | 0.00111494 | ||||
Set Approval For... | 16656609 | 640 days ago | IN | 0 ETH | 0.00129524 | ||||
Set Approval For... | 16634535 | 643 days ago | IN | 0 ETH | 0.0015534 | ||||
Set Approval For... | 16614270 | 645 days ago | IN | 0 ETH | 0.00098927 | ||||
Safe Transfer Fr... | 16602362 | 647 days ago | IN | 0 ETH | 0.00094653 | ||||
Safe Transfer Fr... | 16602355 | 647 days ago | IN | 0 ETH | 0.00088876 | ||||
Safe Transfer Fr... | 16602350 | 647 days ago | IN | 0 ETH | 0.00094693 | ||||
Safe Transfer Fr... | 16602327 | 647 days ago | IN | 0 ETH | 0.00121231 | ||||
Set Approval For... | 16587359 | 649 days ago | IN | 0 ETH | 0.00119539 | ||||
Set Approval For... | 16587290 | 649 days ago | IN | 0 ETH | 0.00142547 | ||||
Set Approval For... | 16580620 | 650 days ago | IN | 0 ETH | 0.00148929 | ||||
Set Approval For... | 16566959 | 652 days ago | IN | 0 ETH | 0.00045831 | ||||
Safe Transfer Fr... | 16556101 | 654 days ago | IN | 0 ETH | 0.00165519 |
Loading...
Loading
Contract Name:
Land
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.12; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "erc721a/contracts/ERC721A.sol"; contract Land is ERC721A, Ownable { using ECDSA for bytes32; using Strings for uint256; string public PROVENANCE_HASH; uint256 public presaleR1StartTime = 1667750400; uint256 public presaleR2StartTime = 1667750700; uint256 public totalPresaleMinted; mapping(address => uint256) public presaleMinted; uint256 public constant MAX_PRESALE_LANDS = 888; uint256 public constant PRESALE_MINT_PRICE = 0.1 ether; uint256 public constant PRESALE_UNLOCK_TIME = 1668355200; uint256 public allowListR1StartTime = 1667752200; uint256 public allowListR2StartTime = 1667752500; uint256 public allowListStartTokenId; uint256 public totalAllowListMinted; mapping(address => uint256) public allowListMinted; uint256 public constant MAX_ALLOW_LIST_LANDS = 3900; uint256 public constant ALLOW_LIST_MINT_PRICE = 0.25 ether; uint256 public claimableStartTime = 1667754000; uint256 public claimableStartTokenId; uint256 public totalLandsClaimed; mapping(address => uint256) public claimMinted; uint256 public constant MAX_CLAIMABLE_LANDS = 600; uint256 public constant CLAIMABLE_UNLOCK_TIME = 1668960000; uint256 public mintStartTime = 1667755800; uint256 public mintEndTime = 1667928600; uint256 public mintStartTokenId; uint256 public constant MINT_PRICE = 0.4 ether; uint256 public totalReservedMinted; uint256 public constant MAX_RESERVED_LANDS = 500; string private baseURI; string private hiddenMetadataURI; bool public revealed; address private signer; uint256 public MAX_LANDS; bool public transferEnabled = false; uint256 public maxMintPerAddress = 4; bool public bonusMarketingFeeSet = false; address payable public marketingWallet; enum Round { PresaleR1, PresaleR2, AllowListR1, AllowListR2, Claim } constructor(uint256 maxLands) ERC721A("Worlds Beyond Official - Genesis Land Collection", "BEYONDLG") { MAX_LANDS = maxLands; } function presaleR1MintLands( uint256 numLands, uint256 maxLands, bytes calldata signature ) external payable mustBetween(presaleR1StartTime, presaleR2StartTime) onlyVerified(Round.PresaleR1, maxLands, signature) mustMatchPrice(PRESALE_MINT_PRICE, numLands) { _presaleMintLands(numLands, maxLands); } function presaleR2MintLands( uint256 numLands, uint256 maxLands, bytes calldata signature ) external payable mustBetween(presaleR2StartTime, allowListR1StartTime) onlyVerified(Round.PresaleR2, maxLands, signature) mustMatchPrice(PRESALE_MINT_PRICE, numLands) { _presaleMintLands(numLands, maxLands); } function allowListR1MintLands( uint256 numLands, uint256 maxLands, bytes calldata signature ) external payable mustBetween(allowListR1StartTime, allowListR2StartTime) onlyVerified(Round.AllowListR1, maxLands, signature) mustMatchPrice(ALLOW_LIST_MINT_PRICE, numLands) { _allowListMintLands(numLands, maxLands); } function allowListR2MintLands( uint256 numLands, uint256 maxLands, bytes calldata signature ) external payable mustBetween(allowListR2StartTime, claimableStartTime) onlyVerified(Round.AllowListR2, maxLands, signature) mustMatchPrice(ALLOW_LIST_MINT_PRICE, numLands) { _allowListMintLands(numLands, maxLands); } function claimLands( uint256 numLands, uint256 maxLands, bytes calldata signature ) external mustBetween(claimableStartTime, mintStartTime) onlyVerified(Round.Claim, maxLands, signature) { require( numLands + claimMinted[msg.sender] <= maxLands, "Max claimable lands per address exceeded" ); require( totalLandsClaimed + numLands <= MAX_CLAIMABLE_LANDS, "Max claimable lands exceeded" ); if (claimableStartTokenId == 0) { claimableStartTokenId = _nextTokenId(); } claimMinted[msg.sender] += numLands; totalLandsClaimed += numLands; _mintLands(msg.sender, numLands); } function mintLands(uint256 numLands) external payable mustBetween(mintStartTime, mintEndTime) mustMatchPrice(MINT_PRICE, numLands) { require( msg.sender == tx.origin, "Minting from smart contracts is disallowed" ); require( numLands + _numberMinted(msg.sender) <= maxMintPerAddress, "Max lands per address exceeded" ); if (mintStartTokenId == 0) { mintStartTokenId = _nextTokenId(); } _mintLands(msg.sender, numLands); uint256 elapsed = block.timestamp - mintStartTime; if (elapsed <= 1800 && !bonusMarketingFeeSet && totalSupply() - mintStartTokenId + 1 >= 750) { bonusMarketingFeeSet = true; } if (totalSupply() == MAX_LANDS) { transferEnabled = true; _payBonusMarketingFee(elapsed); } } // Internal functions function _presaleMintLands(uint256 numLands, uint256 maxLands) internal { require( numLands + presaleMinted[msg.sender] <= maxLands, "Max lands per address exceeded" ); require( totalPresaleMinted + numLands <= MAX_PRESALE_LANDS, "Max presale lands exceeded" ); presaleMinted[msg.sender] += numLands; totalPresaleMinted += numLands; _mintLands(msg.sender, numLands); } function _allowListMintLands(uint256 numLands, uint256 maxLands) internal { require( numLands + allowListMinted[msg.sender] <= maxLands, "Max lands per address exceeded" ); require( totalAllowListMinted + numLands <= MAX_ALLOW_LIST_LANDS, "Max allow list lands exceeded" ); if (allowListStartTokenId == 0) { allowListStartTokenId = _nextTokenId(); } allowListMinted[msg.sender] += numLands; totalAllowListMinted += numLands; _mintLands(msg.sender, numLands); } function _mintLands(address recipient, uint256 numLands) internal { require( totalSupply() + numLands <= MAX_LANDS, "Max lands supply exceeded" ); _mint(recipient, numLands); } function _payBonusMarketingFee(uint256 elapsed) internal { if (marketingWallet != address(0)) { uint256 _percent; if (elapsed <= 3600) { _percent = 8; } else if (bonusMarketingFeeSet) { _percent = 4; } if (_percent > 0) { uint256 amount = address(this).balance * _percent / 100; Address.sendValue(marketingWallet, amount); } } } function _verify(bytes32 hash, bytes calldata signature) internal view returns (bool) { return hash.toEthSignedMessageHash().recover(signature) == signer; } // ERC721A function _startTokenId() internal view virtual override returns (uint256) { return 1; } function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal view override { if (from == address(0)) { return; } if (allowListStartTokenId == 0 || startTokenId < allowListStartTokenId) { require(block.timestamp >= PRESALE_UNLOCK_TIME, "Transfer is not enabled"); } else if (claimableStartTokenId == 0 || startTokenId < claimableStartTokenId) { require(transferEnabled, "Transfer is not enabled"); } else if (mintStartTokenId == 0 || startTokenId < mintStartTokenId) { require(block.timestamp >= CLAIMABLE_UNLOCK_TIME, "Transfer is not enabled"); } } function _baseURI() internal view override returns (string memory) { return baseURI; } // External functions function tokensOf(address owner) external view returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } function mintedPerAddress(address owner) external view returns (uint256) { return _numberMinted(owner); } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); if (!revealed) { return hiddenMetadataURI; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString())) : ""; } // Modifiers modifier onlyVerified( Round round, uint256 maxLands, bytes calldata signature ) { require( _verify( keccak256( abi.encodePacked(msg.sender, uint256(round), maxLands) ), signature ), "Invalid signature" ); _; } modifier mustMatchPrice(uint256 price, uint256 numLands) { require( msg.value == price * numLands, "Ether value sent is not correct" ); _; } modifier mustBetween(uint256 startTime, uint256 endTime) { require( startTime > 0 && startTime <= block.timestamp && block.timestamp < endTime, "Mint not started" ); _; } // Owner functions function setPresaleStartTime(uint256 _r1StartTime, uint256 _r2StartTime) external onlyOwner { presaleR1StartTime = _r1StartTime; presaleR2StartTime = _r2StartTime; } function setAllowListStartTime(uint256 _r1StartTime, uint256 _r2StartTime) external onlyOwner { allowListR1StartTime = _r1StartTime; allowListR2StartTime = _r2StartTime; } function setClaimableStartTime(uint256 _startTime) external onlyOwner { claimableStartTime = _startTime; } function setMintStartTime(uint256 _mintStartTime, uint256 _mintEndTime) external onlyOwner { mintStartTime = _mintStartTime; mintEndTime = _mintEndTime; } function setSigner(address _signer) external onlyOwner { signer = _signer; } function burnSupply(uint256 _newSupply) external onlyOwner { require(_newSupply > 0, "New supply must > 0"); require( _newSupply < MAX_LANDS, "Can only reduce max supply" ); require( _newSupply >= totalSupply(), "Cannot burn more than current supply" ); MAX_LANDS = _newSupply; transferEnabled = true; } function setMaxMintPerAddress(uint256 _maxMintPerAddress) external onlyOwner { maxMintPerAddress = _maxMintPerAddress; } function emergencyEnableTransfer() external onlyOwner { transferEnabled = true; } function setBaseURI(string memory _newBaseURI) external onlyOwner { baseURI = _newBaseURI; } function setHiddenMetadataURI(string memory _hiddenURI) external onlyOwner { hiddenMetadataURI = _hiddenURI; } function mintReservedLands(address recipient, uint256 numLands) external onlyOwner { require( totalReservedMinted + numLands <= MAX_RESERVED_LANDS, "Max reserved lands exceeded" ); totalReservedMinted += numLands; _mintLands(recipient, numLands); } function setMarketingWallet(address payable _marketingWallet) external onlyOwner { marketingWallet = _marketingWallet; } function setProvenanceHash(string memory _provenance) external onlyOwner { PROVENANCE_HASH = _provenance; } function reveal() external onlyOwner { revealed = true; } function withdraw(uint256 amount) external onlyOwner { Address.sendValue(payable(owner()), amount); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _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 {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary 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 virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ 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, _toString(tokenId))) : ''; } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // 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 { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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 Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @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 for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, 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. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @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 { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // 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 { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * 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 _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * 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(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @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, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` 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 payable; /** * @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 payable; /** * @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); // ============================================================= // IERC721Metadata // ============================================================= /** * @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); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"maxLands","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ALLOW_LIST_MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CLAIMABLE_UNLOCK_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ALLOW_LIST_LANDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_CLAIMABLE_LANDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_LANDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PRESALE_LANDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_RESERVED_LANDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRESALE_UNLOCK_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROVENANCE_HASH","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowListMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numLands","type":"uint256"},{"internalType":"uint256","name":"maxLands","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"allowListR1MintLands","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"allowListR1StartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numLands","type":"uint256"},{"internalType":"uint256","name":"maxLands","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"allowListR2MintLands","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"allowListR2StartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowListStartTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bonusMarketingFeeSet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newSupply","type":"uint256"}],"name":"burnSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numLands","type":"uint256"},{"internalType":"uint256","name":"maxLands","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"claimLands","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimableStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimableStartTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyEnableTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numLands","type":"uint256"}],"name":"mintLands","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"numLands","type":"uint256"}],"name":"mintReservedLands","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintStartTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"mintedPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numLands","type":"uint256"},{"internalType":"uint256","name":"maxLands","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"presaleR1MintLands","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleR1StartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numLands","type":"uint256"},{"internalType":"uint256","name":"maxLands","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"presaleR2MintLands","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleR2StartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_r1StartTime","type":"uint256"},{"internalType":"uint256","name":"_r2StartTime","type":"uint256"}],"name":"setAllowListStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"}],"name":"setClaimableStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenURI","type":"string"}],"name":"setHiddenMetadataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_marketingWallet","type":"address"}],"name":"setMarketingWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintPerAddress","type":"uint256"}],"name":"setMaxMintPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintStartTime","type":"uint256"},{"internalType":"uint256","name":"_mintEndTime","type":"uint256"}],"name":"setMintStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_r1StartTime","type":"uint256"},{"internalType":"uint256","name":"_r2StartTime","type":"uint256"}],"name":"setPresaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenance","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllowListMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalLandsClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPresaleMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReservedMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transferEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052636367da00600a55636367db2c600b55636367e108600e55636367e234600f55636367e810601355636367ef1860175563636a9218601855601f805460ff1990811690915560046020556021805490911690553480156200006457600080fd5b506040516200346a3803806200346a833981016040819052620000879162000204565b6040518060600160405280603081526020016200343a60309139604051806040016040528060088152602001674245594f4e444c4760c01b8152508160029080519060200190620000da9291906200015e565b508051620000f09060039060208401906200015e565b505060016000555062000103336200010c565b601e556200025b565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200016c906200021e565b90600052602060002090601f016020900481019282620001905760008555620001db565b82601f10620001ab57805160ff1916838001178555620001db565b82800160010185558215620001db579182015b82811115620001db578251825591602001919060010190620001be565b50620001e9929150620001ed565b5090565b5b80821115620001e95760008155600101620001ee565b6000602082840312156200021757600080fd5b5051919050565b600181811c908216806200023357607f821691505b602082108114156200025557634e487b7160e01b600052602260045260246000fd5b50919050565b6131cf806200026b6000396000f3fe6080604052600436106104265760003560e01c806370a0823111610229578063ab9795461161012e578063d445b978116100b6578063ec10abc61161007a578063ec10abc614610baf578063f2fde38b14610bc5578063fa1431da14610be5578063ff1b655614610c12578063fff0c6c214610c2757600080fd5b8063d445b97814610afa578063d595c33114610b1a578063da69c09a14610b3a578063dcef0c1b14610b50578063e985e9c514610b6657600080fd5b8063ba3f8c8a116100fd578063ba3f8c8a14610a5b578063bc660cac14610a71578063be8f0a9714610a9e578063c002d23d14610abe578063c87b56dd14610ada57600080fd5b8063ab979546146109e9578063adab612814610a16578063b88d4fde14610a32578063b96d51cd14610a4557600080fd5b8063820c9208116101b157806395d89b411161018057806395d89b411461097357806396acacde14610988578063a22cb4651461099e578063a395faf7146109be578063a475b5dd146109d457600080fd5b8063820c9208146109195780638da5cb5b1461092c5780638fbba3da1461094a578063931e2e491461095d57600080fd5b8063717a002b116101f8578063717a002b1461089e578063720d55b6146108b457806373078617146108c757806373c35ada146108df57806375f0a874146108f457600080fd5b806370a082311461083657806370b3532c14610856578063715018a6146108765780637152c4291461088b57600080fd5b806338603fed1161032f5780635a3f2672116102b75780636478e192116102865780636478e192146107c157806365280d0a146107d75780636b521458146107ed5780636c19e78314610800578063707770791461082057600080fd5b80635a3f2672146107345780635d098b381461076157806362424d1d146107815780636352211e146107a157600080fd5b80634cd412d5116102fe5780634cd412d5146106aa578063512507c6146106c457806351830227146106e457806355f804b3146106fe578063572849c41461071e57600080fd5b806338603fed146106555780633aedd1791461066b5780633c1860181461068157806342842e0e1461069757600080fd5b80631e14d44b116103b25780632a234e57116103815780632a234e57146105c35780632e1a7d4d146105df57806334697026146105ff57806335a5af451461061f5780633608a6b11461063557600080fd5b80631e14d44b146105605780631ecd7ffa146105805780631ffee53f1461059a57806323b872dd146105b057600080fd5b8063095ea7b3116103f9578063095ea7b3146104dc5780630d6d28c4146104ef5780631049378f14610513578063109695231461052b57806318160ddd1461054b57600080fd5b806301ffc9a71461042b57806306fdde0314610460578063081812fc146104825780630948b38a146104ba575b600080fd5b34801561043757600080fd5b5061044b610446366004612b17565b610c3d565b60405190151581526020015b60405180910390f35b34801561046c57600080fd5b50610475610c8f565b6040516104579190612b8c565b34801561048e57600080fd5b506104a261049d366004612b9f565b610d21565b6040516001600160a01b039091168152602001610457565b3480156104c657600080fd5b506104da6104d5366004612bb8565b610d65565b005b6104da6104ea366004612bef565b610d78565b3480156104fb57600080fd5b50610505600a5481565b604051908152602001610457565b34801561051f57600080fd5b5061050563637a4f0081565b34801561053757600080fd5b506104da610546366004612ca7565b610e18565b34801561055757600080fd5b50610505610e37565b34801561056c57600080fd5b506104da61057b366004612b9f565b610e45565b34801561058c57600080fd5b5060215461044b9060ff1681565b3480156105a657600080fd5b506105056101f481565b6104da6105be366004612cf0565b610e52565b3480156105cf57600080fd5b5061050567016345785d8a000081565b3480156105eb57600080fd5b506104da6105fa366004612b9f565b610ff1565b34801561060b57600080fd5b506104da61061a366004612d31565b611017565b34801561062b57600080fd5b50610505600c5481565b34801561064157600080fd5b506104da610650366004612bef565b611209565b34801561066157600080fd5b5061050560145481565b34801561067757600080fd5b5061050560195481565b34801561068d57600080fd5b5061050560115481565b6104da6106a5366004612cf0565b611292565b3480156106b657600080fd5b50601f5461044b9060ff1681565b3480156106d057600080fd5b506104da6106df366004612ca7565b6112b2565b3480156106f057600080fd5b50601d5461044b9060ff1681565b34801561070a57600080fd5b506104da610719366004612ca7565b6112cd565b34801561072a57600080fd5b5061050560205481565b34801561074057600080fd5b5061075461074f366004612db1565b6112e8565b6040516104579190612dce565b34801561076d57600080fd5b506104da61077c366004612db1565b6113f8565b34801561078d57600080fd5b506104da61079c366004612bb8565b611428565b3480156107ad57600080fd5b506104a26107bc366004612b9f565b61143b565b3480156107cd57600080fd5b5061050560135481565b3480156107e357600080fd5b50610505601a5481565b6104da6107fb366004612d31565b611446565b34801561080c57600080fd5b506104da61081b366004612db1565b6114f8565b34801561082c57600080fd5b5061050561037881565b34801561084257600080fd5b50610505610851366004612db1565b611528565b34801561086257600080fd5b506104da610871366004612b9f565b611577565b34801561088257600080fd5b506104da611584565b6104da610899366004612b9f565b611598565b3480156108aa57600080fd5b5061050560185481565b6104da6108c2366004612d31565b611767565b3480156108d357600080fd5b50610505636371148081565b3480156108eb57600080fd5b506104da61180b565b34801561090057600080fd5b506021546104a29061010090046001600160a01b031681565b6104da610927366004612d31565b611822565b34801561093857600080fd5b506008546001600160a01b03166104a2565b6104da610958366004612d31565b61186e565b34801561096957600080fd5b5061050560175481565b34801561097f57600080fd5b506104756118ba565b34801561099457600080fd5b5061050560155481565b3480156109aa57600080fd5b506104da6109b9366004612e06565b6118c9565b3480156109ca57600080fd5b5061050561025881565b3480156109e057600080fd5b506104da611935565b3480156109f557600080fd5b50610505610a04366004612db1565b60166020526000908152604090205481565b348015610a2257600080fd5b506105056703782dace9d9000081565b6104da610a40366004612e44565b61194c565b348015610a5157600080fd5b50610505600f5481565b348015610a6757600080fd5b5061050560105481565b348015610a7d57600080fd5b50610505610a8c366004612db1565b600d6020526000908152604090205481565b348015610aaa57600080fd5b506104da610ab9366004612bb8565b611996565b348015610aca57600080fd5b5061050567058d15e17628000081565b348015610ae657600080fd5b50610475610af5366004612b9f565b6119a9565b348015610b0657600080fd5b50610505610b15366004612db1565b611b10565b348015610b2657600080fd5b506104da610b35366004612b9f565b611b3b565b348015610b4657600080fd5b50610505610f3c81565b348015610b5c57600080fd5b50610505600e5481565b348015610b7257600080fd5b5061044b610b81366004612ec4565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610bbb57600080fd5b50610505601e5481565b348015610bd157600080fd5b506104da610be0366004612db1565b611c4f565b348015610bf157600080fd5b50610505610c00366004612db1565b60126020526000908152604090205481565b348015610c1e57600080fd5b50610475611cc5565b348015610c3357600080fd5b50610505600b5481565b60006301ffc9a760e01b6001600160e01b031983161480610c6e57506380ac58cd60e01b6001600160e01b03198316145b80610c895750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060028054610c9e90612ef2565b80601f0160208091040260200160405190810160405280929190818152602001828054610cca90612ef2565b8015610d175780601f10610cec57610100808354040283529160200191610d17565b820191906000526020600020905b815481529060010190602001808311610cfa57829003601f168201915b5050505050905090565b6000610d2c82611d53565b610d49576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b610d6d611d88565b600a91909155600b55565b6000610d838261143b565b9050336001600160a01b03821614610dbc57610d9f8133610b81565b610dbc576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610e20611d88565b8051610e33906009906020840190612a68565b5050565b600154600054036000190190565b610e4d611d88565b602055565b6000610e5d82611de2565b9050836001600160a01b0316816001600160a01b031614610e905760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610edd57610ec08633610b81565b610edd57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610f0457604051633a954ecd60e21b815260040160405180910390fd5b610f118686866001611e4b565b8015610f1c57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610fa75760018401600081815260046020526040902054610fa5576000548114610fa55760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610ff9611d88565b61101461100e6008546001600160a01b031690565b82611f0c565b50565b60135460175460008211801561102d5750428211155b801561103857508042105b61105d5760405162461bcd60e51b815260040161105490612f2d565b60405180910390fd5b60048585856110b133855b60405160609290921b6bffffffffffffffffffffffff19166020830152603482015260548101859052607401604051602081830303815290604052805190602001208383612025565b6110cd5760405162461bcd60e51b815260040161105490612f6d565b3360009081526016602052604090205489906110e9908c612fae565b11156111485760405162461bcd60e51b815260206004820152602860248201527f4d617820636c61696d61626c65206c616e647320706572206164647265737320604482015267195e18d95959195960c21b6064820152608401611054565b6102588a6015546111599190612fae565b11156111a75760405162461bcd60e51b815260206004820152601c60248201527f4d617820636c61696d61626c65206c616e6473206578636565646564000000006044820152606401611054565b6014546111b5576000546014555b33600090815260166020526040812080548c92906111d4908490612fae565b9250508190555089601560008282546111ed9190612fae565b909155506111fd9050338b612096565b50505050505050505050565b611211611d88565b6101f481601a546112229190612fae565b11156112705760405162461bcd60e51b815260206004820152601b60248201527f4d6178207265736572766564206c616e647320657863656564656400000000006044820152606401611054565b80601a60008282546112829190612fae565b90915550610e3390508282612096565b6112ad8383836040518060200160405280600081525061194c565b505050565b6112ba611d88565b8051610e3390601c906020840190612a68565b6112d5611d88565b8051610e3390601b906020840190612a68565b606060008060006112f885611528565b905060008167ffffffffffffffff81111561131557611315612c1b565b60405190808252806020026020018201604052801561133e578160200160208202803683370190505b50905061136b60408051608081018252600080825260208201819052918101829052606081019190915290565b60015b8386146113ec5761137e81612104565b915081604001511561138f576113e4565b81516001600160a01b0316156113a457815194505b876001600160a01b0316856001600160a01b031614156113e457808387806001019850815181106113d7576113d7612fc6565b6020026020010181815250505b60010161136e565b50909695505050505050565b611400611d88565b602180546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b611430611d88565b600e91909155600f55565b6000610c8982611de2565b600f5460135460008211801561145c5750428211155b801561146757508042105b6114835760405162461bcd60e51b815260040161105490612f2d565b60038585856114923385611068565b6114ae5760405162461bcd60e51b815260040161105490612f6d565b6703782dace9d900008a6114c28183612fdc565b34146114e05760405162461bcd60e51b815260040161105490612ffb565b6114ea8c8c612183565b505050505050505050505050565b611500611d88565b601d80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b60006001600160a01b038216611551576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b61157f611d88565b601355565b61158c611d88565b6115966000612272565b565b6017546018546000821180156115ae5750428211155b80156115b957508042105b6115d55760405162461bcd60e51b815260040161105490612f2d565b67058d15e176280000836115e98183612fdc565b34146116075760405162461bcd60e51b815260040161105490612ffb565b3332146116695760405162461bcd60e51b815260206004820152602a60248201527f4d696e74696e672066726f6d20736d61727420636f6e74726163747320697320604482015269191a5cd85b1b1bddd95960b21b6064820152608401611054565b602054611699336001600160a01b03166000908152600560205260409081902054901c67ffffffffffffffff1690565b6116a39087612fae565b11156116c15760405162461bcd60e51b815260040161105490613032565b6019546116cf576000546019555b6116d93386612096565b6000601754426116e99190613069565b90506107088111158015611700575060215460ff16155b801561172d57506102ee601954611715610e37565b61171f9190613069565b61172a906001612fae565b10155b15611740576021805460ff191660011790555b601e5461174b610e37565b1415610fe957601f805460ff19166001179055610fe9816122c4565b600a54600b5460008211801561177d5750428211155b801561178857508042105b6117a45760405162461bcd60e51b815260040161105490612f2d565b60008585856117b33385611068565b6117cf5760405162461bcd60e51b815260040161105490612f6d565b67016345785d8a00008a6117e38183612fdc565b34146118015760405162461bcd60e51b815260040161105490612ffb565b6114ea8c8c612338565b611813611d88565b601f805460ff19166001179055565b600e54600f546000821180156118385750428211155b801561184357508042105b61185f5760405162461bcd60e51b815260040161105490612f2d565b60028585856114923385611068565b600b54600e546000821180156118845750428211155b801561188f57508042105b6118ab5760405162461bcd60e51b815260040161105490612f2d565b60018585856117b33385611068565b606060038054610c9e90612ef2565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61193d611d88565b601d805460ff19166001179055565b611957848484610e52565b6001600160a01b0383163b156119905761197384848484612409565b611990576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b61199e611d88565b601791909155601855565b60606119b482611d53565b611a185760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401611054565b601d5460ff16611ab457601c8054611a2f90612ef2565b80601f0160208091040260200160405190810160405280929190818152602001828054611a5b90612ef2565b8015611aa85780601f10611a7d57610100808354040283529160200191611aa8565b820191906000526020600020905b815481529060010190602001808311611a8b57829003601f168201915b50505050509050919050565b6000611abe6124f2565b90506000815111611ade5760405180602001604052806000815250611b09565b80611ae884612501565b604051602001611af9929190613080565b6040516020818303038152906040525b9392505050565b6001600160a01b0381166000908152600560205260408082205467ffffffffffffffff911c16610c89565b611b43611d88565b60008111611b895760405162461bcd60e51b815260206004820152601360248201527204e657720737570706c79206d757374203e203606c1b6044820152606401611054565b601e548110611bda5760405162461bcd60e51b815260206004820152601a60248201527f43616e206f6e6c7920726564756365206d617820737570706c790000000000006044820152606401611054565b611be2610e37565b811015611c3d5760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f74206275726e206d6f7265207468616e2063757272656e7420737560448201526370706c7960e01b6064820152608401611054565b601e55601f805460ff19166001179055565b611c57611d88565b6001600160a01b038116611cbc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611054565b61101481612272565b60098054611cd290612ef2565b80601f0160208091040260200160405190810160405280929190818152602001828054611cfe90612ef2565b8015611d4b5780601f10611d2057610100808354040283529160200191611d4b565b820191906000526020600020905b815481529060010190602001808311611d2e57829003601f168201915b505050505081565b600081600111158015611d67575060005482105b8015610c89575050600090815260046020526040902054600160e01b161590565b6008546001600160a01b031633146115965760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611054565b60008180600111611e3257600054811015611e3257600081815260046020526040902054600160e01b8116611e30575b80611b09575060001901600081815260046020526040902054611e12565b505b604051636f96cda160e11b815260040160405180910390fd5b6001600160a01b038416611e5e57611990565b6010541580611e6e575060105482105b15611e9c576363711480421015611e975760405162461bcd60e51b8152600401611054906130af565b611990565b6014541580611eac575060145482105b15611ed357601f5460ff16611e975760405162461bcd60e51b8152600401611054906130af565b6019541580611ee3575060195482105b156119905763637a4f004210156119905760405162461bcd60e51b8152600401611054906130af565b80471015611f5c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401611054565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611fa9576040519150601f19603f3d011682016040523d82523d6000602084013e611fae565b606091505b50509050806112ad5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401611054565b601d54604080516020601f850181900481028201810190925283815260009261010090046001600160a01b0316916120849190869086908190840183828082843760009201919091525061207e92508991506125ff9050565b90612652565b6001600160a01b031614949350505050565b601e54816120a2610e37565b6120ac9190612fae565b11156120fa5760405162461bcd60e51b815260206004820152601960248201527f4d6178206c616e647320737570706c79206578636565646564000000000000006044820152606401611054565b610e338282612676565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260046020526040902054610c8990604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b33600090815260126020526040902054819061219f9084612fae565b11156121bd5760405162461bcd60e51b815260040161105490613032565b610f3c826011546121ce9190612fae565b111561221c5760405162461bcd60e51b815260206004820152601d60248201527f4d617820616c6c6f77206c697374206c616e64732065786365656465640000006044820152606401611054565b60105461222a576000546010555b3360009081526012602052604081208054849290612249908490612fae565b9250508190555081601160008282546122629190612fae565b90915550610e3390503383612096565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60215461010090046001600160a01b031615611014576000610e1082116122ed575060086122fc565b60215460ff16156122fc575060045b8015610e3357600060646123108347612fdc565b61231a91906130fc565b6021549091506112ad9061010090046001600160a01b031682611f0c565b336000908152600d602052604090205481906123549084612fae565b11156123725760405162461bcd60e51b815260040161105490613032565b61037882600c546123839190612fae565b11156123d15760405162461bcd60e51b815260206004820152601a60248201527f4d61782070726573616c65206c616e64732065786365656465640000000000006044820152606401611054565b336000908152600d6020526040812080548492906123f0908490612fae565b9250508190555081600c60008282546122629190612fae565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061243e903390899088908890600401613110565b6020604051808303816000875af1925050508015612479575060408051601f3d908101601f191682019092526124769181019061314d565b60015b6124d4573d8080156124a7576040519150601f19603f3d011682016040523d82523d6000602084013e6124ac565b606091505b5080516124cc576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060601b8054610c9e90612ef2565b6060816125255750506040805180820190915260018152600360fc1b602082015290565b8160005b811561254f57806125398161316a565b91506125489050600a836130fc565b9150612529565b60008167ffffffffffffffff81111561256a5761256a612c1b565b6040519080825280601f01601f191660200182016040528015612594576020820181803683370190505b5090505b84156124ea576125a9600183613069565b91506125b6600a86613185565b6125c1906030612fae565b60f81b8183815181106125d6576125d6612fc6565b60200101906001600160f81b031916908160001a9053506125f8600a866130fc565b9450612598565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6000806000612661858561277a565b9150915061266e816127c0565b509392505050565b600054816126975760405163b562e8dd60e01b815260040160405180910390fd5b6126a46000848385611e4b565b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461275357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161271b565b508161277157604051622e076360e81b815260040160405180910390fd5b60005550505050565b6000808251604114156127b15760208301516040840151606085015160001a6127a58782858561297b565b945094505050506127b9565b506000905060025b9250929050565b60008160048111156127d4576127d4612f57565b14156127dd5750565b60018160048111156127f1576127f1612f57565b141561283f5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401611054565b600281600481111561285357612853612f57565b14156128a15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401611054565b60038160048111156128b5576128b5612f57565b141561290e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401611054565b600481600481111561292257612922612f57565b14156110145760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401611054565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156129b25750600090506003612a5f565b8460ff16601b141580156129ca57508460ff16601c14155b156129db5750600090506004612a5f565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612a2f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612a5857600060019250925050612a5f565b9150600090505b94509492505050565b828054612a7490612ef2565b90600052602060002090601f016020900481019282612a965760008555612adc565b82601f10612aaf57805160ff1916838001178555612adc565b82800160010185558215612adc579182015b82811115612adc578251825591602001919060010190612ac1565b50612ae8929150612aec565b5090565b5b80821115612ae85760008155600101612aed565b6001600160e01b03198116811461101457600080fd5b600060208284031215612b2957600080fd5b8135611b0981612b01565b60005b83811015612b4f578181015183820152602001612b37565b838111156119905750506000910152565b60008151808452612b78816020860160208601612b34565b601f01601f19169290920160200192915050565b602081526000611b096020830184612b60565b600060208284031215612bb157600080fd5b5035919050565b60008060408385031215612bcb57600080fd5b50508035926020909101359150565b6001600160a01b038116811461101457600080fd5b60008060408385031215612c0257600080fd5b8235612c0d81612bda565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612c4c57612c4c612c1b565b604051601f8501601f19908116603f01168101908282118183101715612c7457612c74612c1b565b81604052809350858152868686011115612c8d57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612cb957600080fd5b813567ffffffffffffffff811115612cd057600080fd5b8201601f81018413612ce157600080fd5b6124ea84823560208401612c31565b600080600060608486031215612d0557600080fd5b8335612d1081612bda565b92506020840135612d2081612bda565b929592945050506040919091013590565b60008060008060608587031215612d4757600080fd5b8435935060208501359250604085013567ffffffffffffffff80821115612d6d57600080fd5b818701915087601f830112612d8157600080fd5b813581811115612d9057600080fd5b886020828501011115612da257600080fd5b95989497505060200194505050565b600060208284031215612dc357600080fd5b8135611b0981612bda565b6020808252825182820181905260009190848201906040850190845b818110156113ec57835183529284019291840191600101612dea565b60008060408385031215612e1957600080fd5b8235612e2481612bda565b915060208301358015158114612e3957600080fd5b809150509250929050565b60008060008060808587031215612e5a57600080fd5b8435612e6581612bda565b93506020850135612e7581612bda565b925060408501359150606085013567ffffffffffffffff811115612e9857600080fd5b8501601f81018713612ea957600080fd5b612eb887823560208401612c31565b91505092959194509250565b60008060408385031215612ed757600080fd5b8235612ee281612bda565b91506020830135612e3981612bda565b600181811c90821680612f0657607f821691505b60208210811415612f2757634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526010908201526f135a5b9d081b9bdd081cdd185c9d195960821b604082015260600190565b634e487b7160e01b600052602160045260246000fd5b602080825260119082015270496e76616c6964207369676e617475726560781b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612fc157612fc1612f98565b500190565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615612ff657612ff6612f98565b500290565b6020808252601f908201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604082015260600190565b6020808252601e908201527f4d6178206c616e64732070657220616464726573732065786365656465640000604082015260600190565b60008282101561307b5761307b612f98565b500390565b60008351613092818460208801612b34565b8351908301906130a6818360208801612b34565b01949350505050565b60208082526017908201527f5472616e73666572206973206e6f7420656e61626c6564000000000000000000604082015260600190565b634e487b7160e01b600052601260045260246000fd5b60008261310b5761310b6130e6565b500490565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061314390830184612b60565b9695505050505050565b60006020828403121561315f57600080fd5b8151611b0981612b01565b600060001982141561317e5761317e612f98565b5060010190565b600082613194576131946130e6565b50069056fea26469706673582212206c421726b12bbbaa512d7bf056a3807bf031e8c377d32aaa11943929fd78de0564736f6c634300080c0033576f726c6473204265796f6e64204f6666696369616c202d2047656e65736973204c616e6420436f6c6c656374696f6e00000000000000000000000000000000000000000000000000000000000022b8
Deployed Bytecode
0x6080604052600436106104265760003560e01c806370a0823111610229578063ab9795461161012e578063d445b978116100b6578063ec10abc61161007a578063ec10abc614610baf578063f2fde38b14610bc5578063fa1431da14610be5578063ff1b655614610c12578063fff0c6c214610c2757600080fd5b8063d445b97814610afa578063d595c33114610b1a578063da69c09a14610b3a578063dcef0c1b14610b50578063e985e9c514610b6657600080fd5b8063ba3f8c8a116100fd578063ba3f8c8a14610a5b578063bc660cac14610a71578063be8f0a9714610a9e578063c002d23d14610abe578063c87b56dd14610ada57600080fd5b8063ab979546146109e9578063adab612814610a16578063b88d4fde14610a32578063b96d51cd14610a4557600080fd5b8063820c9208116101b157806395d89b411161018057806395d89b411461097357806396acacde14610988578063a22cb4651461099e578063a395faf7146109be578063a475b5dd146109d457600080fd5b8063820c9208146109195780638da5cb5b1461092c5780638fbba3da1461094a578063931e2e491461095d57600080fd5b8063717a002b116101f8578063717a002b1461089e578063720d55b6146108b457806373078617146108c757806373c35ada146108df57806375f0a874146108f457600080fd5b806370a082311461083657806370b3532c14610856578063715018a6146108765780637152c4291461088b57600080fd5b806338603fed1161032f5780635a3f2672116102b75780636478e192116102865780636478e192146107c157806365280d0a146107d75780636b521458146107ed5780636c19e78314610800578063707770791461082057600080fd5b80635a3f2672146107345780635d098b381461076157806362424d1d146107815780636352211e146107a157600080fd5b80634cd412d5116102fe5780634cd412d5146106aa578063512507c6146106c457806351830227146106e457806355f804b3146106fe578063572849c41461071e57600080fd5b806338603fed146106555780633aedd1791461066b5780633c1860181461068157806342842e0e1461069757600080fd5b80631e14d44b116103b25780632a234e57116103815780632a234e57146105c35780632e1a7d4d146105df57806334697026146105ff57806335a5af451461061f5780633608a6b11461063557600080fd5b80631e14d44b146105605780631ecd7ffa146105805780631ffee53f1461059a57806323b872dd146105b057600080fd5b8063095ea7b3116103f9578063095ea7b3146104dc5780630d6d28c4146104ef5780631049378f14610513578063109695231461052b57806318160ddd1461054b57600080fd5b806301ffc9a71461042b57806306fdde0314610460578063081812fc146104825780630948b38a146104ba575b600080fd5b34801561043757600080fd5b5061044b610446366004612b17565b610c3d565b60405190151581526020015b60405180910390f35b34801561046c57600080fd5b50610475610c8f565b6040516104579190612b8c565b34801561048e57600080fd5b506104a261049d366004612b9f565b610d21565b6040516001600160a01b039091168152602001610457565b3480156104c657600080fd5b506104da6104d5366004612bb8565b610d65565b005b6104da6104ea366004612bef565b610d78565b3480156104fb57600080fd5b50610505600a5481565b604051908152602001610457565b34801561051f57600080fd5b5061050563637a4f0081565b34801561053757600080fd5b506104da610546366004612ca7565b610e18565b34801561055757600080fd5b50610505610e37565b34801561056c57600080fd5b506104da61057b366004612b9f565b610e45565b34801561058c57600080fd5b5060215461044b9060ff1681565b3480156105a657600080fd5b506105056101f481565b6104da6105be366004612cf0565b610e52565b3480156105cf57600080fd5b5061050567016345785d8a000081565b3480156105eb57600080fd5b506104da6105fa366004612b9f565b610ff1565b34801561060b57600080fd5b506104da61061a366004612d31565b611017565b34801561062b57600080fd5b50610505600c5481565b34801561064157600080fd5b506104da610650366004612bef565b611209565b34801561066157600080fd5b5061050560145481565b34801561067757600080fd5b5061050560195481565b34801561068d57600080fd5b5061050560115481565b6104da6106a5366004612cf0565b611292565b3480156106b657600080fd5b50601f5461044b9060ff1681565b3480156106d057600080fd5b506104da6106df366004612ca7565b6112b2565b3480156106f057600080fd5b50601d5461044b9060ff1681565b34801561070a57600080fd5b506104da610719366004612ca7565b6112cd565b34801561072a57600080fd5b5061050560205481565b34801561074057600080fd5b5061075461074f366004612db1565b6112e8565b6040516104579190612dce565b34801561076d57600080fd5b506104da61077c366004612db1565b6113f8565b34801561078d57600080fd5b506104da61079c366004612bb8565b611428565b3480156107ad57600080fd5b506104a26107bc366004612b9f565b61143b565b3480156107cd57600080fd5b5061050560135481565b3480156107e357600080fd5b50610505601a5481565b6104da6107fb366004612d31565b611446565b34801561080c57600080fd5b506104da61081b366004612db1565b6114f8565b34801561082c57600080fd5b5061050561037881565b34801561084257600080fd5b50610505610851366004612db1565b611528565b34801561086257600080fd5b506104da610871366004612b9f565b611577565b34801561088257600080fd5b506104da611584565b6104da610899366004612b9f565b611598565b3480156108aa57600080fd5b5061050560185481565b6104da6108c2366004612d31565b611767565b3480156108d357600080fd5b50610505636371148081565b3480156108eb57600080fd5b506104da61180b565b34801561090057600080fd5b506021546104a29061010090046001600160a01b031681565b6104da610927366004612d31565b611822565b34801561093857600080fd5b506008546001600160a01b03166104a2565b6104da610958366004612d31565b61186e565b34801561096957600080fd5b5061050560175481565b34801561097f57600080fd5b506104756118ba565b34801561099457600080fd5b5061050560155481565b3480156109aa57600080fd5b506104da6109b9366004612e06565b6118c9565b3480156109ca57600080fd5b5061050561025881565b3480156109e057600080fd5b506104da611935565b3480156109f557600080fd5b50610505610a04366004612db1565b60166020526000908152604090205481565b348015610a2257600080fd5b506105056703782dace9d9000081565b6104da610a40366004612e44565b61194c565b348015610a5157600080fd5b50610505600f5481565b348015610a6757600080fd5b5061050560105481565b348015610a7d57600080fd5b50610505610a8c366004612db1565b600d6020526000908152604090205481565b348015610aaa57600080fd5b506104da610ab9366004612bb8565b611996565b348015610aca57600080fd5b5061050567058d15e17628000081565b348015610ae657600080fd5b50610475610af5366004612b9f565b6119a9565b348015610b0657600080fd5b50610505610b15366004612db1565b611b10565b348015610b2657600080fd5b506104da610b35366004612b9f565b611b3b565b348015610b4657600080fd5b50610505610f3c81565b348015610b5c57600080fd5b50610505600e5481565b348015610b7257600080fd5b5061044b610b81366004612ec4565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610bbb57600080fd5b50610505601e5481565b348015610bd157600080fd5b506104da610be0366004612db1565b611c4f565b348015610bf157600080fd5b50610505610c00366004612db1565b60126020526000908152604090205481565b348015610c1e57600080fd5b50610475611cc5565b348015610c3357600080fd5b50610505600b5481565b60006301ffc9a760e01b6001600160e01b031983161480610c6e57506380ac58cd60e01b6001600160e01b03198316145b80610c895750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060028054610c9e90612ef2565b80601f0160208091040260200160405190810160405280929190818152602001828054610cca90612ef2565b8015610d175780601f10610cec57610100808354040283529160200191610d17565b820191906000526020600020905b815481529060010190602001808311610cfa57829003601f168201915b5050505050905090565b6000610d2c82611d53565b610d49576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b610d6d611d88565b600a91909155600b55565b6000610d838261143b565b9050336001600160a01b03821614610dbc57610d9f8133610b81565b610dbc576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610e20611d88565b8051610e33906009906020840190612a68565b5050565b600154600054036000190190565b610e4d611d88565b602055565b6000610e5d82611de2565b9050836001600160a01b0316816001600160a01b031614610e905760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610edd57610ec08633610b81565b610edd57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610f0457604051633a954ecd60e21b815260040160405180910390fd5b610f118686866001611e4b565b8015610f1c57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610fa75760018401600081815260046020526040902054610fa5576000548114610fa55760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610ff9611d88565b61101461100e6008546001600160a01b031690565b82611f0c565b50565b60135460175460008211801561102d5750428211155b801561103857508042105b61105d5760405162461bcd60e51b815260040161105490612f2d565b60405180910390fd5b60048585856110b133855b60405160609290921b6bffffffffffffffffffffffff19166020830152603482015260548101859052607401604051602081830303815290604052805190602001208383612025565b6110cd5760405162461bcd60e51b815260040161105490612f6d565b3360009081526016602052604090205489906110e9908c612fae565b11156111485760405162461bcd60e51b815260206004820152602860248201527f4d617820636c61696d61626c65206c616e647320706572206164647265737320604482015267195e18d95959195960c21b6064820152608401611054565b6102588a6015546111599190612fae565b11156111a75760405162461bcd60e51b815260206004820152601c60248201527f4d617820636c61696d61626c65206c616e6473206578636565646564000000006044820152606401611054565b6014546111b5576000546014555b33600090815260166020526040812080548c92906111d4908490612fae565b9250508190555089601560008282546111ed9190612fae565b909155506111fd9050338b612096565b50505050505050505050565b611211611d88565b6101f481601a546112229190612fae565b11156112705760405162461bcd60e51b815260206004820152601b60248201527f4d6178207265736572766564206c616e647320657863656564656400000000006044820152606401611054565b80601a60008282546112829190612fae565b90915550610e3390508282612096565b6112ad8383836040518060200160405280600081525061194c565b505050565b6112ba611d88565b8051610e3390601c906020840190612a68565b6112d5611d88565b8051610e3390601b906020840190612a68565b606060008060006112f885611528565b905060008167ffffffffffffffff81111561131557611315612c1b565b60405190808252806020026020018201604052801561133e578160200160208202803683370190505b50905061136b60408051608081018252600080825260208201819052918101829052606081019190915290565b60015b8386146113ec5761137e81612104565b915081604001511561138f576113e4565b81516001600160a01b0316156113a457815194505b876001600160a01b0316856001600160a01b031614156113e457808387806001019850815181106113d7576113d7612fc6565b6020026020010181815250505b60010161136e565b50909695505050505050565b611400611d88565b602180546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b611430611d88565b600e91909155600f55565b6000610c8982611de2565b600f5460135460008211801561145c5750428211155b801561146757508042105b6114835760405162461bcd60e51b815260040161105490612f2d565b60038585856114923385611068565b6114ae5760405162461bcd60e51b815260040161105490612f6d565b6703782dace9d900008a6114c28183612fdc565b34146114e05760405162461bcd60e51b815260040161105490612ffb565b6114ea8c8c612183565b505050505050505050505050565b611500611d88565b601d80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b60006001600160a01b038216611551576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b61157f611d88565b601355565b61158c611d88565b6115966000612272565b565b6017546018546000821180156115ae5750428211155b80156115b957508042105b6115d55760405162461bcd60e51b815260040161105490612f2d565b67058d15e176280000836115e98183612fdc565b34146116075760405162461bcd60e51b815260040161105490612ffb565b3332146116695760405162461bcd60e51b815260206004820152602a60248201527f4d696e74696e672066726f6d20736d61727420636f6e74726163747320697320604482015269191a5cd85b1b1bddd95960b21b6064820152608401611054565b602054611699336001600160a01b03166000908152600560205260409081902054901c67ffffffffffffffff1690565b6116a39087612fae565b11156116c15760405162461bcd60e51b815260040161105490613032565b6019546116cf576000546019555b6116d93386612096565b6000601754426116e99190613069565b90506107088111158015611700575060215460ff16155b801561172d57506102ee601954611715610e37565b61171f9190613069565b61172a906001612fae565b10155b15611740576021805460ff191660011790555b601e5461174b610e37565b1415610fe957601f805460ff19166001179055610fe9816122c4565b600a54600b5460008211801561177d5750428211155b801561178857508042105b6117a45760405162461bcd60e51b815260040161105490612f2d565b60008585856117b33385611068565b6117cf5760405162461bcd60e51b815260040161105490612f6d565b67016345785d8a00008a6117e38183612fdc565b34146118015760405162461bcd60e51b815260040161105490612ffb565b6114ea8c8c612338565b611813611d88565b601f805460ff19166001179055565b600e54600f546000821180156118385750428211155b801561184357508042105b61185f5760405162461bcd60e51b815260040161105490612f2d565b60028585856114923385611068565b600b54600e546000821180156118845750428211155b801561188f57508042105b6118ab5760405162461bcd60e51b815260040161105490612f2d565b60018585856117b33385611068565b606060038054610c9e90612ef2565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61193d611d88565b601d805460ff19166001179055565b611957848484610e52565b6001600160a01b0383163b156119905761197384848484612409565b611990576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b61199e611d88565b601791909155601855565b60606119b482611d53565b611a185760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401611054565b601d5460ff16611ab457601c8054611a2f90612ef2565b80601f0160208091040260200160405190810160405280929190818152602001828054611a5b90612ef2565b8015611aa85780601f10611a7d57610100808354040283529160200191611aa8565b820191906000526020600020905b815481529060010190602001808311611a8b57829003601f168201915b50505050509050919050565b6000611abe6124f2565b90506000815111611ade5760405180602001604052806000815250611b09565b80611ae884612501565b604051602001611af9929190613080565b6040516020818303038152906040525b9392505050565b6001600160a01b0381166000908152600560205260408082205467ffffffffffffffff911c16610c89565b611b43611d88565b60008111611b895760405162461bcd60e51b815260206004820152601360248201527204e657720737570706c79206d757374203e203606c1b6044820152606401611054565b601e548110611bda5760405162461bcd60e51b815260206004820152601a60248201527f43616e206f6e6c7920726564756365206d617820737570706c790000000000006044820152606401611054565b611be2610e37565b811015611c3d5760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f74206275726e206d6f7265207468616e2063757272656e7420737560448201526370706c7960e01b6064820152608401611054565b601e55601f805460ff19166001179055565b611c57611d88565b6001600160a01b038116611cbc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611054565b61101481612272565b60098054611cd290612ef2565b80601f0160208091040260200160405190810160405280929190818152602001828054611cfe90612ef2565b8015611d4b5780601f10611d2057610100808354040283529160200191611d4b565b820191906000526020600020905b815481529060010190602001808311611d2e57829003601f168201915b505050505081565b600081600111158015611d67575060005482105b8015610c89575050600090815260046020526040902054600160e01b161590565b6008546001600160a01b031633146115965760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611054565b60008180600111611e3257600054811015611e3257600081815260046020526040902054600160e01b8116611e30575b80611b09575060001901600081815260046020526040902054611e12565b505b604051636f96cda160e11b815260040160405180910390fd5b6001600160a01b038416611e5e57611990565b6010541580611e6e575060105482105b15611e9c576363711480421015611e975760405162461bcd60e51b8152600401611054906130af565b611990565b6014541580611eac575060145482105b15611ed357601f5460ff16611e975760405162461bcd60e51b8152600401611054906130af565b6019541580611ee3575060195482105b156119905763637a4f004210156119905760405162461bcd60e51b8152600401611054906130af565b80471015611f5c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401611054565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611fa9576040519150601f19603f3d011682016040523d82523d6000602084013e611fae565b606091505b50509050806112ad5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401611054565b601d54604080516020601f850181900481028201810190925283815260009261010090046001600160a01b0316916120849190869086908190840183828082843760009201919091525061207e92508991506125ff9050565b90612652565b6001600160a01b031614949350505050565b601e54816120a2610e37565b6120ac9190612fae565b11156120fa5760405162461bcd60e51b815260206004820152601960248201527f4d6178206c616e647320737570706c79206578636565646564000000000000006044820152606401611054565b610e338282612676565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260046020526040902054610c8990604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b33600090815260126020526040902054819061219f9084612fae565b11156121bd5760405162461bcd60e51b815260040161105490613032565b610f3c826011546121ce9190612fae565b111561221c5760405162461bcd60e51b815260206004820152601d60248201527f4d617820616c6c6f77206c697374206c616e64732065786365656465640000006044820152606401611054565b60105461222a576000546010555b3360009081526012602052604081208054849290612249908490612fae565b9250508190555081601160008282546122629190612fae565b90915550610e3390503383612096565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60215461010090046001600160a01b031615611014576000610e1082116122ed575060086122fc565b60215460ff16156122fc575060045b8015610e3357600060646123108347612fdc565b61231a91906130fc565b6021549091506112ad9061010090046001600160a01b031682611f0c565b336000908152600d602052604090205481906123549084612fae565b11156123725760405162461bcd60e51b815260040161105490613032565b61037882600c546123839190612fae565b11156123d15760405162461bcd60e51b815260206004820152601a60248201527f4d61782070726573616c65206c616e64732065786365656465640000000000006044820152606401611054565b336000908152600d6020526040812080548492906123f0908490612fae565b9250508190555081600c60008282546122629190612fae565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061243e903390899088908890600401613110565b6020604051808303816000875af1925050508015612479575060408051601f3d908101601f191682019092526124769181019061314d565b60015b6124d4573d8080156124a7576040519150601f19603f3d011682016040523d82523d6000602084013e6124ac565b606091505b5080516124cc576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060601b8054610c9e90612ef2565b6060816125255750506040805180820190915260018152600360fc1b602082015290565b8160005b811561254f57806125398161316a565b91506125489050600a836130fc565b9150612529565b60008167ffffffffffffffff81111561256a5761256a612c1b565b6040519080825280601f01601f191660200182016040528015612594576020820181803683370190505b5090505b84156124ea576125a9600183613069565b91506125b6600a86613185565b6125c1906030612fae565b60f81b8183815181106125d6576125d6612fc6565b60200101906001600160f81b031916908160001a9053506125f8600a866130fc565b9450612598565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6000806000612661858561277a565b9150915061266e816127c0565b509392505050565b600054816126975760405163b562e8dd60e01b815260040160405180910390fd5b6126a46000848385611e4b565b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461275357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161271b565b508161277157604051622e076360e81b815260040160405180910390fd5b60005550505050565b6000808251604114156127b15760208301516040840151606085015160001a6127a58782858561297b565b945094505050506127b9565b506000905060025b9250929050565b60008160048111156127d4576127d4612f57565b14156127dd5750565b60018160048111156127f1576127f1612f57565b141561283f5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401611054565b600281600481111561285357612853612f57565b14156128a15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401611054565b60038160048111156128b5576128b5612f57565b141561290e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401611054565b600481600481111561292257612922612f57565b14156110145760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401611054565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156129b25750600090506003612a5f565b8460ff16601b141580156129ca57508460ff16601c14155b156129db5750600090506004612a5f565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612a2f573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612a5857600060019250925050612a5f565b9150600090505b94509492505050565b828054612a7490612ef2565b90600052602060002090601f016020900481019282612a965760008555612adc565b82601f10612aaf57805160ff1916838001178555612adc565b82800160010185558215612adc579182015b82811115612adc578251825591602001919060010190612ac1565b50612ae8929150612aec565b5090565b5b80821115612ae85760008155600101612aed565b6001600160e01b03198116811461101457600080fd5b600060208284031215612b2957600080fd5b8135611b0981612b01565b60005b83811015612b4f578181015183820152602001612b37565b838111156119905750506000910152565b60008151808452612b78816020860160208601612b34565b601f01601f19169290920160200192915050565b602081526000611b096020830184612b60565b600060208284031215612bb157600080fd5b5035919050565b60008060408385031215612bcb57600080fd5b50508035926020909101359150565b6001600160a01b038116811461101457600080fd5b60008060408385031215612c0257600080fd5b8235612c0d81612bda565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612c4c57612c4c612c1b565b604051601f8501601f19908116603f01168101908282118183101715612c7457612c74612c1b565b81604052809350858152868686011115612c8d57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612cb957600080fd5b813567ffffffffffffffff811115612cd057600080fd5b8201601f81018413612ce157600080fd5b6124ea84823560208401612c31565b600080600060608486031215612d0557600080fd5b8335612d1081612bda565b92506020840135612d2081612bda565b929592945050506040919091013590565b60008060008060608587031215612d4757600080fd5b8435935060208501359250604085013567ffffffffffffffff80821115612d6d57600080fd5b818701915087601f830112612d8157600080fd5b813581811115612d9057600080fd5b886020828501011115612da257600080fd5b95989497505060200194505050565b600060208284031215612dc357600080fd5b8135611b0981612bda565b6020808252825182820181905260009190848201906040850190845b818110156113ec57835183529284019291840191600101612dea565b60008060408385031215612e1957600080fd5b8235612e2481612bda565b915060208301358015158114612e3957600080fd5b809150509250929050565b60008060008060808587031215612e5a57600080fd5b8435612e6581612bda565b93506020850135612e7581612bda565b925060408501359150606085013567ffffffffffffffff811115612e9857600080fd5b8501601f81018713612ea957600080fd5b612eb887823560208401612c31565b91505092959194509250565b60008060408385031215612ed757600080fd5b8235612ee281612bda565b91506020830135612e3981612bda565b600181811c90821680612f0657607f821691505b60208210811415612f2757634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526010908201526f135a5b9d081b9bdd081cdd185c9d195960821b604082015260600190565b634e487b7160e01b600052602160045260246000fd5b602080825260119082015270496e76616c6964207369676e617475726560781b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612fc157612fc1612f98565b500190565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615612ff657612ff6612f98565b500290565b6020808252601f908201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604082015260600190565b6020808252601e908201527f4d6178206c616e64732070657220616464726573732065786365656465640000604082015260600190565b60008282101561307b5761307b612f98565b500390565b60008351613092818460208801612b34565b8351908301906130a6818360208801612b34565b01949350505050565b60208082526017908201527f5472616e73666572206973206e6f7420656e61626c6564000000000000000000604082015260600190565b634e487b7160e01b600052601260045260246000fd5b60008261310b5761310b6130e6565b500490565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061314390830184612b60565b9695505050505050565b60006020828403121561315f57600080fd5b8151611b0981612b01565b600060001982141561317e5761317e612f98565b5060010190565b600082613194576131946130e6565b50069056fea26469706673582212206c421726b12bbbaa512d7bf056a3807bf031e8c377d32aaa11943929fd78de0564736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000022b8
-----Decoded View---------------
Arg [0] : maxLands (uint256): 8888
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000022b8
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.