ERC-721
Overview
Max Total Supply
100 ABFF
Holders
82
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 ABFFLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AdidasBapeFreshForum
Compiler Version
v0.8.21+commit.d9974bed
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.21; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "erc721a/contracts/extensions/ERC721ABurnable.sol"; import "erc721a/contracts/extensions/ERC721AQueryable.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; interface IERC1155Migration { function burn(address account, uint256 id, uint256 value) external; } /** * @title AdidasBapeFreshForum * @notice This contract enables adidas x BAPE® auction winners to mint their digital twin and claim the physical product * @dev Uses ERC721A, enables one mint per ERC1155, one at a time to support physical claim logic */ contract AdidasBapeFreshForum is ERC721ABurnable, ERC721AQueryable, ERC2981, Ownable, Pausable { /// @dev Metadata base URI string public baseUri; /// @dev Token name string private _name; /// @dev Token symbol string private _symbol; /// @dev 1155 contract IERC1155Migration public erc1155; /// @dev contractURI string private _contractURI; /// @dev mapping of tokenIds to sizes mapping(uint256 => uint256) private _tokenSizes; constructor( string memory __name, string memory __symbol, address _ERC1155address, string memory _baseUri, string memory _uri, address _royaltyReceiver, uint96 _royaltyValue ) ERC721A(__name, __symbol) { _name = __name; _symbol = __symbol; erc1155 = IERC1155Migration(_ERC1155address); baseUri = _baseUri; _contractURI = _uri; _setDefaultRoyalty(_royaltyReceiver, _royaltyValue); } /** * @notice Returns the name of the ERC721 token. * @return The name of the token. */ function name() public view virtual override(ERC721A, IERC721A) returns (string memory) { return _name; } /** * @notice Returns the symbol of the ERC721 token. * @return The symbol of the token. */ function symbol() public view virtual override(ERC721A, IERC721A) returns (string memory) { return _symbol; } /** * @notice Allows the owner to change the name and symbol of the ERC721 token. * @dev Only callable by the owner. * @param newName The new name for the token. * @param newSymbol The new symbol for the token. */ function setNameAndSymbol(string calldata newName, string calldata newSymbol) public onlyOwner { _name = newName; _symbol = newSymbol; } /** * @notice Returns the base URI for the token's metadata. * @return The current base URI. */ function _baseURI() internal view virtual override returns (string memory) { return baseUri; } /** * @notice Changes the base URI for the token metadata. * @dev Only callable by the owner. * @param _baseUri The new base URI. */ function setBaseUri(string calldata _baseUri) public onlyOwner { baseUri = _baseUri; } /** * @notice Returns the contract's metadata URI. * @return The URI of the contract. */ function contractURI() public view returns (string memory) { return _contractURI; } /** * @notice Changes the contract's URI. * @dev Only callable by the owner. * @param newContractURI The new contract URI. */ function setContractUri(string calldata newContractURI) public onlyOwner { _contractURI = newContractURI; } /** * @notice Burns an ERC1155 access pass and mints an ERC721 digital twin. * @dev Only callable when contract is not paused. * @param size The size (or id) of the ERC1155 token to be burned. */ function burnAndMint(uint256 size) external whenNotPaused { erc1155.burn(msg.sender, size, 1); _mint(msg.sender, 1); uint256 mintedTokenId = _totalMinted(); _tokenSizes[mintedTokenId] = size; } /** * @notice Mints multiple ERC721 tokens. * @dev Only callable by the owner. * @param to An array of addresses to mint the tokens to. * @param sizes An array of sizes (or ids) corresponding to each minted token. */ function mintMany(address[] calldata to, uint256[] calldata sizes) external onlyOwner { uint256 count = to.length; require(count == sizes.length, "Mismatched lengths"); unchecked { for (uint256 i = 0; i < count; i++) { _mint(to[i], 1); uint256 mintedTokenId = _totalMinted(); _tokenSizes[mintedTokenId] = sizes[i]; } } } /** * @notice Retrieves the sizes (or ids) of multiple ERC721 tokens. * @param tokenIds An array of tokenIds to retrieve sizes for. * @return sizes An array of sizes corresponding to the given tokenIds. */ function getTokenSizes(uint256[] calldata tokenIds) external view returns (uint256[] memory) { uint256[] memory sizes = new uint256[](tokenIds.length); unchecked { for (uint256 i = 0; i < tokenIds.length; i++) { sizes[i] = _tokenSizes[tokenIds[i]]; } } return sizes; } /** * @notice Checks if the contract supports a given interface. * @dev Overrides supportsInterface from multiple inherited contracts. * @param interfaceId The id of the interface to check. * @return bool True if the interface is supported, false otherwise. */ function supportsInterface( bytes4 interfaceId ) public view virtual override(IERC721A, ERC721A, ERC2981) returns (bool) { // Supports the following `interfaceId`s: // - IERC165: 0x01ffc9a7 // - IERC721: 0x80ac58cd // - IERC721Metadata: 0x5b5e139f // - IERC2981: 0x2a55205a return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } function _startTokenId() internal pure override returns (uint256) { return 1; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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.9.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) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721ABurnable.sol'; import '../ERC721A.sol'; /** * @title ERC721ABurnable. * * @dev ERC721A token that can be irreversibly burned (destroyed). */ abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual override { _burn(tokenId, true); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import '../ERC721A.sol'; /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC721ABurnable. */ interface IERC721ABurnable is IERC721A { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) external; }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// 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":"address","name":"_ERC1155address","type":"address"},{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"address","name":"_royaltyReceiver","type":"address"},{"internalType":"uint96","name":"_royaltyValue","type":"uint96"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","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":"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":"size","type":"uint256"}],"name":"burnAndMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc1155","outputs":[{"internalType":"contract IERC1155Migration","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"getTokenSizes","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"sizes","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newContractURI","type":"string"}],"name":"setContractUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newName","type":"string"},{"internalType":"string","name":"newSymbol","type":"string"}],"name":"setNameAndSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60406080815234620009225762002cb6803803806200001e8162000926565b92833981019060e081830312620009225780516001600160401b039290838111620009225781620000519184016200094c565b6020808401518581116200092257836200006d9186016200094c565b916200007b878601620009bc565b946060810151878111620009225785620000979183016200094c565b946080820151908882116200092257620000b39183016200094c565b9460c0620000c460a08401620009bc565b920151956001600160601b0387169586880362000922578451928a84116200039857600254906001948583811c9316801562000917575b898410146200050557601f92838111620008ce575b50808984821160011462000869575f916200085d575b505f19600383901b1c191690861b176002555b8251928c8411620003985760039384548781811c9116801562000852575b8b82101462000505578481116200080a575b50808a858211600114620007a7575f916200079b575b505f1982871b1c191690871b1784555b855f558c600a549860018060a01b0399338b82167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a36001600160a81b0319163360ff60a01b191617600a5580519182116200039857600c54908882811c9216801562000790575b8c83101462000505578b828785941162000739575b50508b90868311600114620006d2575f92620006c6575b50505f1982871b1c191690871b17600c555b8051908d82116200039857600d54908782811c92168015620006bb575b8b8310146200050557818584931162000667575b508a9085831160011462000600575f92620005f4575b50505f1982861b1c191690861b17600d555b8660018060a01b03199b168b600e541617600e558051908c82116200039857600b54908682811c92168015620005e9575b8a8310146200050557818484931162000595575b50899084831160011462000530575f9262000524575b50505f1982851b1c191690851b17600b555b8251928b84116200039857600f548581811c9116801562000519575b898210146200050557828111620004bc575b508791841160011462000453579383949184925f9562000447575b50501b925f19911b1c191617600f555b6127108411620003f05716948515620003ac578651908188019081118282101762000398578752858152015260a01b1617600855516122e49081620009d28239f35b634e487b7160e01b5f52604160045260245ffd5b865162461bcd60e51b815260048101839052601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606490fd5b875162461bcd60e51b815260048101849052602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608490fd5b015193505f8062000346565b9190601f19841692600f5f5284895f20945f5b8b89838310620004a457505050106200048a575b50505050811b01600f5562000356565b01519060f8845f19921b161c191690555f8080806200047a565b86860151895590970196948501948893500162000466565b600f5f52885f208380870160051c8201928b8810620004fb575b0160051c019086905b828110620004ef5750506200032b565b5f8155018690620004df565b92508192620004d6565b634e487b7160e01b5f52602260045260245ffd5b90607f169062000319565b015190505f80620002eb565b90879350601f19831691600b5f528b5f20925f5b8d8282106200057e575050841162000566575b505050811b01600b55620002fd565b01515f1983871b60f8161c191690555f808062000557565b8385015186558b9790950194938401930162000544565b909150600b5f52895f208480850160051c8201928c8610620005df575b918991869594930160051c01915b828110620005d0575050620002d5565b5f8155859450899101620005c0565b92508192620005b2565b91607f1691620002c1565b015190505f806200027e565b90889350601f19831691600d5f528c5f20928d5f905b8282106200064f575050841162000637575b505050811b01600d5562000290565b01515f1983881b60f8161c191690555f808062000628565b8385015186558c979095019493840193018e62000616565b909150600d5f528a5f208580850160051c8201928d8610620006b1575b918a91869594930160051c01915b828110620006a257505062000268565b5f81558594508a910162000692565b9250819262000684565b91607f169162000254565b015190505f8062000225565b899350908c91601f198416600c5f52835f20935f905b82821062000721575050841162000709575b505050811b01600c5562000237565b01515f1983891b60f8161c191690555f8080620006fa565b8385015186558d979095019493840193018f620006e8565b90919250600c5f5286825f209181860160051c830193861062000786575b918b91869594930160051c01915b8281106200077757508d91506200020e565b5f81558594508b910162000765565b9250819262000757565b91607f1691620001f9565b90508201515f6200017f565b5f8781528c81208a94509190601f198416908e5b828210620007f25750508311620007da575b5050811b0184556200018f565b8401515f1983891b60f8161c191690555f80620007cd565b8388015185558c969094019392830192018e620007bb565b855f528a5f208580840160051c8201928d851062000848575b0160051c019088905b8281106200083c57505062000169565b5f81550188906200082c565b9250819262000823565b90607f169062000157565b90508801515f62000126565b879250601f1982169060025f528b5f20915f5b8d8d838310620008b85750505083116200089f575b5050811b0160025562000139565b8a01515f1960f88460031b161c191690555f8062000891565b84015185558b969094019392830192016200087c565b60025f52895f208480840160051c8201928c85106200090d575b0160051c019087905b8281106200090157505062000110565b5f8155018790620008f1565b92508192620008e8565b92607f1692620000fb565b5f80fd5b6040519190601f01601f191682016001600160401b038111838210176200039857604052565b919080601f84011215620009225782516001600160401b038111620003985760209062000982601f8201601f1916830162000926565b9281845282828701011162000922575f5b818110620009a85750825f9394955001015290565b858101830151848201840152820162000993565b51906001600160a01b0382168203620009225756fe60806040526004361015610011575f80fd5b5f3560e01c806301ffc9a71461022457806306fdde031461021f578063081812fc1461021a578063095ea7b31461021557806311104e941461021057806318160ddd1461020b57806323b872dd146102065780632a55205a146102015780634029a3ce146101fc57806342842e0e146101f757806342966c68146101f25780635a446215146101ed5780635bbb2177146101e85780635c975abb146101e35780636352211e146101de57806369865e63146101d957806370a08231146101d4578063715018a6146101cf5780638462151c146101ca5780638da5cb5b146101c557806395d89b41146101c057806399a2557a146101bb5780639abc8320146101b6578063a0bcfc7f146101b1578063a22cb465146101ac578063b88d4fde146101a7578063c23dc68f146101a2578063c87b56dd1461019d578063ccb4807b14610198578063d56022d714610193578063e8a3d4851461018e578063e985e9c5146101895763f2fde38b14610184575f80fd5b61170e565b6116aa565b611603565b6115db565b6114f6565b61142c565b6113c9565b61133f565b611293565b6111ae565b611155565b610fa7565b610f00565b610ed8565b610e21565b610dc4565b610d95565b610d37565b610cce565b610ca9565b610c07565b610a1e565b61085a565b610838565b61074e565b610678565b610664565b610614565b610536565b61047d565b61041a565b61033d565b61023f565b6001600160e01b031981160361023b57565b5f80fd5b3461023b57602036600319011261023b57602060043561025e81610229565b63ffffffff60e01b166301ffc9a760e01b811490819082156102c8575b82156102b7575b8215610295575b50506040519015158152f35b63152a902d60e11b14915081156102af575b505f80610289565b90505f6102a7565b635b5e139f60e01b81149250610282565b6380ac58cd60e01b8114925061027b565b5f91031261023b57565b5f5b8381106102f45750505f910152565b81810151838201526020016102e5565b9060209161031d815180928185528580860191016102e3565b601f01601f1916010190565b90602061033a928181520190610304565b90565b3461023b575f806003193601126104175760405181600c5461035e81610fe3565b9081845260209260019182811690815f146103f5575060011461039c575b6103988561038c81890382611078565b60405191829182610329565b0390f35b929450600c83527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c75b8284106103e257505050816103989361038c92820101935f61037c565b80548585018701529285019281016103c5565b60ff191686860152505050151560051b820101915061038c816103985f61037c565b80fd5b3461023b57602036600319011261023b5760043561043781611c78565b1561045a575f526006602052602060018060a01b0360405f205416604051908152f35b6040516333d1c03960e21b8152600490fd5b6001600160a01b0381160361023b57565b604036600319011261023b576004356104958161046c565b6024356001600160a01b03806104aa83611bfb565b1690813303610504575b5f83815260066020526040812080546001600160a01b0319166001600160a01b0387161790559316907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b5f82815260076020908152604080832033845290915290205460ff166104b4576040516367d9dca160e11b8152600490fd5b3461023b57602036600319011261023b5760043560ff600a5460a01c166105dc57600e546001600160a01b0316803b1561023b575f8091606460405180948193637a94c56560e11b8352336004840152876024840152600160448401525af180156105d7576105be575b506105aa33611fb4565b5f80545f1901815260106020526040902055005b806105cb6105d19261102f565b806102d9565b5f6105a0565b611b10565b60405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606490fd5b3461023b575f36600319011261023b575f5460015460405191035f19018152602090f35b606090600319011261023b576004356106508161046c565b9060243561065d8161046c565b9060443590565b61067661067036610638565b91611cb0565b005b3461023b57604036600319011261023b576024356004355f5260096020526106a260405f20611858565b80519091906001600160a01b03161561070e575b6bffffffffffffffffffffffff602083015116908181029181830414901517156106fa579051604080516001600160a01b0390921682526127109092046020820152f35b634e487b7160e01b5f52601160045260245ffd5b9050610718611832565b906106b6565b9181601f8401121561023b578235916001600160401b03831161023b576020808501948460051b01011161023b57565b3461023b57604036600319011261023b576001600160401b0360043581811161023b5761077f90369060040161071e565b9160243590811161023b5761079890369060040161071e565b6107a06117da565b8084036107fe575f93845b8181106107b6578580f35b806107d46107cf6107ca600194868a611b2f565b611b44565b611fb4565b86545f19016107f76107e7838789611b2f565b35915f52601060205260405f2090565b55016107ab565b60405162461bcd60e51b81526020600482015260126024820152714d69736d617463686564206c656e6774687360701b6044820152606490fd5b61067661084436610638565b90604051926108528461105d565b5f8452611e54565b3461023b57602036600319011261023b5760043561087781611bfb565b5f8281526006602052604090208054916001600160a01b038116913380851490841417156108a4565b1590565b61099a575b5f93610991575b506001600160a01b0382165f90815260056020526040902080546fffffffffffffffffffffffffffffffff0190556001600160a01b0382164260a01b17600360e01b17610905855f52600460205260405f2090565b55600160e11b81161561094c575b507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8280a461067661094760015460010190565b600155565b60018401610962815f52600460205260405f2090565b541561096f575b50610913565b8354811461096957610989905f52600460205260405f2090565b555f80610969565b8390555f6108b0565b6109da6108a06109d3336109be8760018060a01b03165f52600760205260405f2090565b9060018060a01b03165f5260205260405f2090565b5460ff1690565b156108a957604051632ce44b5f60e11b8152600490fd5b9181601f8401121561023b578235916001600160401b03831161023b576020838186019501011161023b57565b3461023b57604036600319011261023b576001600160401b0360043581811161023b57610a4f9036906004016109f1565b9160243581811161023b57610a689036906004016109f1565b929091610a736117da565b8411610b5757610a8d84610a88600c54610fe3565b61187d565b5f90601f8511600114610ad2579380610abf92610676965f92610ac7575b50508160011b915f199060031b1c19161790565b600c55611a3d565b013590505f80610aab565b600c5f527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c791601f198616815b818110610b3f5750916001939187610676989410610b26575b505050811b01600c55611a3d565b01355f19600384901b60f8161c191690555f8080610b18565b91936020600181928787013581550195019201610aff565b61101b565b602060031982011261023b57600435906001600160401b03821161023b57610b869160040161071e565b9091565b602090816040818301928281528551809452019301915f5b828110610bb0575050505090565b9091929382608082610bfb600194895162ffffff6060809260018060a01b0381511685526001600160401b036020820151166020860152604081015115156040860152015116910152565b01950193929101610ba2565b3461023b57610c1536610b5c565b90610c1f82611b4e565b91610c2d6040519384611078565b808352601f19610c3c82611b4e565b015f5b818110610c925750505f5b818103610c5f57604051806103988682610b8a565b80610c76610c706001938587611b2f565b356120a3565b610c808287611b97565b52610c8b8186611b97565b5001610c4a565b602090610c9d61206f565b82828801015201610c3f565b3461023b575f36600319011261023b57602060ff600a5460a01c166040519015158152f35b3461023b57602036600319011261023b5760206001600160a01b03610cf4600435611bfb565b16604051908152f35b602090816040818301928281528551809452019301915f5b828110610d23575050505090565b835185529381019392810192600101610d15565b3461023b57610d4536610b5c565b90610d4f82611b65565b915f90815b818110610d6957604051806103988782610cfd565b80610d776001928487611b2f565b35845260106020526040842054610d8e8288611b97565b5201610d54565b3461023b57602036600319011261023b576020610dbc600435610db78161046c565b611bab565b604051908152f35b3461023b575f8060031936011261041757610ddd6117da565b600a80546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b3461023b57602036600319011261023b57600435610e3e8161046c565b5f8091610e4a81611bab565b610e5381611b65565b92610e5c61206f565b506001926001600160a01b0390811690845b848403610e8357604051806103988982610cfd565b81610e8d82612101565b876040820151610ecf5750511680610ec7575b50859083838a1614610eb3575b01610e6e565b80610ec1838701968a611b97565b52610ead565b975085610ea0565b92915050610ead565b3461023b575f36600319011261023b57600a546040516001600160a01b039091168152602090f35b3461023b575f806003193601126104175760405181600d54610f2181610fe3565b9081845260209260019182811690815f146103f55750600114610f4e576103988561038c81890382611078565b929450600d83527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb55b828410610f9457505050816103989361038c92820101935f61037c565b8054858501870152928501928101610f77565b3461023b57606036600319011261023b57610398610fd7600435610fca8161046c565b604435906024359061215d565b60405191829182610cfd565b90600182811c92168015611011575b6020831014610ffd57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691610ff2565b634e487b7160e01b5f52604160045260245ffd5b6001600160401b038111610b5757604052565b604081019081106001600160401b03821117610b5757604052565b602081019081106001600160401b03821117610b5757604052565b90601f801991011681019081106001600160401b03821117610b5757604052565b604051905f82600b54916110ac83610fe3565b80835260209360019081811690811561113557506001146110d8575b50506110d692500383611078565b565b90939150600b5f527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9935f915b81831061111d5750506110d693508201015f806110c8565b85548884018501529485019487945091830191611105565b9150506110d694925060ff191682840152151560051b8201015f806110c8565b3461023b575f36600319011261023b57610398611170611099565b604051918291602083526020830190610304565b602060031982011261023b57600435906001600160401b03821161023b57610b86916004016109f1565b3461023b576111bc36611184565b6111c46117da565b6001600160401b038111610b57576111e6816111e1600b54610fe3565b6118ed565b5f601f8211600114611217578190611212935f92610ac75750508160011b915f199060031b1c19161790565b600b55005b600b5f52601f198216927f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db991805b85811061127b57508360019510611262575b505050811b01600b55005b01355f19600384901b60f8161c191690555f8080611257565b90926020600181928686013581550194019101611245565b3461023b57604036600319011261023b576004356112b08161046c565b6024359081151580920361023b57335f9081526007602090815260408083206001600160a01b0385168452909152902060ff1981541660ff841617905560405191825260018060a01b0316907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b6001600160401b038111610b5757601f01601f191660200190565b608036600319011261023b576004356113578161046c565b6024356113638161046c565b606435916001600160401b03831161023b573660238401121561023b5782600401359161138f83611324565b9261139d6040519485611078565b808452366024828701011161023b576020815f9260246106769801838801378501015260443591611e54565b3461023b57602036600319011261023b5760806113e76004356120a3565b61142a604051809262ffffff6060809260018060a01b0381511685526001600160401b036020820151166020860152604081015115156040860152015116910152565bf35b3461023b57602036600319011261023b5760043561144981611c78565b156114e457611456611099565b80515f90156114ca575060405160a0810160405260808101925f8452925b5f190192600a9060308282060185530492836114745761039893506114b8926114be61038c936080601f199485810192030181526040519586936020850190611be4565b90611be4565b03908101835282611078565b604051610398935091506114dd8261105d565b815261038c565b604051630a14c4b560e41b8152600490fd5b3461023b5761150436611184565b61150c6117da565b6001600160401b038111610b575761152e81611529600f54610fe3565b61195d565b5f601f821160011461155f57819061155a935f92610ac75750508160011b915f199060031b1c19161790565b600f55005b600f5f52601f198216927f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80291805b8581106115c3575083600195106115aa575b505050811b01600f55005b01355f19600384901b60f8161c191690555f808061159f565b9092602060018192868601358155019401910161158d565b3461023b575f36600319011261023b57600e546040516001600160a01b039091168152602090f35b3461023b575f806003193601126104175760405181600f5461162481610fe3565b9081845260209260019182811690815f146103f55750600114611651576103988561038c81890382611078565b929450600f83527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8025b82841061169757505050816103989361038c92820101935f61037c565b805485850187015292850192810161167a565b3461023b57604036600319011261023b57602060ff6117026004356116ce8161046c565b602435906116db8261046c565b60018060a01b03165f526007845260405f209060018060a01b03165f5260205260405f2090565b54166040519015158152f35b3461023b57602036600319011261023b5760043561172b8161046c565b6117336117da565b6001600160a01b0390811690811561178657600a54826bffffffffffffffffffffffff60a01b821617600a55167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b600a546001600160a01b031633036117ee57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6040519061183f82611042565b6008546001600160a01b038116835260a01c6020830152565b9060405161186581611042565b91546001600160a01b038116835260a01c6020830152565b601f8111611889575050565b5f90600c82527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7906020601f850160051c830194106118e3575b601f0160051c01915b8281106118d857505050565b8181556001016118cc565b90925082906118c3565b601f81116118f9575050565b5f90600b82527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9906020601f850160051c83019410611953575b601f0160051c01915b82811061194857505050565b81815560010161193c565b9092508290611933565b601f8111611969575050565b5f90600f82527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac802906020601f850160051c830194106119c3575b601f0160051c01915b8281106119b857505050565b8181556001016119ac565b90925082906119a3565b601f81116119d9575050565b5f90600d82527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5906020601f850160051c83019410611a33575b601f0160051c01915b828110611a2857505050565b818155600101611a1c565b9092508290611a13565b91906001600160401b038111610b5757611a6181611a5c600d54610fe3565b6119cd565b5f601f8211600114611a93578190611a8e93945f92610ac75750508160011b915f199060031b1c19161790565b600d55565b600d5f52601f198216937fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb591805b868110611af85750836001959610611adf575b505050811b01600d55565b01355f19600384901b60f8161c191690555f8080611ad4565b90926020600181928686013581550194019101611ac1565b6040513d5f823e3d90fd5b634e487b7160e01b5f52603260045260245ffd5b9190811015611b3f5760051b0190565b611b1b565b3561033a8161046c565b6001600160401b038111610b575760051b60200190565b90611b6f82611b4e565b611b7c6040519182611078565b8281528092611b8d601f1991611b4e565b0190602036910137565b8051821015611b3f5760209160051b010190565b6001600160a01b03168015611bd2575f5260056020526001600160401b0360405f20541690565b6040516323d3ad8160e21b8152600490fd5b90611bf7602092828151948592016102e3565b0190565b808060011115611c18575b604051636f96cda160e11b8152600490fd5b5f9081548110611c29575b50611c06565b81526004906020918083526040928383205494600160e01b861615611c5057505050611c23565b93929190935b8515611c6457505050505090565b5f1901808352818552838320549550611c56565b80600111159081611ca5575b81611c8d575090565b90505f526004602052600160e01b60405f2054161590565b5f5481109150611c84565b90611cba83611bfb565b6001600160a01b0383811692828216849003611e43575f86815260066020526040902080549092611cfa6001600160a01b03881633908114908414171590565b611e08575b8216958615611df657611d6193611d2f92611ded575b506001600160a01b03165f90815260056020526040902090565b80545f190190556001600160a01b03165f818152600560205260409020805460010190554260a01b17600160e11b1790565b611d73855f52600460205260405f2090565b55600160e11b811615611da8575b507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4565b60018401611dbe815f52600460205260405f2090565b5415611dcb575b50611d81565b5f548114611dc557611de5905f52600460205260405f2090565b555f80611dc5565b5f90555f611d15565b604051633a954ecd60e21b8152600490fd5b611e2c6108a06109d3336109be8b60018060a01b03165f52600760205260405f2090565b15611cff57604051632ce44b5f60e11b8152600490fd5b60405162a1148160e81b8152600490fd5b929190611e62828286611cb0565b803b611e6f575b50505050565b611e7893611f0d565b15611e86575f808080611e69565b6040516368d2bf6b60e11b8152600490fd5b9081602091031261023b575161033a81610229565b6001600160a01b03918216815291166020820152604081019190915260806060820181905261033a92910190610304565b3d15611f08573d90611eef82611324565b91611efd6040519384611078565b82523d5f602084013e565b606090565b92602091611f35935f604051809681958294630a85bd0160e11b9a8b85523360048601611ead565b03926001600160a01b03165af15f9181611f84575b50611f7657611f57611ede565b80519081611f71576040516368d2bf6b60e11b8152600490fd5b602001fd5b6001600160e01b0319161490565b611fa691925060203d8111611fad575b611f9e8183611078565b810190611e98565b905f611f4a565b503d611f94565b5f80546001600160a01b03831682526005602052604082208054680100000000000000010190556001600160a01b0383164260a01b17600160e11b17612002825f52600460205260405f2090565b556001818101936001600160a01b0316917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908385838180a4845b858103612060575050501561204f5755565b604051622e076360e81b8152600490fd5b8083918587858180a40161203d565b60405190608082018281106001600160401b03821117610b57576040525f6060838281528260208201528260408201520152565b6120ab61206f565b506120b461206f565b6001821080156120f6575b6120f157506120cd81612101565b60408101516120f157506120ec61033a916120e661206f565b50611bfb565b61211a565b905090565b505f548210156120bf565b61210961206f565b505f52600460205261033a60405f20545b9061212361206f565b6001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b83161515604082015260e89290921c6060830152565b908281101561229c575f91825491600192838210612294575b80861161228c575b5061218882611bab565b91858210156122845781860383811061227c575b505b6121a783611b65565b9583156122735784936121b9846120a3565b9187946040936121ce6108a086830151151590565b612261575b50955b6121e7575b50505050505050815290565b8086141580612257575b156122525786866122028298612101565b8086015161224c57516001600160a01b0390811680612244575b5080871690881614612230575b01956121d6565b8061223e838c019b8d611b97565b52612229565b97505f61221c565b50612229565b6121db565b50818814156121f1565b516001600160a01b031695505f6121d3565b50505050505090565b92505f61219c565b84925061219e565b94505f61217e565b839150612176565b604051631960ccad60e11b8152600490fdfea2646970667358221220dde601e972c48138397c6df0f0e3249ffba6473cc45da14aedcd92fb6805065264736f6c6343000815003300000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000f9cb96dbd94652f00f3a2aec5539fb4ebe45ee3800000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000734dabe2171dfa9689e94675cc279aa0d3ce703300000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000030616469646173204f726967696e616c732078204241504520467265736820466f72756d204469676974616c205477696e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000441424646000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f62616679626569676966716832697032797236636d77356f74666b7932646c6261646464616136367a65667a786f796561633673336362623337692f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b7265696461686b75786f6a756577327961696d72633570746b6d6d6d77756234346534677a37613666717466696a6a6a72646e79327a79000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361015610011575f80fd5b5f3560e01c806301ffc9a71461022457806306fdde031461021f578063081812fc1461021a578063095ea7b31461021557806311104e941461021057806318160ddd1461020b57806323b872dd146102065780632a55205a146102015780634029a3ce146101fc57806342842e0e146101f757806342966c68146101f25780635a446215146101ed5780635bbb2177146101e85780635c975abb146101e35780636352211e146101de57806369865e63146101d957806370a08231146101d4578063715018a6146101cf5780638462151c146101ca5780638da5cb5b146101c557806395d89b41146101c057806399a2557a146101bb5780639abc8320146101b6578063a0bcfc7f146101b1578063a22cb465146101ac578063b88d4fde146101a7578063c23dc68f146101a2578063c87b56dd1461019d578063ccb4807b14610198578063d56022d714610193578063e8a3d4851461018e578063e985e9c5146101895763f2fde38b14610184575f80fd5b61170e565b6116aa565b611603565b6115db565b6114f6565b61142c565b6113c9565b61133f565b611293565b6111ae565b611155565b610fa7565b610f00565b610ed8565b610e21565b610dc4565b610d95565b610d37565b610cce565b610ca9565b610c07565b610a1e565b61085a565b610838565b61074e565b610678565b610664565b610614565b610536565b61047d565b61041a565b61033d565b61023f565b6001600160e01b031981160361023b57565b5f80fd5b3461023b57602036600319011261023b57602060043561025e81610229565b63ffffffff60e01b166301ffc9a760e01b811490819082156102c8575b82156102b7575b8215610295575b50506040519015158152f35b63152a902d60e11b14915081156102af575b505f80610289565b90505f6102a7565b635b5e139f60e01b81149250610282565b6380ac58cd60e01b8114925061027b565b5f91031261023b57565b5f5b8381106102f45750505f910152565b81810151838201526020016102e5565b9060209161031d815180928185528580860191016102e3565b601f01601f1916010190565b90602061033a928181520190610304565b90565b3461023b575f806003193601126104175760405181600c5461035e81610fe3565b9081845260209260019182811690815f146103f5575060011461039c575b6103988561038c81890382611078565b60405191829182610329565b0390f35b929450600c83527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c75b8284106103e257505050816103989361038c92820101935f61037c565b80548585018701529285019281016103c5565b60ff191686860152505050151560051b820101915061038c816103985f61037c565b80fd5b3461023b57602036600319011261023b5760043561043781611c78565b1561045a575f526006602052602060018060a01b0360405f205416604051908152f35b6040516333d1c03960e21b8152600490fd5b6001600160a01b0381160361023b57565b604036600319011261023b576004356104958161046c565b6024356001600160a01b03806104aa83611bfb565b1690813303610504575b5f83815260066020526040812080546001600160a01b0319166001600160a01b0387161790559316907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258480a480f35b5f82815260076020908152604080832033845290915290205460ff166104b4576040516367d9dca160e11b8152600490fd5b3461023b57602036600319011261023b5760043560ff600a5460a01c166105dc57600e546001600160a01b0316803b1561023b575f8091606460405180948193637a94c56560e11b8352336004840152876024840152600160448401525af180156105d7576105be575b506105aa33611fb4565b5f80545f1901815260106020526040902055005b806105cb6105d19261102f565b806102d9565b5f6105a0565b611b10565b60405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606490fd5b3461023b575f36600319011261023b575f5460015460405191035f19018152602090f35b606090600319011261023b576004356106508161046c565b9060243561065d8161046c565b9060443590565b61067661067036610638565b91611cb0565b005b3461023b57604036600319011261023b576024356004355f5260096020526106a260405f20611858565b80519091906001600160a01b03161561070e575b6bffffffffffffffffffffffff602083015116908181029181830414901517156106fa579051604080516001600160a01b0390921682526127109092046020820152f35b634e487b7160e01b5f52601160045260245ffd5b9050610718611832565b906106b6565b9181601f8401121561023b578235916001600160401b03831161023b576020808501948460051b01011161023b57565b3461023b57604036600319011261023b576001600160401b0360043581811161023b5761077f90369060040161071e565b9160243590811161023b5761079890369060040161071e565b6107a06117da565b8084036107fe575f93845b8181106107b6578580f35b806107d46107cf6107ca600194868a611b2f565b611b44565b611fb4565b86545f19016107f76107e7838789611b2f565b35915f52601060205260405f2090565b55016107ab565b60405162461bcd60e51b81526020600482015260126024820152714d69736d617463686564206c656e6774687360701b6044820152606490fd5b61067661084436610638565b90604051926108528461105d565b5f8452611e54565b3461023b57602036600319011261023b5760043561087781611bfb565b5f8281526006602052604090208054916001600160a01b038116913380851490841417156108a4565b1590565b61099a575b5f93610991575b506001600160a01b0382165f90815260056020526040902080546fffffffffffffffffffffffffffffffff0190556001600160a01b0382164260a01b17600360e01b17610905855f52600460205260405f2090565b55600160e11b81161561094c575b507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8280a461067661094760015460010190565b600155565b60018401610962815f52600460205260405f2090565b541561096f575b50610913565b8354811461096957610989905f52600460205260405f2090565b555f80610969565b8390555f6108b0565b6109da6108a06109d3336109be8760018060a01b03165f52600760205260405f2090565b9060018060a01b03165f5260205260405f2090565b5460ff1690565b156108a957604051632ce44b5f60e11b8152600490fd5b9181601f8401121561023b578235916001600160401b03831161023b576020838186019501011161023b57565b3461023b57604036600319011261023b576001600160401b0360043581811161023b57610a4f9036906004016109f1565b9160243581811161023b57610a689036906004016109f1565b929091610a736117da565b8411610b5757610a8d84610a88600c54610fe3565b61187d565b5f90601f8511600114610ad2579380610abf92610676965f92610ac7575b50508160011b915f199060031b1c19161790565b600c55611a3d565b013590505f80610aab565b600c5f527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c791601f198616815b818110610b3f5750916001939187610676989410610b26575b505050811b01600c55611a3d565b01355f19600384901b60f8161c191690555f8080610b18565b91936020600181928787013581550195019201610aff565b61101b565b602060031982011261023b57600435906001600160401b03821161023b57610b869160040161071e565b9091565b602090816040818301928281528551809452019301915f5b828110610bb0575050505090565b9091929382608082610bfb600194895162ffffff6060809260018060a01b0381511685526001600160401b036020820151166020860152604081015115156040860152015116910152565b01950193929101610ba2565b3461023b57610c1536610b5c565b90610c1f82611b4e565b91610c2d6040519384611078565b808352601f19610c3c82611b4e565b015f5b818110610c925750505f5b818103610c5f57604051806103988682610b8a565b80610c76610c706001938587611b2f565b356120a3565b610c808287611b97565b52610c8b8186611b97565b5001610c4a565b602090610c9d61206f565b82828801015201610c3f565b3461023b575f36600319011261023b57602060ff600a5460a01c166040519015158152f35b3461023b57602036600319011261023b5760206001600160a01b03610cf4600435611bfb565b16604051908152f35b602090816040818301928281528551809452019301915f5b828110610d23575050505090565b835185529381019392810192600101610d15565b3461023b57610d4536610b5c565b90610d4f82611b65565b915f90815b818110610d6957604051806103988782610cfd565b80610d776001928487611b2f565b35845260106020526040842054610d8e8288611b97565b5201610d54565b3461023b57602036600319011261023b576020610dbc600435610db78161046c565b611bab565b604051908152f35b3461023b575f8060031936011261041757610ddd6117da565b600a80546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b3461023b57602036600319011261023b57600435610e3e8161046c565b5f8091610e4a81611bab565b610e5381611b65565b92610e5c61206f565b506001926001600160a01b0390811690845b848403610e8357604051806103988982610cfd565b81610e8d82612101565b876040820151610ecf5750511680610ec7575b50859083838a1614610eb3575b01610e6e565b80610ec1838701968a611b97565b52610ead565b975085610ea0565b92915050610ead565b3461023b575f36600319011261023b57600a546040516001600160a01b039091168152602090f35b3461023b575f806003193601126104175760405181600d54610f2181610fe3565b9081845260209260019182811690815f146103f55750600114610f4e576103988561038c81890382611078565b929450600d83527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb55b828410610f9457505050816103989361038c92820101935f61037c565b8054858501870152928501928101610f77565b3461023b57606036600319011261023b57610398610fd7600435610fca8161046c565b604435906024359061215d565b60405191829182610cfd565b90600182811c92168015611011575b6020831014610ffd57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691610ff2565b634e487b7160e01b5f52604160045260245ffd5b6001600160401b038111610b5757604052565b604081019081106001600160401b03821117610b5757604052565b602081019081106001600160401b03821117610b5757604052565b90601f801991011681019081106001600160401b03821117610b5757604052565b604051905f82600b54916110ac83610fe3565b80835260209360019081811690811561113557506001146110d8575b50506110d692500383611078565b565b90939150600b5f527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9935f915b81831061111d5750506110d693508201015f806110c8565b85548884018501529485019487945091830191611105565b9150506110d694925060ff191682840152151560051b8201015f806110c8565b3461023b575f36600319011261023b57610398611170611099565b604051918291602083526020830190610304565b602060031982011261023b57600435906001600160401b03821161023b57610b86916004016109f1565b3461023b576111bc36611184565b6111c46117da565b6001600160401b038111610b57576111e6816111e1600b54610fe3565b6118ed565b5f601f8211600114611217578190611212935f92610ac75750508160011b915f199060031b1c19161790565b600b55005b600b5f52601f198216927f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db991805b85811061127b57508360019510611262575b505050811b01600b55005b01355f19600384901b60f8161c191690555f8080611257565b90926020600181928686013581550194019101611245565b3461023b57604036600319011261023b576004356112b08161046c565b6024359081151580920361023b57335f9081526007602090815260408083206001600160a01b0385168452909152902060ff1981541660ff841617905560405191825260018060a01b0316907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b6001600160401b038111610b5757601f01601f191660200190565b608036600319011261023b576004356113578161046c565b6024356113638161046c565b606435916001600160401b03831161023b573660238401121561023b5782600401359161138f83611324565b9261139d6040519485611078565b808452366024828701011161023b576020815f9260246106769801838801378501015260443591611e54565b3461023b57602036600319011261023b5760806113e76004356120a3565b61142a604051809262ffffff6060809260018060a01b0381511685526001600160401b036020820151166020860152604081015115156040860152015116910152565bf35b3461023b57602036600319011261023b5760043561144981611c78565b156114e457611456611099565b80515f90156114ca575060405160a0810160405260808101925f8452925b5f190192600a9060308282060185530492836114745761039893506114b8926114be61038c936080601f199485810192030181526040519586936020850190611be4565b90611be4565b03908101835282611078565b604051610398935091506114dd8261105d565b815261038c565b604051630a14c4b560e41b8152600490fd5b3461023b5761150436611184565b61150c6117da565b6001600160401b038111610b575761152e81611529600f54610fe3565b61195d565b5f601f821160011461155f57819061155a935f92610ac75750508160011b915f199060031b1c19161790565b600f55005b600f5f52601f198216927f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac80291805b8581106115c3575083600195106115aa575b505050811b01600f55005b01355f19600384901b60f8161c191690555f808061159f565b9092602060018192868601358155019401910161158d565b3461023b575f36600319011261023b57600e546040516001600160a01b039091168152602090f35b3461023b575f806003193601126104175760405181600f5461162481610fe3565b9081845260209260019182811690815f146103f55750600114611651576103988561038c81890382611078565b929450600f83527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8025b82841061169757505050816103989361038c92820101935f61037c565b805485850187015292850192810161167a565b3461023b57604036600319011261023b57602060ff6117026004356116ce8161046c565b602435906116db8261046c565b60018060a01b03165f526007845260405f209060018060a01b03165f5260205260405f2090565b54166040519015158152f35b3461023b57602036600319011261023b5760043561172b8161046c565b6117336117da565b6001600160a01b0390811690811561178657600a54826bffffffffffffffffffffffff60a01b821617600a55167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b600a546001600160a01b031633036117ee57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6040519061183f82611042565b6008546001600160a01b038116835260a01c6020830152565b9060405161186581611042565b91546001600160a01b038116835260a01c6020830152565b601f8111611889575050565b5f90600c82527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c7906020601f850160051c830194106118e3575b601f0160051c01915b8281106118d857505050565b8181556001016118cc565b90925082906118c3565b601f81116118f9575050565b5f90600b82527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9906020601f850160051c83019410611953575b601f0160051c01915b82811061194857505050565b81815560010161193c565b9092508290611933565b601f8111611969575050565b5f90600f82527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac802906020601f850160051c830194106119c3575b601f0160051c01915b8281106119b857505050565b8181556001016119ac565b90925082906119a3565b601f81116119d9575050565b5f90600d82527fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb5906020601f850160051c83019410611a33575b601f0160051c01915b828110611a2857505050565b818155600101611a1c565b9092508290611a13565b91906001600160401b038111610b5757611a6181611a5c600d54610fe3565b6119cd565b5f601f8211600114611a93578190611a8e93945f92610ac75750508160011b915f199060031b1c19161790565b600d55565b600d5f52601f198216937fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb591805b868110611af85750836001959610611adf575b505050811b01600d55565b01355f19600384901b60f8161c191690555f8080611ad4565b90926020600181928686013581550194019101611ac1565b6040513d5f823e3d90fd5b634e487b7160e01b5f52603260045260245ffd5b9190811015611b3f5760051b0190565b611b1b565b3561033a8161046c565b6001600160401b038111610b575760051b60200190565b90611b6f82611b4e565b611b7c6040519182611078565b8281528092611b8d601f1991611b4e565b0190602036910137565b8051821015611b3f5760209160051b010190565b6001600160a01b03168015611bd2575f5260056020526001600160401b0360405f20541690565b6040516323d3ad8160e21b8152600490fd5b90611bf7602092828151948592016102e3565b0190565b808060011115611c18575b604051636f96cda160e11b8152600490fd5b5f9081548110611c29575b50611c06565b81526004906020918083526040928383205494600160e01b861615611c5057505050611c23565b93929190935b8515611c6457505050505090565b5f1901808352818552838320549550611c56565b80600111159081611ca5575b81611c8d575090565b90505f526004602052600160e01b60405f2054161590565b5f5481109150611c84565b90611cba83611bfb565b6001600160a01b0383811692828216849003611e43575f86815260066020526040902080549092611cfa6001600160a01b03881633908114908414171590565b611e08575b8216958615611df657611d6193611d2f92611ded575b506001600160a01b03165f90815260056020526040902090565b80545f190190556001600160a01b03165f818152600560205260409020805460010190554260a01b17600160e11b1790565b611d73855f52600460205260405f2090565b55600160e11b811615611da8575b507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4565b60018401611dbe815f52600460205260405f2090565b5415611dcb575b50611d81565b5f548114611dc557611de5905f52600460205260405f2090565b555f80611dc5565b5f90555f611d15565b604051633a954ecd60e21b8152600490fd5b611e2c6108a06109d3336109be8b60018060a01b03165f52600760205260405f2090565b15611cff57604051632ce44b5f60e11b8152600490fd5b60405162a1148160e81b8152600490fd5b929190611e62828286611cb0565b803b611e6f575b50505050565b611e7893611f0d565b15611e86575f808080611e69565b6040516368d2bf6b60e11b8152600490fd5b9081602091031261023b575161033a81610229565b6001600160a01b03918216815291166020820152604081019190915260806060820181905261033a92910190610304565b3d15611f08573d90611eef82611324565b91611efd6040519384611078565b82523d5f602084013e565b606090565b92602091611f35935f604051809681958294630a85bd0160e11b9a8b85523360048601611ead565b03926001600160a01b03165af15f9181611f84575b50611f7657611f57611ede565b80519081611f71576040516368d2bf6b60e11b8152600490fd5b602001fd5b6001600160e01b0319161490565b611fa691925060203d8111611fad575b611f9e8183611078565b810190611e98565b905f611f4a565b503d611f94565b5f80546001600160a01b03831682526005602052604082208054680100000000000000010190556001600160a01b0383164260a01b17600160e11b17612002825f52600460205260405f2090565b556001818101936001600160a01b0316917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908385838180a4845b858103612060575050501561204f5755565b604051622e076360e81b8152600490fd5b8083918587858180a40161203d565b60405190608082018281106001600160401b03821117610b57576040525f6060838281528260208201528260408201520152565b6120ab61206f565b506120b461206f565b6001821080156120f6575b6120f157506120cd81612101565b60408101516120f157506120ec61033a916120e661206f565b50611bfb565b61211a565b905090565b505f548210156120bf565b61210961206f565b505f52600460205261033a60405f20545b9061212361206f565b6001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b83161515604082015260e89290921c6060830152565b908281101561229c575f91825491600192838210612294575b80861161228c575b5061218882611bab565b91858210156122845781860383811061227c575b505b6121a783611b65565b9583156122735784936121b9846120a3565b9187946040936121ce6108a086830151151590565b612261575b50955b6121e7575b50505050505050815290565b8086141580612257575b156122525786866122028298612101565b8086015161224c57516001600160a01b0390811680612244575b5080871690881614612230575b01956121d6565b8061223e838c019b8d611b97565b52612229565b97505f61221c565b50612229565b6121db565b50818814156121f1565b516001600160a01b031695505f6121d3565b50505050505090565b92505f61219c565b84925061219e565b94505f61217e565b839150612176565b604051631960ccad60e11b8152600490fdfea2646970667358221220dde601e972c48138397c6df0f0e3249ffba6473cc45da14aedcd92fb6805065264736f6c63430008150033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000f9cb96dbd94652f00f3a2aec5539fb4ebe45ee3800000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000734dabe2171dfa9689e94675cc279aa0d3ce703300000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000030616469646173204f726967696e616c732078204241504520467265736820466f72756d204469676974616c205477696e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000441424646000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f62616679626569676966716832697032797236636d77356f74666b7932646c6261646464616136367a65667a786f796561633673336362623337692f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b7265696461686b75786f6a756577327961696d72633570746b6d6d6d77756234346534677a37613666717466696a6a6a72646e79327a79000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : __name (string): adidas Originals x BAPE Fresh Forum Digital Twin
Arg [1] : __symbol (string): ABFF
Arg [2] : _ERC1155address (address): 0xf9Cb96dbD94652f00f3a2aeC5539Fb4ebE45ee38
Arg [3] : _baseUri (string): ipfs://bafybeigifqh2ip2yr6cmw5otfky2dlbadddaa66zefzxoyeac6s3cbb37i/
Arg [4] : _uri (string): ipfs://bafkreidahkuxojuew2yaimrc5ptkmmmwub44e4gz7a6fqtfijjjrdny2zy
Arg [5] : _royaltyReceiver (address): 0x734dABe2171Dfa9689E94675Cc279aA0d3Ce7033
Arg [6] : _royaltyValue (uint96): 1000
-----Encoded View---------------
20 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 000000000000000000000000f9cb96dbd94652f00f3a2aec5539fb4ebe45ee38
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [5] : 000000000000000000000000734dabe2171dfa9689e94675cc279aa0d3ce7033
Arg [6] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000030
Arg [8] : 616469646173204f726967696e616c732078204241504520467265736820466f
Arg [9] : 72756d204469676974616c205477696e00000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [11] : 4142464600000000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [13] : 697066733a2f2f62616679626569676966716832697032797236636d77356f74
Arg [14] : 666b7932646c6261646464616136367a65667a786f7965616336733363626233
Arg [15] : 37692f0000000000000000000000000000000000000000000000000000000000
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [17] : 697066733a2f2f6261666b7265696461686b75786f6a756577327961696d7263
Arg [18] : 3570746b6d6d6d77756234346534677a37613666717466696a6a6a72646e7932
Arg [19] : 7a79000000000000000000000000000000000000000000000000000000000000
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.