Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 408 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer From | 24535411 | 13 days ago | IN | 0 ETH | 0.0001428 | ||||
| Set Approval For... | 24160611 | 66 days ago | IN | 0 ETH | 0.00000192 | ||||
| Set Approval For... | 24121721 | 71 days ago | IN | 0 ETH | 0.00009521 | ||||
| Set Approval For... | 23553572 | 151 days ago | IN | 0 ETH | 0.00006378 | ||||
| Set Approval For... | 23459707 | 164 days ago | IN | 0 ETH | 0.0000273 | ||||
| Safe Transfer Fr... | 23126497 | 210 days ago | IN | 0 ETH | 0.00029046 | ||||
| Set Approval For... | 22703076 | 270 days ago | IN | 0 ETH | 0.00004608 | ||||
| Set Approval For... | 22702757 | 270 days ago | IN | 0 ETH | 0.00004356 | ||||
| Safe Transfer Fr... | 22563237 | 289 days ago | IN | 0 ETH | 0.00002623 | ||||
| Set Approval For... | 20964047 | 513 days ago | IN | 0 ETH | 0.00163176 | ||||
| Set Approval For... | 20755172 | 542 days ago | IN | 0 ETH | 0.00008038 | ||||
| Set Approval For... | 20754556 | 542 days ago | IN | 0 ETH | 0.00008289 | ||||
| Safe Transfer Fr... | 20120940 | 630 days ago | IN | 0 ETH | 0.0004833 | ||||
| Set Approval For... | 19327910 | 741 days ago | IN | 0 ETH | 0.0023581 | ||||
| Transfer From | 19316486 | 743 days ago | IN | 0 ETH | 0.00150053 | ||||
| Transfer From | 19316440 | 743 days ago | IN | 0 ETH | 0.00215113 | ||||
| Set Approval For... | 18398310 | 872 days ago | IN | 0 ETH | 0.00029961 | ||||
| Set Approval For... | 17654079 | 976 days ago | IN | 0 ETH | 0.000587 | ||||
| Set Approval For... | 17579875 | 986 days ago | IN | 0 ETH | 0.0008408 | ||||
| Set Approval For... | 17327440 | 1022 days ago | IN | 0 ETH | 0.00175158 | ||||
| Safe Transfer Fr... | 17324327 | 1022 days ago | IN | 0 ETH | 0.00319363 | ||||
| Set Approval For... | 17292460 | 1027 days ago | IN | 0 ETH | 0.00226945 | ||||
| Set Approval For... | 17241807 | 1034 days ago | IN | 0 ETH | 0.00146089 | ||||
| Set Approval For... | 17061442 | 1059 days ago | IN | 0 ETH | 0.00070399 | ||||
| Set Approval For... | 17011855 | 1066 days ago | IN | 0 ETH | 0.00053983 |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
TheCollectionWorldNFT
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
import "../lib/ERC721A/contracts/ERC721A.sol";
import "../lib/openzeppelin-contracts/contracts/access/Ownable.sol";
import "../lib/openzeppelin-contracts/contracts/utils/cryptography/MerkleProof.sol";
import "../lib/openzeppelin-contracts/contracts/utils/Strings.sol";
contract TheCollectionWorldNFT is ERC721A, Ownable {
uint256 public constant TOTAL_SUPPLY = 1000;
uint256 public constant EXCLUSIBLE_SUPPLY = 100;
uint256 public MINT_PRICE = 1 ether;
uint256 public MINT_LIMIT = 2;
uint256 public SALE_MINTED_NUMBER = 0;
uint256 public SALE_MINTED_LIMIT = 300;
mapping(address => uint256) private amountMintedPerUser;
mapping(address => uint256) private amountFreeMintPerUser;
uint256 private EXCLUSIBLE_DROPPED = 0;
address private developer;
bytes32 private whitelistMerkleRoot;
bytes32 private freeMintMerkleRoot;
string private tcwBaseURI;
string private tcwBaseContractURI;
/// @dev Inactive = 0; Presale = 1; Public = 2;
uint256 private saleFlag = 0;
modifier onlyOwnerOrDeveloper() {
require(_msgSender() == developer || _msgSender() == owner(), "Ownership: caller is not the owner or developer");
_;
}
modifier onlyWhitelist(bytes32[] calldata _merkleProof) {
require(MerkleProof.verify(
_merkleProof, whitelistMerkleRoot, keccak256(abi.encodePacked(msg.sender))), "INVALID_MERKLE_PROOF");
_;
}
modifier onlyFreeMintWhitelist(bytes32[] calldata _merkleProof, uint256 _amount) {
uint256 maxNumber = _amount + amountFreeMintPerUser[msg.sender];
require(MerkleProof.verify(
_merkleProof, freeMintMerkleRoot, keccak256(abi.encodePacked(msg.sender, Strings.toString(maxNumber)))), "INVALID_MERKLE_PROOF");
_;
}
constructor(
string memory _baseContractURI,
string memory _baseURI,
address _firstMintTo,
bytes32 _whitelistMerkleRoot,
bytes32 _freeMintMerkleRoot
) ERC721A("TheCollectionWorld", "TCW") {
whitelistMerkleRoot = _whitelistMerkleRoot;
tcwBaseContractURI = _baseContractURI;
freeMintMerkleRoot = _freeMintMerkleRoot;
tcwBaseURI = _baseURI;
developer = _msgSender();
_safeMint(_firstMintTo, 1);
}
function setSaleMintedLimit(uint256 _limit) public onlyOwnerOrDeveloper {
SALE_MINTED_LIMIT = _limit;
}
function setMintLimit(uint256 _limit) public onlyOwnerOrDeveloper {
MINT_LIMIT = _limit;
}
function setMintPrice(uint256 _price) public onlyOwnerOrDeveloper {
MINT_PRICE = _price;
}
function getMintedNumber(address _address) public view returns (uint256 mintedNumber) {
return amountMintedPerUser[_address];
}
function setDeveloper(address _newDeveloper) external onlyOwner {
developer = _newDeveloper;
}
function setWhitelistMerkleRoot(bytes32 newRoot) external onlyOwnerOrDeveloper {
whitelistMerkleRoot = newRoot;
}
function setFreeMintMerkleRoot(bytes32 newRoot) external onlyOwnerOrDeveloper {
freeMintMerkleRoot = newRoot;
}
function setFlag(uint256 flag) external onlyOwnerOrDeveloper {
saleFlag = flag;
}
function getSaleFlag() public view returns (uint256 flag) {
return saleFlag;
}
function contractURI() public view returns (string memory) {
return tcwBaseContractURI;
}
function setContractURI(string memory uri) external onlyOwnerOrDeveloper {
tcwBaseContractURI = uri;
}
function numberMinted(address owner) public view returns (uint256) {
return _numberMinted(owner);
}
function totalMinted() public view returns (uint256) {
return _totalMinted();
}
function nextTokenId() public view returns (uint256) {
return _nextTokenId();
}
function getAux(address owner) public view returns (uint64) {
return _getAux(owner);
}
function setBaseURI(string memory uri) external onlyOwnerOrDeveloper {
tcwBaseURI = uri;
}
function _baseURI() internal view virtual override returns (string memory) {
return tcwBaseURI;
}
function baseURI() public view returns (string memory) {
return _baseURI();
}
function exists(uint256 tokenId) public view returns (bool) {
return _exists(tokenId);
}
function getOwnershipAt(uint256 index) public view returns (TokenOwnership memory) {
return _ownershipAt(index);
}
function getOwnershipOf(uint256 index) public view returns (TokenOwnership memory) {
return _ownershipOf(index);
}
function airDrop(address to, uint256 amount) external onlyOwnerOrDeveloper() {
require(_nextTokenId() + amount <= (TOTAL_SUPPLY), "EXCEEDS_TOTAL_SUPPLY");
require(tx.origin == msg.sender, "SENDER_IS_NOT_AN_EOA");
_safeMint(to, amount);
}
function airDropExclusible(address to, uint256 amount) external payable onlyOwnerOrDeveloper() {
require(EXCLUSIBLE_DROPPED + amount <= (EXCLUSIBLE_SUPPLY), "EXCEEDS_TOTAL_SUPPLY");
require(tx.origin == msg.sender, "SENDER_IS_NOT_AN_EOA");
require(amountMintedPerUser[to] + amount <= MINT_LIMIT, "EXCEEDS_MINT_LIMIT");
require(msg.value == MINT_PRICE * amount, "INVALID_VALUE");
EXCLUSIBLE_DROPPED = EXCLUSIBLE_DROPPED + amount;
amountMintedPerUser[to] += amount;
_safeMint(to, amount);
}
function mintWhitelist(bytes32[] calldata merkleProof, uint256 amount) external payable onlyWhitelist(merkleProof) {
require(_nextTokenId() + amount <= (TOTAL_SUPPLY - (EXCLUSIBLE_SUPPLY - EXCLUSIBLE_DROPPED)), "EXCEEDS_TOTAL_SUPPLY");
require(msg.value == MINT_PRICE * amount, "INVALID_VALUE");
require(saleFlag == 1, "MINTING_PAUSED");
require(amount <= MINT_LIMIT, "_AMOUNT_TOO_HIGH");
require(SALE_MINTED_NUMBER + amount <= SALE_MINTED_LIMIT, "EXCEEDS_MINT_LIMIT");
require(amountMintedPerUser[msg.sender] + amount <= MINT_LIMIT, "EXCEEDS_MINT_LIMIT");
amountMintedPerUser[msg.sender] += amount;
SALE_MINTED_NUMBER = SALE_MINTED_NUMBER + amount;
_safeMint(msg.sender, amount);
}
function mint(uint256 amount) external payable {
require(_nextTokenId() + amount <= (TOTAL_SUPPLY - (EXCLUSIBLE_SUPPLY - EXCLUSIBLE_DROPPED)), "EXCEEDS_TOTAL_SUPPLY");
require(msg.value == MINT_PRICE * amount, "INVALID_VALUE");
require(saleFlag == 2, "MINTING_PAUSED");
require(amount <= MINT_LIMIT, "_AMOUNT_TOO_HIGH");
require(amountMintedPerUser[msg.sender] + amount <= MINT_LIMIT, "EXCEEDS_MINT_LIMIT");
require(SALE_MINTED_NUMBER + amount <= SALE_MINTED_LIMIT, "EXCEEDS_MINT_LIMIT");
require(tx.origin == msg.sender, "SENDER_IS_NOT_AN_EOA");
amountMintedPerUser[msg.sender] += amount;
SALE_MINTED_NUMBER = SALE_MINTED_NUMBER + amount;
_safeMint(msg.sender, amount);
}
function crossmint(address to, uint256 amount) public payable {
require(_nextTokenId() + amount <= (TOTAL_SUPPLY - (EXCLUSIBLE_SUPPLY - EXCLUSIBLE_DROPPED)), "EXCEEDS_TOTAL_SUPPLY");
require(msg.value == MINT_PRICE * amount, "INVALID_VALUE");
require(saleFlag == 2, "MINTING_PAUSED");
require(msg.sender == 0xdAb1a1854214684acE522439684a145E62505233,
"This function is for Crossmint only."
);
require(SALE_MINTED_NUMBER + amount <= SALE_MINTED_LIMIT, "EXCEEDS_MINT_LIMIT");
require(amountMintedPerUser[to] + amount <= MINT_LIMIT, "EXCEEDS_MINT_LIMIT");
amountMintedPerUser[to] += amount;
SALE_MINTED_NUMBER = SALE_MINTED_NUMBER + amount;
_safeMint(to, amount);
}
function freeMint(bytes32[] calldata merkleProof, uint256 amount) external onlyFreeMintWhitelist(merkleProof, amount) {
require(_nextTokenId() + amount <= (TOTAL_SUPPLY - (EXCLUSIBLE_SUPPLY - EXCLUSIBLE_DROPPED)), "EXCEEDS_TOTAL_SUPPLY");
amountFreeMintPerUser[msg.sender] += amount;
_safeMint(msg.sender, amount);
}
function withdraw() external onlyOwner {
payable(msg.sender).transfer(address(this).balance);
}
}// 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 {
// Reference type for token approval.
struct TokenApprovalRef {
address value;
}
// 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 => TokenApprovalRef) 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 virtual returns (uint256) {
return _currentIndex;
}
/**
* @dev Returns the total number of tokens in existence.
* Burned tokens will reduce the count.
* To get the total number of tokens minted, please see `_totalMinted`.
*/
function totalSupply() public view virtual override returns (uint256) {
// Counter underflow is impossible as _burnCounter cannot be incremented
// more than `_currentIndex - _startTokenId()` times.
unchecked {
return _currentIndex - _burnCounter - _startTokenId();
}
}
/**
* @dev Returns the total amount of tokens minted in the contract.
*/
function _totalMinted() internal view virtual returns (uint256) {
// Counter underflow is impossible as _currentIndex does not decrement,
// and it is initialized to `_startTokenId()`
unchecked {
return _currentIndex - _startTokenId();
}
}
/**
* @dev Returns the total number of tokens burned.
*/
function _totalBurned() internal view virtual returns (uint256) {
return _burnCounter;
}
/**
* @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 virtual override returns (uint256) {
if (owner == address(0)) revert BalanceQueryForZeroAddress();
return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY;
}
/**
* Returns the number of tokens minted by `owner`.
*/
function _numberMinted(address owner) internal view virtual 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 virtual 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 virtual returns (uint64) {
return uint64(_packedAddressData[owner] >> BITPOS_AUX);
}
/**
* Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
* If there are multiple variables, please pack them into a uint64.
*/
function _setAux(address owner, uint64 aux) internal virtual {
uint256 packed = _packedAddressData[owner];
uint256 auxCasted;
// Cast `aux` with assembly to avoid redundant masking.
assembly {
auxCasted := aux
}
packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX);
_packedAddressData[owner] = packed;
}
/**
* 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 virtual returns (TokenOwnership memory) {
return _unpackedOwnership(_packedOwnerships[index]);
}
/**
* @dev Initializes the ownership slot minted at `index` for efficiency purposes.
*/
function _initializeOwnershipAt(uint256 index) internal virtual {
if (_packedOwnerships[index] == 0) {
_packedOwnerships[index] = _packedOwnershipOf(index);
}
}
/**
* 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 virtual 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 virtual 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 virtual override {
address owner = ownerOf(tokenId);
if (_msgSenderERC721A() != owner)
if (!isApprovedForAll(owner, _msgSenderERC721A())) {
revert ApprovalCallerNotOwnerNorApproved();
}
_tokenApprovals[tokenId].value = to;
emit Approval(owner, to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();
return _tokenApprovals[tokenId].value;
}
/**
* @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 virtual 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 virtual {
_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 virtual {
_mint(to, quantity);
unchecked {
if (to.code.length != 0) {
uint256 end = _currentIndex;
uint256 index = end - quantity;
do {
if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
} while (index < end);
// Reentrancy protection.
if (_currentIndex != end) revert();
}
}
}
/**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event for each mint.
*/
function _mint(address to, uint256 quantity) internal virtual {
uint256 startTokenId = _currentIndex;
if (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 virtual {
uint256 startTokenId = _currentIndex;
if (to == address(0)) revert MintToZeroAddress();
if (quantity == 0) revert MintZeroQuantity();
if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are unrealistic due to the above check for `quantity` to be below the limit.
unchecked {
// Updates:
// - `balance += quantity`.
// - `numberMinted += quantity`.
//
// We can directly add to the `balance` and `numberMinted`.
_packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);
// Updates:
// - `address` to the owner.
// - `startTimestamp` to the timestamp of minting.
// - `burned` to `false`.
// - `nextInitialized` to `quantity == 1`.
_packedOwnerships[startTokenId] = _packOwnershipData(
to,
_nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
);
emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);
_currentIndex = startTokenId + quantity;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Returns the storage slot and value for the approved address of `tokenId`.
*/
function _getApprovedAddress(uint256 tokenId)
private
view
returns (uint256 approvedAddressSlot, address approvedAddress)
{
TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
// The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`.
assembly {
approvedAddressSlot := tokenApproval.slot
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 virtual {
uint256 packed = _packedOwnerships[index];
if (packed == 0) revert OwnershipNotInitializedForExtraData();
uint256 extraDataCasted;
// Cast `extraData` with assembly to avoid redundant masking.
assembly {
extraDataCasted := extraData
}
packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA);
_packedOwnerships[index] = packed;
}
/**
* @dev 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 virtual 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 (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
// 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
// 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);
}// 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;
}
}{
"remappings": [
"@openzeppelin/=lib/openzeppelin-contracts/",
"ERC721A/=lib/ERC721A/contracts/",
"ds-test/=lib/forge-std/lib/ds-test/src/",
"forge-std/=lib/forge-std/src/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/",
"src/=src/",
"test/=test/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"bytecodeHash": "ipfs"
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "london",
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"_baseContractURI","type":"string"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"address","name":"_firstMintTo","type":"address"},{"internalType":"bytes32","name":"_whitelistMerkleRoot","type":"bytes32"},{"internalType":"bytes32","name":"_freeMintMerkleRoot","type":"bytes32"}],"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":"EXCLUSIBLE_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SALE_MINTED_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SALE_MINTED_NUMBER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"airDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"airDropExclusible","outputs":[],"stateMutability":"payable","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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"crossmint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getAux","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getMintedNumber","outputs":[{"internalType":"uint256","name":"mintedNumber","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getOwnershipAt","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleFlag","outputs":[{"internalType":"uint256","name":"flag","type":"uint256"}],"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":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newDeveloper","type":"address"}],"name":"setDeveloper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"flag","type":"uint256"}],"name":"setFlag","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newRoot","type":"bytes32"}],"name":"setFreeMintMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setSaleMintedLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newRoot","type":"bytes32"}],"name":"setWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
6080604052670de0b6b3a76400006009556002600a556000600b5561012c600c556000600f5560006015553480156200003757600080fd5b5060405162003067380380620030678339810160408190526200005a916200057f565b6040805180820182526012815271151a1950dbdb1b1958dd1a5bdb95dbdc9b1960721b60208083019182528351808501909452600384526254435760e81b908401528151919291620000af9160029162000403565b508051620000c590600390602084019062000403565b50506000805550620000d73362000137565b60118290558451620000f190601490602088019062000403565b50601281905583516200010c90601390602087019062000403565b50601080546001600160a01b031916331790556200012c83600162000189565b5050505050620006e2565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001ab828260405180602001604052806000815250620001af60201b60201c565b5050565b620001bb838362000226565b6001600160a01b0383163b1562000221576000548281035b6001810190620001e99060009087908662000309565b62000207576040516368d2bf6b60e11b815260040160405180910390fd5b818110620001d35781600054146200021e57600080fd5b50505b505050565b6000546001600160a01b0383166200025057604051622e076360e81b815260040160405180910390fd5b81600003620002725760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210620002bc5760005550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290620003409033908990889088906004016200061d565b6020604051808303816000875af19250505080156200037e575060408051601f3d908101601f191682019092526200037b9181019062000673565b60015b620003e0573d808015620003af576040519150601f19603f3d011682016040523d82523d6000602084013e620003b4565b606091505b508051600003620003d8576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b50505050565b8280546200041190620006a6565b90600052602060002090601f01602090048101928262000435576000855562000480565b82601f106200045057805160ff191683800117855562000480565b8280016001018555821562000480579182015b828111156200048057825182559160200191906001019062000463565b506200048e92915062000492565b5090565b5b808211156200048e576000815560010162000493565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004dc578181015183820152602001620004c2565b83811115620003fd5750506000910152565b600082601f8301126200050057600080fd5b81516001600160401b03808211156200051d576200051d620004a9565b604051601f8301601f19908116603f01168101908282118183101715620005485762000548620004a9565b816040528381528660208588010111156200056257600080fd5b62000575846020830160208901620004bf565b9695505050505050565b600080600080600060a086880312156200059857600080fd5b85516001600160401b0380821115620005b057600080fd5b620005be89838a01620004ee565b96506020880151915080821115620005d557600080fd5b50620005e488828901620004ee565b604088015190955090506001600160a01b03811681146200060457600080fd5b6060870151608090970151959894975095949392505050565b600060018060a01b0380871683528086166020840152508360408301526080606083015282518060808401526200065c8160a0850160208701620004bf565b601f01601f19169190910160a00195945050505050565b6000602082840312156200068657600080fd5b81516001600160e01b0319811681146200069f57600080fd5b9392505050565b600181811c90821680620006bb57607f821691505b602082108103620006dc57634e487b7160e01b600052602260045260246000fd5b50919050565b61297580620006f26000396000f3fe6080604052600436106102c95760003560e01c80638da5cb5b11610175578063c002d23d116100dc578063dde44b8911610095578063f25236331161006f578063f25236331461088b578063f2fde38b146108ab578063f4a0a528146108cb578063ff70fa49146108eb57600080fd5b8063dde44b891461080d578063e8a3d4851461082d578063e985e9c51461084257600080fd5b8063c002d23d14610762578063c87b56dd14610778578063c96b9ddf14610798578063d40c79f0146107ad578063daa9c040146107cd578063dc33e681146107ed57600080fd5b8063a22cb4651161012e578063a22cb465146106b6578063a2309ff8146105a4578063a6d612f9146106d6578063b88d4fde146106e9578063bd32fb6614610709578063bf0b175e1461072957600080fd5b80638da5cb5b1461061a578063902d55a514610638578063938e3d7b1461064e57806395d89b411461066e5780639e6a1d7d14610683578063a0712d68146106a357600080fd5b80634f558e79116102345780636c0360eb116101ed57806375794a3c116101c757806375794a3c146105a45780637c638be5146105b9578063836cb32a146105ef578063864abefb1461060557600080fd5b80636c0360eb1461055a57806370a082311461056f578063715018a61461058f57600080fd5b80634f558e791461046457806352d8a4d11461048457806355f804b3146104f157806358891a37146105115780636352211e1461052457806364b8db011461054457600080fd5b8063126b5ce611610286578063126b5ce6146103c357806318160ddd146103d657806323b872dd146103ef5780633615ab451461040f5780633ccfd60b1461042f57806342842e0e1461044457600080fd5b806301ffc9a7146102ce5780630277524014610303578063045f78501461032757806306fdde0314610349578063081812fc1461036b578063095ea7b3146103a3575b600080fd5b3480156102da57600080fd5b506102ee6102e936600461229f565b61090b565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b50610319600a5481565b6040519081526020016102fa565b34801561033357600080fd5b506103476103423660046122d8565b61095d565b005b34801561035557600080fd5b5061035e610a10565b6040516102fa919061235a565b34801561037757600080fd5b5061038b61038636600461236d565b610aa2565b6040516001600160a01b0390911681526020016102fa565b3480156103af57600080fd5b506103476103be3660046122d8565b610ae6565b6103476103d13660046122d8565b610b86565b3480156103e257600080fd5b5060015460005403610319565b3480156103fb57600080fd5b5061034761040a366004612386565b610cd5565b34801561041b57600080fd5b5061034761042a3660046123c2565b610e6d565b34801561043b57600080fd5b50610347610fc8565b34801561045057600080fd5b5061034761045f366004612386565b611021565b34801561047057600080fd5b506102ee61047f36600461236d565b611041565b34801561049057600080fd5b506104a461049f36600461236d565b61104c565b6040516102fa919081516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260609182015162ffffff169181019190915260800190565b3480156104fd57600080fd5b5061034761050c3660046124c9565b611079565b61034761051f3660046122d8565b6110d4565b34801561053057600080fd5b5061038b61053f36600461236d565b611299565b34801561055057600080fd5b50610319600b5481565b34801561056657600080fd5b5061035e6112a4565b34801561057b57600080fd5b5061031961058a366004612512565b6112b3565b34801561059b57600080fd5b50610347611302565b3480156105b057600080fd5b50600054610319565b3480156105c557600080fd5b506103196105d4366004612512565b6001600160a01b03166000908152600d602052604090205490565b3480156105fb57600080fd5b50610319600c5481565b34801561061157600080fd5b50601554610319565b34801561062657600080fd5b506008546001600160a01b031661038b565b34801561064457600080fd5b506103196103e881565b34801561065a57600080fd5b506103476106693660046124c9565b611338565b34801561067a57600080fd5b5061035e611393565b34801561068f57600080fd5b5061034761069e36600461236d565b6113a2565b6103476106b136600461236d565b6113ef565b3480156106c257600080fd5b506103476106d136600461252d565b611597565b6103476106e43660046123c2565b61162c565b3480156106f557600080fd5b50610347610704366004612569565b611860565b34801561071557600080fd5b5061034761072436600461236d565b6118aa565b34801561073557600080fd5b50610749610744366004612512565b6118f7565b60405167ffffffffffffffff90911681526020016102fa565b34801561076e57600080fd5b5061031960095481565b34801561078457600080fd5b5061035e61079336600461236d565b611918565b3480156107a457600080fd5b50610319606481565b3480156107b957600080fd5b506103476107c836600461236d565b61199c565b3480156107d957600080fd5b506103476107e836600461236d565b6119e9565b3480156107f957600080fd5b50610319610808366004612512565b611a36565b34801561081957600080fd5b5061034761082836600461236d565b611a61565b34801561083957600080fd5b5061035e611aae565b34801561084e57600080fd5b506102ee61085d3660046125e5565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561089757600080fd5b506104a46108a636600461236d565b611abd565b3480156108b757600080fd5b506103476108c6366004612512565b611aea565b3480156108d757600080fd5b506103476108e636600461236d565b611b82565b3480156108f757600080fd5b50610347610906366004612512565b611bcf565b60006301ffc9a760e01b6001600160e01b03198316148061093c57506380ac58cd60e01b6001600160e01b03198316145b806109575750635b5e139f60e01b6001600160e01b03198316145b92915050565b6010546001600160a01b0316336001600160a01b0316148061098957506008546001600160a01b031633145b6109ae5760405162461bcd60e51b81526004016109a590612618565b60405180910390fd5b6103e8816109bb60005490565b6109c5919061267d565b11156109e35760405162461bcd60e51b81526004016109a590612695565b323314610a025760405162461bcd60e51b81526004016109a5906126c3565b610a0c8282611c1b565b5050565b606060028054610a1f906126f1565b80601f0160208091040260200160405190810160405280929190818152602001828054610a4b906126f1565b8015610a985780601f10610a6d57610100808354040283529160200191610a98565b820191906000526020600020905b815481529060010190602001808311610a7b57829003601f168201915b5050505050905090565b6000610aad82611c35565b610aca576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610af182611299565b9050336001600160a01b03821614610b2a57610b0d813361085d565b610b2a576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6010546001600160a01b0316336001600160a01b03161480610bb257506008546001600160a01b031633145b610bce5760405162461bcd60e51b81526004016109a590612618565b606481600f54610bde919061267d565b1115610bfc5760405162461bcd60e51b81526004016109a590612695565b323314610c1b5760405162461bcd60e51b81526004016109a5906126c3565b600a546001600160a01b0383166000908152600d6020526040902054610c4290839061267d565b1115610c605760405162461bcd60e51b81526004016109a59061272b565b80600954610c6e9190612757565b3414610c8c5760405162461bcd60e51b81526004016109a590612776565b80600f54610c9a919061267d565b600f556001600160a01b0382166000908152600d602052604081208054839290610cc590849061267d565b90915550610a0c90508282611c1b565b6000610ce082611c5c565b9050836001600160a01b0316816001600160a01b031614610d135760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610d6057610d43863361085d565b610d6057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610d8757604051633a954ecd60e21b815260040160405180910390fd5b8015610d9257600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610e2457600184016000818152600460205260408120549003610e22576000548114610e225760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b336000908152600e602052604081205484918491849190610e8e908361267d565b9050610f01848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506012549150339050610ed585611cc3565b604051602001610ee692919061279d565b60405160208183030381529060405280519060200120611dcc565b610f445760405162461bcd60e51b815260206004820152601460248201527324a72b20a624a22fa6a2a925a622afa82927a7a360611b60448201526064016109a5565b600f54610f529060646127d5565b610f5e906103e86127d5565b85610f6860005490565b610f72919061267d565b1115610f905760405162461bcd60e51b81526004016109a590612695565b336000908152600e602052604081208054879290610faf90849061267d565b90915550610fbf90503386611c1b565b50505050505050565b6008546001600160a01b03163314610ff25760405162461bcd60e51b81526004016109a5906127ec565b60405133904780156108fc02916000818181858888f1935050505015801561101e573d6000803e3d6000fd5b50565b61103c83838360405180602001604052806000815250611860565b505050565b600061095782611c35565b60408051608081018252600080825260208201819052918101829052606081019190915261095782611de2565b6010546001600160a01b0316336001600160a01b031614806110a557506008546001600160a01b031633145b6110c15760405162461bcd60e51b81526004016109a590612618565b8051610a0c9060139060208401906121f0565b600f546110e29060646127d5565b6110ee906103e86127d5565b816110f860005490565b611102919061267d565b11156111205760405162461bcd60e51b81526004016109a590612695565b8060095461112e9190612757565b341461114c5760405162461bcd60e51b81526004016109a590612776565b60155460021461116e5760405162461bcd60e51b81526004016109a590612821565b73dab1a1854214684ace522439684a145e6250523333146111dd5760405162461bcd60e51b8152602060048201526024808201527f546869732066756e6374696f6e20697320666f722043726f73736d696e74206f60448201526337363c9760e11b60648201526084016109a5565b600c5481600b546111ee919061267d565b111561120c5760405162461bcd60e51b81526004016109a59061272b565b600a546001600160a01b0383166000908152600d602052604090205461123390839061267d565b11156112515760405162461bcd60e51b81526004016109a59061272b565b6001600160a01b0382166000908152600d60205260408120805483929061127990849061267d565b9091555050600b5461128c90829061267d565b600b55610a0c8282611c1b565b600061095782611c5c565b60606112ae611e17565b905090565b60006001600160a01b0382166112dc576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b0316331461132c5760405162461bcd60e51b81526004016109a5906127ec565b6113366000611e26565b565b6010546001600160a01b0316336001600160a01b0316148061136457506008546001600160a01b031633145b6113805760405162461bcd60e51b81526004016109a590612618565b8051610a0c9060149060208401906121f0565b606060038054610a1f906126f1565b6010546001600160a01b0316336001600160a01b031614806113ce57506008546001600160a01b031633145b6113ea5760405162461bcd60e51b81526004016109a590612618565b600a55565b600f546113fd9060646127d5565b611409906103e86127d5565b8161141360005490565b61141d919061267d565b111561143b5760405162461bcd60e51b81526004016109a590612695565b806009546114499190612757565b34146114675760405162461bcd60e51b81526004016109a590612776565b6015546002146114895760405162461bcd60e51b81526004016109a590612821565b600a548111156114ce5760405162461bcd60e51b815260206004820152601060248201526f0be829a9eaa9ca8bea89e9ebe90928e960831b60448201526064016109a5565b600a54336000908152600d60205260409020546114ec90839061267d565b111561150a5760405162461bcd60e51b81526004016109a59061272b565b600c5481600b5461151b919061267d565b11156115395760405162461bcd60e51b81526004016109a59061272b565b3233146115585760405162461bcd60e51b81526004016109a5906126c3565b336000908152600d60205260408120805483929061157790849061267d565b9091555050600b5461158a90829061267d565b600b5561101e3382611c1b565b336001600160a01b038316036115c05760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b828261168d828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506011546040516bffffffffffffffffffffffff193360601b1660208201529092506034019050610ee6565b6116d05760405162461bcd60e51b815260206004820152601460248201527324a72b20a624a22fa6a2a925a622afa82927a7a360611b60448201526064016109a5565b600f546116de9060646127d5565b6116ea906103e86127d5565b836116f460005490565b6116fe919061267d565b111561171c5760405162461bcd60e51b81526004016109a590612695565b8260095461172a9190612757565b34146117485760405162461bcd60e51b81526004016109a590612776565b60155460011461176a5760405162461bcd60e51b81526004016109a590612821565b600a548311156117af5760405162461bcd60e51b815260206004820152601060248201526f0be829a9eaa9ca8bea89e9ebe90928e960831b60448201526064016109a5565b600c5483600b546117c0919061267d565b11156117de5760405162461bcd60e51b81526004016109a59061272b565b600a54336000908152600d60205260409020546117fc90859061267d565b111561181a5760405162461bcd60e51b81526004016109a59061272b565b336000908152600d60205260408120805485929061183990849061267d565b9091555050600b5461184c90849061267d565b600b556118593384611c1b565b5050505050565b61186b848484610cd5565b6001600160a01b0383163b156118a45761188784848484611e78565b6118a4576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6010546001600160a01b0316336001600160a01b031614806118d657506008546001600160a01b031633145b6118f25760405162461bcd60e51b81526004016109a590612618565b601155565b6001600160a01b03811660009081526005602052604081205460c01c610957565b606061192382611c35565b61194057604051630a14c4b560e41b815260040160405180910390fd5b600061194a611e17565b9050805160000361196a5760405180602001604052806000815250611995565b8061197484611f63565b604051602001611985929190612849565b6040516020818303038152906040525b9392505050565b6010546001600160a01b0316336001600160a01b031614806119c857506008546001600160a01b031633145b6119e45760405162461bcd60e51b81526004016109a590612618565b601555565b6010546001600160a01b0316336001600160a01b03161480611a1557506008546001600160a01b031633145b611a315760405162461bcd60e51b81526004016109a590612618565b600c55565b6001600160a01b0381166000908152600560205260408082205467ffffffffffffffff911c16610957565b6010546001600160a01b0316336001600160a01b03161480611a8d57506008546001600160a01b031633145b611aa95760405162461bcd60e51b81526004016109a590612618565b601255565b606060148054610a1f906126f1565b60408051608081018252600080825260208201819052918101829052606081019190915261095782611fb2565b6008546001600160a01b03163314611b145760405162461bcd60e51b81526004016109a5906127ec565b6001600160a01b038116611b795760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109a5565b61101e81611e26565b6010546001600160a01b0316336001600160a01b03161480611bae57506008546001600160a01b031633145b611bca5760405162461bcd60e51b81526004016109a590612618565b600955565b6008546001600160a01b03163314611bf95760405162461bcd60e51b81526004016109a5906127ec565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b610a0c828260405180602001604052806000815250611fee565b6000805482108015610957575050600090815260046020526040902054600160e01b161590565b600081600054811015611caa5760008181526004602052604081205490600160e01b82169003611ca8575b80600003611995575060001901600081815260046020526040902054611c87565b505b604051636f96cda160e11b815260040160405180910390fd5b606081600003611cea5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d145780611cfe81612878565b9150611d0d9050600a836128a7565b9150611cee565b60008167ffffffffffffffff811115611d2f57611d2f61243d565b6040519080825280601f01601f191660200182016040528015611d59576020820181803683370190505b5090505b8415611dc457611d6e6001836127d5565b9150611d7b600a866128bb565b611d8690603061267d565b60f81b818381518110611d9b57611d9b6128cf565b60200101906001600160f81b031916908160001a905350611dbd600a866128a7565b9450611d5d565b949350505050565b600082611dd98584612054565b14949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152610957611e1283611c5c565b6120c8565b606060138054610a1f906126f1565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611ead9033908990889088906004016128e5565b6020604051808303816000875af1925050508015611ee8575060408051601f3d908101601f19168201909252611ee591810190612922565b60015b611f46573d808015611f16576040519150601f19603f3d011682016040523d82523d6000602084013e611f1b565b606091505b508051600003611f3e576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b604080516080810191829052607f0190826030600a8206018353600a90045b8015611fa057600183039250600a81066030018353600a9004611f82565b50819003601f19909101908152919050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260046020526040902054610957906120c8565b611ff88383612110565b6001600160a01b0383163b1561103c576000548281035b6120226000868380600101945086611e78565b61203f576040516368d2bf6b60e11b815260040160405180910390fd5b81811061200f57816000541461185957600080fd5b600081815b84518110156120c0576000858281518110612076576120766128cf565b6020026020010151905080831161209c57600083815260208290526040902092506120ad565b600081815260208490526040902092505b50806120b881612878565b915050612059565b509392505050565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6000546001600160a01b03831661213957604051622e076360e81b815260040160405180910390fd5b8160000361215a5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106121a45760005550505050565b8280546121fc906126f1565b90600052602060002090601f01602090048101928261221e5760008555612264565b82601f1061223757805160ff1916838001178555612264565b82800160010185558215612264579182015b82811115612264578251825591602001919060010190612249565b50612270929150612274565b5090565b5b808211156122705760008155600101612275565b6001600160e01b03198116811461101e57600080fd5b6000602082840312156122b157600080fd5b813561199581612289565b80356001600160a01b03811681146122d357600080fd5b919050565b600080604083850312156122eb57600080fd5b6122f4836122bc565b946020939093013593505050565b60005b8381101561231d578181015183820152602001612305565b838111156118a45750506000910152565b60008151808452612346816020860160208601612302565b601f01601f19169290920160200192915050565b602081526000611995602083018461232e565b60006020828403121561237f57600080fd5b5035919050565b60008060006060848603121561239b57600080fd5b6123a4846122bc565b92506123b2602085016122bc565b9150604084013590509250925092565b6000806000604084860312156123d757600080fd5b833567ffffffffffffffff808211156123ef57600080fd5b818601915086601f83011261240357600080fd5b81358181111561241257600080fd5b8760208260051b850101111561242757600080fd5b6020928301989097509590910135949350505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561246e5761246e61243d565b604051601f8501601f19908116603f011681019082821181831017156124965761249661243d565b816040528093508581528686860111156124af57600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156124db57600080fd5b813567ffffffffffffffff8111156124f257600080fd5b8201601f8101841361250357600080fd5b611dc484823560208401612453565b60006020828403121561252457600080fd5b611995826122bc565b6000806040838503121561254057600080fd5b612549836122bc565b91506020830135801515811461255e57600080fd5b809150509250929050565b6000806000806080858703121561257f57600080fd5b612588856122bc565b9350612596602086016122bc565b925060408501359150606085013567ffffffffffffffff8111156125b957600080fd5b8501601f810187136125ca57600080fd5b6125d987823560208401612453565b91505092959194509250565b600080604083850312156125f857600080fd5b612601836122bc565b915061260f602084016122bc565b90509250929050565b6020808252602f908201527f4f776e6572736869703a2063616c6c6572206973206e6f7420746865206f776e60408201526e32b91037b9103232bb32b637b832b960891b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561269057612690612667565b500190565b602080825260149082015273455843454544535f544f54414c5f535550504c5960601b604082015260600190565b60208082526014908201527353454e4445525f49535f4e4f545f414e5f454f4160601b604082015260600190565b600181811c9082168061270557607f821691505b60208210810361272557634e487b7160e01b600052602260045260246000fd5b50919050565b602080825260129082015271115610d1515114d7d352539517d31253525560721b604082015260600190565b600081600019048311821515161561277157612771612667565b500290565b6020808252600d908201526c494e56414c49445f56414c554560981b604082015260600190565b6bffffffffffffffffffffffff198360601b168152600082516127c7816014850160208701612302565b919091016014019392505050565b6000828210156127e7576127e7612667565b500390565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600e908201526d13525395125391d7d4105554d15160921b604082015260600190565b6000835161285b818460208801612302565b83519083019061286f818360208801612302565b01949350505050565b60006001820161288a5761288a612667565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826128b6576128b6612891565b500490565b6000826128ca576128ca612891565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906129189083018461232e565b9695505050505050565b60006020828403121561293457600080fd5b81516119958161228956fea2646970667358221220d05e75098dab51b8910560e747e1470d619d924d51448dbb6e6ea7c97d52ccc664736f6c634300080d003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000047030cf5b7c98ea502757c79594b7a3a7cbe8256b7ca80147db8aacd3ed4f359f85f158fc95e42bb8a97e45187f627aca9263a26b7ca80147db8aacd3ed4f359f85f158fc95e42bb8a97e45187f627aca9263a260000000000000000000000000000000000000000000000000000000000000007697066733a2f2f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007697066733a2f2f00000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102c95760003560e01c80638da5cb5b11610175578063c002d23d116100dc578063dde44b8911610095578063f25236331161006f578063f25236331461088b578063f2fde38b146108ab578063f4a0a528146108cb578063ff70fa49146108eb57600080fd5b8063dde44b891461080d578063e8a3d4851461082d578063e985e9c51461084257600080fd5b8063c002d23d14610762578063c87b56dd14610778578063c96b9ddf14610798578063d40c79f0146107ad578063daa9c040146107cd578063dc33e681146107ed57600080fd5b8063a22cb4651161012e578063a22cb465146106b6578063a2309ff8146105a4578063a6d612f9146106d6578063b88d4fde146106e9578063bd32fb6614610709578063bf0b175e1461072957600080fd5b80638da5cb5b1461061a578063902d55a514610638578063938e3d7b1461064e57806395d89b411461066e5780639e6a1d7d14610683578063a0712d68146106a357600080fd5b80634f558e79116102345780636c0360eb116101ed57806375794a3c116101c757806375794a3c146105a45780637c638be5146105b9578063836cb32a146105ef578063864abefb1461060557600080fd5b80636c0360eb1461055a57806370a082311461056f578063715018a61461058f57600080fd5b80634f558e791461046457806352d8a4d11461048457806355f804b3146104f157806358891a37146105115780636352211e1461052457806364b8db011461054457600080fd5b8063126b5ce611610286578063126b5ce6146103c357806318160ddd146103d657806323b872dd146103ef5780633615ab451461040f5780633ccfd60b1461042f57806342842e0e1461044457600080fd5b806301ffc9a7146102ce5780630277524014610303578063045f78501461032757806306fdde0314610349578063081812fc1461036b578063095ea7b3146103a3575b600080fd5b3480156102da57600080fd5b506102ee6102e936600461229f565b61090b565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b50610319600a5481565b6040519081526020016102fa565b34801561033357600080fd5b506103476103423660046122d8565b61095d565b005b34801561035557600080fd5b5061035e610a10565b6040516102fa919061235a565b34801561037757600080fd5b5061038b61038636600461236d565b610aa2565b6040516001600160a01b0390911681526020016102fa565b3480156103af57600080fd5b506103476103be3660046122d8565b610ae6565b6103476103d13660046122d8565b610b86565b3480156103e257600080fd5b5060015460005403610319565b3480156103fb57600080fd5b5061034761040a366004612386565b610cd5565b34801561041b57600080fd5b5061034761042a3660046123c2565b610e6d565b34801561043b57600080fd5b50610347610fc8565b34801561045057600080fd5b5061034761045f366004612386565b611021565b34801561047057600080fd5b506102ee61047f36600461236d565b611041565b34801561049057600080fd5b506104a461049f36600461236d565b61104c565b6040516102fa919081516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260609182015162ffffff169181019190915260800190565b3480156104fd57600080fd5b5061034761050c3660046124c9565b611079565b61034761051f3660046122d8565b6110d4565b34801561053057600080fd5b5061038b61053f36600461236d565b611299565b34801561055057600080fd5b50610319600b5481565b34801561056657600080fd5b5061035e6112a4565b34801561057b57600080fd5b5061031961058a366004612512565b6112b3565b34801561059b57600080fd5b50610347611302565b3480156105b057600080fd5b50600054610319565b3480156105c557600080fd5b506103196105d4366004612512565b6001600160a01b03166000908152600d602052604090205490565b3480156105fb57600080fd5b50610319600c5481565b34801561061157600080fd5b50601554610319565b34801561062657600080fd5b506008546001600160a01b031661038b565b34801561064457600080fd5b506103196103e881565b34801561065a57600080fd5b506103476106693660046124c9565b611338565b34801561067a57600080fd5b5061035e611393565b34801561068f57600080fd5b5061034761069e36600461236d565b6113a2565b6103476106b136600461236d565b6113ef565b3480156106c257600080fd5b506103476106d136600461252d565b611597565b6103476106e43660046123c2565b61162c565b3480156106f557600080fd5b50610347610704366004612569565b611860565b34801561071557600080fd5b5061034761072436600461236d565b6118aa565b34801561073557600080fd5b50610749610744366004612512565b6118f7565b60405167ffffffffffffffff90911681526020016102fa565b34801561076e57600080fd5b5061031960095481565b34801561078457600080fd5b5061035e61079336600461236d565b611918565b3480156107a457600080fd5b50610319606481565b3480156107b957600080fd5b506103476107c836600461236d565b61199c565b3480156107d957600080fd5b506103476107e836600461236d565b6119e9565b3480156107f957600080fd5b50610319610808366004612512565b611a36565b34801561081957600080fd5b5061034761082836600461236d565b611a61565b34801561083957600080fd5b5061035e611aae565b34801561084e57600080fd5b506102ee61085d3660046125e5565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561089757600080fd5b506104a46108a636600461236d565b611abd565b3480156108b757600080fd5b506103476108c6366004612512565b611aea565b3480156108d757600080fd5b506103476108e636600461236d565b611b82565b3480156108f757600080fd5b50610347610906366004612512565b611bcf565b60006301ffc9a760e01b6001600160e01b03198316148061093c57506380ac58cd60e01b6001600160e01b03198316145b806109575750635b5e139f60e01b6001600160e01b03198316145b92915050565b6010546001600160a01b0316336001600160a01b0316148061098957506008546001600160a01b031633145b6109ae5760405162461bcd60e51b81526004016109a590612618565b60405180910390fd5b6103e8816109bb60005490565b6109c5919061267d565b11156109e35760405162461bcd60e51b81526004016109a590612695565b323314610a025760405162461bcd60e51b81526004016109a5906126c3565b610a0c8282611c1b565b5050565b606060028054610a1f906126f1565b80601f0160208091040260200160405190810160405280929190818152602001828054610a4b906126f1565b8015610a985780601f10610a6d57610100808354040283529160200191610a98565b820191906000526020600020905b815481529060010190602001808311610a7b57829003601f168201915b5050505050905090565b6000610aad82611c35565b610aca576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610af182611299565b9050336001600160a01b03821614610b2a57610b0d813361085d565b610b2a576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6010546001600160a01b0316336001600160a01b03161480610bb257506008546001600160a01b031633145b610bce5760405162461bcd60e51b81526004016109a590612618565b606481600f54610bde919061267d565b1115610bfc5760405162461bcd60e51b81526004016109a590612695565b323314610c1b5760405162461bcd60e51b81526004016109a5906126c3565b600a546001600160a01b0383166000908152600d6020526040902054610c4290839061267d565b1115610c605760405162461bcd60e51b81526004016109a59061272b565b80600954610c6e9190612757565b3414610c8c5760405162461bcd60e51b81526004016109a590612776565b80600f54610c9a919061267d565b600f556001600160a01b0382166000908152600d602052604081208054839290610cc590849061267d565b90915550610a0c90508282611c1b565b6000610ce082611c5c565b9050836001600160a01b0316816001600160a01b031614610d135760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610d6057610d43863361085d565b610d6057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610d8757604051633a954ecd60e21b815260040160405180910390fd5b8015610d9257600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610e2457600184016000818152600460205260408120549003610e22576000548114610e225760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b336000908152600e602052604081205484918491849190610e8e908361267d565b9050610f01848480806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506012549150339050610ed585611cc3565b604051602001610ee692919061279d565b60405160208183030381529060405280519060200120611dcc565b610f445760405162461bcd60e51b815260206004820152601460248201527324a72b20a624a22fa6a2a925a622afa82927a7a360611b60448201526064016109a5565b600f54610f529060646127d5565b610f5e906103e86127d5565b85610f6860005490565b610f72919061267d565b1115610f905760405162461bcd60e51b81526004016109a590612695565b336000908152600e602052604081208054879290610faf90849061267d565b90915550610fbf90503386611c1b565b50505050505050565b6008546001600160a01b03163314610ff25760405162461bcd60e51b81526004016109a5906127ec565b60405133904780156108fc02916000818181858888f1935050505015801561101e573d6000803e3d6000fd5b50565b61103c83838360405180602001604052806000815250611860565b505050565b600061095782611c35565b60408051608081018252600080825260208201819052918101829052606081019190915261095782611de2565b6010546001600160a01b0316336001600160a01b031614806110a557506008546001600160a01b031633145b6110c15760405162461bcd60e51b81526004016109a590612618565b8051610a0c9060139060208401906121f0565b600f546110e29060646127d5565b6110ee906103e86127d5565b816110f860005490565b611102919061267d565b11156111205760405162461bcd60e51b81526004016109a590612695565b8060095461112e9190612757565b341461114c5760405162461bcd60e51b81526004016109a590612776565b60155460021461116e5760405162461bcd60e51b81526004016109a590612821565b73dab1a1854214684ace522439684a145e6250523333146111dd5760405162461bcd60e51b8152602060048201526024808201527f546869732066756e6374696f6e20697320666f722043726f73736d696e74206f60448201526337363c9760e11b60648201526084016109a5565b600c5481600b546111ee919061267d565b111561120c5760405162461bcd60e51b81526004016109a59061272b565b600a546001600160a01b0383166000908152600d602052604090205461123390839061267d565b11156112515760405162461bcd60e51b81526004016109a59061272b565b6001600160a01b0382166000908152600d60205260408120805483929061127990849061267d565b9091555050600b5461128c90829061267d565b600b55610a0c8282611c1b565b600061095782611c5c565b60606112ae611e17565b905090565b60006001600160a01b0382166112dc576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b0316331461132c5760405162461bcd60e51b81526004016109a5906127ec565b6113366000611e26565b565b6010546001600160a01b0316336001600160a01b0316148061136457506008546001600160a01b031633145b6113805760405162461bcd60e51b81526004016109a590612618565b8051610a0c9060149060208401906121f0565b606060038054610a1f906126f1565b6010546001600160a01b0316336001600160a01b031614806113ce57506008546001600160a01b031633145b6113ea5760405162461bcd60e51b81526004016109a590612618565b600a55565b600f546113fd9060646127d5565b611409906103e86127d5565b8161141360005490565b61141d919061267d565b111561143b5760405162461bcd60e51b81526004016109a590612695565b806009546114499190612757565b34146114675760405162461bcd60e51b81526004016109a590612776565b6015546002146114895760405162461bcd60e51b81526004016109a590612821565b600a548111156114ce5760405162461bcd60e51b815260206004820152601060248201526f0be829a9eaa9ca8bea89e9ebe90928e960831b60448201526064016109a5565b600a54336000908152600d60205260409020546114ec90839061267d565b111561150a5760405162461bcd60e51b81526004016109a59061272b565b600c5481600b5461151b919061267d565b11156115395760405162461bcd60e51b81526004016109a59061272b565b3233146115585760405162461bcd60e51b81526004016109a5906126c3565b336000908152600d60205260408120805483929061157790849061267d565b9091555050600b5461158a90829061267d565b600b5561101e3382611c1b565b336001600160a01b038316036115c05760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b828261168d828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506011546040516bffffffffffffffffffffffff193360601b1660208201529092506034019050610ee6565b6116d05760405162461bcd60e51b815260206004820152601460248201527324a72b20a624a22fa6a2a925a622afa82927a7a360611b60448201526064016109a5565b600f546116de9060646127d5565b6116ea906103e86127d5565b836116f460005490565b6116fe919061267d565b111561171c5760405162461bcd60e51b81526004016109a590612695565b8260095461172a9190612757565b34146117485760405162461bcd60e51b81526004016109a590612776565b60155460011461176a5760405162461bcd60e51b81526004016109a590612821565b600a548311156117af5760405162461bcd60e51b815260206004820152601060248201526f0be829a9eaa9ca8bea89e9ebe90928e960831b60448201526064016109a5565b600c5483600b546117c0919061267d565b11156117de5760405162461bcd60e51b81526004016109a59061272b565b600a54336000908152600d60205260409020546117fc90859061267d565b111561181a5760405162461bcd60e51b81526004016109a59061272b565b336000908152600d60205260408120805485929061183990849061267d565b9091555050600b5461184c90849061267d565b600b556118593384611c1b565b5050505050565b61186b848484610cd5565b6001600160a01b0383163b156118a45761188784848484611e78565b6118a4576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6010546001600160a01b0316336001600160a01b031614806118d657506008546001600160a01b031633145b6118f25760405162461bcd60e51b81526004016109a590612618565b601155565b6001600160a01b03811660009081526005602052604081205460c01c610957565b606061192382611c35565b61194057604051630a14c4b560e41b815260040160405180910390fd5b600061194a611e17565b9050805160000361196a5760405180602001604052806000815250611995565b8061197484611f63565b604051602001611985929190612849565b6040516020818303038152906040525b9392505050565b6010546001600160a01b0316336001600160a01b031614806119c857506008546001600160a01b031633145b6119e45760405162461bcd60e51b81526004016109a590612618565b601555565b6010546001600160a01b0316336001600160a01b03161480611a1557506008546001600160a01b031633145b611a315760405162461bcd60e51b81526004016109a590612618565b600c55565b6001600160a01b0381166000908152600560205260408082205467ffffffffffffffff911c16610957565b6010546001600160a01b0316336001600160a01b03161480611a8d57506008546001600160a01b031633145b611aa95760405162461bcd60e51b81526004016109a590612618565b601255565b606060148054610a1f906126f1565b60408051608081018252600080825260208201819052918101829052606081019190915261095782611fb2565b6008546001600160a01b03163314611b145760405162461bcd60e51b81526004016109a5906127ec565b6001600160a01b038116611b795760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109a5565b61101e81611e26565b6010546001600160a01b0316336001600160a01b03161480611bae57506008546001600160a01b031633145b611bca5760405162461bcd60e51b81526004016109a590612618565b600955565b6008546001600160a01b03163314611bf95760405162461bcd60e51b81526004016109a5906127ec565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b610a0c828260405180602001604052806000815250611fee565b6000805482108015610957575050600090815260046020526040902054600160e01b161590565b600081600054811015611caa5760008181526004602052604081205490600160e01b82169003611ca8575b80600003611995575060001901600081815260046020526040902054611c87565b505b604051636f96cda160e11b815260040160405180910390fd5b606081600003611cea5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611d145780611cfe81612878565b9150611d0d9050600a836128a7565b9150611cee565b60008167ffffffffffffffff811115611d2f57611d2f61243d565b6040519080825280601f01601f191660200182016040528015611d59576020820181803683370190505b5090505b8415611dc457611d6e6001836127d5565b9150611d7b600a866128bb565b611d8690603061267d565b60f81b818381518110611d9b57611d9b6128cf565b60200101906001600160f81b031916908160001a905350611dbd600a866128a7565b9450611d5d565b949350505050565b600082611dd98584612054565b14949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152610957611e1283611c5c565b6120c8565b606060138054610a1f906126f1565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611ead9033908990889088906004016128e5565b6020604051808303816000875af1925050508015611ee8575060408051601f3d908101601f19168201909252611ee591810190612922565b60015b611f46573d808015611f16576040519150601f19603f3d011682016040523d82523d6000602084013e611f1b565b606091505b508051600003611f3e576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b604080516080810191829052607f0190826030600a8206018353600a90045b8015611fa057600183039250600a81066030018353600a9004611f82565b50819003601f19909101908152919050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260046020526040902054610957906120c8565b611ff88383612110565b6001600160a01b0383163b1561103c576000548281035b6120226000868380600101945086611e78565b61203f576040516368d2bf6b60e11b815260040160405180910390fd5b81811061200f57816000541461185957600080fd5b600081815b84518110156120c0576000858281518110612076576120766128cf565b6020026020010151905080831161209c57600083815260208290526040902092506120ad565b600081815260208490526040902092505b50806120b881612878565b915050612059565b509392505050565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6000546001600160a01b03831661213957604051622e076360e81b815260040160405180910390fd5b8160000361215a5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106121a45760005550505050565b8280546121fc906126f1565b90600052602060002090601f01602090048101928261221e5760008555612264565b82601f1061223757805160ff1916838001178555612264565b82800160010185558215612264579182015b82811115612264578251825591602001919060010190612249565b50612270929150612274565b5090565b5b808211156122705760008155600101612275565b6001600160e01b03198116811461101e57600080fd5b6000602082840312156122b157600080fd5b813561199581612289565b80356001600160a01b03811681146122d357600080fd5b919050565b600080604083850312156122eb57600080fd5b6122f4836122bc565b946020939093013593505050565b60005b8381101561231d578181015183820152602001612305565b838111156118a45750506000910152565b60008151808452612346816020860160208601612302565b601f01601f19169290920160200192915050565b602081526000611995602083018461232e565b60006020828403121561237f57600080fd5b5035919050565b60008060006060848603121561239b57600080fd5b6123a4846122bc565b92506123b2602085016122bc565b9150604084013590509250925092565b6000806000604084860312156123d757600080fd5b833567ffffffffffffffff808211156123ef57600080fd5b818601915086601f83011261240357600080fd5b81358181111561241257600080fd5b8760208260051b850101111561242757600080fd5b6020928301989097509590910135949350505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561246e5761246e61243d565b604051601f8501601f19908116603f011681019082821181831017156124965761249661243d565b816040528093508581528686860111156124af57600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156124db57600080fd5b813567ffffffffffffffff8111156124f257600080fd5b8201601f8101841361250357600080fd5b611dc484823560208401612453565b60006020828403121561252457600080fd5b611995826122bc565b6000806040838503121561254057600080fd5b612549836122bc565b91506020830135801515811461255e57600080fd5b809150509250929050565b6000806000806080858703121561257f57600080fd5b612588856122bc565b9350612596602086016122bc565b925060408501359150606085013567ffffffffffffffff8111156125b957600080fd5b8501601f810187136125ca57600080fd5b6125d987823560208401612453565b91505092959194509250565b600080604083850312156125f857600080fd5b612601836122bc565b915061260f602084016122bc565b90509250929050565b6020808252602f908201527f4f776e6572736869703a2063616c6c6572206973206e6f7420746865206f776e60408201526e32b91037b9103232bb32b637b832b960891b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561269057612690612667565b500190565b602080825260149082015273455843454544535f544f54414c5f535550504c5960601b604082015260600190565b60208082526014908201527353454e4445525f49535f4e4f545f414e5f454f4160601b604082015260600190565b600181811c9082168061270557607f821691505b60208210810361272557634e487b7160e01b600052602260045260246000fd5b50919050565b602080825260129082015271115610d1515114d7d352539517d31253525560721b604082015260600190565b600081600019048311821515161561277157612771612667565b500290565b6020808252600d908201526c494e56414c49445f56414c554560981b604082015260600190565b6bffffffffffffffffffffffff198360601b168152600082516127c7816014850160208701612302565b919091016014019392505050565b6000828210156127e7576127e7612667565b500390565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600e908201526d13525395125391d7d4105554d15160921b604082015260600190565b6000835161285b818460208801612302565b83519083019061286f818360208801612302565b01949350505050565b60006001820161288a5761288a612667565b5060010190565b634e487b7160e01b600052601260045260246000fd5b6000826128b6576128b6612891565b500490565b6000826128ca576128ca612891565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906129189083018461232e565b9695505050505050565b60006020828403121561293457600080fd5b81516119958161228956fea2646970667358221220d05e75098dab51b8910560e747e1470d619d924d51448dbb6e6ea7c97d52ccc664736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000047030cf5b7c98ea502757c79594b7a3a7cbe8256b7ca80147db8aacd3ed4f359f85f158fc95e42bb8a97e45187f627aca9263a26b7ca80147db8aacd3ed4f359f85f158fc95e42bb8a97e45187f627aca9263a260000000000000000000000000000000000000000000000000000000000000007697066733a2f2f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007697066733a2f2f00000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _baseContractURI (string): ipfs://
Arg [1] : _baseURI (string): ipfs://
Arg [2] : _firstMintTo (address): 0x47030cf5B7C98Ea502757c79594b7A3A7CbE8256
Arg [3] : _whitelistMerkleRoot (bytes32): 0xb7ca80147db8aacd3ed4f359f85f158fc95e42bb8a97e45187f627aca9263a26
Arg [4] : _freeMintMerkleRoot (bytes32): 0xb7ca80147db8aacd3ed4f359f85f158fc95e42bb8a97e45187f627aca9263a26
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 00000000000000000000000047030cf5b7c98ea502757c79594b7a3a7cbe8256
Arg [3] : b7ca80147db8aacd3ed4f359f85f158fc95e42bb8a97e45187f627aca9263a26
Arg [4] : b7ca80147db8aacd3ed4f359f85f158fc95e42bb8a97e45187f627aca9263a26
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [6] : 697066733a2f2f00000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [8] : 697066733a2f2f00000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.