ERC-721
Overview
Max Total Supply
3 BLUEPASS
Holders
3
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 BLUEPASSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AdidasBluePass
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; import "@openzeppelin/contracts/access/Ownable.sol"; import "./ERC721A.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; contract AdidasBluePass is ERC721A, ERC2981, Ownable { // Token name string private _name; // Token symbol string private _symbol; // Token symbol uint256 private _maxSupply; // Base uri string public baseUri = ""; // Blocking transactions bool private locked = false; // Authorized operators mapping(address => bool) public authorized; // Unique metadata per token bool public uniqueMetadata; constructor( string memory __name, string memory __symbol, string memory _baseUri, uint256 __maxSupply ) ERC721A(__name, __symbol) { _name = __name; _symbol = __symbol; _maxSupply = __maxSupply; baseUri = _baseUri; _setDefaultRoyalty(msg.sender, 0); } modifier onlyAuthorized() { require( authorized[msg.sender] || owner() == msg.sender, "Not authorized or owner" ); _; } function name() public view override returns (string memory) { return _name; } function symbol() public view override returns (string memory) { return _symbol; } function maxSupply() public view returns (uint256) { return _maxSupply; } function isLocked() public view returns (bool) { return locked; } function setNameAndSymbol( string calldata __name, string calldata __symbol ) public onlyOwner { _name = __name; _symbol = __symbol; } // baseURI function _baseURI() internal view virtual override returns (string memory) { return baseUri; } /** * @param _baseUri sets the new baseUri */ function setBaseUri(string calldata _baseUri) public onlyOwner { baseUri = _baseUri; } function setUniqueMetadata(bool status) public onlyOwner { uniqueMetadata = status; } /** * @param to array of destination addresses * @param value the amount of tokens to minted */ function mintMany( address[] calldata to, uint256[] calldata value ) external onlyOwner { require(to.length == value.length, "Mismatched lengths"); uint256 count = to.length; unchecked { for (uint256 i = 0; i < count; ) { // mint value amount for to address uint256 newMax = _totalMinted() + value[i]; require(_maxSupply >= newMax, "Max supply reached"); _mint(to[i], value[i]); i++; } } locked = true; } function tokenURI( uint256 tokenId ) public view override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory base = _baseURI(); if (uniqueMetadata) { return string(abi.encodePacked(base, _toString(tokenId), ".json")); } else { return base; } } // Interface Support function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC721A, ERC2981) returns (bool) { return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } /** * @param _locked enables/disables Transfers */ function setLocked(bool _locked) external { locked = _locked; } function setAuthorized(address addr, bool status) public onlyOwner { authorized[addr] = status; } function burn(uint256 tokenId) public { require( ownerOf(tokenId) == msg.sender, "Caller is not the token owner" ); _burn(tokenId); } function burnByOperator(uint256[] memory tokenIds) public onlyAuthorized { for (uint256 i = 0; i < tokenIds.length; i++) { _burn(tokenIds[i]); } } function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal override { if (!authorized[msg.sender]) { require(!locked, "This token is non-transferable"); } super._beforeTokenTransfers(from, to, startTokenId, quantity); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/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 // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/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 // 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 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 // 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 packed) { if (_startTokenId() <= tokenId) { packed = _packedOwnerships[tokenId]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= _currentIndex) revert OwnerQueryForNonexistentToken(); // 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, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = _packedOwnerships[--tokenId]; } if (packed == 0) continue; return packed; } } // Otherwise, the data exists and is not burned. We can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. 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. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve(address to, uint256 tokenId) public payable virtual override { _approve(to, tokenId, true); } /** * @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, ''); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @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: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck) if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // 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 // 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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "viaIR": true, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"__name","type":"string"},{"internalType":"string","name":"__symbol","type":"string"},{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"uint256","name":"__maxSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"authorized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"burnByOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"value","type":"uint256[]"}],"name":"mintMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"address","name":"addr","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setAuthorized","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_locked","type":"bool"}],"name":"setLocked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"__name","type":"string"},{"internalType":"string","name":"__symbol","type":"string"}],"name":"setNameAndSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setUniqueMetadata","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":[],"name":"uniqueMetadata","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
604060808152346200069b57620025f1803803806200001e81620006a0565b9283398101906080818303126200069b5780516001600160401b0392908381116200069b578162000051918401620006c6565b90602092838101518581116200069b57826200006f918301620006c6565b91868201518681116200069b576060916200008c918401620006c6565b91015191835192868411620002c357620000a860025462000738565b93601f9485811162000668575b508087868211600114620005fd57600091620005f1575b508160011b916000199060031b1c1916176002555b815191878311620002c357600392620000fb845462000738565b868111620005bf575b50808887821160011462000558576000916200054c575b508160011b9160001990861b1c19161783555b6000808055600a8054336001600160a01b03198216811790925590916001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3600e9562000189875462000738565b86811162000529575b506000875560ff19600f5416600f55805190898211620002c3578190620001bb600b5462000738565b8a898211620004f5575b5050899088831160011462000489576000926200047d575b50508160011b9160001990861b1c191617600b555b805190888211620002c35781906200020c600c5462000738565b8781116200044a575b508890878311600114620003de57600092620003d2575b50508160011b9160001990851b1c191617600c555b600d55815192868411620002c35783926200025d865462000738565b82811162000395575b508691841160011462000328576000936200031c575b50508260011b92600019911b1c19161790555b3315620002d957825180840192831181841017620002c357600092845233815201523360085551611e6290816200078f8239f35b634e487b7160e01b600052604160045260246000fd5b60649083519062461bcd60e51b82526004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152fd5b0151915038806200027c565b60008681528781209450601f198616905b888282106200037e5750509085600196959493921062000363575b50505050811b0190556200028f565b01519060f884600019921b161c191690553880808062000354565b600185978293968601518155019601930162000339565b620003c19087600052886000208480880160051c8201928b8910620003c8575b0160051c019062000775565b3862000266565b92508192620003b5565b0151905038806200022c565b600c60009081528a81209350601f198516905b8b828210620004335750509084600195949392106200041a575b505050811b01600c5562000241565b015160001983871b60f8161c191690553880806200040b565b6001859682939686015181550195019301620003f1565b6200047690600c6000528a6000208980860160051c8201928d8710620003c8570160051c019062000775565b3862000215565b015190503880620001dd565b600b60009081528b81209350601f198516905b8c828210620004de575050908460019594939210620004c5575b505050811b01600b55620001f2565b015160001983881b60f8161c19169055388080620004b6565b60018596829396860151815501950193016200049c565b6200052191600b6000528a826000209181870160051c8301938710620003c8570160051c019062000775565b388a620001c5565b620005459088600052878a600020910160051c81019062000775565b3862000192565b9050820151386200011b565b60008681528a81209250601f198416905b8b828210620005a857505090836001949392106200058f575b5050811b0183556200012e565b84015160001983881b60f8161c19169055388062000582565b600184958293958901518155019401920162000569565b620005ea9085600052896000208880850160051c8201928c8610620003c8570160051c019062000775565b3862000104565b905086015138620000cc565b600260009081528981209250601f198416905b8a82821062000651575050908360019493921062000637575b5050811b01600255620000e1565b88015160001960f88460031b161c19169055388062000629565b600184958293958d01518155019401920162000610565b62000694906002600052886000208780850160051c8201928b8610620003c8570160051c019062000775565b38620000b5565b600080fd5b6040519190601f01601f191682016001600160401b03811183821017620002c357604052565b919080601f840112156200069b5782516001600160401b038111620002c357602090620006fc601f8201601f19168301620006a0565b928184528282870101116200069b5760005b8181106200072457508260009394955001015290565b85810183015184820184015282016200070e565b90600182811c921680156200076a575b60208310146200075457565b634e487b7160e01b600052602260045260246000fd5b91607f169162000748565b81811062000781575050565b600081556001016200077556fe6080604052600436101561001257600080fd5b60003560e01c806301ffc9a71461020757806306fdde0314610202578063081812fc146101fd578063095ea7b3146101f857806318160ddd146101f3578063211e28b6146101ee57806323b872dd146101e95780632a55205a146101e45780634029a3ce146101df57806342842e0e146101da57806342966c68146101d55780635a446215146101d05780636352211e146101cb5780636e361c59146101c657806370a08231146101c1578063711bf9b2146101bc578063715018a6146101b75780638da5cb5b146101b257806395d89b41146101ad5780639abc8320146101a8578063a0bcfc7f146101a3578063a22cb4651461019e578063a4e2d63414610199578063a552d0bf14610194578063b88d4fde1461018f578063b91816111461018a578063c87b56dd14610185578063d5abeb0114610180578063e985e9c51461017b578063f0d5ee1a146101765763f2fde38b1461017157600080fd5b611286565b611263565b6111fb565b6111dd565b6111be565b61117c565b6110f1565b611050565b61102d565b610f8d565b610e73565b610e43565b610c52565b610c29565b610bcb565b610b74565b610b15565b610adf565b610ab0565b610979565b6107e5565b6107ac565b6106aa565b6105e6565b6105d2565b610578565b610537565b610463565b6103fe565b610319565b610223565b6001600160e01b031981160361021e57565b600080fd5b3461021e57602036600319011261021e5760206004356102428161020c565b63ffffffff60e01b166301ffc9a760e01b811490819082156102ac575b821561029b575b8215610279575b50506040519015158152f35b63152a902d60e11b1491508115610293575b50388061026d565b90503861028b565b635b5e139f60e01b81149250610266565b6380ac58cd60e01b8114925061025f565b60005b8381106102d05750506000910152565b81810151838201526020016102c0565b906020916102f9815180928185528580860191016102bd565b601f01601f1916010190565b9060206103169281815201906102e0565b90565b3461021e576000806003193601126103fb576040519080600b5461033c81610cf9565b808552916001918083169081156103d15750600114610376575b6103728561036681870382610d64565b60405191829182610305565b0390f35b9250600b83527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db95b8284106103b957505050810160200161036682610372610356565b8054602085870181019190915290930192810161039e565b8695506103729693506020925061036694915060ff191682840152151560051b8201019293610356565b80fd5b3461021e57602036600319011261021e5760043561041b8161199a565b15610440576000526006602052602060018060a01b0360406000205416604051908152f35b6040516333d1c03960e21b8152600490fd5b6001600160a01b0381160361021e57565b604036600319011261021e5760043561047b81610452565b6001600160a01b0390602435908261049283611918565b168033036104e6575b600093838552600660205260408520921691826001600160601b0360a01b8254161790557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b60ff61051f336105088460018060a01b03166000526007602052604060002090565b9060018060a01b0316600052602052604060002090565b541661049b576040516367d9dca160e11b8152600490fd5b3461021e57600036600319011261021e5760206000546001549003604051908152f35b60043590811515820361021e57565b60243590811515820361021e57565b3461021e57602036600319011261021e5761059161055a565b151560ff8019600f5416911617600f55600080f35b606090600319011261021e576004356105be81610452565b906024356105cb81610452565b9060443590565b6105e46105de366105a6565b916119c3565b005b3461021e57604036600319011261021e57602435600435600052600960205261061260406000206113cc565b80519091906001600160a01b03161561066a575b6001600160601b0360208301511690818102918183041490151715610665579051604080516001600160a01b0390921682526127109092046020820152f35b6113f1565b90506106746113a6565b90610626565b9181601f8401121561021e578235916001600160401b03831161021e576020808501948460051b01011161021e57565b3461021e57604036600319011261021e576001600160401b0360043581811161021e576106db90369060040161067a565b9160243590811161021e576106f490369060040161067a565b6106fc61134e565b80840361077257600093845b8181106107255785610722600160ff19600f541617600f55565b80f35b6001906107448754610738838789611637565b3501600d54101561165d565b61076c61075a61075583868a611637565b61169e565b610765838789611637565b3590611d41565b01610708565b60405162461bcd60e51b81526020600482015260126024820152714d69736d617463686564206c656e6774687360701b6044820152606490fd5b6107b5366105a6565b6040519160208301938385106001600160401b038611176107e0576105e49460405260008452611bde565b610d33565b3461021e57602036600319011261021e576004356001600160a01b038061080b83611918565b1633036109075760009061081e83611918565b600084815260066020526040902080549282169261083a611b74565b6108fe575b506001600160a01b038216600090815260056020526040902080546001600160801b0301905560008481526004602052604090204260a01b8317600360e01b179055600160e11b8116156108b5575b50600080516020611e0d8339815191528280a46105e46108b060015460010190565b600155565b600184016108cd816000526004602052604060002090565b54156108da575b5061088e565b835481146108d4576108f6906000526004602052604060002090565b5538806108d4565b8390553861083f565b60405162461bcd60e51b815260206004820152601d60248201527f43616c6c6572206973206e6f742074686520746f6b656e206f776e65720000006044820152606490fd5b9181601f8401121561021e578235916001600160401b03831161021e576020838186019501011161021e57565b3461021e57604036600319011261021e576001600160401b0360043581811161021e576109aa90369060040161094c565b9160243581811161021e576109c390369060040161094c565b9290916109ce61134e565b84116107e0576109e8846109e3600b54610cf9565b611407565b600090601f8511600114610a29576105e4949160009183610a1e575b50508160011b916000199060031b1c191617600b5561155a565b013590503880610a04565b600b6000527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db991601f198616815b818110610a9857509160019391876105e4989410610a7e575b505050811b01600b5561155a565b0135600019600384901b60f8161c19169055388080610a70565b91936020600181928787013581550195019201610a57565b3461021e57602036600319011261021e5760206001600160a01b03610ad6600435611918565b16604051908152f35b3461021e57602036600319011261021e57610af861055a565b610b0061134e565b60ff8019601154169115151617601155600080f35b3461021e57602036600319011261021e57600435610b3281610452565b6001600160a01b03168015610b6257600052600560205260206001600160401b0360406000205416604051908152f35b6040516323d3ad8160e21b8152600490fd5b3461021e57604036600319011261021e576105e4600435610b9481610452565b610b9c610569565b90610ba561134e565b60018060a01b0316600052601060205260406000209060ff801983541691151516179055565b3461021e576000806003193601126103fb57610be561134e565b600a80546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b3461021e57600036600319011261021e57600a546040516001600160a01b039091168152602090f35b3461021e576000806003193601126103fb576040519080600c54610c7581610cf9565b808552916001918083169081156103d15750600114610c9e576103728561036681870382610d64565b9250600c83527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c75b828410610ce157505050810160200161036682610372610356565b80546020858701810191909152909301928101610cc6565b90600182811c92168015610d29575b6020831014610d1357565b634e487b7160e01b600052602260045260246000fd5b91607f1691610d08565b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b038211176107e057604052565b90601f801991011681019081106001600160401b038211176107e057604052565b60405190600082600e5491610d9983610cf9565b80835292600190818116908115610e215750600114610dc2575b50610dc092500383610d64565b565b600e600090815291507fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd5b848310610e065750610dc0935050810160200138610db3565b81935090816020925483858a01015201910190918592610ded565b905060209250610dc094915060ff191682840152151560051b82010138610db3565b3461021e57600036600319011261021e57610372610e5f610d85565b6040519182916020835260208301906102e0565b3461021e5760208060031936011261021e576001600160401b0360043581811161021e57610ea590369060040161094c565b91610eae61134e565b82116107e057610ec882610ec3600e54610cf9565b611478565b600092601f8311600114610f065750918192600092610efb575b5050600019600383901b1c191660019190911b17600e55005b013590503880610ee2565b90601f19831693610f39600e6000527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd90565b9281905b868210610f755750508360019510610f5b575b505050811b01600e55005b0135600019600384901b60f8161c19169055388080610f50565b80600184968294958701358155019501920190610f3d565b3461021e57604036600319011261021e57600435610faa81610452565b610fb2610569565b90336000526007602052610ff182610fe08360406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b60405191151582526001600160a01b03169033907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190602090a3005b3461021e57600036600319011261021e57602060ff600f54166040519015158152f35b3461021e5760208060031936011261021e576001600160401b0360043581811161021e573660238201121561021e5780600401359182116107e0578160051b6040519261109f85830185610d64565b83526024848401918301019136831161021e57602401905b8282106110c7576105e484611777565b813581529084019084016110b7565b6001600160401b0381116107e057601f01601f191660200190565b608036600319011261021e5760043561110981610452565b60243561111581610452565b606435916001600160401b03831161021e573660238401121561021e57826004013591611141836110d6565b9261114f6040519485610d64565b808452366024828701011161021e5760208160009260246105e49801838801378501015260443591611bde565b3461021e57602036600319011261021e5760043561119981610452565b60018060a01b03166000526010602052602060ff604060002054166040519015158152f35b3461021e57602036600319011261021e57610372610e5f6004356116bf565b3461021e57600036600319011261021e576020600d54604051908152f35b3461021e57604036600319011261021e57602060ff61125760043561121f81610452565b6024359061122c82610452565b60018060a01b03166000526007845260406000209060018060a01b0316600052602052604060002090565b54166040519015158152f35b3461021e57600036600319011261021e57602060ff601154166040519015158152f35b3461021e57602036600319011261021e576004356112a381610452565b6112ab61134e565b6001600160a01b039081169081156112fa57600a54826001600160601b0360a01b821617600a55167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b600a546001600160a01b0316330361136257565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b604051906113b382610d49565b6008546001600160a01b038116835260a01c6020830152565b906040516113d981610d49565b91546001600160a01b038116835260a01c6020830152565b634e487b7160e01b600052601160045260246000fd5b601f8111611413575050565b600090600b82527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9906020601f850160051c8301941061146e575b601f0160051c01915b82811061146357505050565b818155600101611457565b909250829061144e565b601f8111611484575050565b600090600e82527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd906020601f850160051c830194106114df575b601f0160051c01915b8281106114d457505050565b8181556001016114c8565b90925082906114bf565b601f81116114f5575050565b600090600c82527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7906020601f850160051c83019410611550575b601f0160051c01915b82811061154557505050565b818155600101611539565b9092508290611530565b91906001600160401b0381116107e05761157e81611579600c54610cf9565b6114e9565b6000601f82116001146115b8578192936000926115ad575b50508160011b916000199060031b1c191617600c55565b013590503880611596565b600c600052601f198216937fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c791805b86811061161f5750836001959610611605575b505050811b01600c55565b0135600019600384901b60f8161c191690553880806115fa565b909260206001819286860135815501940191016115e7565b91908110156116475760051b0190565b634e487b7160e01b600052603260045260246000fd5b1561166457565b60405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b6044820152606490fd5b3561031681610452565b906116bb602092828151948592016102bd565b0190565b6116c88161199a565b15611765576116d5610d85565b9060ff60115416600014611761576040519060a08201604052608082019060008252905b6000190190600a9060308282060183530490816116f957905061173e92611755611744610316946080601f1995868101920301815260405196879460208601906116a8565b906116a8565b64173539b7b760d91b815260050190565b03908101835282610d64565b5090565b604051630a14c4b560e41b8152600490fd5b90600033815260206010815260ff6040832054168015611904575b156118c05791924260a01b9290825b81518110156118b957828160051b83010151846117bd82611918565b600083815260066020526040902080546001600160a01b038316929184916117e3611b74565b6118b1575b50506001600160a01b038216600090815260056020526040902080546001600160801b030190556000848152600460205260409020828a17600360e01b179055600160e11b811615611868575b50600080516020611e0d8339815191528280a46118576108b060015460010190565b6000198114610665576001016117a1565b60018401611880816000526004602052604060002090565b541561188d575b50611835565b83548114611887576118a9906000526004602052604060002090565b553880611887565b5582386117e8565b5050505050565b6064906040519062461bcd60e51b82526004820152601760248201527f4e6f7420617574686f72697a6564206f72206f776e65720000000000000000006044820152fd5b50600a546001600160a01b03163314611792565b61192c816000526004602052604060002090565b5490600160e01b82161561194c57604051636f96cda160e11b8152600490fd5b8115611956575090565b9050600054811015611988575b60001901600081815260046020526040902054908115611981575090565b9050611963565b604051636f96cda160e11b8152600490fd5b600054811090816119a9575090565b90506000526004602052600160e01b604060002054161590565b906119cd83611918565b6001600160a01b0383811692828216849003611b6357600086815260066020526040902080549092611a126001600160a01b03881633908114908414171590565b1590565b611b1f575b8216958615611b0d57611a7293611a5092611a30611b74565b611b03575b506001600160a01b0316600090815260056020526040902090565b80546000190190556001600160a01b0316600090815260056020526040902090565b80546001019055600160e11b804260a01b851717611a9a866000526004602052604060002090565b55811615611ab9575b50600080516020611e0d833981519152600080a4565b60018401611ad1816000526004602052604060002090565b5415611ade575b50611aa3565b6000548114611ad857611afb906000526004602052604060002090565b553880611ad8565b6000905538611a35565b604051633a954ecd60e21b8152600490fd5b611b4c611a0e611b45336105088b60018060a01b03166000526007602052604060002090565b5460ff1690565b15611a1757604051632ce44b5f60e11b8152600490fd5b60405162a1148160e81b8152600490fd5b33600052601060205260ff6040600020541615611b8d57565b60ff600f5416611b9957565b60405162461bcd60e51b815260206004820152601e60248201527f5468697320746f6b656e206973206e6f6e2d7472616e7366657261626c6500006044820152606490fd5b929190611bec8282866119c3565b803b611bf9575b50505050565b611c0293611c98565b15611c105738808080611bf3565b6040516368d2bf6b60e11b8152600490fd5b9081602091031261021e57516103168161020c565b6001600160a01b039182168152911660208201526040810191909152608060608201819052610316929101906102e0565b3d15611c93573d90611c79826110d6565b91611c876040519384610d64565b82523d6000602084013e565b606090565b92602091611cc1936000604051809681958294630a85bd0160e11b9a8b85523360048601611c37565b03926001600160a01b03165af160009181611d11575b50611d0357611ce4611c68565b80519081611cfe576040516368d2bf6b60e11b8152600490fd5b602001fd5b6001600160e01b0319161490565b611d3391925060203d8111611d3a575b611d2b8183610d64565b810190611c22565b9038611cd7565b503d611d21565b906000908154928115611dfa57611d56611b74565b6001600160a01b0381166000908152600560205260409020805468010000000000000001840201905560008481526004602052604090206001600160a01b03909116916001914260a01b83831460e11b178417905584019381600080516020611e0d83398151915291808587858180a4015b858103611deb5750505015611dda5755565b604051622e076360e81b8152600490fd5b8083918587858180a401611dc8565b60405163b562e8dd60e01b8152600490fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122062d7f0114090fe1df3d1c729fe62a1e3380146f8e9129a946cece85804dd380d64736f6c63430008130033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000e416469646173426c7565506173730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008424c5545504153530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d634335354334676a695044626a4b76455663566a5a747347376a766a464a384436716968764e6959666f69452f00000000000000000000
Deployed Bytecode
0x6080604052600436101561001257600080fd5b60003560e01c806301ffc9a71461020757806306fdde0314610202578063081812fc146101fd578063095ea7b3146101f857806318160ddd146101f3578063211e28b6146101ee57806323b872dd146101e95780632a55205a146101e45780634029a3ce146101df57806342842e0e146101da57806342966c68146101d55780635a446215146101d05780636352211e146101cb5780636e361c59146101c657806370a08231146101c1578063711bf9b2146101bc578063715018a6146101b75780638da5cb5b146101b257806395d89b41146101ad5780639abc8320146101a8578063a0bcfc7f146101a3578063a22cb4651461019e578063a4e2d63414610199578063a552d0bf14610194578063b88d4fde1461018f578063b91816111461018a578063c87b56dd14610185578063d5abeb0114610180578063e985e9c51461017b578063f0d5ee1a146101765763f2fde38b1461017157600080fd5b611286565b611263565b6111fb565b6111dd565b6111be565b61117c565b6110f1565b611050565b61102d565b610f8d565b610e73565b610e43565b610c52565b610c29565b610bcb565b610b74565b610b15565b610adf565b610ab0565b610979565b6107e5565b6107ac565b6106aa565b6105e6565b6105d2565b610578565b610537565b610463565b6103fe565b610319565b610223565b6001600160e01b031981160361021e57565b600080fd5b3461021e57602036600319011261021e5760206004356102428161020c565b63ffffffff60e01b166301ffc9a760e01b811490819082156102ac575b821561029b575b8215610279575b50506040519015158152f35b63152a902d60e11b1491508115610293575b50388061026d565b90503861028b565b635b5e139f60e01b81149250610266565b6380ac58cd60e01b8114925061025f565b60005b8381106102d05750506000910152565b81810151838201526020016102c0565b906020916102f9815180928185528580860191016102bd565b601f01601f1916010190565b9060206103169281815201906102e0565b90565b3461021e576000806003193601126103fb576040519080600b5461033c81610cf9565b808552916001918083169081156103d15750600114610376575b6103728561036681870382610d64565b60405191829182610305565b0390f35b9250600b83527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db95b8284106103b957505050810160200161036682610372610356565b8054602085870181019190915290930192810161039e565b8695506103729693506020925061036694915060ff191682840152151560051b8201019293610356565b80fd5b3461021e57602036600319011261021e5760043561041b8161199a565b15610440576000526006602052602060018060a01b0360406000205416604051908152f35b6040516333d1c03960e21b8152600490fd5b6001600160a01b0381160361021e57565b604036600319011261021e5760043561047b81610452565b6001600160a01b0390602435908261049283611918565b168033036104e6575b600093838552600660205260408520921691826001600160601b0360a01b8254161790557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b60ff61051f336105088460018060a01b03166000526007602052604060002090565b9060018060a01b0316600052602052604060002090565b541661049b576040516367d9dca160e11b8152600490fd5b3461021e57600036600319011261021e5760206000546001549003604051908152f35b60043590811515820361021e57565b60243590811515820361021e57565b3461021e57602036600319011261021e5761059161055a565b151560ff8019600f5416911617600f55600080f35b606090600319011261021e576004356105be81610452565b906024356105cb81610452565b9060443590565b6105e46105de366105a6565b916119c3565b005b3461021e57604036600319011261021e57602435600435600052600960205261061260406000206113cc565b80519091906001600160a01b03161561066a575b6001600160601b0360208301511690818102918183041490151715610665579051604080516001600160a01b0390921682526127109092046020820152f35b6113f1565b90506106746113a6565b90610626565b9181601f8401121561021e578235916001600160401b03831161021e576020808501948460051b01011161021e57565b3461021e57604036600319011261021e576001600160401b0360043581811161021e576106db90369060040161067a565b9160243590811161021e576106f490369060040161067a565b6106fc61134e565b80840361077257600093845b8181106107255785610722600160ff19600f541617600f55565b80f35b6001906107448754610738838789611637565b3501600d54101561165d565b61076c61075a61075583868a611637565b61169e565b610765838789611637565b3590611d41565b01610708565b60405162461bcd60e51b81526020600482015260126024820152714d69736d617463686564206c656e6774687360701b6044820152606490fd5b6107b5366105a6565b6040519160208301938385106001600160401b038611176107e0576105e49460405260008452611bde565b610d33565b3461021e57602036600319011261021e576004356001600160a01b038061080b83611918565b1633036109075760009061081e83611918565b600084815260066020526040902080549282169261083a611b74565b6108fe575b506001600160a01b038216600090815260056020526040902080546001600160801b0301905560008481526004602052604090204260a01b8317600360e01b179055600160e11b8116156108b5575b50600080516020611e0d8339815191528280a46105e46108b060015460010190565b600155565b600184016108cd816000526004602052604060002090565b54156108da575b5061088e565b835481146108d4576108f6906000526004602052604060002090565b5538806108d4565b8390553861083f565b60405162461bcd60e51b815260206004820152601d60248201527f43616c6c6572206973206e6f742074686520746f6b656e206f776e65720000006044820152606490fd5b9181601f8401121561021e578235916001600160401b03831161021e576020838186019501011161021e57565b3461021e57604036600319011261021e576001600160401b0360043581811161021e576109aa90369060040161094c565b9160243581811161021e576109c390369060040161094c565b9290916109ce61134e565b84116107e0576109e8846109e3600b54610cf9565b611407565b600090601f8511600114610a29576105e4949160009183610a1e575b50508160011b916000199060031b1c191617600b5561155a565b013590503880610a04565b600b6000527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db991601f198616815b818110610a9857509160019391876105e4989410610a7e575b505050811b01600b5561155a565b0135600019600384901b60f8161c19169055388080610a70565b91936020600181928787013581550195019201610a57565b3461021e57602036600319011261021e5760206001600160a01b03610ad6600435611918565b16604051908152f35b3461021e57602036600319011261021e57610af861055a565b610b0061134e565b60ff8019601154169115151617601155600080f35b3461021e57602036600319011261021e57600435610b3281610452565b6001600160a01b03168015610b6257600052600560205260206001600160401b0360406000205416604051908152f35b6040516323d3ad8160e21b8152600490fd5b3461021e57604036600319011261021e576105e4600435610b9481610452565b610b9c610569565b90610ba561134e565b60018060a01b0316600052601060205260406000209060ff801983541691151516179055565b3461021e576000806003193601126103fb57610be561134e565b600a80546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b3461021e57600036600319011261021e57600a546040516001600160a01b039091168152602090f35b3461021e576000806003193601126103fb576040519080600c54610c7581610cf9565b808552916001918083169081156103d15750600114610c9e576103728561036681870382610d64565b9250600c83527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c75b828410610ce157505050810160200161036682610372610356565b80546020858701810191909152909301928101610cc6565b90600182811c92168015610d29575b6020831014610d1357565b634e487b7160e01b600052602260045260246000fd5b91607f1691610d08565b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b038211176107e057604052565b90601f801991011681019081106001600160401b038211176107e057604052565b60405190600082600e5491610d9983610cf9565b80835292600190818116908115610e215750600114610dc2575b50610dc092500383610d64565b565b600e600090815291507fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd5b848310610e065750610dc0935050810160200138610db3565b81935090816020925483858a01015201910190918592610ded565b905060209250610dc094915060ff191682840152151560051b82010138610db3565b3461021e57600036600319011261021e57610372610e5f610d85565b6040519182916020835260208301906102e0565b3461021e5760208060031936011261021e576001600160401b0360043581811161021e57610ea590369060040161094c565b91610eae61134e565b82116107e057610ec882610ec3600e54610cf9565b611478565b600092601f8311600114610f065750918192600092610efb575b5050600019600383901b1c191660019190911b17600e55005b013590503880610ee2565b90601f19831693610f39600e6000527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd90565b9281905b868210610f755750508360019510610f5b575b505050811b01600e55005b0135600019600384901b60f8161c19169055388080610f50565b80600184968294958701358155019501920190610f3d565b3461021e57604036600319011261021e57600435610faa81610452565b610fb2610569565b90336000526007602052610ff182610fe08360406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b60405191151582526001600160a01b03169033907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190602090a3005b3461021e57600036600319011261021e57602060ff600f54166040519015158152f35b3461021e5760208060031936011261021e576001600160401b0360043581811161021e573660238201121561021e5780600401359182116107e0578160051b6040519261109f85830185610d64565b83526024848401918301019136831161021e57602401905b8282106110c7576105e484611777565b813581529084019084016110b7565b6001600160401b0381116107e057601f01601f191660200190565b608036600319011261021e5760043561110981610452565b60243561111581610452565b606435916001600160401b03831161021e573660238401121561021e57826004013591611141836110d6565b9261114f6040519485610d64565b808452366024828701011161021e5760208160009260246105e49801838801378501015260443591611bde565b3461021e57602036600319011261021e5760043561119981610452565b60018060a01b03166000526010602052602060ff604060002054166040519015158152f35b3461021e57602036600319011261021e57610372610e5f6004356116bf565b3461021e57600036600319011261021e576020600d54604051908152f35b3461021e57604036600319011261021e57602060ff61125760043561121f81610452565b6024359061122c82610452565b60018060a01b03166000526007845260406000209060018060a01b0316600052602052604060002090565b54166040519015158152f35b3461021e57600036600319011261021e57602060ff601154166040519015158152f35b3461021e57602036600319011261021e576004356112a381610452565b6112ab61134e565b6001600160a01b039081169081156112fa57600a54826001600160601b0360a01b821617600a55167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b600a546001600160a01b0316330361136257565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b604051906113b382610d49565b6008546001600160a01b038116835260a01c6020830152565b906040516113d981610d49565b91546001600160a01b038116835260a01c6020830152565b634e487b7160e01b600052601160045260246000fd5b601f8111611413575050565b600090600b82527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9906020601f850160051c8301941061146e575b601f0160051c01915b82811061146357505050565b818155600101611457565b909250829061144e565b601f8111611484575050565b600090600e82527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd906020601f850160051c830194106114df575b601f0160051c01915b8281106114d457505050565b8181556001016114c8565b90925082906114bf565b601f81116114f5575050565b600090600c82527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7906020601f850160051c83019410611550575b601f0160051c01915b82811061154557505050565b818155600101611539565b9092508290611530565b91906001600160401b0381116107e05761157e81611579600c54610cf9565b6114e9565b6000601f82116001146115b8578192936000926115ad575b50508160011b916000199060031b1c191617600c55565b013590503880611596565b600c600052601f198216937fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c791805b86811061161f5750836001959610611605575b505050811b01600c55565b0135600019600384901b60f8161c191690553880806115fa565b909260206001819286860135815501940191016115e7565b91908110156116475760051b0190565b634e487b7160e01b600052603260045260246000fd5b1561166457565b60405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b6044820152606490fd5b3561031681610452565b906116bb602092828151948592016102bd565b0190565b6116c88161199a565b15611765576116d5610d85565b9060ff60115416600014611761576040519060a08201604052608082019060008252905b6000190190600a9060308282060183530490816116f957905061173e92611755611744610316946080601f1995868101920301815260405196879460208601906116a8565b906116a8565b64173539b7b760d91b815260050190565b03908101835282610d64565b5090565b604051630a14c4b560e41b8152600490fd5b90600033815260206010815260ff6040832054168015611904575b156118c05791924260a01b9290825b81518110156118b957828160051b83010151846117bd82611918565b600083815260066020526040902080546001600160a01b038316929184916117e3611b74565b6118b1575b50506001600160a01b038216600090815260056020526040902080546001600160801b030190556000848152600460205260409020828a17600360e01b179055600160e11b811615611868575b50600080516020611e0d8339815191528280a46118576108b060015460010190565b6000198114610665576001016117a1565b60018401611880816000526004602052604060002090565b541561188d575b50611835565b83548114611887576118a9906000526004602052604060002090565b553880611887565b5582386117e8565b5050505050565b6064906040519062461bcd60e51b82526004820152601760248201527f4e6f7420617574686f72697a6564206f72206f776e65720000000000000000006044820152fd5b50600a546001600160a01b03163314611792565b61192c816000526004602052604060002090565b5490600160e01b82161561194c57604051636f96cda160e11b8152600490fd5b8115611956575090565b9050600054811015611988575b60001901600081815260046020526040902054908115611981575090565b9050611963565b604051636f96cda160e11b8152600490fd5b600054811090816119a9575090565b90506000526004602052600160e01b604060002054161590565b906119cd83611918565b6001600160a01b0383811692828216849003611b6357600086815260066020526040902080549092611a126001600160a01b03881633908114908414171590565b1590565b611b1f575b8216958615611b0d57611a7293611a5092611a30611b74565b611b03575b506001600160a01b0316600090815260056020526040902090565b80546000190190556001600160a01b0316600090815260056020526040902090565b80546001019055600160e11b804260a01b851717611a9a866000526004602052604060002090565b55811615611ab9575b50600080516020611e0d833981519152600080a4565b60018401611ad1816000526004602052604060002090565b5415611ade575b50611aa3565b6000548114611ad857611afb906000526004602052604060002090565b553880611ad8565b6000905538611a35565b604051633a954ecd60e21b8152600490fd5b611b4c611a0e611b45336105088b60018060a01b03166000526007602052604060002090565b5460ff1690565b15611a1757604051632ce44b5f60e11b8152600490fd5b60405162a1148160e81b8152600490fd5b33600052601060205260ff6040600020541615611b8d57565b60ff600f5416611b9957565b60405162461bcd60e51b815260206004820152601e60248201527f5468697320746f6b656e206973206e6f6e2d7472616e7366657261626c6500006044820152606490fd5b929190611bec8282866119c3565b803b611bf9575b50505050565b611c0293611c98565b15611c105738808080611bf3565b6040516368d2bf6b60e11b8152600490fd5b9081602091031261021e57516103168161020c565b6001600160a01b039182168152911660208201526040810191909152608060608201819052610316929101906102e0565b3d15611c93573d90611c79826110d6565b91611c876040519384610d64565b82523d6000602084013e565b606090565b92602091611cc1936000604051809681958294630a85bd0160e11b9a8b85523360048601611c37565b03926001600160a01b03165af160009181611d11575b50611d0357611ce4611c68565b80519081611cfe576040516368d2bf6b60e11b8152600490fd5b602001fd5b6001600160e01b0319161490565b611d3391925060203d8111611d3a575b611d2b8183610d64565b810190611c22565b9038611cd7565b503d611d21565b906000908154928115611dfa57611d56611b74565b6001600160a01b0381166000908152600560205260409020805468010000000000000001840201905560008481526004602052604090206001600160a01b03909116916001914260a01b83831460e11b178417905584019381600080516020611e0d83398151915291808587858180a4015b858103611deb5750505015611dda5755565b604051622e076360e81b8152600490fd5b8083918587858180a401611dc8565b60405163b562e8dd60e01b8152600490fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122062d7f0114090fe1df3d1c729fe62a1e3380146f8e9129a946cece85804dd380d64736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000e416469646173426c7565506173730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008424c5545504153530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d634335354334676a695044626a4b76455663566a5a747347376a766a464a384436716968764e6959666f69452f00000000000000000000
-----Decoded View---------------
Arg [0] : __name (string): AdidasBluePass
Arg [1] : __symbol (string): BLUEPASS
Arg [2] : _baseUri (string): ipfs://QmcC55C4gjiPDbjKvEVcVjZtsG7jvjFJ8D6qihvNiYfoiE/
Arg [3] : __maxSupply (uint256): 20
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [5] : 416469646173426c756550617373000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [7] : 424c554550415353000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [9] : 697066733a2f2f516d634335354334676a695044626a4b76455663566a5a7473
Arg [10] : 47376a766a464a384436716968764e6959666f69452f00000000000000000000
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.