Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 169 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Safe Transfer Fr... | 17413656 | 580 days ago | IN | 0 ETH | 0.00245849 | ||||
Safe Transfer Fr... | 17413039 | 580 days ago | IN | 0 ETH | 0.00426766 | ||||
Set Approval For... | 17413013 | 580 days ago | IN | 0 ETH | 0.00103886 | ||||
Safe Transfer Fr... | 17412981 | 580 days ago | IN | 0 ETH | 0.00172732 | ||||
Set Approval For... | 17412960 | 580 days ago | IN | 0 ETH | 0.00095174 | ||||
Set Approval For... | 17412943 | 580 days ago | IN | 0 ETH | 0.00097907 | ||||
Set Approval For... | 17412927 | 580 days ago | IN | 0 ETH | 0.00096866 | ||||
Set Approval For... | 17412913 | 580 days ago | IN | 0 ETH | 0.00095633 | ||||
Set Approval For... | 17412894 | 580 days ago | IN | 0 ETH | 0.00088912 | ||||
Set Approval For... | 17412861 | 580 days ago | IN | 0 ETH | 0.00089939 | ||||
Set Approval For... | 17412843 | 580 days ago | IN | 0 ETH | 0.00090889 | ||||
Set Approval For... | 17412808 | 580 days ago | IN | 0 ETH | 0.00091237 | ||||
Set Approval For... | 17412801 | 580 days ago | IN | 0 ETH | 0.00087235 | ||||
Set Approval For... | 17412791 | 580 days ago | IN | 0 ETH | 0.00085234 | ||||
Set Approval For... | 17412781 | 580 days ago | IN | 0 ETH | 0.00090457 | ||||
Set Approval For... | 17412770 | 580 days ago | IN | 0 ETH | 0.00082105 | ||||
Set Approval For... | 17412756 | 580 days ago | IN | 0 ETH | 0.00090397 | ||||
Set Approval For... | 17412714 | 580 days ago | IN | 0 ETH | 0.00101393 | ||||
Set Approval For... | 17412690 | 580 days ago | IN | 0 ETH | 0.00088436 | ||||
Set Approval For... | 17412682 | 580 days ago | IN | 0 ETH | 0.00090045 | ||||
Set Approval For... | 17412667 | 580 days ago | IN | 0 ETH | 0.00090959 | ||||
Set Approval For... | 17412657 | 580 days ago | IN | 0 ETH | 0.00103675 | ||||
Set Approval For... | 17412641 | 580 days ago | IN | 0 ETH | 0.00093447 | ||||
Set Approval For... | 17412627 | 580 days ago | IN | 0 ETH | 0.00095034 | ||||
Set Approval For... | 17412619 | 580 days ago | IN | 0 ETH | 0.00099216 |
Loading...
Loading
Contract Name:
PelikanNFT
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//Contract based on [https://docs.openzeppelin.com/contracts/3.x/erc721](https://docs.openzeppelin.com/contracts/3.x/erc721) // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; /* This is a dedicated contract written exclusievly for Pelicanos collection, which contain two phases. More info at: https://www.pelicanos.club */ contract PelikanNFT is ERC721A, Ownable, ReentrancyGuard { uint256 public constant MAX_SUPPLY = 7000; enum Sales { PRIVATE, FIRST_PHASE_PRESALE, FIRST_PHASE_PUBLIC, SECOND_PHASE_PRESALE, SECOND_PHASE_PUBLIC } Sales public currentSale; string public baseExtension = ".json"; string public baseURI = ""; // ipfs://ID/ address public withdrawAddress; /* Private phase settings */ uint256 public privateAvailablePool = 500; bytes32 public privateMerkleRoot = ""; /* First phase settings */ uint256 public firstPhasePreSaleMintRate = 0.2 ether; uint256 public firstPhasePublicMintRate = 0.3 ether; uint256 public firstPhaseMaxPreSaleMints = 15; uint256 public firstPhasePreSaleAvailablePool = 500; uint256 public firstPhasePublicAvailablePool = 1000; bytes32 public firstPhasePreSaleMerkleRoot = ""; bool public firstPhaseRevealed = false; mapping(address => uint256) private firstPhaseWalletMintedInPreSale; mapping(address => uint256) private firstPhaseWalletMintedInPublicSale; /* Second phase settings */ uint256 public secondPhasePreSaleMintRate = 0.32 ether; uint256 public secondPhasePublicMintRate = 0.35 ether; uint256 public secondPhaseMaxPreSaleMints = 15; uint256 public secondPhasePreSaleAvailablePool = 3500; uint256 public secondPhasePublicAvailablePool = 1500; bytes32 public secondPhasePreSaleMerkleRoot = ""; bool public secondPhaseRevealed = false; mapping(address => uint256) private secondPhaseWalletMintedInPreSale; mapping(address => uint256) private secondPhaseWalletMintedInPublicSale; constructor( address baseWithdrawAddress, string memory initialNotRevealedURL ) ERC721A("Pelicanos", "PLCN") { require( baseWithdrawAddress != address(0), "Cannot withdraw to the burn address" ); withdrawAddress = baseWithdrawAddress; baseURI = initialNotRevealedURL; currentSale = Sales.PRIVATE; } function _baseURI() internal view override returns (string memory) { return baseURI; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } /* We track addresses and tokens on them */ function mintedInFirstPhasePreSale() external view returns (uint256) { return firstPhaseWalletMintedInPreSale[msg.sender]; } function mintedInFirstPhasePublicSale() external view returns (uint256) { return firstPhaseWalletMintedInPublicSale[msg.sender]; } function mintedInSecondPhasePreSale() external view returns (uint256) { return secondPhaseWalletMintedInPreSale[msg.sender]; } function mintedInSecondPhasePublicSale() external view returns (uint256) { return secondPhaseWalletMintedInPublicSale[msg.sender]; } function tokenURI(uint256 tokenId) public view override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); return string(abi.encodePacked(_baseURI(), Strings.toString(tokenId), baseExtension)); } function setWithdrawAddress(address payable newAddress) external onlyOwner { require(newAddress != address(0), "Cannot set zero address"); withdrawAddress = newAddress; } function setBaseURI(string memory _newBaseURI) external onlyOwner { baseURI = _newBaseURI; } function setBaseExtension(string memory _newBaseExtension) external onlyOwner { baseExtension = _newBaseExtension; } /* Reveal methods where we are setting new IPFS url */ function revalFirstPhase(string memory _newBaseURI) external onlyOwner { firstPhaseRevealed = true; baseURI = _newBaseURI; } function revalSecondPhase(string memory _newBaseURI) external onlyOwner { secondPhaseRevealed = true; baseURI = _newBaseURI; } /* Max mints per wallet in both phases (both persale, because we don`t have any limit on public sales) */ function setMaxFirstPhasePreSaleMintsPerWallet(uint256 maxMints) external onlyOwner { firstPhaseMaxPreSaleMints = maxMints; } function setMaxSecondPhasePreSaleMintsPerWallet(uint256 maxMints) external onlyOwner { secondPhaseMaxPreSaleMints = maxMints; } /* Merkle tree roots for private, first phase presale and second phase presale */ function setPrivateMerkleRoot(bytes32 merkleRoot) external onlyOwner { privateMerkleRoot = merkleRoot; } function setFirstPhasePreSaleMerkleRoot(bytes32 merkleRoot) external onlyOwner { firstPhasePreSaleMerkleRoot = merkleRoot; } function setSecondPhasePreSaleMerkleRoot(bytes32 merkleRoot) external onlyOwner { secondPhasePreSaleMerkleRoot = merkleRoot; } /* This is the place where can switch between sales, but only by going up. It`s a guarantee that we won't be able to switch to old sales. */ function togglePrivate() external onlyOwner { currentSale = Sales.PRIVATE; } function enableFirstPhasePresale() external onlyOwner { currentSale = Sales.FIRST_PHASE_PRESALE; } function enableFirstPhasePublicSale() external onlyOwner { firstPhasePublicAvailablePool = firstPhasePublicAvailablePool + firstPhasePreSaleAvailablePool; firstPhasePreSaleAvailablePool = 0; currentSale = Sales.FIRST_PHASE_PUBLIC; } function enableSecondPhasePresale() external onlyOwner { secondPhasePreSaleAvailablePool = secondPhasePreSaleAvailablePool + firstPhasePublicAvailablePool; firstPhasePublicAvailablePool = 0; currentSale = Sales.SECOND_PHASE_PRESALE; } function enableSecondPhasePublicSale() external onlyOwner { secondPhasePublicAvailablePool = secondPhasePublicAvailablePool + secondPhasePreSaleAvailablePool; secondPhasePreSaleAvailablePool = 0; currentSale = Sales.SECOND_PHASE_PUBLIC; } /* Withdraws methods */ function withdrawAll() public payable onlyOwner { Address.sendValue(payable(withdrawAddress), address(this).balance); } function withdrawSpecifedAmount(uint256 amount) public payable onlyOwner { Address.sendValue(payable(withdrawAddress), amount); } /* Modifiers */ modifier isValidPrice(uint256 mintRate, uint256 quantity) { require(msg.value == mintRate * quantity, "Wrong ether value"); _; } modifier isTotalSupplyExceed(uint256 quantity) { require( totalSupply() + quantity <= MAX_SUPPLY, "Not enough tokens left in maxSupply" ); _; } modifier isValidSale(Sales sale) { require(currentSale == sale, "Given sale is not active"); _; } modifier isValidMerkleProof(bytes32[] calldata _proof, bytes32 merkleRoot) { require( MerkleProof.verify( _proof, merkleRoot, keccak256(abi.encodePacked(msg.sender)) ), "Invalid proof" ); _; } modifier isEnoughTokensInSalePool(uint256 quantity, uint256 pool) { require(quantity <= pool, "Available pool exceeded"); _; } modifier isPersonalMintLimitPerSaleExceed(uint256 quantity) { if (currentSale == Sales.FIRST_PHASE_PRESALE) { require( firstPhaseWalletMintedInPreSale[msg.sender] + quantity <= firstPhaseMaxPreSaleMints, "Wallet mint limit in first phase presale has been exceeded" ); } if (currentSale == Sales.SECOND_PHASE_PRESALE) { require( secondPhaseWalletMintedInPreSale[msg.sender] + quantity <= secondPhaseMaxPreSaleMints, "Wallet mint limit in second wave sale has been exceeded" ); } _; } /* First phase mints/airdrops */ function mintPrivate(uint256 quantity, bytes32[] calldata _proof) external payable nonReentrant isValidSale(Sales.PRIVATE) isValidMerkleProof(_proof, privateMerkleRoot) isTotalSupplyExceed(quantity) isEnoughTokensInSalePool(quantity, privateAvailablePool) { privateAvailablePool = privateAvailablePool - quantity; _safeMint(msg.sender, quantity); } function firstPhaseAirdrop(address airdropAddress, uint256 quantity) external onlyOwner isEnoughTokensInSalePool(quantity, firstPhasePublicAvailablePool) isTotalSupplyExceed(quantity) { firstPhasePublicAvailablePool = firstPhasePublicAvailablePool - quantity; firstPhaseWalletMintedInPublicSale[airdropAddress] += quantity; _safeMint(airdropAddress, quantity); } function mintFirstPhasePreSale(uint256 quantity, bytes32[] calldata _proof) external payable nonReentrant isValidSale(Sales.FIRST_PHASE_PRESALE) isValidMerkleProof(_proof, firstPhasePreSaleMerkleRoot) isValidPrice(firstPhasePreSaleMintRate, quantity) isTotalSupplyExceed(quantity) isEnoughTokensInSalePool(quantity, firstPhasePreSaleAvailablePool) isPersonalMintLimitPerSaleExceed(quantity) { firstPhasePreSaleAvailablePool = firstPhasePreSaleAvailablePool - quantity; firstPhaseWalletMintedInPreSale[msg.sender] += quantity; _safeMint(msg.sender, quantity); } function mintFirstPhasePublicSale(uint256 quantity) external payable nonReentrant isValidSale(Sales.FIRST_PHASE_PUBLIC) isValidPrice(firstPhasePublicMintRate, quantity) isTotalSupplyExceed(quantity) isEnoughTokensInSalePool(quantity, firstPhasePublicAvailablePool) { firstPhasePublicAvailablePool = firstPhasePublicAvailablePool - quantity; firstPhaseWalletMintedInPublicSale[msg.sender] += quantity; _safeMint(msg.sender, quantity); } /* Second phase mints/airdrops */ function secondPhaseAirdrop(address airdropAddress, uint256 quantity) external onlyOwner isEnoughTokensInSalePool(quantity, secondPhasePublicAvailablePool) isTotalSupplyExceed(quantity) { secondPhasePublicAvailablePool = secondPhasePublicAvailablePool - quantity; secondPhaseWalletMintedInPublicSale[airdropAddress] += quantity; _safeMint(airdropAddress, quantity); } function mintSecondPhasePreSale(uint256 quantity, bytes32[] calldata _proof) external payable nonReentrant isValidSale(Sales.SECOND_PHASE_PRESALE) isValidMerkleProof(_proof, secondPhasePreSaleMerkleRoot) isValidPrice(secondPhasePreSaleMintRate, quantity) isTotalSupplyExceed(quantity) isEnoughTokensInSalePool(quantity, secondPhasePreSaleAvailablePool) isPersonalMintLimitPerSaleExceed(quantity) { secondPhasePreSaleAvailablePool = secondPhasePreSaleAvailablePool - quantity; secondPhaseWalletMintedInPreSale[msg.sender] += quantity; _safeMint(msg.sender, quantity); } function mintSecondPhasePublicSale(uint256 quantity) external payable nonReentrant isValidSale(Sales.SECOND_PHASE_PUBLIC) isValidPrice(secondPhasePublicMintRate, quantity) isTotalSupplyExceed(quantity) isEnoughTokensInSalePool(quantity, secondPhasePublicAvailablePool) { secondPhasePublicAvailablePool = secondPhasePublicAvailablePool - quantity; secondPhaseWalletMintedInPublicSale[msg.sender] += quantity; _safeMint(msg.sender, quantity); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, * including the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at `_startTokenId()` * (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // 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 tokenId of the next token 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 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @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 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 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 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 returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ 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: 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. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view 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 { 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; } /** * 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 ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * 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); } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @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 See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _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 ''; } /** * @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)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _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 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 { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` 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 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _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 { 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 Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(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 `_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) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(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++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try 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)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { 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 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; } /** * @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 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 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 returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * 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(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`. uint24 extraData; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // IERC165 // ============================== /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================== // 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`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // 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 standard. See `_mintERC2309` for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"baseWithdrawAddress","type":"address"},{"internalType":"string","name":"initialNotRevealedURL","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","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":"MAX_SUPPLY","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentSale","outputs":[{"internalType":"enum PelikanNFT.Sales","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableFirstPhasePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableFirstPhasePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableSecondPhasePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableSecondPhasePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"airdropAddress","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"firstPhaseAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"firstPhaseMaxPreSaleMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstPhasePreSaleAvailablePool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstPhasePreSaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstPhasePreSaleMintRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstPhasePublicAvailablePool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstPhasePublicMintRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstPhaseRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"mintFirstPhasePreSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintFirstPhasePublicSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"mintPrivate","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"mintSecondPhasePreSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintSecondPhasePublicSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintedInFirstPhasePreSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedInFirstPhasePublicSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedInSecondPhasePreSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedInSecondPhasePublicSale","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":[],"name":"privateAvailablePool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"privateMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"revalFirstPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"revalSecondPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"airdropAddress","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"secondPhaseAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"secondPhaseMaxPreSaleMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondPhasePreSaleAvailablePool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondPhasePreSaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondPhasePreSaleMintRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondPhasePublicAvailablePool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondPhasePublicMintRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondPhaseRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setFirstPhasePreSaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxMints","type":"uint256"}],"name":"setMaxFirstPhasePreSaleMintsPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxMints","type":"uint256"}],"name":"setMaxSecondPhasePreSaleMintsPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setPrivateMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setSecondPhasePreSaleMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newAddress","type":"address"}],"name":"setWithdrawAddress","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":[],"name":"togglePrivate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawSpecifedAmount","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60c06040526005608090815264173539b7b760d91b60a052600b9062000026908262000307565b50604080516020810190915260008152600c9062000045908262000307565b506101f4600e8190556000600f8181556702c68af0bb140000601055670429d069189e000060115560128190556013929092556103e860145560158190556016805460ff19908116909155670470de4df82000006019556704db732547630000601a55601b92909255610dac601c556105dc601d55601e55601f80549091169055348015620000d357600080fd5b506040516200349838038062003498833981016040819052620000f691620003d3565b6040518060400160405280600981526020016850656c6963616e6f7360b81b81525060405180604001604052806004815260200163282621a760e11b815250816002908162000146919062000307565b50600362000155828262000307565b5050600160005550620001683362000210565b60016009556001600160a01b038216620001d45760405162461bcd60e51b815260206004820152602360248201527f43616e6e6f7420776974686472617720746f20746865206275726e206164647260448201526265737360e81b606482015260840160405180910390fd5b600d80546001600160a01b0319166001600160a01b038416179055600c620001fd828262000307565b5050600a805460ff1916905550620004d3565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200028d57607f821691505b602082108103620002ae57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200030257600081815260208120601f850160051c81016020861015620002dd5750805b601f850160051c820191505b81811015620002fe57828155600101620002e9565b5050505b505050565b81516001600160401b0381111562000323576200032362000262565b6200033b8162000334845462000278565b84620002b4565b602080601f8311600181146200037357600084156200035a5750858301515b600019600386901b1c1916600185901b178555620002fe565b600085815260208120601f198616915b82811015620003a45788860151825594840194600190910190840162000383565b5085821015620003c35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008060408385031215620003e757600080fd5b82516001600160a01b0381168114620003ff57600080fd5b602084810151919350906001600160401b03808211156200041f57600080fd5b818601915086601f8301126200043457600080fd5b81518181111562000449576200044962000262565b604051601f8201601f19908116603f0116810190838211818310171562000474576200047462000262565b8160405282815289868487010111156200048d57600080fd5b600093505b82841015620004b1578484018601518185018701529285019262000492565b82841115620004c35760008684830101525b8096505050505050509250929050565b612fb580620004e36000396000f3fe6080604052600436106103d95760003560e01c80638da5cb5b116101fd578063c6ab8f6d11610118578063da3ef23f116100ab578063efb4221a1161007a578063efb4221a14610a91578063f0f1c5f614610aa7578063f2fde38b14610aba578063f73acaad14610ada578063fef902a814610afc57600080fd5b8063da3ef23f146109fc578063e7f5e0ca14610a1c578063e94988c514610a32578063e985e9c514610a4857600080fd5b8063cb7a97c6116100e7578063cb7a97c614610991578063cc0254e3146109a7578063cd2275d3146109c9578063d036784a146109dc57600080fd5b8063c6ab8f6d14610931578063c6e2b05d14610947578063c87b56dd1461095c578063ca4c4b2e1461097c57600080fd5b8063a8d8ecfe11610190578063c15850ec1161015f578063c15850ec146108db578063c24854b4146108f0578063c46b1e8714610906578063c66828621461091c57600080fd5b8063a8d8ecfe14610870578063ab8a94f514610886578063ae29f94814610899578063b88d4fde146108bb57600080fd5b8063a05d03fd116101cc578063a05d03fd146107f3578063a14fd10f1461081a578063a22cb46514610830578063a2b8325d1461085057600080fd5b80638da5cb5b1461078b57806390ca8f1c146107a957806391cae64d146107c957806395d89b41146107de57600080fd5b806352d596ec116102f8578063715018a61161028b578063755ebf8f1161025a578063755ebf8f146107255780637bd0268714610745578063853828b61461075857806386a5bdd01461076057806387de704c1461077557600080fd5b8063715018a6146106cd57806371d9c151146106e257806372b2929d146106fc5780637351c2081461070f57600080fd5b80636352211e116102c75780636352211e1461065857806365bfaa68146106785780636c0360eb1461069857806370a08231146106ad57600080fd5b806352d596ec146105e157806354a4a622146105f757806355f804b3146106175780635a01e1ac1461063757600080fd5b806322d7ec88116103705780632bbde22e1161033f5780632bbde22e1461057557806332cb6b0c1461058b5780633ab1a494146105a157806342842e0e146105c157600080fd5b806322d7ec881461050557806322f71a291461052557806323b872dd1461053f57806328e714421461055f57600080fd5b8063095ea7b3116103ac578063095ea7b31461048f5780630fd3c653146104af5780631581b600146104c257806318160ddd146104e257600080fd5b806301394bcb146103de57806301ffc9a71461040057806306fdde0314610435578063081812fc14610457575b600080fd5b3480156103ea57600080fd5b506103fe6103f936600461268c565b610b1c565b005b34801561040c57600080fd5b5061042061041b3660046126ce565b610bf8565b60405190151581526020015b60405180910390f35b34801561044157600080fd5b5061044a610c4a565b60405161042c9190612743565b34801561046357600080fd5b50610477610472366004612756565b610cdc565b6040516001600160a01b03909116815260200161042c565b34801561049b57600080fd5b506103fe6104aa36600461268c565b610d20565b6103fe6104bd366004612756565b610dc0565b3480156104ce57600080fd5b50600d54610477906001600160a01b031681565b3480156104ee57600080fd5b506104f7610ef1565b60405190815260200161042c565b34801561051157600080fd5b506103fe610520366004612756565b610eff565b34801561053157600080fd5b506016546104209060ff1681565b34801561054b57600080fd5b506103fe61055a36600461276f565b610f2e565b34801561056b57600080fd5b506104f760155481565b34801561058157600080fd5b506104f7600f5481565b34801561059757600080fd5b506104f7611b5881565b3480156105ad57600080fd5b506103fe6105bc3660046127b0565b6110c7565b3480156105cd57600080fd5b506103fe6105dc36600461276f565b611169565b3480156105ed57600080fd5b506104f760135481565b34801561060357600080fd5b506103fe610612366004612859565b611189565b34801561062357600080fd5b506103fe610632366004612859565b6111d0565b34801561064357600080fd5b503360009081526020805260409020546104f7565b34801561066457600080fd5b50610477610673366004612756565b611206565b34801561068457600080fd5b506103fe610693366004612756565b611211565b3480156106a457600080fd5b5061044a611240565b3480156106b957600080fd5b506104f76106c83660046127b0565b6112ce565b3480156106d957600080fd5b506103fe61131d565b3480156106ee57600080fd5b50601f546104209060ff1681565b6103fe61070a366004612756565b611353565b34801561071b57600080fd5b506104f760145481565b34801561073157600080fd5b506103fe61074036600461268c565b611396565b6103fe6107533660046128a2565b611452565b6103fe6116cb565b34801561076c57600080fd5b506103fe61170b565b34801561078157600080fd5b506104f7601e5481565b34801561079757600080fd5b506008546001600160a01b0316610477565b3480156107b557600080fd5b506103fe6107c4366004612756565b611764565b3480156107d557600080fd5b506103fe611793565b3480156107ea57600080fd5b5061044a6117e9565b3480156107ff57600080fd5b50600a5461080d9060ff1681565b60405161042c9190612937565b34801561082657600080fd5b506104f760105481565b34801561083c57600080fd5b506103fe61084b36600461295f565b6117f8565b34801561085c57600080fd5b506103fe61086b366004612756565b61188d565b34801561087c57600080fd5b506104f760125481565b6103fe6108943660046128a2565b6118bc565b3480156108a557600080fd5b50336000908152601860205260409020546104f7565b3480156108c757600080fd5b506103fe6108d636600461299d565b611afb565b3480156108e757600080fd5b506103fe611b45565b3480156108fc57600080fd5b506104f7601c5481565b34801561091257600080fd5b506104f7601b5481565b34801561092857600080fd5b5061044a611b83565b34801561093d57600080fd5b506104f7600e5481565b34801561095357600080fd5b506103fe611b90565b34801561096857600080fd5b5061044a610977366004612756565b611bcd565b34801561098857600080fd5b506103fe611c77565b34801561099d57600080fd5b506104f7601a5481565b3480156109b357600080fd5b50336000908152602160205260409020546104f7565b6103fe6109d73660046128a2565b611ccd565b3480156109e857600080fd5b506103fe6109f7366004612859565b611e28565b348015610a0857600080fd5b506103fe610a17366004612859565b611e6b565b348015610a2857600080fd5b506104f760195481565b348015610a3e57600080fd5b506104f7601d5481565b348015610a5457600080fd5b50610420610a63366004612a1d565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610a9d57600080fd5b506104f760115481565b6103fe610ab5366004612756565b611ea1565b348015610ac657600080fd5b506103fe610ad53660046127b0565b611fb4565b348015610ae657600080fd5b50336000908152601760205260409020546104f7565b348015610b0857600080fd5b506103fe610b17366004612756565b61204c565b6008546001600160a01b03163314610b4f5760405162461bcd60e51b8152600401610b4690612a4b565b60405180910390fd5b80601d5480821115610b735760405162461bcd60e51b8152600401610b4690612a80565b82611b5881610b80610ef1565b610b8a9190612acd565b1115610ba85760405162461bcd60e51b8152600401610b4690612ae5565b83601d54610bb69190612b28565b601d556001600160a01b03851660009081526021602052604081208054869290610be1908490612acd565b90915550610bf19050858561207b565b5050505050565b60006301ffc9a760e01b6001600160e01b031983161480610c2957506380ac58cd60e01b6001600160e01b03198316145b80610c445750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060028054610c5990612b3f565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8590612b3f565b8015610cd25780601f10610ca757610100808354040283529160200191610cd2565b820191906000526020600020905b815481529060010190602001808311610cb557829003601f168201915b5050505050905090565b6000610ce782612095565b610d04576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610d2b82611206565b9050336001600160a01b03821614610d6457610d478133610a63565b610d64576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600260095403610de25760405162461bcd60e51b8152600401610b4690612b79565b6002600981905580600a5460ff166004811115610e0157610e01612921565b14610e1e5760405162461bcd60e51b8152600401610b4690612bb0565b60115482610e2c8183612be7565b3414610e4a5760405162461bcd60e51b8152600401610b4690612c06565b83611b5881610e57610ef1565b610e619190612acd565b1115610e7f5760405162461bcd60e51b8152600401610b4690612ae5565b8460145480821115610ea35760405162461bcd60e51b8152600401610b4690612a80565b86601454610eb19190612b28565b6014553360009081526018602052604081208054899290610ed3908490612acd565b90915550610ee39050338861207b565b505060016009555050505050565b600154600054036000190190565b6008546001600160a01b03163314610f295760405162461bcd60e51b8152600401610b4690612a4b565b601255565b6000610f39826120ca565b9050836001600160a01b0316816001600160a01b031614610f6c5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610fb957610f9c8633610a63565b610fb957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610fe057604051633a954ecd60e21b815260040160405180910390fd5b8015610feb57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b8416900361107d5760018401600081815260046020526040812054900361107b57600054811461107b5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6008546001600160a01b031633146110f15760405162461bcd60e51b8152600401610b4690612a4b565b6001600160a01b0381166111475760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f7420736574207a65726f20616464726573730000000000000000006044820152606401610b46565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b61118483838360405180602001604052806000815250611afb565b505050565b6008546001600160a01b031633146111b35760405162461bcd60e51b8152600401610b4690612a4b565b601f805460ff19166001179055600c6111cc8282612c77565b5050565b6008546001600160a01b031633146111fa5760405162461bcd60e51b8152600401610b4690612a4b565b600c6111cc8282612c77565b6000610c44826120ca565b6008546001600160a01b0316331461123b5760405162461bcd60e51b8152600401610b4690612a4b565b600f55565b600c805461124d90612b3f565b80601f016020809104026020016040519081016040528092919081815260200182805461127990612b3f565b80156112c65780601f1061129b576101008083540402835291602001916112c6565b820191906000526020600020905b8154815290600101906020018083116112a957829003601f168201915b505050505081565b60006001600160a01b0382166112f7576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146113475760405162461bcd60e51b8152600401610b4690612a4b565b6113516000612140565b565b6008546001600160a01b0316331461137d5760405162461bcd60e51b8152600401610b4690612a4b565b600d54611393906001600160a01b031682612192565b50565b6008546001600160a01b031633146113c05760405162461bcd60e51b8152600401610b4690612a4b565b80601454808211156113e45760405162461bcd60e51b8152600401610b4690612a80565b82611b58816113f1610ef1565b6113fb9190612acd565b11156114195760405162461bcd60e51b8152600401610b4690612ae5565b836014546114279190612b28565b6014556001600160a01b03851660009081526018602052604081208054869290610be1908490612acd565b6002600954036114745760405162461bcd60e51b8152600401610b4690612b79565b6002600955600380600a5460ff16600481111561149357611493612921565b146114b05760405162461bcd60e51b8152600401610b4690612bb0565b8282601e54611523838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516001600160601b03193360601b16602082015285925060340190505b604051602081830303815290604052805190602001206122ab565b61153f5760405162461bcd60e51b8152600401610b4690612d37565b6019548761154d8183612be7565b341461156b5760405162461bcd60e51b8152600401610b4690612c06565b88611b5881611578610ef1565b6115829190612acd565b11156115a05760405162461bcd60e51b8152600401610b4690612ae5565b89601c54808211156115c45760405162461bcd60e51b8152600401610b4690612a80565b8b6001600a5460ff1660048111156115de576115de612921565b0361161f5760125433600090815260176020526040902054611601908390612acd565b111561161f5760405162461bcd60e51b8152600401610b4690612d5e565b6003600a5460ff16600481111561163857611638612921565b0361167857601b5433600090815260208052604090205461165a908390612acd565b11156116785760405162461bcd60e51b8152600401610b4690612dbb565b8c601c546116869190612b28565b601c55336000908152602080526040812080548f92906116a7908490612acd565b909155506116b79050338e61207b565b505060016009555050505050505050505050565b6008546001600160a01b031633146116f55760405162461bcd60e51b8152600401610b4690612a4b565b600d54611351906001600160a01b031647612192565b6008546001600160a01b031633146117355760405162461bcd60e51b8152600401610b4690612a4b565b601c54601d546117459190612acd565b601d556000601c55600a80546004919060ff19166001835b0217905550565b6008546001600160a01b0316331461178e5760405162461bcd60e51b8152600401610b4690612a4b565b601e55565b6008546001600160a01b031633146117bd5760405162461bcd60e51b8152600401610b4690612a4b565b601454601c546117cd9190612acd565b601c556000601455600a80546003919060ff191660018361175d565b606060038054610c5990612b3f565b336001600160a01b038316036118215760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146118b75760405162461bcd60e51b8152600401610b4690612a4b565b601555565b6002600954036118de5760405162461bcd60e51b8152600401610b4690612b79565b6002600955600180600a5460ff1660048111156118fd576118fd612921565b1461191a5760405162461bcd60e51b8152600401610b4690612bb0565b8282601554611976838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516001600160601b03193360601b1660208201528592506034019050611508565b6119925760405162461bcd60e51b8152600401610b4690612d37565b601054876119a08183612be7565b34146119be5760405162461bcd60e51b8152600401610b4690612c06565b88611b58816119cb610ef1565b6119d59190612acd565b11156119f35760405162461bcd60e51b8152600401610b4690612ae5565b8960135480821115611a175760405162461bcd60e51b8152600401610b4690612a80565b8b6001600a5460ff166004811115611a3157611a31612921565b03611a725760125433600090815260176020526040902054611a54908390612acd565b1115611a725760405162461bcd60e51b8152600401610b4690612d5e565b6003600a5460ff166004811115611a8b57611a8b612921565b03611acb57601b54336000908152602080526040902054611aad908390612acd565b1115611acb5760405162461bcd60e51b8152600401610b4690612dbb565b8c601354611ad99190612b28565b60135533600090815260176020526040812080548f92906116a7908490612acd565b611b06848484610f2e565b6001600160a01b0383163b15611b3f57611b22848484846122c1565b611b3f576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b03163314611b6f5760405162461bcd60e51b8152600401610b4690612a4b565b600a80546000919060ff191660018361175d565b600b805461124d90612b3f565b6008546001600160a01b03163314611bba5760405162461bcd60e51b8152600401610b4690612a4b565b600a80546001919060ff1916828061175d565b6060611bd882612095565b611c3c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b46565b611c446123ad565b611c4d836123bc565b600b604051602001611c6193929190612e18565b6040516020818303038152906040529050919050565b6008546001600160a01b03163314611ca15760405162461bcd60e51b8152600401610b4690612a4b565b601354601454611cb19190612acd565b6014556000601355600a80546002919060ff191660018361175d565b600260095403611cef5760405162461bcd60e51b8152600401610b4690612b79565b6002600955600080600a5460ff166004811115611d0e57611d0e612921565b14611d2b5760405162461bcd60e51b8152600401610b4690612bb0565b8282600f54611d87838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516001600160601b03193360601b1660208201528592506034019050611508565b611da35760405162461bcd60e51b8152600401610b4690612d37565b86611b5881611db0610ef1565b611dba9190612acd565b1115611dd85760405162461bcd60e51b8152600401610b4690612ae5565b87600e5480821115611dfc5760405162461bcd60e51b8152600401610b4690612a80565b89600e54611e0a9190612b28565b600e55611e17338b61207b565b505060016009555050505050505050565b6008546001600160a01b03163314611e525760405162461bcd60e51b8152600401610b4690612a4b565b6016805460ff19166001179055600c6111cc8282612c77565b6008546001600160a01b03163314611e955760405162461bcd60e51b8152600401610b4690612a4b565b600b6111cc8282612c77565b600260095403611ec35760405162461bcd60e51b8152600401610b4690612b79565b6002600955600480600a5460ff166004811115611ee257611ee2612921565b14611eff5760405162461bcd60e51b8152600401610b4690612bb0565b601a5482611f0d8183612be7565b3414611f2b5760405162461bcd60e51b8152600401610b4690612c06565b83611b5881611f38610ef1565b611f429190612acd565b1115611f605760405162461bcd60e51b8152600401610b4690612ae5565b84601d5480821115611f845760405162461bcd60e51b8152600401610b4690612a80565b86601d54611f929190612b28565b601d553360009081526021602052604081208054899290610ed3908490612acd565b6008546001600160a01b03163314611fde5760405162461bcd60e51b8152600401610b4690612a4b565b6001600160a01b0381166120435760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b46565b61139381612140565b6008546001600160a01b031633146120765760405162461bcd60e51b8152600401610b4690612a4b565b601b55565b6111cc8282604051806020016040528060008152506124bd565b6000816001111580156120a9575060005482105b8015610c44575050600090815260046020526040902054600160e01b161590565b60008180600111612127576000548110156121275760008181526004602052604081205490600160e01b82169003612125575b8060000361211e5750600019016000818152600460205260409020546120fd565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b804710156121e25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b46565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461222f576040519150601f19603f3d011682016040523d82523d6000602084013e612234565b606091505b50509050806111845760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b46565b6000826122b88584612523565b14949350505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906122f6903390899088908890600401612eb8565b6020604051808303816000875af1925050508015612331575060408051601f3d908101601f1916820190925261232e91810190612ef5565b60015b61238f573d80801561235f576040519150601f19603f3d011682016040523d82523d6000602084013e612364565b606091505b508051600003612387576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600c8054610c5990612b3f565b6060816000036123e35750506040805180820190915260018152600360fc1b602082015290565b8160005b811561240d57806123f781612f12565b91506124069050600a83612f41565b91506123e7565b60008167ffffffffffffffff811115612428576124286127cd565b6040519080825280601f01601f191660200182016040528015612452576020820181803683370190505b5090505b84156123a557612467600183612b28565b9150612474600a86612f55565b61247f906030612acd565b60f81b81838151811061249457612494612f69565b60200101906001600160f81b031916908160001a9053506124b6600a86612f41565b9450612456565b6124c78383612597565b6001600160a01b0383163b15611184576000548281035b6124f160008683806001019450866122c1565b61250e576040516368d2bf6b60e11b815260040160405180910390fd5b8181106124de578160005414610bf157600080fd5b600081815b845181101561258f57600085828151811061254557612545612f69565b6020026020010151905080831161256b576000838152602082905260409020925061257c565b600081815260208490526040902092505b508061258781612f12565b915050612528565b509392505050565b6000546001600160a01b0383166125c057604051622e076360e81b815260040160405180910390fd5b816000036125e15760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061262b5760005550505050565b6001600160a01b038116811461139357600080fd5b6000806040838503121561269f57600080fd5b82356126aa81612677565b946020939093013593505050565b6001600160e01b03198116811461139357600080fd5b6000602082840312156126e057600080fd5b813561211e816126b8565b60005b838110156127065781810151838201526020016126ee565b83811115611b3f5750506000910152565b6000815180845261272f8160208601602086016126eb565b601f01601f19169290920160200192915050565b60208152600061211e6020830184612717565b60006020828403121561276857600080fd5b5035919050565b60008060006060848603121561278457600080fd5b833561278f81612677565b9250602084013561279f81612677565b929592945050506040919091013590565b6000602082840312156127c257600080fd5b813561211e81612677565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156127fe576127fe6127cd565b604051601f8501601f19908116603f01168101908282118183101715612826576128266127cd565b8160405280935085815286868601111561283f57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561286b57600080fd5b813567ffffffffffffffff81111561288257600080fd5b8201601f8101841361289357600080fd5b6123a5848235602084016127e3565b6000806000604084860312156128b757600080fd5b83359250602084013567ffffffffffffffff808211156128d657600080fd5b818601915086601f8301126128ea57600080fd5b8135818111156128f957600080fd5b8760208260051b850101111561290e57600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052602160045260246000fd5b602081016005831061295957634e487b7160e01b600052602160045260246000fd5b91905290565b6000806040838503121561297257600080fd5b823561297d81612677565b91506020830135801515811461299257600080fd5b809150509250929050565b600080600080608085870312156129b357600080fd5b84356129be81612677565b935060208501356129ce81612677565b925060408501359150606085013567ffffffffffffffff8111156129f157600080fd5b8501601f81018713612a0257600080fd5b612a11878235602084016127e3565b91505092959194509250565b60008060408385031215612a3057600080fd5b8235612a3b81612677565b9150602083013561299281612677565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526017908201527f417661696c61626c6520706f6f6c206578636565646564000000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612ae057612ae0612ab7565b500190565b60208082526023908201527f4e6f7420656e6f75676820746f6b656e73206c65667420696e206d6178537570604082015262706c7960e81b606082015260800190565b600082821015612b3a57612b3a612ab7565b500390565b600181811c90821680612b5357607f821691505b602082108103612b7357634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526018908201527f476976656e2073616c65206973206e6f74206163746976650000000000000000604082015260600190565b6000816000190483118215151615612c0157612c01612ab7565b500290565b60208082526011908201527057726f6e672065746865722076616c756560781b604082015260600190565b601f82111561118457600081815260208120601f850160051c81016020861015612c585750805b601f850160051c820191505b818110156110bf57828155600101612c64565b815167ffffffffffffffff811115612c9157612c916127cd565b612ca581612c9f8454612b3f565b84612c31565b602080601f831160018114612cda5760008415612cc25750858301515b600019600386901b1c1916600185901b1785556110bf565b600085815260208120601f198616915b82811015612d0957888601518255948401946001909101908401612cea565b5085821015612d275787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020808252600d908201526c24b73b30b634b210383937b7b360991b604082015260600190565b6020808252603a908201527f57616c6c6574206d696e74206c696d697420696e20666972737420706861736560408201527f2070726573616c6520686173206265656e206578636565646564000000000000606082015260800190565b60208082526037908201527f57616c6c6574206d696e74206c696d697420696e207365636f6e64207761766560408201527f2073616c6520686173206265656e206578636565646564000000000000000000606082015260800190565b600084516020612e2b8285838a016126eb565b855191840191612e3e8184848a016126eb565b8554920191600090612e4f81612b3f565b60018281168015612e675760018114612e7c57612ea8565b60ff1984168752821515830287019450612ea8565b896000528560002060005b84811015612ea057815489820152908301908701612e87565b505082870194505b50929a9950505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612eeb90830184612717565b9695505050505050565b600060208284031215612f0757600080fd5b815161211e816126b8565b600060018201612f2457612f24612ab7565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082612f5057612f50612f2b565b500490565b600082612f6457612f64612f2b565b500690565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220db1146224b96ccf4aef0877457cc5c7a95d7541621dc2caeacb62a9250278f6664736f6c634300080f0033000000000000000000000000c3695e3d577f1d890350dae178adb638d8901c8e0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f6e667473746f726167652e6c696e6b2f697066732f6261667962656961686a79323633637676663573627a6837746578646963743265327337786d6f36676668717861653766737573743668616f6b612f00000000000000
Deployed Bytecode
0x6080604052600436106103d95760003560e01c80638da5cb5b116101fd578063c6ab8f6d11610118578063da3ef23f116100ab578063efb4221a1161007a578063efb4221a14610a91578063f0f1c5f614610aa7578063f2fde38b14610aba578063f73acaad14610ada578063fef902a814610afc57600080fd5b8063da3ef23f146109fc578063e7f5e0ca14610a1c578063e94988c514610a32578063e985e9c514610a4857600080fd5b8063cb7a97c6116100e7578063cb7a97c614610991578063cc0254e3146109a7578063cd2275d3146109c9578063d036784a146109dc57600080fd5b8063c6ab8f6d14610931578063c6e2b05d14610947578063c87b56dd1461095c578063ca4c4b2e1461097c57600080fd5b8063a8d8ecfe11610190578063c15850ec1161015f578063c15850ec146108db578063c24854b4146108f0578063c46b1e8714610906578063c66828621461091c57600080fd5b8063a8d8ecfe14610870578063ab8a94f514610886578063ae29f94814610899578063b88d4fde146108bb57600080fd5b8063a05d03fd116101cc578063a05d03fd146107f3578063a14fd10f1461081a578063a22cb46514610830578063a2b8325d1461085057600080fd5b80638da5cb5b1461078b57806390ca8f1c146107a957806391cae64d146107c957806395d89b41146107de57600080fd5b806352d596ec116102f8578063715018a61161028b578063755ebf8f1161025a578063755ebf8f146107255780637bd0268714610745578063853828b61461075857806386a5bdd01461076057806387de704c1461077557600080fd5b8063715018a6146106cd57806371d9c151146106e257806372b2929d146106fc5780637351c2081461070f57600080fd5b80636352211e116102c75780636352211e1461065857806365bfaa68146106785780636c0360eb1461069857806370a08231146106ad57600080fd5b806352d596ec146105e157806354a4a622146105f757806355f804b3146106175780635a01e1ac1461063757600080fd5b806322d7ec88116103705780632bbde22e1161033f5780632bbde22e1461057557806332cb6b0c1461058b5780633ab1a494146105a157806342842e0e146105c157600080fd5b806322d7ec881461050557806322f71a291461052557806323b872dd1461053f57806328e714421461055f57600080fd5b8063095ea7b3116103ac578063095ea7b31461048f5780630fd3c653146104af5780631581b600146104c257806318160ddd146104e257600080fd5b806301394bcb146103de57806301ffc9a71461040057806306fdde0314610435578063081812fc14610457575b600080fd5b3480156103ea57600080fd5b506103fe6103f936600461268c565b610b1c565b005b34801561040c57600080fd5b5061042061041b3660046126ce565b610bf8565b60405190151581526020015b60405180910390f35b34801561044157600080fd5b5061044a610c4a565b60405161042c9190612743565b34801561046357600080fd5b50610477610472366004612756565b610cdc565b6040516001600160a01b03909116815260200161042c565b34801561049b57600080fd5b506103fe6104aa36600461268c565b610d20565b6103fe6104bd366004612756565b610dc0565b3480156104ce57600080fd5b50600d54610477906001600160a01b031681565b3480156104ee57600080fd5b506104f7610ef1565b60405190815260200161042c565b34801561051157600080fd5b506103fe610520366004612756565b610eff565b34801561053157600080fd5b506016546104209060ff1681565b34801561054b57600080fd5b506103fe61055a36600461276f565b610f2e565b34801561056b57600080fd5b506104f760155481565b34801561058157600080fd5b506104f7600f5481565b34801561059757600080fd5b506104f7611b5881565b3480156105ad57600080fd5b506103fe6105bc3660046127b0565b6110c7565b3480156105cd57600080fd5b506103fe6105dc36600461276f565b611169565b3480156105ed57600080fd5b506104f760135481565b34801561060357600080fd5b506103fe610612366004612859565b611189565b34801561062357600080fd5b506103fe610632366004612859565b6111d0565b34801561064357600080fd5b503360009081526020805260409020546104f7565b34801561066457600080fd5b50610477610673366004612756565b611206565b34801561068457600080fd5b506103fe610693366004612756565b611211565b3480156106a457600080fd5b5061044a611240565b3480156106b957600080fd5b506104f76106c83660046127b0565b6112ce565b3480156106d957600080fd5b506103fe61131d565b3480156106ee57600080fd5b50601f546104209060ff1681565b6103fe61070a366004612756565b611353565b34801561071b57600080fd5b506104f760145481565b34801561073157600080fd5b506103fe61074036600461268c565b611396565b6103fe6107533660046128a2565b611452565b6103fe6116cb565b34801561076c57600080fd5b506103fe61170b565b34801561078157600080fd5b506104f7601e5481565b34801561079757600080fd5b506008546001600160a01b0316610477565b3480156107b557600080fd5b506103fe6107c4366004612756565b611764565b3480156107d557600080fd5b506103fe611793565b3480156107ea57600080fd5b5061044a6117e9565b3480156107ff57600080fd5b50600a5461080d9060ff1681565b60405161042c9190612937565b34801561082657600080fd5b506104f760105481565b34801561083c57600080fd5b506103fe61084b36600461295f565b6117f8565b34801561085c57600080fd5b506103fe61086b366004612756565b61188d565b34801561087c57600080fd5b506104f760125481565b6103fe6108943660046128a2565b6118bc565b3480156108a557600080fd5b50336000908152601860205260409020546104f7565b3480156108c757600080fd5b506103fe6108d636600461299d565b611afb565b3480156108e757600080fd5b506103fe611b45565b3480156108fc57600080fd5b506104f7601c5481565b34801561091257600080fd5b506104f7601b5481565b34801561092857600080fd5b5061044a611b83565b34801561093d57600080fd5b506104f7600e5481565b34801561095357600080fd5b506103fe611b90565b34801561096857600080fd5b5061044a610977366004612756565b611bcd565b34801561098857600080fd5b506103fe611c77565b34801561099d57600080fd5b506104f7601a5481565b3480156109b357600080fd5b50336000908152602160205260409020546104f7565b6103fe6109d73660046128a2565b611ccd565b3480156109e857600080fd5b506103fe6109f7366004612859565b611e28565b348015610a0857600080fd5b506103fe610a17366004612859565b611e6b565b348015610a2857600080fd5b506104f760195481565b348015610a3e57600080fd5b506104f7601d5481565b348015610a5457600080fd5b50610420610a63366004612a1d565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610a9d57600080fd5b506104f760115481565b6103fe610ab5366004612756565b611ea1565b348015610ac657600080fd5b506103fe610ad53660046127b0565b611fb4565b348015610ae657600080fd5b50336000908152601760205260409020546104f7565b348015610b0857600080fd5b506103fe610b17366004612756565b61204c565b6008546001600160a01b03163314610b4f5760405162461bcd60e51b8152600401610b4690612a4b565b60405180910390fd5b80601d5480821115610b735760405162461bcd60e51b8152600401610b4690612a80565b82611b5881610b80610ef1565b610b8a9190612acd565b1115610ba85760405162461bcd60e51b8152600401610b4690612ae5565b83601d54610bb69190612b28565b601d556001600160a01b03851660009081526021602052604081208054869290610be1908490612acd565b90915550610bf19050858561207b565b5050505050565b60006301ffc9a760e01b6001600160e01b031983161480610c2957506380ac58cd60e01b6001600160e01b03198316145b80610c445750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060028054610c5990612b3f565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8590612b3f565b8015610cd25780601f10610ca757610100808354040283529160200191610cd2565b820191906000526020600020905b815481529060010190602001808311610cb557829003601f168201915b5050505050905090565b6000610ce782612095565b610d04576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610d2b82611206565b9050336001600160a01b03821614610d6457610d478133610a63565b610d64576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600260095403610de25760405162461bcd60e51b8152600401610b4690612b79565b6002600981905580600a5460ff166004811115610e0157610e01612921565b14610e1e5760405162461bcd60e51b8152600401610b4690612bb0565b60115482610e2c8183612be7565b3414610e4a5760405162461bcd60e51b8152600401610b4690612c06565b83611b5881610e57610ef1565b610e619190612acd565b1115610e7f5760405162461bcd60e51b8152600401610b4690612ae5565b8460145480821115610ea35760405162461bcd60e51b8152600401610b4690612a80565b86601454610eb19190612b28565b6014553360009081526018602052604081208054899290610ed3908490612acd565b90915550610ee39050338861207b565b505060016009555050505050565b600154600054036000190190565b6008546001600160a01b03163314610f295760405162461bcd60e51b8152600401610b4690612a4b565b601255565b6000610f39826120ca565b9050836001600160a01b0316816001600160a01b031614610f6c5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610fb957610f9c8633610a63565b610fb957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610fe057604051633a954ecd60e21b815260040160405180910390fd5b8015610feb57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b8416900361107d5760018401600081815260046020526040812054900361107b57600054811461107b5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6008546001600160a01b031633146110f15760405162461bcd60e51b8152600401610b4690612a4b565b6001600160a01b0381166111475760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f7420736574207a65726f20616464726573730000000000000000006044820152606401610b46565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b61118483838360405180602001604052806000815250611afb565b505050565b6008546001600160a01b031633146111b35760405162461bcd60e51b8152600401610b4690612a4b565b601f805460ff19166001179055600c6111cc8282612c77565b5050565b6008546001600160a01b031633146111fa5760405162461bcd60e51b8152600401610b4690612a4b565b600c6111cc8282612c77565b6000610c44826120ca565b6008546001600160a01b0316331461123b5760405162461bcd60e51b8152600401610b4690612a4b565b600f55565b600c805461124d90612b3f565b80601f016020809104026020016040519081016040528092919081815260200182805461127990612b3f565b80156112c65780601f1061129b576101008083540402835291602001916112c6565b820191906000526020600020905b8154815290600101906020018083116112a957829003601f168201915b505050505081565b60006001600160a01b0382166112f7576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146113475760405162461bcd60e51b8152600401610b4690612a4b565b6113516000612140565b565b6008546001600160a01b0316331461137d5760405162461bcd60e51b8152600401610b4690612a4b565b600d54611393906001600160a01b031682612192565b50565b6008546001600160a01b031633146113c05760405162461bcd60e51b8152600401610b4690612a4b565b80601454808211156113e45760405162461bcd60e51b8152600401610b4690612a80565b82611b58816113f1610ef1565b6113fb9190612acd565b11156114195760405162461bcd60e51b8152600401610b4690612ae5565b836014546114279190612b28565b6014556001600160a01b03851660009081526018602052604081208054869290610be1908490612acd565b6002600954036114745760405162461bcd60e51b8152600401610b4690612b79565b6002600955600380600a5460ff16600481111561149357611493612921565b146114b05760405162461bcd60e51b8152600401610b4690612bb0565b8282601e54611523838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516001600160601b03193360601b16602082015285925060340190505b604051602081830303815290604052805190602001206122ab565b61153f5760405162461bcd60e51b8152600401610b4690612d37565b6019548761154d8183612be7565b341461156b5760405162461bcd60e51b8152600401610b4690612c06565b88611b5881611578610ef1565b6115829190612acd565b11156115a05760405162461bcd60e51b8152600401610b4690612ae5565b89601c54808211156115c45760405162461bcd60e51b8152600401610b4690612a80565b8b6001600a5460ff1660048111156115de576115de612921565b0361161f5760125433600090815260176020526040902054611601908390612acd565b111561161f5760405162461bcd60e51b8152600401610b4690612d5e565b6003600a5460ff16600481111561163857611638612921565b0361167857601b5433600090815260208052604090205461165a908390612acd565b11156116785760405162461bcd60e51b8152600401610b4690612dbb565b8c601c546116869190612b28565b601c55336000908152602080526040812080548f92906116a7908490612acd565b909155506116b79050338e61207b565b505060016009555050505050505050505050565b6008546001600160a01b031633146116f55760405162461bcd60e51b8152600401610b4690612a4b565b600d54611351906001600160a01b031647612192565b6008546001600160a01b031633146117355760405162461bcd60e51b8152600401610b4690612a4b565b601c54601d546117459190612acd565b601d556000601c55600a80546004919060ff19166001835b0217905550565b6008546001600160a01b0316331461178e5760405162461bcd60e51b8152600401610b4690612a4b565b601e55565b6008546001600160a01b031633146117bd5760405162461bcd60e51b8152600401610b4690612a4b565b601454601c546117cd9190612acd565b601c556000601455600a80546003919060ff191660018361175d565b606060038054610c5990612b3f565b336001600160a01b038316036118215760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b031633146118b75760405162461bcd60e51b8152600401610b4690612a4b565b601555565b6002600954036118de5760405162461bcd60e51b8152600401610b4690612b79565b6002600955600180600a5460ff1660048111156118fd576118fd612921565b1461191a5760405162461bcd60e51b8152600401610b4690612bb0565b8282601554611976838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516001600160601b03193360601b1660208201528592506034019050611508565b6119925760405162461bcd60e51b8152600401610b4690612d37565b601054876119a08183612be7565b34146119be5760405162461bcd60e51b8152600401610b4690612c06565b88611b58816119cb610ef1565b6119d59190612acd565b11156119f35760405162461bcd60e51b8152600401610b4690612ae5565b8960135480821115611a175760405162461bcd60e51b8152600401610b4690612a80565b8b6001600a5460ff166004811115611a3157611a31612921565b03611a725760125433600090815260176020526040902054611a54908390612acd565b1115611a725760405162461bcd60e51b8152600401610b4690612d5e565b6003600a5460ff166004811115611a8b57611a8b612921565b03611acb57601b54336000908152602080526040902054611aad908390612acd565b1115611acb5760405162461bcd60e51b8152600401610b4690612dbb565b8c601354611ad99190612b28565b60135533600090815260176020526040812080548f92906116a7908490612acd565b611b06848484610f2e565b6001600160a01b0383163b15611b3f57611b22848484846122c1565b611b3f576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b03163314611b6f5760405162461bcd60e51b8152600401610b4690612a4b565b600a80546000919060ff191660018361175d565b600b805461124d90612b3f565b6008546001600160a01b03163314611bba5760405162461bcd60e51b8152600401610b4690612a4b565b600a80546001919060ff1916828061175d565b6060611bd882612095565b611c3c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b46565b611c446123ad565b611c4d836123bc565b600b604051602001611c6193929190612e18565b6040516020818303038152906040529050919050565b6008546001600160a01b03163314611ca15760405162461bcd60e51b8152600401610b4690612a4b565b601354601454611cb19190612acd565b6014556000601355600a80546002919060ff191660018361175d565b600260095403611cef5760405162461bcd60e51b8152600401610b4690612b79565b6002600955600080600a5460ff166004811115611d0e57611d0e612921565b14611d2b5760405162461bcd60e51b8152600401610b4690612bb0565b8282600f54611d87838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516001600160601b03193360601b1660208201528592506034019050611508565b611da35760405162461bcd60e51b8152600401610b4690612d37565b86611b5881611db0610ef1565b611dba9190612acd565b1115611dd85760405162461bcd60e51b8152600401610b4690612ae5565b87600e5480821115611dfc5760405162461bcd60e51b8152600401610b4690612a80565b89600e54611e0a9190612b28565b600e55611e17338b61207b565b505060016009555050505050505050565b6008546001600160a01b03163314611e525760405162461bcd60e51b8152600401610b4690612a4b565b6016805460ff19166001179055600c6111cc8282612c77565b6008546001600160a01b03163314611e955760405162461bcd60e51b8152600401610b4690612a4b565b600b6111cc8282612c77565b600260095403611ec35760405162461bcd60e51b8152600401610b4690612b79565b6002600955600480600a5460ff166004811115611ee257611ee2612921565b14611eff5760405162461bcd60e51b8152600401610b4690612bb0565b601a5482611f0d8183612be7565b3414611f2b5760405162461bcd60e51b8152600401610b4690612c06565b83611b5881611f38610ef1565b611f429190612acd565b1115611f605760405162461bcd60e51b8152600401610b4690612ae5565b84601d5480821115611f845760405162461bcd60e51b8152600401610b4690612a80565b86601d54611f929190612b28565b601d553360009081526021602052604081208054899290610ed3908490612acd565b6008546001600160a01b03163314611fde5760405162461bcd60e51b8152600401610b4690612a4b565b6001600160a01b0381166120435760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b46565b61139381612140565b6008546001600160a01b031633146120765760405162461bcd60e51b8152600401610b4690612a4b565b601b55565b6111cc8282604051806020016040528060008152506124bd565b6000816001111580156120a9575060005482105b8015610c44575050600090815260046020526040902054600160e01b161590565b60008180600111612127576000548110156121275760008181526004602052604081205490600160e01b82169003612125575b8060000361211e5750600019016000818152600460205260409020546120fd565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b804710156121e25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b46565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461222f576040519150601f19603f3d011682016040523d82523d6000602084013e612234565b606091505b50509050806111845760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b46565b6000826122b88584612523565b14949350505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906122f6903390899088908890600401612eb8565b6020604051808303816000875af1925050508015612331575060408051601f3d908101601f1916820190925261232e91810190612ef5565b60015b61238f573d80801561235f576040519150601f19603f3d011682016040523d82523d6000602084013e612364565b606091505b508051600003612387576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600c8054610c5990612b3f565b6060816000036123e35750506040805180820190915260018152600360fc1b602082015290565b8160005b811561240d57806123f781612f12565b91506124069050600a83612f41565b91506123e7565b60008167ffffffffffffffff811115612428576124286127cd565b6040519080825280601f01601f191660200182016040528015612452576020820181803683370190505b5090505b84156123a557612467600183612b28565b9150612474600a86612f55565b61247f906030612acd565b60f81b81838151811061249457612494612f69565b60200101906001600160f81b031916908160001a9053506124b6600a86612f41565b9450612456565b6124c78383612597565b6001600160a01b0383163b15611184576000548281035b6124f160008683806001019450866122c1565b61250e576040516368d2bf6b60e11b815260040160405180910390fd5b8181106124de578160005414610bf157600080fd5b600081815b845181101561258f57600085828151811061254557612545612f69565b6020026020010151905080831161256b576000838152602082905260409020925061257c565b600081815260208490526040902092505b508061258781612f12565b915050612528565b509392505050565b6000546001600160a01b0383166125c057604051622e076360e81b815260040160405180910390fd5b816000036125e15760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061262b5760005550505050565b6001600160a01b038116811461139357600080fd5b6000806040838503121561269f57600080fd5b82356126aa81612677565b946020939093013593505050565b6001600160e01b03198116811461139357600080fd5b6000602082840312156126e057600080fd5b813561211e816126b8565b60005b838110156127065781810151838201526020016126ee565b83811115611b3f5750506000910152565b6000815180845261272f8160208601602086016126eb565b601f01601f19169290920160200192915050565b60208152600061211e6020830184612717565b60006020828403121561276857600080fd5b5035919050565b60008060006060848603121561278457600080fd5b833561278f81612677565b9250602084013561279f81612677565b929592945050506040919091013590565b6000602082840312156127c257600080fd5b813561211e81612677565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156127fe576127fe6127cd565b604051601f8501601f19908116603f01168101908282118183101715612826576128266127cd565b8160405280935085815286868601111561283f57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561286b57600080fd5b813567ffffffffffffffff81111561288257600080fd5b8201601f8101841361289357600080fd5b6123a5848235602084016127e3565b6000806000604084860312156128b757600080fd5b83359250602084013567ffffffffffffffff808211156128d657600080fd5b818601915086601f8301126128ea57600080fd5b8135818111156128f957600080fd5b8760208260051b850101111561290e57600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052602160045260246000fd5b602081016005831061295957634e487b7160e01b600052602160045260246000fd5b91905290565b6000806040838503121561297257600080fd5b823561297d81612677565b91506020830135801515811461299257600080fd5b809150509250929050565b600080600080608085870312156129b357600080fd5b84356129be81612677565b935060208501356129ce81612677565b925060408501359150606085013567ffffffffffffffff8111156129f157600080fd5b8501601f81018713612a0257600080fd5b612a11878235602084016127e3565b91505092959194509250565b60008060408385031215612a3057600080fd5b8235612a3b81612677565b9150602083013561299281612677565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526017908201527f417661696c61626c6520706f6f6c206578636565646564000000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612ae057612ae0612ab7565b500190565b60208082526023908201527f4e6f7420656e6f75676820746f6b656e73206c65667420696e206d6178537570604082015262706c7960e81b606082015260800190565b600082821015612b3a57612b3a612ab7565b500390565b600181811c90821680612b5357607f821691505b602082108103612b7357634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526018908201527f476976656e2073616c65206973206e6f74206163746976650000000000000000604082015260600190565b6000816000190483118215151615612c0157612c01612ab7565b500290565b60208082526011908201527057726f6e672065746865722076616c756560781b604082015260600190565b601f82111561118457600081815260208120601f850160051c81016020861015612c585750805b601f850160051c820191505b818110156110bf57828155600101612c64565b815167ffffffffffffffff811115612c9157612c916127cd565b612ca581612c9f8454612b3f565b84612c31565b602080601f831160018114612cda5760008415612cc25750858301515b600019600386901b1c1916600185901b1785556110bf565b600085815260208120601f198616915b82811015612d0957888601518255948401946001909101908401612cea565b5085821015612d275787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020808252600d908201526c24b73b30b634b210383937b7b360991b604082015260600190565b6020808252603a908201527f57616c6c6574206d696e74206c696d697420696e20666972737420706861736560408201527f2070726573616c6520686173206265656e206578636565646564000000000000606082015260800190565b60208082526037908201527f57616c6c6574206d696e74206c696d697420696e207365636f6e64207761766560408201527f2073616c6520686173206265656e206578636565646564000000000000000000606082015260800190565b600084516020612e2b8285838a016126eb565b855191840191612e3e8184848a016126eb565b8554920191600090612e4f81612b3f565b60018281168015612e675760018114612e7c57612ea8565b60ff1984168752821515830287019450612ea8565b896000528560002060005b84811015612ea057815489820152908301908701612e87565b505082870194505b50929a9950505050505050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612eeb90830184612717565b9695505050505050565b600060208284031215612f0757600080fd5b815161211e816126b8565b600060018201612f2457612f24612ab7565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082612f5057612f50612f2b565b500490565b600082612f6457612f64612f2b565b500690565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220db1146224b96ccf4aef0877457cc5c7a95d7541621dc2caeacb62a9250278f6664736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c3695e3d577f1d890350dae178adb638d8901c8e0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f6e667473746f726167652e6c696e6b2f697066732f6261667962656961686a79323633637676663573627a6837746578646963743265327337786d6f36676668717861653766737573743668616f6b612f00000000000000
-----Decoded View---------------
Arg [0] : baseWithdrawAddress (address): 0xC3695e3D577F1D890350DAE178AdB638D8901c8e
Arg [1] : initialNotRevealedURL (string): https://nftstorage.link/ipfs/bafybeiahjy263cvvf5sbzh7texdict2e2s7xmo6gfhqxae7fsust6haoka/
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000c3695e3d577f1d890350dae178adb638d8901c8e
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000059
Arg [3] : 68747470733a2f2f6e667473746f726167652e6c696e6b2f697066732f626166
Arg [4] : 7962656961686a79323633637676663573627a68377465786469637432653273
Arg [5] : 37786d6f36676668717861653766737573743668616f6b612f00000000000000
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.