ERC-721
Overview
Max Total Supply
100 ApexGenesis
Holders
80
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 ApexGenesisLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
ApexWolfPackGenesis
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; import "./ERC721A.sol"; import "./Ownable.sol"; import "./ERC2981.sol"; import "./Strings.sol"; import "./MerkleProof.sol"; import "./OperatorFilterer.sol"; contract ApexWolfPackGenesis is ERC721A, ERC2981, OperatorFilterer, Ownable { using Strings for uint256; enum MintState { PAUSED, PRESALE, PUBLIC } error MintStateError(); error MaxSupplyReachedError(); error AlreadyMintedError(); error InvalidProofError(); error MaxPerWalletReachedError(); error IncorrectAmountError(); MintState public mintState = MintState.PAUSED; bytes32 public merkleRoot; uint256 public price = 0.08 ether; uint256 public maxSupply = 100; uint256 public maxPresaleMint = 1; uint256 public maxPublicMint = 1; string public baseURI; bool public operatorFilteringEnabled = true; constructor( string memory initialBaseURI, bytes32 initialMerkleRoot, address payable royaltiesReceiver ) ERC721A("Apex Wolf Pack Genesis", "ApexGenesis") { baseURI = initialBaseURI; merkleRoot = initialMerkleRoot; setRoyaltyInfo(royaltiesReceiver, 800); } function withdraw(address payable destination) external onlyOwner { destination.transfer(address(this).balance); } function setBaseURI(string memory uri) external onlyOwner { baseURI = uri; } function _baseURI() internal view override returns (string memory) { return baseURI; } // Modifiers modifier verifyMintState(MintState requiredState) { if (mintState != requiredState) revert MintStateError(); _; } modifier verifyAmount(uint64 amount) { if (msg.value != price * amount) revert IncorrectAmountError(); _; } modifier verifyAvailableSupply(uint64 amount) { if (_totalMinted() + amount > maxSupply) revert MaxSupplyReachedError(); _; } // Minting function mint( uint64 qty ) external payable verifyMintState(MintState.PUBLIC) verifyAvailableSupply(qty) verifyAmount(qty) { if ( _numberMinted(msg.sender) + qty > ( _getAux(msg.sender) > 0 ? maxPublicMint + maxPresaleMint : maxPublicMint ) ) revert MaxPerWalletReachedError(); _mint(msg.sender, qty); } function presaleMint( uint64 qty, bytes32[] calldata merkleProof ) external payable verifyMintState(MintState.PRESALE) verifyAvailableSupply(qty) verifyAmount(qty) { if (_getAux(msg.sender) != 0) revert AlreadyMintedError(); if (_numberMinted(msg.sender) + qty > maxPresaleMint) revert MaxPerWalletReachedError(); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); if (!MerkleProof.verifyCalldata(merkleProof, merkleRoot, leaf)) revert InvalidProofError(); _setAux(msg.sender, qty); _mint(msg.sender, qty); } // ERC721A function _startTokenId() internal view virtual override returns (uint256) { return 1; } // Setters function setMintState(MintState s) external onlyOwner { mintState = s; } function setMerkleRoot(bytes32 root) external onlyOwner { merkleRoot = root; } function setMaxSupply(uint256 supply) external onlyOwner { maxSupply = supply; } function setMaxPresaleMint(uint256 max) external onlyOwner { maxPresaleMint = max; } function setMaxPublicMint(uint256 max) external onlyOwner { maxPublicMint = max; } // OperatorFilterer function setApprovalForAll( address operator, bool approved ) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve( address operator, uint256 tokenId ) public payable override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom( address from, address to, uint256 tokenId ) public payable override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } function setOperatorFilteringEnabled(bool value) public onlyOwner { operatorFilteringEnabled = value; } function _operatorFilteringEnabled() internal view virtual override returns (bool) { return operatorFilteringEnabled; } // IERC2981 function setRoyaltyInfo( address payable receiver, uint96 numerator ) public onlyOwner { _setDefaultRoyalty(receiver, numerator); } // ERC165 function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC721A, ERC2981) returns (bool) { return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "./IERC2981.sol"; import "./ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * 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. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ 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 Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(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++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @notice Optimized and flexible operator filterer to abide to OpenSea's /// mandatory on-chain royalty enforcement in order for new collections to /// receive royalties. /// For more information, see: /// See: https://github.com/ProjectOpenSea/operator-filter-registry abstract contract OperatorFilterer { /// @dev The default OpenSea operator blocklist subscription. address internal constant _DEFAULT_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; /// @dev The OpenSea operator filter registry. address internal constant _OPERATOR_FILTER_REGISTRY = 0x000000000000AAeB6D7670E522A718067333cd4E; /// @dev Registers the current contract to OpenSea's operator filter, /// and subscribe to the default OpenSea operator blocklist. /// Note: Will not revert nor update existing settings for repeated registration. function _registerForOperatorFiltering() internal virtual { _registerForOperatorFiltering(_DEFAULT_SUBSCRIPTION, true); } /// @dev Registers the current contract to OpenSea's operator filter. /// Note: Will not revert nor update existing settings for repeated registration. function _registerForOperatorFiltering(address subscriptionOrRegistrantToCopy, bool subscribe) internal virtual { /// @solidity memory-safe-assembly assembly { let functionSelector := 0x7d3e3dbe // `registerAndSubscribe(address,address)`. // Clean the upper 96 bits of `subscriptionOrRegistrantToCopy` in case they are dirty. subscriptionOrRegistrantToCopy := shr(96, shl(96, subscriptionOrRegistrantToCopy)) for {} iszero(subscribe) {} { if iszero(subscriptionOrRegistrantToCopy) { functionSelector := 0x4420e486 // `register(address)`. break } functionSelector := 0xa0af2903 // `registerAndCopyEntries(address,address)`. break } // Store the function selector. mstore(0x00, shl(224, functionSelector)) // Store the `address(this)`. mstore(0x04, address()) // Store the `subscriptionOrRegistrantToCopy`. mstore(0x24, subscriptionOrRegistrantToCopy) // Register into the registry. if iszero(call(gas(), _OPERATOR_FILTER_REGISTRY, 0, 0x00, 0x44, 0x00, 0x04)) { // If the function selector has not been overwritten, // it is an out-of-gas error. if eq(shr(224, mload(0x00)), functionSelector) { // To prevent gas under-estimation. revert(0, 0) } } // Restore the part of the free memory pointer that was overwritten, // which is guaranteed to be zero, because of Solidity's memory size limits. mstore(0x24, 0) } } /// @dev Modifier to guard a function and revert if the caller is a blocked operator. modifier onlyAllowedOperator(address from) virtual { if (from != msg.sender) { if (!_isPriorityOperator(msg.sender)) { if (_operatorFilteringEnabled()) _revertIfBlocked(msg.sender); } } _; } /// @dev Modifier to guard a function from approving a blocked operator.. modifier onlyAllowedOperatorApproval(address operator) virtual { if (!_isPriorityOperator(operator)) { if (_operatorFilteringEnabled()) _revertIfBlocked(operator); } _; } /// @dev Helper function that reverts if the `operator` is blocked by the registry. function _revertIfBlocked(address operator) private view { /// @solidity memory-safe-assembly assembly { // Store the function selector of `isOperatorAllowed(address,address)`, // shifted left by 6 bytes, which is enough for 8tb of memory. // We waste 6-3 = 3 bytes to save on 6 runtime gas (PUSH1 0x224 SHL). mstore(0x00, 0xc6171134001122334455) // Store the `address(this)`. mstore(0x1a, address()) // Store the `operator`. mstore(0x3a, operator) // `isOperatorAllowed` always returns true if it does not revert. if iszero(staticcall(gas(), _OPERATOR_FILTER_REGISTRY, 0x16, 0x44, 0x00, 0x00)) { // Bubble up the revert if the staticcall reverts. returndatacopy(0x00, 0x00, returndatasize()) revert(0x00, returndatasize()) } // We'll skip checking if `from` is inside the blacklist. // Even though that can block transferring out of wrapper contracts, // we don't want tokens to be stuck. // Restore the part of the free memory pointer that was overwritten, // which is guaranteed to be zero, if less than 8tb of memory is used. mstore(0x3a, 0) } } /// @dev For deriving contracts to override, so that operator filtering /// can be turned on / off. /// Returns true by default. function _operatorFilteringEnabled() internal view virtual returns (bool) { return true; } /// @dev For deriving contracts to override, so that preferred marketplaces can /// skip operator filtering, helping users save gas. /// Returns false for all inputs by default. function _isPriorityOperator(address) internal view virtual returns (bool) { return false; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "./Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"string","name":"initialBaseURI","type":"string"},{"internalType":"bytes32","name":"initialMerkleRoot","type":"bytes32"},{"internalType":"address payable","name":"royaltiesReceiver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyMintedError","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"IncorrectAmountError","type":"error"},{"inputs":[],"name":"InvalidProofError","type":"error"},{"inputs":[],"name":"MaxPerWalletReachedError","type":"error"},{"inputs":[],"name":"MaxSupplyReachedError","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintStateError","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPresaleMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPublicMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"qty","type":"uint64"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintState","outputs":[{"internalType":"enum ApexWolfPackGenesis.MintState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilteringEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"qty","type":"uint64"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"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":"uint256","name":"max","type":"uint256"}],"name":"setMaxPresaleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"max","type":"uint256"}],"name":"setMaxPublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum ApexWolfPackGenesis.MintState","name":"s","type":"uint8"}],"name":"setMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setOperatorFilteringEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"receiver","type":"address"},{"internalType":"uint96","name":"numerator","type":"uint96"}],"name":"setRoyaltyInfo","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":"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"destination","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600a805460ff60a01b1916905567011c37937e080000600c556064600d556001600e819055600f8190556011805460ff191690911790553480156200004857600080fd5b5060405162002510380380620025108339810160408190526200006b9162000325565b6040518060400160405280601681526020017f4170657820576f6c66205061636b2047656e65736973000000000000000000008152506040518060400160405280600b81526020016a4170657847656e6573697360a81b8152508160029081620000d69190620004a5565b506003620000e58282620004a5565b5050600160005550620000f83362000123565b6010620001068482620004a5565b50600b8290556200011a8161032062000175565b50505062000571565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200017f6200018f565b6200018b8282620001f1565b5050565b600a546001600160a01b03163314620001ef5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b565b6127106001600160601b0382161115620002615760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401620001e6565b6001600160a01b038216620002b95760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620001e6565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200032057600080fd5b919050565b6000806000606084860312156200033b57600080fd5b83516001600160401b03808211156200035357600080fd5b818601915086601f8301126200036857600080fd5b8151818111156200037d576200037d620002f2565b604051601f8201601f19908116603f01168101908382118183101715620003a857620003a8620002f2565b81604052828152602093508984848701011115620003c557600080fd5b600091505b82821015620003e95784820184015181830185015290830190620003ca565b600084848301015280975050505080860151935050506200040d6040850162000308565b90509250925092565b600181811c908216806200042b57607f821691505b6020821081036200044c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004a057600081815260208120601f850160051c810160208610156200047b5750805b601f850160051c820191505b818110156200049c5782815560010162000487565b5050505b505050565b81516001600160401b03811115620004c157620004c1620002f2565b620004d981620004d2845462000416565b8462000452565b602080601f831160018114620005115760008415620004f85750858301515b600019600386901b1c1916600185901b1785556200049c565b600085815260208120601f198616915b82811015620005425788860151825594840194600190910190840162000521565b5085821015620005615787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611f8f80620005816000396000f3fe60806040526004361061021a5760003560e01c8063715018a611610123578063c051e38a116100ab578063e985e9c51161006f578063e985e9c5146105ee578063f11cb0af1461060e578063f2fde38b1461062e578063fb796e6c1461064e578063fb9d09c81461066857600080fd5b8063c051e38a14610561578063c7e60d831461058f578063c87b56dd146105a2578063cabadaa0146105c2578063d5abeb01146105d857600080fd5b8063a035b1fe116100f2578063a035b1fe146104e2578063a22cb465146104f8578063b457627814610518578063b7c0b8e81461052e578063b88d4fde1461054e57600080fd5b8063715018a61461047a5780637cb647591461048f5780638da5cb5b146104af57806395d89b41146104cd57600080fd5b80632eb4a7ab116101a657806355f804b31161017557806355f804b3146103e55780636352211e146104055780636c0360eb146104255780636f8b44b01461043a57806370a082311461045a57600080fd5b80632eb4a7ab1461037c5780633425f90c1461039257806342842e0e146103b257806351cff8d9146103c557600080fd5b8063095ea7b3116101ed578063095ea7b3146102d057806318160ddd146102e357806323b872dd1461030a578063270ab52c1461031d5780632a55205a1461033d57600080fd5b806301ffc9a71461021f57806302fa7c471461025457806306fdde0314610276578063081812fc14610298575b600080fd5b34801561022b57600080fd5b5061023f61023a366004611866565b61067b565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b5061027461026f366004611898565b61069b565b005b34801561028257600080fd5b5061028b6106b1565b60405161024b919061192d565b3480156102a457600080fd5b506102b86102b3366004611940565b610743565b6040516001600160a01b03909116815260200161024b565b6102746102de366004611959565b610787565b3480156102ef57600080fd5b5060015460005403600019015b60405190815260200161024b565b610274610318366004611985565b6107ab565b34801561032957600080fd5b50610274610338366004611940565b6107e1565b34801561034957600080fd5b5061035d6103583660046119c6565b6107ee565b604080516001600160a01b03909316835260208301919091520161024b565b34801561038857600080fd5b506102fc600b5481565b34801561039e57600080fd5b506102746103ad366004611940565b61089a565b6102746103c0366004611985565b6108a7565b3480156103d157600080fd5b506102746103e03660046119e8565b6108d7565b3480156103f157600080fd5b50610274610400366004611a90565b610914565b34801561041157600080fd5b506102b8610420366004611940565b610928565b34801561043157600080fd5b5061028b610933565b34801561044657600080fd5b50610274610455366004611940565b6109c1565b34801561046657600080fd5b506102fc6104753660046119e8565b6109ce565b34801561048657600080fd5b50610274610a1c565b34801561049b57600080fd5b506102746104aa366004611940565b610a30565b3480156104bb57600080fd5b50600a546001600160a01b03166102b8565b3480156104d957600080fd5b5061028b610a3d565b3480156104ee57600080fd5b506102fc600c5481565b34801561050457600080fd5b50610274610513366004611aed565b610a4c565b34801561052457600080fd5b506102fc600e5481565b34801561053a57600080fd5b50610274610549366004611b22565b610a6b565b61027461055c366004611b3d565b610a86565b34801561056d57600080fd5b50600a5461058290600160a01b900460ff1681565b60405161024b9190611bd2565b61027461059d366004611c11565b610abe565b3480156105ae57600080fd5b5061028b6105bd366004611940565b610cad565b3480156105ce57600080fd5b506102fc600f5481565b3480156105e457600080fd5b506102fc600d5481565b3480156105fa57600080fd5b5061023f610609366004611c96565b610d31565b34801561061a57600080fd5b50610274610629366004611cc4565b610d5f565b34801561063a57600080fd5b506102746106493660046119e8565b610d94565b34801561065a57600080fd5b5060115461023f9060ff1681565b610274610676366004611ce5565b610e12565b600061068682610f6d565b80610695575061069582610fbb565b92915050565b6106a3610ff0565b6106ad828261104a565b5050565b6060600280546106c090611d00565b80601f01602080910402602001604051908101604052809291908181526020018280546106ec90611d00565b80156107395780601f1061070e57610100808354040283529160200191610739565b820191906000526020600020905b81548152906001019060200180831161071c57829003601f168201915b5050505050905090565b600061074e82611147565b61076b576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b8160115460ff161561079c5761079c8161117c565b6107a683836111c0565b505050565b826001600160a01b03811633146107d05760115460ff16156107d0576107d03361117c565b6107db848484611260565b50505050565b6107e9610ff0565b600f55565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916108635750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610882906001600160601b031687611d50565b61088c9190611d67565b915196919550909350505050565b6108a2610ff0565b600e55565b826001600160a01b03811633146108cc5760115460ff16156108cc576108cc3361117c565b6107db8484846113f9565b6108df610ff0565b6040516001600160a01b038216904780156108fc02916000818181858888f193505050501580156106ad573d6000803e3d6000fd5b61091c610ff0565b60106106ad8282611dcf565b600061069582611414565b6010805461094090611d00565b80601f016020809104026020016040519081016040528092919081815260200182805461096c90611d00565b80156109b95780601f1061098e576101008083540402835291602001916109b9565b820191906000526020600020905b81548152906001019060200180831161099c57829003601f168201915b505050505081565b6109c9610ff0565b600d55565b60006001600160a01b0382166109f7576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b610a24610ff0565b610a2e6000611483565b565b610a38610ff0565b600b55565b6060600380546106c090611d00565b8160115460ff1615610a6157610a618161117c565b6107a683836114d5565b610a73610ff0565b6011805460ff1916911515919091179055565b836001600160a01b0381163314610aab5760115460ff1615610aab57610aab3361117c565b610ab785858585611541565b5050505050565b600180600a54600160a01b900460ff166002811115610adf57610adf611bbc565b14610afd57604051633dba314160e01b815260040160405180910390fd5b83600d54816001600160401b0316610b186000546000190190565b610b229190611e8e565b1115610b41576040516351d47a2b60e11b815260040160405180910390fd5b84806001600160401b0316600c54610b599190611d50565b3414610b7857604051635b79039b60e01b815260040160405180910390fd5b3360009081526005602052604090205460c01c15610ba95760405163a7ab390d60e01b815260040160405180910390fd5b600e54866001600160401b0316610be2336001600160a01b03166000908152600560205260409081902054901c6001600160401b031690565b610bec9190611e8e565b1115610c0b576040516333fb4fc960e11b815260040160405180910390fd5b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610c528686600b5484611585565b610c6f57604051637d31e14960e01b815260040160405180910390fd5b33600090815260056020526040902080546001600160c01b031660c089901b179055610ca433886001600160401b031661159f565b50505050505050565b6060610cb882611147565b610cd557604051630a14c4b560e41b815260040160405180910390fd5b6000610cdf61169d565b90508051600003610cff5760405180602001604052806000815250610d2a565b80610d09846116ac565b604051602001610d1a929190611ea1565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610d67610ff0565b600a805482919060ff60a01b1916600160a01b836002811115610d8c57610d8c611bbc565b021790555050565b610d9c610ff0565b6001600160a01b038116610e065760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610e0f81611483565b50565b600280600a54600160a01b900460ff166002811115610e3357610e33611bbc565b14610e5157604051633dba314160e01b815260040160405180910390fd5b81600d54816001600160401b0316610e6c6000546000190190565b610e769190611e8e565b1115610e95576040516351d47a2b60e11b815260040160405180910390fd5b82806001600160401b0316600c54610ead9190611d50565b3414610ecc57604051635b79039b60e01b815260040160405180910390fd5b3360009081526005602052604090205460c01c610eeb57600f54610efb565b600e54600f54610efb9190611e8e565b846001600160401b0316610f31336001600160a01b03166000908152600560205260409081902054901c6001600160401b031690565b610f3b9190611e8e565b1115610f5a576040516333fb4fc960e11b815260040160405180910390fd5b6107db33856001600160401b031661159f565b60006301ffc9a760e01b6001600160e01b031983161480610f9e57506380ac58cd60e01b6001600160e01b03198316145b806106955750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b148061069557506301ffc9a760e01b6001600160e01b0319831614610695565b600a546001600160a01b03163314610a2e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dfd565b6127106001600160601b03821611156110b85760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610dfd565b6001600160a01b03821661110e5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610dfd565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b60008160011115801561115b575060005482105b8015610695575050600090815260046020526040902054600160e01b161590565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa6111b8573d6000803e3d6000fd5b6000603a5250565b60006111cb82610928565b9050336001600160a01b03821614611204576111e78133610d31565b611204576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061126b82611414565b9050836001600160a01b0316816001600160a01b03161461129e5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176112eb576112ce8633610d31565b6112eb57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661131257604051633a954ecd60e21b815260040160405180910390fd5b801561131d57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036113af576001840160008181526004602052604081205490036113ad5760005481146113ad5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6107a683838360405180602001604052806000815250610a86565b6000818060011161146a5760005481101561146a5760008181526004602052604081205490600160e01b82169003611468575b80600003610d2a575060001901600081815260046020526040902054611447565b505b604051636f96cda160e11b815260040160405180910390fd5b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61154c8484846107ab565b6001600160a01b0383163b156107db57611568848484846116f0565b6107db576040516368d2bf6b60e11b815260040160405180910390fd5b6000826115938686856117d8565b1490505b949350505050565b60008054908290036115c45760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461167357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161163b565b508160000361169457604051622e076360e81b815260040160405180910390fd5b60005550505050565b6060601080546106c090611d00565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806116c65750819003601f19909101908152919050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611725903390899088908890600401611ed0565b6020604051808303816000875af1925050508015611760575060408051601f3d908101601f1916820190925261175d91810190611f0d565b60015b6117be573d80801561178e576040519150601f19603f3d011682016040523d82523d6000602084013e611793565b606091505b5080516000036117b6576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611597565b600081815b8481101561181b57611807828787848181106117fb576117fb611f2a565b90506020020135611824565b91508061181381611f40565b9150506117dd565b50949350505050565b6000818310611840576000828152602084905260409020610d2a565b5060009182526020526040902090565b6001600160e01b031981168114610e0f57600080fd5b60006020828403121561187857600080fd5b8135610d2a81611850565b6001600160a01b0381168114610e0f57600080fd5b600080604083850312156118ab57600080fd5b82356118b681611883565b915060208301356001600160601b03811681146118d257600080fd5b809150509250929050565b60005b838110156118f85781810151838201526020016118e0565b50506000910152565b600081518084526119198160208601602086016118dd565b601f01601f19169290920160200192915050565b602081526000610d2a6020830184611901565b60006020828403121561195257600080fd5b5035919050565b6000806040838503121561196c57600080fd5b823561197781611883565b946020939093013593505050565b60008060006060848603121561199a57600080fd5b83356119a581611883565b925060208401356119b581611883565b929592945050506040919091013590565b600080604083850312156119d957600080fd5b50508035926020909101359150565b6000602082840312156119fa57600080fd5b8135610d2a81611883565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115611a3557611a35611a05565b604051601f8501601f19908116603f01168101908282118183101715611a5d57611a5d611a05565b81604052809350858152868686011115611a7657600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611aa257600080fd5b81356001600160401b03811115611ab857600080fd5b8201601f81018413611ac957600080fd5b61159784823560208401611a1b565b80358015158114611ae857600080fd5b919050565b60008060408385031215611b0057600080fd5b8235611b0b81611883565b9150611b1960208401611ad8565b90509250929050565b600060208284031215611b3457600080fd5b610d2a82611ad8565b60008060008060808587031215611b5357600080fd5b8435611b5e81611883565b93506020850135611b6e81611883565b92506040850135915060608501356001600160401b03811115611b9057600080fd5b8501601f81018713611ba157600080fd5b611bb087823560208401611a1b565b91505092959194509250565b634e487b7160e01b600052602160045260246000fd5b6020810160038310611bf457634e487b7160e01b600052602160045260246000fd5b91905290565b80356001600160401b0381168114611ae857600080fd5b600080600060408486031215611c2657600080fd5b611c2f84611bfa565b925060208401356001600160401b0380821115611c4b57600080fd5b818601915086601f830112611c5f57600080fd5b813581811115611c6e57600080fd5b8760208260051b8501011115611c8357600080fd5b6020830194508093505050509250925092565b60008060408385031215611ca957600080fd5b8235611cb481611883565b915060208301356118d281611883565b600060208284031215611cd657600080fd5b813560038110610d2a57600080fd5b600060208284031215611cf757600080fd5b610d2a82611bfa565b600181811c90821680611d1457607f821691505b602082108103611d3457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761069557610695611d3a565b600082611d8457634e487b7160e01b600052601260045260246000fd5b500490565b601f8211156107a657600081815260208120601f850160051c81016020861015611db05750805b601f850160051c820191505b818110156113f157828155600101611dbc565b81516001600160401b03811115611de857611de8611a05565b611dfc81611df68454611d00565b84611d89565b602080601f831160018114611e315760008415611e195750858301515b600019600386901b1c1916600185901b1785556113f1565b600085815260208120601f198616915b82811015611e6057888601518255948401946001909101908401611e41565b5085821015611e7e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8082018082111561069557610695611d3a565b60008351611eb38184602088016118dd565b835190830190611ec78183602088016118dd565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f0390830184611901565b9695505050505050565b600060208284031215611f1f57600080fd5b8151610d2a81611850565b634e487b7160e01b600052603260045260246000fd5b600060018201611f5257611f52611d3a565b506001019056fea2646970667358221220eb80d87a6eaef697b3839d9f7846386c31d2c76917edb6da87fa1893ef3dc23b64736f6c63430008120033000000000000000000000000000000000000000000000000000000000000006005971bfc27d618386fd57c0d8623d8564ca72039cd2741e3afa8e2e379e5e688000000000000000000000000e9ec5a2e696451a5fc19ef6a39b18e76de1350c3000000000000000000000000000000000000000000000000000000000000003f68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6172742e61706578776f6c667061636b2e636f6d2f67656e657369732f6d657461646174612f00
Deployed Bytecode
0x60806040526004361061021a5760003560e01c8063715018a611610123578063c051e38a116100ab578063e985e9c51161006f578063e985e9c5146105ee578063f11cb0af1461060e578063f2fde38b1461062e578063fb796e6c1461064e578063fb9d09c81461066857600080fd5b8063c051e38a14610561578063c7e60d831461058f578063c87b56dd146105a2578063cabadaa0146105c2578063d5abeb01146105d857600080fd5b8063a035b1fe116100f2578063a035b1fe146104e2578063a22cb465146104f8578063b457627814610518578063b7c0b8e81461052e578063b88d4fde1461054e57600080fd5b8063715018a61461047a5780637cb647591461048f5780638da5cb5b146104af57806395d89b41146104cd57600080fd5b80632eb4a7ab116101a657806355f804b31161017557806355f804b3146103e55780636352211e146104055780636c0360eb146104255780636f8b44b01461043a57806370a082311461045a57600080fd5b80632eb4a7ab1461037c5780633425f90c1461039257806342842e0e146103b257806351cff8d9146103c557600080fd5b8063095ea7b3116101ed578063095ea7b3146102d057806318160ddd146102e357806323b872dd1461030a578063270ab52c1461031d5780632a55205a1461033d57600080fd5b806301ffc9a71461021f57806302fa7c471461025457806306fdde0314610276578063081812fc14610298575b600080fd5b34801561022b57600080fd5b5061023f61023a366004611866565b61067b565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b5061027461026f366004611898565b61069b565b005b34801561028257600080fd5b5061028b6106b1565b60405161024b919061192d565b3480156102a457600080fd5b506102b86102b3366004611940565b610743565b6040516001600160a01b03909116815260200161024b565b6102746102de366004611959565b610787565b3480156102ef57600080fd5b5060015460005403600019015b60405190815260200161024b565b610274610318366004611985565b6107ab565b34801561032957600080fd5b50610274610338366004611940565b6107e1565b34801561034957600080fd5b5061035d6103583660046119c6565b6107ee565b604080516001600160a01b03909316835260208301919091520161024b565b34801561038857600080fd5b506102fc600b5481565b34801561039e57600080fd5b506102746103ad366004611940565b61089a565b6102746103c0366004611985565b6108a7565b3480156103d157600080fd5b506102746103e03660046119e8565b6108d7565b3480156103f157600080fd5b50610274610400366004611a90565b610914565b34801561041157600080fd5b506102b8610420366004611940565b610928565b34801561043157600080fd5b5061028b610933565b34801561044657600080fd5b50610274610455366004611940565b6109c1565b34801561046657600080fd5b506102fc6104753660046119e8565b6109ce565b34801561048657600080fd5b50610274610a1c565b34801561049b57600080fd5b506102746104aa366004611940565b610a30565b3480156104bb57600080fd5b50600a546001600160a01b03166102b8565b3480156104d957600080fd5b5061028b610a3d565b3480156104ee57600080fd5b506102fc600c5481565b34801561050457600080fd5b50610274610513366004611aed565b610a4c565b34801561052457600080fd5b506102fc600e5481565b34801561053a57600080fd5b50610274610549366004611b22565b610a6b565b61027461055c366004611b3d565b610a86565b34801561056d57600080fd5b50600a5461058290600160a01b900460ff1681565b60405161024b9190611bd2565b61027461059d366004611c11565b610abe565b3480156105ae57600080fd5b5061028b6105bd366004611940565b610cad565b3480156105ce57600080fd5b506102fc600f5481565b3480156105e457600080fd5b506102fc600d5481565b3480156105fa57600080fd5b5061023f610609366004611c96565b610d31565b34801561061a57600080fd5b50610274610629366004611cc4565b610d5f565b34801561063a57600080fd5b506102746106493660046119e8565b610d94565b34801561065a57600080fd5b5060115461023f9060ff1681565b610274610676366004611ce5565b610e12565b600061068682610f6d565b80610695575061069582610fbb565b92915050565b6106a3610ff0565b6106ad828261104a565b5050565b6060600280546106c090611d00565b80601f01602080910402602001604051908101604052809291908181526020018280546106ec90611d00565b80156107395780601f1061070e57610100808354040283529160200191610739565b820191906000526020600020905b81548152906001019060200180831161071c57829003601f168201915b5050505050905090565b600061074e82611147565b61076b576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b8160115460ff161561079c5761079c8161117c565b6107a683836111c0565b505050565b826001600160a01b03811633146107d05760115460ff16156107d0576107d03361117c565b6107db848484611260565b50505050565b6107e9610ff0565b600f55565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916108635750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610882906001600160601b031687611d50565b61088c9190611d67565b915196919550909350505050565b6108a2610ff0565b600e55565b826001600160a01b03811633146108cc5760115460ff16156108cc576108cc3361117c565b6107db8484846113f9565b6108df610ff0565b6040516001600160a01b038216904780156108fc02916000818181858888f193505050501580156106ad573d6000803e3d6000fd5b61091c610ff0565b60106106ad8282611dcf565b600061069582611414565b6010805461094090611d00565b80601f016020809104026020016040519081016040528092919081815260200182805461096c90611d00565b80156109b95780601f1061098e576101008083540402835291602001916109b9565b820191906000526020600020905b81548152906001019060200180831161099c57829003601f168201915b505050505081565b6109c9610ff0565b600d55565b60006001600160a01b0382166109f7576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b610a24610ff0565b610a2e6000611483565b565b610a38610ff0565b600b55565b6060600380546106c090611d00565b8160115460ff1615610a6157610a618161117c565b6107a683836114d5565b610a73610ff0565b6011805460ff1916911515919091179055565b836001600160a01b0381163314610aab5760115460ff1615610aab57610aab3361117c565b610ab785858585611541565b5050505050565b600180600a54600160a01b900460ff166002811115610adf57610adf611bbc565b14610afd57604051633dba314160e01b815260040160405180910390fd5b83600d54816001600160401b0316610b186000546000190190565b610b229190611e8e565b1115610b41576040516351d47a2b60e11b815260040160405180910390fd5b84806001600160401b0316600c54610b599190611d50565b3414610b7857604051635b79039b60e01b815260040160405180910390fd5b3360009081526005602052604090205460c01c15610ba95760405163a7ab390d60e01b815260040160405180910390fd5b600e54866001600160401b0316610be2336001600160a01b03166000908152600560205260409081902054901c6001600160401b031690565b610bec9190611e8e565b1115610c0b576040516333fb4fc960e11b815260040160405180910390fd5b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050610c528686600b5484611585565b610c6f57604051637d31e14960e01b815260040160405180910390fd5b33600090815260056020526040902080546001600160c01b031660c089901b179055610ca433886001600160401b031661159f565b50505050505050565b6060610cb882611147565b610cd557604051630a14c4b560e41b815260040160405180910390fd5b6000610cdf61169d565b90508051600003610cff5760405180602001604052806000815250610d2a565b80610d09846116ac565b604051602001610d1a929190611ea1565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610d67610ff0565b600a805482919060ff60a01b1916600160a01b836002811115610d8c57610d8c611bbc565b021790555050565b610d9c610ff0565b6001600160a01b038116610e065760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610e0f81611483565b50565b600280600a54600160a01b900460ff166002811115610e3357610e33611bbc565b14610e5157604051633dba314160e01b815260040160405180910390fd5b81600d54816001600160401b0316610e6c6000546000190190565b610e769190611e8e565b1115610e95576040516351d47a2b60e11b815260040160405180910390fd5b82806001600160401b0316600c54610ead9190611d50565b3414610ecc57604051635b79039b60e01b815260040160405180910390fd5b3360009081526005602052604090205460c01c610eeb57600f54610efb565b600e54600f54610efb9190611e8e565b846001600160401b0316610f31336001600160a01b03166000908152600560205260409081902054901c6001600160401b031690565b610f3b9190611e8e565b1115610f5a576040516333fb4fc960e11b815260040160405180910390fd5b6107db33856001600160401b031661159f565b60006301ffc9a760e01b6001600160e01b031983161480610f9e57506380ac58cd60e01b6001600160e01b03198316145b806106955750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b148061069557506301ffc9a760e01b6001600160e01b0319831614610695565b600a546001600160a01b03163314610a2e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dfd565b6127106001600160601b03821611156110b85760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610dfd565b6001600160a01b03821661110e5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610dfd565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b60008160011115801561115b575060005482105b8015610695575050600090815260046020526040902054600160e01b161590565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa6111b8573d6000803e3d6000fd5b6000603a5250565b60006111cb82610928565b9050336001600160a01b03821614611204576111e78133610d31565b611204576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061126b82611414565b9050836001600160a01b0316816001600160a01b03161461129e5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176112eb576112ce8633610d31565b6112eb57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661131257604051633a954ecd60e21b815260040160405180910390fd5b801561131d57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036113af576001840160008181526004602052604081205490036113ad5760005481146113ad5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6107a683838360405180602001604052806000815250610a86565b6000818060011161146a5760005481101561146a5760008181526004602052604081205490600160e01b82169003611468575b80600003610d2a575060001901600081815260046020526040902054611447565b505b604051636f96cda160e11b815260040160405180910390fd5b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61154c8484846107ab565b6001600160a01b0383163b156107db57611568848484846116f0565b6107db576040516368d2bf6b60e11b815260040160405180910390fd5b6000826115938686856117d8565b1490505b949350505050565b60008054908290036115c45760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461167357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161163b565b508160000361169457604051622e076360e81b815260040160405180910390fd5b60005550505050565b6060601080546106c090611d00565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806116c65750819003601f19909101908152919050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611725903390899088908890600401611ed0565b6020604051808303816000875af1925050508015611760575060408051601f3d908101601f1916820190925261175d91810190611f0d565b60015b6117be573d80801561178e576040519150601f19603f3d011682016040523d82523d6000602084013e611793565b606091505b5080516000036117b6576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611597565b600081815b8481101561181b57611807828787848181106117fb576117fb611f2a565b90506020020135611824565b91508061181381611f40565b9150506117dd565b50949350505050565b6000818310611840576000828152602084905260409020610d2a565b5060009182526020526040902090565b6001600160e01b031981168114610e0f57600080fd5b60006020828403121561187857600080fd5b8135610d2a81611850565b6001600160a01b0381168114610e0f57600080fd5b600080604083850312156118ab57600080fd5b82356118b681611883565b915060208301356001600160601b03811681146118d257600080fd5b809150509250929050565b60005b838110156118f85781810151838201526020016118e0565b50506000910152565b600081518084526119198160208601602086016118dd565b601f01601f19169290920160200192915050565b602081526000610d2a6020830184611901565b60006020828403121561195257600080fd5b5035919050565b6000806040838503121561196c57600080fd5b823561197781611883565b946020939093013593505050565b60008060006060848603121561199a57600080fd5b83356119a581611883565b925060208401356119b581611883565b929592945050506040919091013590565b600080604083850312156119d957600080fd5b50508035926020909101359150565b6000602082840312156119fa57600080fd5b8135610d2a81611883565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115611a3557611a35611a05565b604051601f8501601f19908116603f01168101908282118183101715611a5d57611a5d611a05565b81604052809350858152868686011115611a7657600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611aa257600080fd5b81356001600160401b03811115611ab857600080fd5b8201601f81018413611ac957600080fd5b61159784823560208401611a1b565b80358015158114611ae857600080fd5b919050565b60008060408385031215611b0057600080fd5b8235611b0b81611883565b9150611b1960208401611ad8565b90509250929050565b600060208284031215611b3457600080fd5b610d2a82611ad8565b60008060008060808587031215611b5357600080fd5b8435611b5e81611883565b93506020850135611b6e81611883565b92506040850135915060608501356001600160401b03811115611b9057600080fd5b8501601f81018713611ba157600080fd5b611bb087823560208401611a1b565b91505092959194509250565b634e487b7160e01b600052602160045260246000fd5b6020810160038310611bf457634e487b7160e01b600052602160045260246000fd5b91905290565b80356001600160401b0381168114611ae857600080fd5b600080600060408486031215611c2657600080fd5b611c2f84611bfa565b925060208401356001600160401b0380821115611c4b57600080fd5b818601915086601f830112611c5f57600080fd5b813581811115611c6e57600080fd5b8760208260051b8501011115611c8357600080fd5b6020830194508093505050509250925092565b60008060408385031215611ca957600080fd5b8235611cb481611883565b915060208301356118d281611883565b600060208284031215611cd657600080fd5b813560038110610d2a57600080fd5b600060208284031215611cf757600080fd5b610d2a82611bfa565b600181811c90821680611d1457607f821691505b602082108103611d3457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761069557610695611d3a565b600082611d8457634e487b7160e01b600052601260045260246000fd5b500490565b601f8211156107a657600081815260208120601f850160051c81016020861015611db05750805b601f850160051c820191505b818110156113f157828155600101611dbc565b81516001600160401b03811115611de857611de8611a05565b611dfc81611df68454611d00565b84611d89565b602080601f831160018114611e315760008415611e195750858301515b600019600386901b1c1916600185901b1785556113f1565b600085815260208120601f198616915b82811015611e6057888601518255948401946001909101908401611e41565b5085821015611e7e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8082018082111561069557610695611d3a565b60008351611eb38184602088016118dd565b835190830190611ec78183602088016118dd565b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611f0390830184611901565b9695505050505050565b600060208284031215611f1f57600080fd5b8151610d2a81611850565b634e487b7160e01b600052603260045260246000fd5b600060018201611f5257611f52611d3a565b506001019056fea2646970667358221220eb80d87a6eaef697b3839d9f7846386c31d2c76917edb6da87fa1893ef3dc23b64736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006005971bfc27d618386fd57c0d8623d8564ca72039cd2741e3afa8e2e379e5e688000000000000000000000000e9ec5a2e696451a5fc19ef6a39b18e76de1350c3000000000000000000000000000000000000000000000000000000000000003f68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6172742e61706578776f6c667061636b2e636f6d2f67656e657369732f6d657461646174612f00
-----Decoded View---------------
Arg [0] : initialBaseURI (string): https://s3.amazonaws.com/art.apexwolfpack.com/genesis/metadata/
Arg [1] : initialMerkleRoot (bytes32): 0x05971bfc27d618386fd57c0d8623d8564ca72039cd2741e3afa8e2e379e5e688
Arg [2] : royaltiesReceiver (address): 0xe9Ec5A2E696451a5Fc19eF6A39B18e76de1350c3
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 05971bfc27d618386fd57c0d8623d8564ca72039cd2741e3afa8e2e379e5e688
Arg [2] : 000000000000000000000000e9ec5a2e696451a5fc19ef6a39b18e76de1350c3
Arg [3] : 000000000000000000000000000000000000000000000000000000000000003f
Arg [4] : 68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6172742e617065
Arg [5] : 78776f6c667061636b2e636f6d2f67656e657369732f6d657461646174612f00
Deployed Bytecode Sourcemap
216:5416:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5379:251;;;;;;;;;;-1:-1:-1;5379:251:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:13;;558:22;540:41;;528:2;513:18;5379:251:0;;;;;;;;5195:163;;;;;;;;;;-1:-1:-1;5195:163:0;;;;;:::i;:::-;;:::i;:::-;;10039:98:4;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;16360:214::-;;;;;;;;;;-1:-1:-1;16360:214:4;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2297:32:13;;;2279:51;;2267:2;2252:18;16360:214:4;2133:203:13;4021:185:0;;;;;;:::i;:::-;;:::i;5894:317:4:-;;;;;;;;;;-1:-1:-1;3278:1:0;6164:12:4;5955:7;6148:13;:28;-1:-1:-1;;6148:46:4;5894:317;;;2815:25:13;;;2803:2;2788:18;5894:317:4;2669:177:13;4212:199:0;;;;;;:::i;:::-;;:::i;3694:94::-;;;;;;;;;;-1:-1:-1;3694:94:0;;;;;:::i;:::-;;:::i;1632:432:3:-;;;;;;;;;;-1:-1:-1;1632:432:3;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3773:32:13;;;3755:51;;3837:2;3822:18;;3815:34;;;;3728:18;1632:432:3;3581:274:13;657:25:0;;;;;;;;;;;;;;;;3592:96;;;;;;;;;;-1:-1:-1;3592:96:0;;;;;:::i;:::-;;:::i;4417:207::-;;;;;;:::i;:::-;;:::i;1237:126::-;;;;;;;;;;-1:-1:-1;1237:126:0;;;;;:::i;:::-;;:::i;1369:88::-;;;;;;;;;;-1:-1:-1;1369:88:0;;;;;:::i;:::-;;:::i;11391:150:4:-;;;;;;;;;;-1:-1:-1;11391:150:4;;;;;:::i;:::-;;:::i;841:21:0:-;;;;;;;;;;;;;:::i;3494:92::-;;;;;;;;;;-1:-1:-1;3494:92:0;;;;;:::i;:::-;;:::i;7045:230:4:-;;;;;;;;;;-1:-1:-1;7045:230:4;;;;;:::i;:::-;;:::i;1824:101:11:-;;;;;;;;;;;;;:::i;3398:90:0:-;;;;;;;;;;-1:-1:-1;3398:90:0;;;;;:::i;:::-;;:::i;1194:85:11:-;;;;;;;;;;-1:-1:-1;1266:6:11;;-1:-1:-1;;;;;1266:6:11;1194:85;;10208:102:4;;;;;;;;;;;;;:::i;688:33:0:-;;;;;;;;;;;;;;;;3819:196;;;;;;;;;;-1:-1:-1;3819:196:0;;;;;:::i;:::-;;:::i;763:33::-;;;;;;;;;;;;;;;;4876:115;;;;;;;;;;-1:-1:-1;4876:115:0;;;;;:::i;:::-;;:::i;4630:240::-;;;;;;:::i;:::-;;:::i;605:45::-;;;;;;;;;;-1:-1:-1;605:45:0;;;;-1:-1:-1;;;605:45:0;;;;;;;;;;;;;:::i;2510:655::-;;;;;;:::i;:::-;;:::i;10411:313:4:-;;;;;;;;;;-1:-1:-1;10411:313:4;;;;;:::i;:::-;;:::i;802:32:0:-;;;;;;;;;;;;;;;;727:30;;;;;;;;;;;;;;;;17282:162:4;;;;;;;;;;-1:-1:-1;17282:162:4;;;;;:::i;:::-;;:::i;3308:84:0:-;;;;;;;;;;-1:-1:-1;3308:84:0;;;;;:::i;:::-;;:::i;2074:198:11:-;;;;;;;;;;-1:-1:-1;2074:198:11;;;;;:::i;:::-;;:::i;869:43:0:-;;;;;;;;;;-1:-1:-1;869:43:0;;;;;;;;2024:480;;;;;;:::i;:::-;;:::i;5379:251::-;5496:4;5531:38;5557:11;5531:25;:38::i;:::-;:92;;;;5585:38;5611:11;5585:25;:38::i;:::-;5512:111;5379:251;-1:-1:-1;;5379:251:0:o;5195:163::-;1087:13:11;:11;:13::i;:::-;5312:39:0::1;5331:8;5341:9;5312:18;:39::i;:::-;5195:163:::0;;:::o;10039:98:4:-;10093:13;10125:5;10118:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10039:98;:::o;16360:214::-;16436:7;16460:16;16468:7;16460;:16::i;:::-;16455:64;;16485:34;;-1:-1:-1;;;16485:34:4;;;;;;;;;;;16455:64;-1:-1:-1;16537:24:4;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;16537:30:4;;16360:214::o;4021:185:0:-;4147:8;5141:24;;;;3547:59:10;;;3580:26;3597:8;3580:16;:26::i;:::-;4167:32:0::1;4181:8;4191:7;4167:13;:32::i;:::-;4021:185:::0;;;:::o;4212:199::-;4351:4;-1:-1:-1;;;;;3147:18:10;;3155:10;3147:18;3143:180;;5141:24:0;;;;3237:61:10;;;3270:28;3287:10;3270:16;:28::i;:::-;4367:37:0::1;4386:4;4392:2;4396:7;4367:18;:37::i;:::-;4212:199:::0;;;;:::o;3694:94::-;1087:13:11;:11;:13::i;:::-;3762::0::1;:19:::0;3694:94::o;1632:432:3:-;1729:7;1786:27;;;:17;:27;;;;;;;;1757:56;;;;;;;;;-1:-1:-1;;;;;1757:56:3;;;;;-1:-1:-1;;;1757:56:3;;;-1:-1:-1;;;;;1757:56:3;;;;;;;;1729:7;;1824:90;;-1:-1:-1;1874:29:3;;;;;;;;;1884:19;1874:29;-1:-1:-1;;;;;1874:29:3;;;;-1:-1:-1;;;1874:29:3;;-1:-1:-1;;;;;1874:29:3;;;;;1824:90;1962:23;;;;1924:21;;2422:5;;1949:36;;-1:-1:-1;;;;;1949:36:3;:10;:36;:::i;:::-;1948:58;;;;:::i;:::-;2025:16;;;;;-1:-1:-1;1632:432:3;;-1:-1:-1;;;;1632:432:3:o;3592:96:0:-;1087:13:11;:11;:13::i;:::-;3661:14:0::1;:20:::0;3592:96::o;4417:207::-;4560:4;-1:-1:-1;;;;;3147:18:10;;3155:10;3147:18;3143:180;;5141:24:0;;;;3237:61:10;;;3270:28;3287:10;3270:16;:28::i;:::-;4576:41:0::1;4599:4;4605:2;4609:7;4576:22;:41::i;1237:126::-:0;1087:13:11;:11;:13::i;:::-;1313:43:0::1;::::0;-1:-1:-1;;;;;1313:20:0;::::1;::::0;1334:21:::1;1313:43:::0;::::1;;;::::0;::::1;::::0;;;1334:21;1313:20;:43;::::1;;;;;;;;;;;;;::::0;::::1;;;;1369:88:::0;1087:13:11;:11;:13::i;:::-;1437:7:0::1;:13;1447:3:::0;1437:7;:13:::1;:::i;11391:150:4:-:0;11463:7;11505:27;11524:7;11505:18;:27::i;841:21:0:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;3494:92::-;1087:13:11;:11;:13::i;:::-;3561:9:0::1;:18:::0;3494:92::o;7045:230:4:-;7117:7;-1:-1:-1;;;;;7140:19:4;;7136:60;;7168:28;;-1:-1:-1;;;7168:28:4;;;;;;;;;;;7136:60;-1:-1:-1;;;;;;7213:25:4;;;;;:18;:25;;;;;;-1:-1:-1;;;;;7213:55:4;;7045:230::o;1824:101:11:-;1087:13;:11;:13::i;:::-;1888:30:::1;1915:1;1888:18;:30::i;:::-;1824:101::o:0;3398:90:0:-;1087:13:11;:11;:13::i;:::-;3464:10:0::1;:17:::0;3398:90::o;10208:102:4:-;10264:13;10296:7;10289:14;;;;;:::i;3819:196:0:-;3945:8;5141:24;;;;3547:59:10;;;3580:26;3597:8;3580:16;:26::i;:::-;3965:43:0::1;3989:8;3999;3965:23;:43::i;4876:115::-:0;1087:13:11;:11;:13::i;:::-;4952:24:0::1;:32:::0;;-1:-1:-1;;4952:32:0::1;::::0;::::1;;::::0;;;::::1;::::0;;4876:115::o;4630:240::-;4800:4;-1:-1:-1;;;;;3147:18:10;;3155:10;3147:18;3143:180;;5141:24:0;;;;3237:61:10;;;3270:28;3287:10;3270:16;:28::i;:::-;4816:47:0::1;4839:4;4845:2;4849:7;4858:4;4816:22;:47::i;:::-;4630:240:::0;;;;;:::o;2510:655::-;2654:17;;1649:9;;-1:-1:-1;;;1649:9:0;;;;:26;;;;;;;;:::i;:::-;;1645:55;;1684:16;;-1:-1:-1;;;1684:16:0;;;;;;;;;;;1645:55;2703:3:::1;1943:9;;1934:6;-1:-1:-1::0;;;;;1917:23:0::1;:14;6359:7:4::0;6546:13;-1:-1:-1;;6546:31:4;;6304:290;1917:14:0::1;:23;;;;:::i;:::-;:35;1913:71;;;1961:23;;-1:-1:-1::0;;;1961:23:0::1;;;;;;;;;;;1913:71;2729:3:::2;1796:6;-1:-1:-1::0;;;;;1788:14:0::2;:5;;:14;;;;:::i;:::-;1775:9;:27;1771:62;;1811:22;;-1:-1:-1::0;;;1811:22:0::2;;;;;;;;;;;1771:62;2760:10:::3;7965:6:4::0;7997:25;;;:18;:25;;;;;;1725:3;7997:40;2752:24:0;2748:57:::3;;2785:20;;-1:-1:-1::0;;;2785:20:0::3;;;;;;;;;;;2748:57;2853:14;;2847:3;-1:-1:-1::0;;;;;2819:31:0::3;:25;2833:10;-1:-1:-1::0;;;;;7440:25:4;7413:7;7440:25;;;:18;:25;;1495:2;7440:25;;;;;:50;;-1:-1:-1;;;;;7439:82:4;;7352:176;2819:25:0::3;:31;;;;:::i;:::-;:48;2815:99;;;2888:26;;-1:-1:-1::0;;;2888:26:0::3;;;;;;;;;;;2815:99;2950:28;::::0;-1:-1:-1;;2967:10:0::3;13085:2:13::0;13081:15;13077:53;2950:28:0::3;::::0;::::3;13065:66:13::0;2925:12:0::3;::::0;13147::13;;2950:28:0::3;;;;;;;;;;;;2940:39;;;;;;2925:54;;2994:57;3021:11;;3034:10;;3046:4;2994:26;:57::i;:::-;2989:102;;3072:19;;-1:-1:-1::0;;;3072:19:0::3;;;;;;;;;;;2989:102;3110:10;8298:14:4::0;8315:25;;;:18;:25;;;;;;;-1:-1:-1;;;;;8509:32:4;1725:3;8546:24;;;8508:63;8581:34;;3136:22:0::3;3142:10;3154:3;-1:-1:-1::0;;;;;3136:22:0::3;:5;:22::i;:::-;2738:427;1994:1:::2;1710::::1;2510:655:::0;;;;:::o;10411:313:4:-;10484:13;10514:16;10522:7;10514;:16::i;:::-;10509:59;;10539:29;;-1:-1:-1;;;10539:29:4;;;;;;;;;;;10509:59;10579:21;10603:10;:8;:10::i;:::-;10579:34;;10636:7;10630:21;10655:1;10630:26;:87;;;;;;;;;;;;;;;;;10683:7;10692:18;10702:7;10692:9;:18::i;:::-;10666:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;10630:87;10623:94;10411:313;-1:-1:-1;;;10411:313:4:o;17282:162::-;-1:-1:-1;;;;;17402:25:4;;;17379:4;17402:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;17282:162::o;3308:84:0:-;1087:13:11;:11;:13::i;:::-;3372:9:0::1;:13:::0;;3384:1;;3372:9;-1:-1:-1;;;;3372:13:0::1;-1:-1:-1::0;;;3384:1:0;3372:13:::1;::::0;::::1;;;;;;:::i;:::-;;;;;;3308:84:::0;:::o;2074:198:11:-;1087:13;:11;:13::i;:::-;-1:-1:-1;;;;;2162:22:11;::::1;2154:73;;;::::0;-1:-1:-1;;;2154:73:11;;13873:2:13;2154:73:11::1;::::0;::::1;13855:21:13::0;13912:2;13892:18;;;13885:30;13951:34;13931:18;;;13924:62;-1:-1:-1;;;14002:18:13;;;13995:36;14048:19;;2154:73:11::1;;;;;;;;;2237:28;2256:8;2237:18;:28::i;:::-;2074:198:::0;:::o;2024:480:0:-;2121:16;;1649:9;;-1:-1:-1;;;1649:9:0;;;;:26;;;;;;;;:::i;:::-;;1645:55;;1684:16;;-1:-1:-1;;;1684:16:0;;;;;;;;;;;1645:55;2169:3:::1;1943:9;;1934:6;-1:-1:-1::0;;;;;1917:23:0::1;:14;6359:7:4::0;6546:13;-1:-1:-1;;6546:31:4;;6304:290;1917:14:0::1;:23;;;;:::i;:::-;:35;1913:71;;;1961:23;;-1:-1:-1::0;;;1961:23:0::1;;;;;;;;;;;1913:71;2195:3:::2;1796:6;-1:-1:-1::0;;;;;1788:14:0::2;:5;;:14;;;;:::i;:::-;1775:9;:27;1771:62;;1811:22;;-1:-1:-1::0;;;1811:22:0::2;;;;;;;;;;;1771:62;2303:10:::3;2317:1;7997:25:4::0;;;:18;:25;;;;;;1725:3;7997:40;2295:112:0::3;;2394:13;;2295:112;;;2357:14;;2341:13;;:30;;;;:::i;:::-;2259:3;-1:-1:-1::0;;;;;2231:31:0::3;:25;2245:10;-1:-1:-1::0;;;;;7440:25:4;7413:7;7440:25;;;:18;:25;;1495:2;7440:25;;;;;:50;;-1:-1:-1;;;;;7439:82:4;;7352:176;2231:25:0::3;:31;;;;:::i;:::-;:190;2214:251;;;2439:26;;-1:-1:-1::0;;;2439:26:0::3;;;;;;;;;;;2214:251;2475:22;2481:10;2493:3;-1:-1:-1::0;;;;;2475:22:0::3;:5;:22::i;9155:630:4:-:0;9240:4;-1:-1:-1;;;;;;;;;9558:25:4;;;;:101;;-1:-1:-1;;;;;;;;;;9634:25:4;;;9558:101;:177;;;-1:-1:-1;;;;;;;;9710:25:4;-1:-1:-1;;;9710:25:4;;9155:630::o;1369:213:3:-;1471:4;-1:-1:-1;;;;;;1494:41:3;;-1:-1:-1;;;1494:41:3;;:81;;-1:-1:-1;;;;;;;;;;937:40:2;;;1539:36:3;829:155:2;1352:130:11;1266:6;;-1:-1:-1;;;;;1266:6:11;719:10:1;1415:23:11;1407:68;;;;-1:-1:-1;;;1407:68:11;;14280:2:13;1407:68:11;;;14262:21:13;;;14299:18;;;14292:30;14358:34;14338:18;;;14331:62;14410:18;;1407:68:11;14078:356:13;2695:327:3;2422:5;-1:-1:-1;;;;;2797:33:3;;;;2789:88;;;;-1:-1:-1;;;2789:88:3;;14641:2:13;2789:88:3;;;14623:21:13;14680:2;14660:18;;;14653:30;14719:34;14699:18;;;14692:62;-1:-1:-1;;;14770:18:13;;;14763:40;14820:19;;2789:88:3;14439:406:13;2789:88:3;-1:-1:-1;;;;;2895:22:3;;2887:60;;;;-1:-1:-1;;;2887:60:3;;15052:2:13;2887:60:3;;;15034:21:13;15091:2;15071:18;;;15064:30;15130:27;15110:18;;;15103:55;15175:18;;2887:60:3;14850:349:13;2887:60:3;2980:35;;;;;;;;;-1:-1:-1;;;;;2980:35:3;;;;;;-1:-1:-1;;;;;2980:35:3;;;;;;;;;;-1:-1:-1;;;2958:57:3;;;;:19;:57;2695:327::o;17693:277:4:-;17758:4;17812:7;3278:1:0;17793:26:4;;:65;;;;;17845:13;;17835:7;:23;17793:65;:151;;;;-1:-1:-1;;17895:26:4;;;;:17;:26;;;;;;-1:-1:-1;;;17895:44:4;:49;;17693:277::o;3728:1332:10:-;4115:22;4109:4;4102:36;4206:9;4200:4;4193:23;4279:8;4273:4;4266:22;4453:4;4447;4441;4435;4408:25;4401:5;4390:68;4380:270;;4572:16;4566:4;4560;4545:44;4619:16;4613:4;4606:30;4380:270;5042:1;5036:4;5029:15;3728:1332;:::o;15812:398:4:-;15900:13;15916:16;15924:7;15916;:16::i;:::-;15900:32;-1:-1:-1;719:10:1;-1:-1:-1;;;;;15947:28:4;;;15943:172;;15994:44;16011:5;719:10:1;17282:162:4;:::i;15994:44::-;15989:126;;16065:35;;-1:-1:-1;;;16065:35:4;;;;;;;;;;;15989:126;16125:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;16125:35:4;-1:-1:-1;;;;;16125:35:4;;;;;;;;;16175:28;;16125:24;;16175:28;;;;;;;15890:320;15812:398;;:::o;19903:2764::-;20040:27;20070;20089:7;20070:18;:27::i;:::-;20040:57;;20153:4;-1:-1:-1;;;;;20112:45:4;20128:19;-1:-1:-1;;;;;20112:45:4;;20108:86;;20166:28;;-1:-1:-1;;;20166:28:4;;;;;;;;;;;20108:86;20206:27;19036:24;;;:15;:24;;;;;19260:26;;719:10:1;18673:30:4;;;-1:-1:-1;;;;;18370:28:4;;18651:20;;;18648:56;20389:179;;20481:43;20498:4;719:10:1;17282:162:4;:::i;20481:43::-;20476:92;;20533:35;;-1:-1:-1;;;20533:35:4;;;;;;;;;;;20476:92;-1:-1:-1;;;;;20583:16:4;;20579:52;;20608:23;;-1:-1:-1;;;20608:23:4;;;;;;;;;;;20579:52;20774:15;20771:157;;;20912:1;20891:19;20884:30;20771:157;-1:-1:-1;;;;;21300:24:4;;;;;;;:18;:24;;;;;;21298:26;;-1:-1:-1;;21298:26:4;;;21368:22;;;;;;;;;21366:24;;-1:-1:-1;21366:24:4;;;14703:11;14678:23;14674:41;14661:63;-1:-1:-1;;;14661:63:4;21654:26;;;;:17;:26;;;;;:172;;;;-1:-1:-1;;;21943:47:4;;:52;;21939:617;;22047:1;22037:11;;22015:19;22168:30;;;:17;:30;;;;;;:35;;22164:378;;22304:13;;22289:11;:28;22285:239;;22449:30;;;;:17;:30;;;;;:52;;;22285:239;21997:559;21939:617;22600:7;22596:2;-1:-1:-1;;;;;22581:27:4;22590:4;-1:-1:-1;;;;;22581:27:4;;;;;;;;;;;22618:42;20030:2637;;;19903:2764;;;:::o;22758:187::-;22899:39;22916:4;22922:2;22926:7;22899:39;;;;;;;;;;;;:16;:39::i;12515:1249::-;12582:7;12616;;3278:1:0;12662:23:4;12658:1042;;12714:13;;12707:4;:20;12703:997;;;12751:14;12768:23;;;:17;:23;;;;;;;-1:-1:-1;;;12855:24:4;;:29;;12851:831;;13510:111;13517:6;13527:1;13517:11;13510:111;;-1:-1:-1;;;13587:6:4;13569:25;;;;:17;:25;;;;;;13510:111;;12851:831;12729:971;12703:997;13726:31;;-1:-1:-1;;;13726:31:4;;;;;;;;;;;2426:187:11;2518:6;;;-1:-1:-1;;;;;2534:17:11;;;-1:-1:-1;;;;;;2534:17:11;;;;;;;2566:40;;2518:6;;;2534:17;2518:6;;2566:40;;2499:16;;2566:40;2489:124;2426:187;:::o;16901:231:4:-;719:10:1;16995:39:4;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;16995:49:4;;;;;;;;;;;;:60;;-1:-1:-1;;16995:60:4;;;;;;;;;;17070:55;;540:41:13;;;16995:49:4;;719:10:1;17070:55:4;;513:18:13;17070:55:4;;;;;;;16901:231;;:::o;23526:396::-;23695:31;23708:4;23714:2;23718:7;23695:12;:31::i;:::-;-1:-1:-1;;;;;23740:14:4;;;:19;23736:180;;23778:56;23809:4;23815:2;23819:7;23828:5;23778:30;:56::i;:::-;23773:143;;23861:40;;-1:-1:-1;;;23861:40:4;;;;;;;;;;;1441:202:9;1572:4;1632;1595:33;1616:5;;1623:4;1595:20;:33::i;:::-;:41;1588:48;;1441:202;;;;;;;:::o;27091:2902:4:-;27163:20;27186:13;;;27213;;;27209:44;;27235:18;;-1:-1:-1;;;27235:18:4;;;;;;;;;;;27209:44;-1:-1:-1;;;;;27728:22:4;;;;;;:18;:22;;;;1495:2;27728:22;;;:71;;27766:32;27754:45;;27728:71;;;28035:31;;;:17;:31;;;;;-1:-1:-1;15123:15:4;;15097:24;15093:46;14703:11;14678:23;14674:41;14671:52;14661:63;;28035:170;;28264:23;;;;28035:31;;27728:22;;29016:25;27728:22;;28872:328;29520:1;29506:12;29502:20;29461:339;29560:3;29551:7;29548:16;29461:339;;29774:7;29764:8;29761:1;29734:25;29731:1;29728;29723:59;29612:1;29599:15;29461:339;;;29465:75;29831:8;29843:1;29831:13;29827:45;;29853:19;;-1:-1:-1;;;29853:19:4;;;;;;;;;;;29827:45;29887:13;:19;-1:-1:-1;4021:185:0;;;:::o;1463:98::-;1515:13;1547:7;1540:14;;;;;:::i;39637:1708:4:-;39702:17;40130:4;40123;40117:11;40113:22;40220:1;40214:4;40207:15;40293:4;40290:1;40286:12;40279:19;;;40373:1;40368:3;40361:14;40474:3;40708:5;40690:419;40755:1;40750:3;40746:11;40739:18;;40923:2;40917:4;40913:13;40909:2;40905:22;40900:3;40892:36;41015:2;41005:13;;41070:25;40690:419;41070:25;-1:-1:-1;41137:13:4;;;-1:-1:-1;;41250:14:4;;;41310:19;;;41250:14;39637:1708;-1:-1:-1;39637:1708:4:o;25948:697::-;26126:88;;-1:-1:-1;;;26126:88:4;;26106:4;;-1:-1:-1;;;;;26126:45:4;;;;;:88;;719:10:1;;26193:4:4;;26199:7;;26208:5;;26126:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26126:88:4;;;;;;;;-1:-1:-1;;26126:88:4;;;;;;;;;;;;:::i;:::-;;;26122:517;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26404:6;:13;26421:1;26404:18;26400:229;;26449:40;;-1:-1:-1;;;26449:40:4;;;;;;;;;;;26400:229;26589:6;26583:13;26574:6;26570:2;26566:15;26559:38;26122:517;-1:-1:-1;;;;;;26282:64:4;-1:-1:-1;;;26282:64:4;;-1:-1:-1;26275:71:4;;2391:300:9;2484:7;2526:4;2484:7;2540:116;2560:16;;;2540:116;;;2612:33;2622:12;2636:5;;2642:1;2636:8;;;;;;;:::i;:::-;;;;;;;2612:9;:33::i;:::-;2597:48;-1:-1:-1;2578:3:9;;;;:::i;:::-;;;;2540:116;;;-1:-1:-1;2672:12:9;2391:300;-1:-1:-1;;;;2391:300:9:o;8879:147::-;8942:7;8972:1;8968;:5;:51;;9100:13;9191:15;;;9226:4;9219:15;;;9272:4;9256:21;;8968:51;;;-1:-1:-1;9100:13:9;9191:15;;;9226:4;9219:15;9272:4;9256:21;;;8879:147::o;14:131:13:-;-1:-1:-1;;;;;;88:32:13;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:139::-;-1:-1:-1;;;;;675:31:13;;665:42;;655:70;;721:1;718;711:12;736:451;811:6;819;872:2;860:9;851:7;847:23;843:32;840:52;;;888:1;885;878:12;840:52;927:9;914:23;946:39;979:5;946:39;:::i;:::-;1004:5;-1:-1:-1;1061:2:13;1046:18;;1033:32;-1:-1:-1;;;;;1096:40:13;;1084:53;;1074:81;;1151:1;1148;1141:12;1074:81;1174:7;1164:17;;;736:451;;;;;:::o;1192:250::-;1277:1;1287:113;1301:6;1298:1;1295:13;1287:113;;;1377:11;;;1371:18;1358:11;;;1351:39;1323:2;1316:10;1287:113;;;-1:-1:-1;;1434:1:13;1416:16;;1409:27;1192:250::o;1447:271::-;1489:3;1527:5;1521:12;1554:6;1549:3;1542:19;1570:76;1639:6;1632:4;1627:3;1623:14;1616:4;1609:5;1605:16;1570:76;:::i;:::-;1700:2;1679:15;-1:-1:-1;;1675:29:13;1666:39;;;;1707:4;1662:50;;1447:271;-1:-1:-1;;1447:271:13:o;1723:220::-;1872:2;1861:9;1854:21;1835:4;1892:45;1933:2;1922:9;1918:18;1910:6;1892:45;:::i;1948:180::-;2007:6;2060:2;2048:9;2039:7;2035:23;2031:32;2028:52;;;2076:1;2073;2066:12;2028:52;-1:-1:-1;2099:23:13;;1948:180;-1:-1:-1;1948:180:13:o;2341:323::-;2409:6;2417;2470:2;2458:9;2449:7;2445:23;2441:32;2438:52;;;2486:1;2483;2476:12;2438:52;2525:9;2512:23;2544:39;2577:5;2544:39;:::i;:::-;2602:5;2654:2;2639:18;;;;2626:32;;-1:-1:-1;;;2341:323:13:o;2851:472::-;2928:6;2936;2944;2997:2;2985:9;2976:7;2972:23;2968:32;2965:52;;;3013:1;3010;3003:12;2965:52;3052:9;3039:23;3071:39;3104:5;3071:39;:::i;:::-;3129:5;-1:-1:-1;3186:2:13;3171:18;;3158:32;3199:41;3158:32;3199:41;:::i;:::-;2851:472;;3259:7;;-1:-1:-1;;;3313:2:13;3298:18;;;;3285:32;;2851:472::o;3328:248::-;3396:6;3404;3457:2;3445:9;3436:7;3432:23;3428:32;3425:52;;;3473:1;3470;3463:12;3425:52;-1:-1:-1;;3496:23:13;;;3566:2;3551:18;;;3538:32;;-1:-1:-1;3328:248:13:o;4042:263::-;4109:6;4162:2;4150:9;4141:7;4137:23;4133:32;4130:52;;;4178:1;4175;4168:12;4130:52;4217:9;4204:23;4236:39;4269:5;4236:39;:::i;4310:127::-;4371:10;4366:3;4362:20;4359:1;4352:31;4402:4;4399:1;4392:15;4426:4;4423:1;4416:15;4442:632;4507:5;-1:-1:-1;;;;;4578:2:13;4570:6;4567:14;4564:40;;;4584:18;;:::i;:::-;4659:2;4653:9;4627:2;4713:15;;-1:-1:-1;;4709:24:13;;;4735:2;4705:33;4701:42;4689:55;;;4759:18;;;4779:22;;;4756:46;4753:72;;;4805:18;;:::i;:::-;4845:10;4841:2;4834:22;4874:6;4865:15;;4904:6;4896;4889:22;4944:3;4935:6;4930:3;4926:16;4923:25;4920:45;;;4961:1;4958;4951:12;4920:45;5011:6;5006:3;4999:4;4991:6;4987:17;4974:44;5066:1;5059:4;5050:6;5042;5038:19;5034:30;5027:41;;;;4442:632;;;;;:::o;5079:451::-;5148:6;5201:2;5189:9;5180:7;5176:23;5172:32;5169:52;;;5217:1;5214;5207:12;5169:52;5257:9;5244:23;-1:-1:-1;;;;;5282:6:13;5279:30;5276:50;;;5322:1;5319;5312:12;5276:50;5345:22;;5398:4;5390:13;;5386:27;-1:-1:-1;5376:55:13;;5427:1;5424;5417:12;5376:55;5450:74;5516:7;5511:2;5498:16;5493:2;5489;5485:11;5450:74;:::i;5980:160::-;6045:20;;6101:13;;6094:21;6084:32;;6074:60;;6130:1;6127;6120:12;6074:60;5980:160;;;:::o;6145:323::-;6210:6;6218;6271:2;6259:9;6250:7;6246:23;6242:32;6239:52;;;6287:1;6284;6277:12;6239:52;6326:9;6313:23;6345:39;6378:5;6345:39;:::i;:::-;6403:5;-1:-1:-1;6427:35:13;6458:2;6443:18;;6427:35;:::i;:::-;6417:45;;6145:323;;;;;:::o;6473:180::-;6529:6;6582:2;6570:9;6561:7;6557:23;6553:32;6550:52;;;6598:1;6595;6588:12;6550:52;6621:26;6637:9;6621:26;:::i;6658:811::-;6753:6;6761;6769;6777;6830:3;6818:9;6809:7;6805:23;6801:33;6798:53;;;6847:1;6844;6837:12;6798:53;6886:9;6873:23;6905:39;6938:5;6905:39;:::i;:::-;6963:5;-1:-1:-1;7020:2:13;7005:18;;6992:32;7033:41;6992:32;7033:41;:::i;:::-;7093:7;-1:-1:-1;7147:2:13;7132:18;;7119:32;;-1:-1:-1;7202:2:13;7187:18;;7174:32;-1:-1:-1;;;;;7218:30:13;;7215:50;;;7261:1;7258;7251:12;7215:50;7284:22;;7337:4;7329:13;;7325:27;-1:-1:-1;7315:55:13;;7366:1;7363;7356:12;7315:55;7389:74;7455:7;7450:2;7437:16;7432:2;7428;7424:11;7389:74;:::i;:::-;7379:84;;;6658:811;;;;;;;:::o;7474:127::-;7535:10;7530:3;7526:20;7523:1;7516:31;7566:4;7563:1;7556:15;7590:4;7587:1;7580:15;7606:340;7750:2;7735:18;;7783:1;7772:13;;7762:144;;7828:10;7823:3;7819:20;7816:1;7809:31;7863:4;7860:1;7853:15;7891:4;7888:1;7881:15;7762:144;7915:25;;;7606:340;:::o;7951:171::-;8018:20;;-1:-1:-1;;;;;8067:30:13;;8057:41;;8047:69;;8112:1;8109;8102:12;8127:687;8221:6;8229;8237;8290:2;8278:9;8269:7;8265:23;8261:32;8258:52;;;8306:1;8303;8296:12;8258:52;8329:28;8347:9;8329:28;:::i;:::-;8319:38;;8408:2;8397:9;8393:18;8380:32;-1:-1:-1;;;;;8472:2:13;8464:6;8461:14;8458:34;;;8488:1;8485;8478:12;8458:34;8526:6;8515:9;8511:22;8501:32;;8571:7;8564:4;8560:2;8556:13;8552:27;8542:55;;8593:1;8590;8583:12;8542:55;8633:2;8620:16;8659:2;8651:6;8648:14;8645:34;;;8675:1;8672;8665:12;8645:34;8728:7;8723:2;8713:6;8710:1;8706:14;8702:2;8698:23;8694:32;8691:45;8688:65;;;8749:1;8746;8739:12;8688:65;8780:2;8776;8772:11;8762:21;;8802:6;8792:16;;;;;8127:687;;;;;:::o;8819:404::-;8887:6;8895;8948:2;8936:9;8927:7;8923:23;8919:32;8916:52;;;8964:1;8961;8954:12;8916:52;9003:9;8990:23;9022:39;9055:5;9022:39;:::i;:::-;9080:5;-1:-1:-1;9137:2:13;9122:18;;9109:32;9150:41;9109:32;9150:41;:::i;9228:268::-;9299:6;9352:2;9340:9;9331:7;9327:23;9323:32;9320:52;;;9368:1;9365;9358:12;9320:52;9407:9;9394:23;9446:1;9439:5;9436:12;9426:40;;9462:1;9459;9452:12;9501:184;9559:6;9612:2;9600:9;9591:7;9587:23;9583:32;9580:52;;;9628:1;9625;9618:12;9580:52;9651:28;9669:9;9651:28;:::i;9690:380::-;9769:1;9765:12;;;;9812;;;9833:61;;9887:4;9879:6;9875:17;9865:27;;9833:61;9940:2;9932:6;9929:14;9909:18;9906:38;9903:161;;9986:10;9981:3;9977:20;9974:1;9967:31;10021:4;10018:1;10011:15;10049:4;10046:1;10039:15;9903:161;;9690:380;;;:::o;10075:127::-;10136:10;10131:3;10127:20;10124:1;10117:31;10167:4;10164:1;10157:15;10191:4;10188:1;10181:15;10207:168;10280:9;;;10311;;10328:15;;;10322:22;;10308:37;10298:71;;10349:18;;:::i;10380:217::-;10420:1;10446;10436:132;;10490:10;10485:3;10481:20;10478:1;10471:31;10525:4;10522:1;10515:15;10553:4;10550:1;10543:15;10436:132;-1:-1:-1;10582:9:13;;10380:217::o;10728:545::-;10830:2;10825:3;10822:11;10819:448;;;10866:1;10891:5;10887:2;10880:17;10936:4;10932:2;10922:19;11006:2;10994:10;10990:19;10987:1;10983:27;10977:4;10973:38;11042:4;11030:10;11027:20;11024:47;;;-1:-1:-1;11065:4:13;11024:47;11120:2;11115:3;11111:12;11108:1;11104:20;11098:4;11094:31;11084:41;;11175:82;11193:2;11186:5;11183:13;11175:82;;;11238:17;;;11219:1;11208:13;11175:82;;11449:1352;11575:3;11569:10;-1:-1:-1;;;;;11594:6:13;11591:30;11588:56;;;11624:18;;:::i;:::-;11653:97;11743:6;11703:38;11735:4;11729:11;11703:38;:::i;:::-;11697:4;11653:97;:::i;:::-;11805:4;;11869:2;11858:14;;11886:1;11881:663;;;;12588:1;12605:6;12602:89;;;-1:-1:-1;12657:19:13;;;12651:26;12602:89;-1:-1:-1;;11406:1:13;11402:11;;;11398:24;11394:29;11384:40;11430:1;11426:11;;;11381:57;12704:81;;11851:944;;11881:663;10675:1;10668:14;;;10712:4;10699:18;;-1:-1:-1;;11917:20:13;;;12035:236;12049:7;12046:1;12043:14;12035:236;;;12138:19;;;12132:26;12117:42;;12230:27;;;;12198:1;12186:14;;;;12065:19;;12035:236;;;12039:3;12299:6;12290:7;12287:19;12284:201;;;12360:19;;;12354:26;-1:-1:-1;;12443:1:13;12439:14;;;12455:3;12435:24;12431:37;12427:42;12412:58;12397:74;;12284:201;-1:-1:-1;;;;;12531:1:13;12515:14;;;12511:22;12498:36;;-1:-1:-1;11449:1352:13:o;12806:125::-;12871:9;;;12892:10;;;12889:36;;;12905:18;;:::i;13170:496::-;13349:3;13387:6;13381:13;13403:66;13462:6;13457:3;13450:4;13442:6;13438:17;13403:66;:::i;:::-;13532:13;;13491:16;;;;13554:70;13532:13;13491:16;13601:4;13589:17;;13554:70;:::i;:::-;13640:20;;13170:496;-1:-1:-1;;;;13170:496:13:o;15204:489::-;-1:-1:-1;;;;;15473:15:13;;;15455:34;;15525:15;;15520:2;15505:18;;15498:43;15572:2;15557:18;;15550:34;;;15620:3;15615:2;15600:18;;15593:31;;;15398:4;;15641:46;;15667:19;;15659:6;15641:46;:::i;:::-;15633:54;15204:489;-1:-1:-1;;;;;;15204:489:13:o;15698:249::-;15767:6;15820:2;15808:9;15799:7;15795:23;15791:32;15788:52;;;15836:1;15833;15826:12;15788:52;15868:9;15862:16;15887:30;15911:5;15887:30;:::i;15952:127::-;16013:10;16008:3;16004:20;16001:1;15994:31;16044:4;16041:1;16034:15;16068:4;16065:1;16058:15;16084:135;16123:3;16144:17;;;16141:43;;16164:18;;:::i;:::-;-1:-1:-1;16211:1:13;16200:13;;16084:135::o
Swarm Source
ipfs://eb80d87a6eaef697b3839d9f7846386c31d2c76917edb6da87fa1893ef3dc23b
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.