Overview
ETH Balance
0 ETH
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 35 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 2484152 | 3 hrs ago | IN | 0 ETH | 0.00000499 | ||||
Set Approval For... | 2471849 | 7 hrs ago | IN | 0 ETH | 0.00000587 | ||||
Set Approval For... | 2455816 | 11 hrs ago | IN | 0 ETH | 0.00000506 | ||||
Set Approval For... | 2438433 | 16 hrs ago | IN | 0 ETH | 0.00000574 | ||||
Set Approval For... | 2434903 | 17 hrs ago | IN | 0 ETH | 0.00000402 | ||||
Set Approval For... | 2434659 | 17 hrs ago | IN | 0 ETH | 0.00000626 | ||||
Set Approval For... | 2411847 | 24 hrs ago | IN | 0 ETH | 0.00000529 | ||||
Set Approval For... | 2411075 | 24 hrs ago | IN | 0 ETH | 0.0000054 | ||||
Set Approval For... | 2386510 | 31 hrs ago | IN | 0 ETH | 0.00000535 | ||||
Set Approval For... | 2386376 | 31 hrs ago | IN | 0 ETH | 0.00000453 | ||||
Set Approval For... | 2386257 | 31 hrs ago | IN | 0 ETH | 0.00000645 | ||||
Set Approval For... | 2378134 | 33 hrs ago | IN | 0 ETH | 0.00000616 | ||||
Set Approval For... | 2373062 | 35 hrs ago | IN | 0 ETH | 0.00000548 | ||||
Transfer From | 2368855 | 36 hrs ago | IN | 0 ETH | 0.00000508 | ||||
Transfer From | 2368845 | 36 hrs ago | IN | 0 ETH | 0.00000508 | ||||
Transfer From | 2368836 | 36 hrs ago | IN | 0 ETH | 0.00000508 | ||||
Transfer From | 2368826 | 36 hrs ago | IN | 0 ETH | 0.00000508 | ||||
Transfer From | 2368817 | 36 hrs ago | IN | 0 ETH | 0.00000656 | ||||
Set Transfer Val... | 2368466 | 36 hrs ago | IN | 0 ETH | 0.00000845 | ||||
Set Approval For... | 2368137 | 36 hrs ago | IN | 0 ETH | 0.00000611 | ||||
Set Approval For... | 2367158 | 36 hrs ago | IN | 0 ETH | 0.00000578 | ||||
Set Approval For... | 2366468 | 36 hrs ago | IN | 0 ETH | 0.00000547 | ||||
Set Approval For... | 2365028 | 37 hrs ago | IN | 0 ETH | 0.00000633 | ||||
Set Approval For... | 2362275 | 38 hrs ago | IN | 0 ETH | 0.00000648 | ||||
Set Approval For... | 2358156 | 39 hrs ago | IN | 0 ETH | 0.00000647 |
Latest 1 internal transaction
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
2355869 | 39 hrs ago | Contract Creation | 0 ETH |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
Truckers
Compiler Version
v0.8.28+commit.7893614a
ZkSolc Version
v1.5.10
Optimization Enabled:
Yes with Mode 3
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.28; import "@limitbreak/creator-token-standards/src/access/OwnableBasic.sol"; import "@limitbreak/creator-token-standards/src/erc721c/ERC721AC.sol"; import "@limitbreak/creator-token-standards/src/programmable-royalties/BasicRoyalties.sol"; error TransfersNotEnabled(); error URIQueryForNonexistentToken(); error ExceedsSupply(); /** * @title Truckers (TRUCKR) * @notice Truckers are the unsung heroes who keep the world moving in Web2, loading up and shipping out the essentials we rely on daily. Now, these hardworking icons are rolling into Web3 with the same grit and determination to deliver value like never before. */ contract Truckers is OwnableBasic, ERC721AC, BasicRoyalties { uint256 public constant MAX_SUPPLY = 2000; bool public transfersEnabled = true; string private _baseUri; /** * @notice Initializes the Truckers contract, setting the 5% royalty fee and a default base URI. * @param royaltyReceiver_ The address receiving royalty payouts. */ constructor( address royaltyReceiver_ ) ERC721AC("Truckers", "TRUCKR") BasicRoyalties(royaltyReceiver_, 500) Ownable(msg.sender) { _baseUri = "ipfs://QmUDNe1uJtjtmRz8PkRtQ1MQGPZtqFmS4wRRfeByLFF2s7/"; } /** * @notice Mints exactly one token for each address in `recipients`. * @param recipients The list of recipient addresses. */ function airdrop(address[] calldata recipients) external { _requireCallerIsContractOwner(); uint256 len = recipients.length; if (totalSupply() + len > MAX_SUPPLY) { revert ExceedsSupply(); } for (uint256 i = 0; i < len; i++) { _mint(recipients[i], 1); } } /** * @notice Returns a metadata path combining the stored base URI * @param tokenId_ The token ID. */ function tokenURI( uint256 tokenId_ ) public view override returns (string memory) { if (!_exists(tokenId_)) { revert URIQueryForNonexistentToken(); } return string(abi.encodePacked(_baseUri, _toString(tokenId_))); } /** * @notice Updates the base URI for token metadata. * @param newBaseUri_ The new base URI. */ function setBaseUri(string calldata newBaseUri_) external { _requireCallerIsContractOwner(); _baseUri = newBaseUri_; } function baseUri() external view returns (string memory) { return _baseUri; } /** * @notice Toggles token transfers. If disabled, only minting from address(0) is allowed. * @param enabled_ True to enable transfers, false to disable. */ function setTransfersEnabled(bool enabled_) public { _requireCallerIsContractOwner(); transfersEnabled = enabled_; } function _beforeTokenTransfers( address from_, address to_, uint256 startTokenId_, uint256 quantity_ ) internal override { if (!transfersEnabled && from_ != address(0)) { revert TransfersNotEnabled(); } super._beforeTokenTransfers(from_, to_, startTokenId_, quantity_); } function setApprovalForAll( address operator_, bool approved_ ) public override { if (!transfersEnabled) { revert TransfersNotEnabled(); } super.setApprovalForAll(operator_, approved_); } /** * @notice Optionally updates the default royalty setting (in basis points). * @param receiver_ The address to receive the royalties. * @param feeNumerator_ The royalty fee in basis points. */ function setDefaultRoyalty(address receiver_, uint96 feeNumerator_) public { _requireCallerIsContractOwner(); _setDefaultRoyalty(receiver_, feeNumerator_); } /** * @notice Optionally sets royalty info for a specific token ID. * @param tokenId_ Token ID to set a custom royalty for. * @param receiver_ The address to receive the royalties. * @param feeNumerator_ The royalty fee in basis points. */ function setTokenRoyalty( uint256 tokenId_, address receiver_, uint96 feeNumerator_ ) public { _requireCallerIsContractOwner(); _setTokenRoyalty(tokenId_, receiver_, feeNumerator_); } function supportsInterface( bytes4 interfaceId_ ) public view virtual override(ERC721AC, ERC2981) returns (bool) { return ERC721AC.supportsInterface(interfaceId_) || ERC2981.supportsInterface(interfaceId_); } function _startTokenId() internal pure override returns (uint256) { return 1; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./OwnablePermissions.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; abstract contract OwnableBasic is OwnablePermissions, Ownable { function _requireCallerIsContractOwner() internal view virtual override { _checkOwner(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "../utils/AutomaticValidatorTransferApproval.sol"; import "../utils/CreatorTokenBase.sol"; import "erc721a/contracts/ERC721A.sol"; import {TOKEN_TYPE_ERC721} from "@limitbreak/permit-c/src/Constants.sol"; /** * @title ERC721AC * @author Limit Break, Inc. * @notice Extends Azuki's ERC721-A implementation with Creator Token functionality, which * allows the contract owner to update the transfer validation logic by managing a security policy in * an external transfer validation security policy registry. See {CreatorTokenTransferValidator}. */ abstract contract ERC721AC is ERC721A, CreatorTokenBase, AutomaticValidatorTransferApproval { constructor(string memory name_, string memory symbol_) CreatorTokenBase() ERC721A(name_, symbol_) {} /** * @notice Overrides behavior of isApprovedFor all such that if an operator is not explicitly approved * for all, the contract owner can optionally auto-approve the 721-C transfer validator for transfers. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool isApproved) { isApproved = super.isApprovedForAll(owner, operator); if (!isApproved) { if (autoApproveTransfersFromValidator) { isApproved = operator == address(getTransferValidator()); } } } /** * @notice Indicates whether the contract implements the specified interface. * @dev Overrides supportsInterface in ERC165. * @param interfaceId The interface id * @return true if the contract implements the specified interface, false otherwise */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(ICreatorToken).interfaceId || interfaceId == type(ICreatorTokenLegacy).interfaceId || super.supportsInterface(interfaceId); } /** * @notice Returns the function selector for the transfer validator's validation function to be called * @notice for transaction simulation. */ function getTransferValidationFunction() external pure returns (bytes4 functionSignature, bool isViewFunction) { functionSignature = bytes4(keccak256("validateTransfer(address,address,address,uint256)")); isViewFunction = true; } /// @dev Ties the erc721a _beforeTokenTransfers hook to more granular transfer validation logic function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual override { for (uint256 i = 0; i < quantity;) { _validateBeforeTransfer(from, to, startTokenId + i); unchecked { ++i; } } } /// @dev Ties the erc721a _afterTokenTransfer hook to more granular transfer validation logic function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual override { for (uint256 i = 0; i < quantity;) { _validateAfterTransfer(from, to, startTokenId + i); unchecked { ++i; } } } function _msgSenderERC721A() internal view virtual override returns (address) { return _msgSender(); } function _tokenType() internal pure override returns(uint16) { return uint16(TOKEN_TYPE_ERC721); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/common/ERC2981.sol"; /** * @title BasicRoyaltiesBase * @author Limit Break, Inc. * @dev Base functionality of an NFT mix-in contract implementing the most basic form of programmable royalties. */ abstract contract BasicRoyaltiesBase is ERC2981 { event DefaultRoyaltySet(address indexed receiver, uint96 feeNumerator); event TokenRoyaltySet(uint256 indexed tokenId, address indexed receiver, uint96 feeNumerator); function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual override { super._setDefaultRoyalty(receiver, feeNumerator); emit DefaultRoyaltySet(receiver, feeNumerator); } function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual override { super._setTokenRoyalty(tokenId, receiver, feeNumerator); emit TokenRoyaltySet(tokenId, receiver, feeNumerator); } } /** * @title BasicRoyalties * @author Limit Break, Inc. * @notice Constructable BasicRoyalties Contract implementation. */ abstract contract BasicRoyalties is BasicRoyaltiesBase { constructor(address receiver, uint96 feeNumerator) { _setDefaultRoyalty(receiver, feeNumerator); } } /** * @title BasicRoyaltiesInitializable * @author Limit Break, Inc. * @notice Initializable BasicRoyalties Contract implementation to allow for EIP-1167 clones. */ abstract contract BasicRoyaltiesInitializable is BasicRoyaltiesBase {}
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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 // ERC721A Contracts v4.3.0 // 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()`. * * The `_sequentialUpTo()` function can be overriden to enable spot mints * (i.e. non-consecutive mints) for `tokenId`s greater than `_sequentialUpTo()`. * * 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; // The amount of tokens minted above `_sequentialUpTo()`. // We call these spot mints (i.e. non-sequential mints). uint256 private _spotMinted; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); if (_sequentialUpTo() < _startTokenId()) _revert(SequentialUpToTooSmall.selector); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID for sequential mints. * * Override this function to change the starting token ID for sequential mints. * * Note: The value returned must never change after any tokens have been minted. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the maximum token ID (inclusive) for sequential mints. * * Override this function to return a value less than 2**256 - 1, * but greater than `_startTokenId()`, to enable spot (non-sequential) mints. * * Note: The value returned must never change after any tokens have been minted. */ function _sequentialUpTo() internal view virtual returns (uint256) { return type(uint256).max; } /** * @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 result) { // Counter underflow is impossible as `_burnCounter` cannot be incremented // more than `_currentIndex + _spotMinted - _startTokenId()` times. unchecked { // With spot minting, the intermediate `result` can be temporarily negative, // and the computation must be unchecked. result = _currentIndex - _burnCounter - _startTokenId(); if (_sequentialUpTo() != type(uint256).max) result += _spotMinted; } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256 result) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { result = _currentIndex - _startTokenId(); if (_sequentialUpTo() != type(uint256).max) result += _spotMinted; } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } /** * @dev Returns the total number of tokens that are spot-minted. */ function _totalSpotMinted() internal view virtual returns (uint256) { return _spotMinted; } // ============================================================= // 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.selector); 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.selector); 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 Returns whether the ownership slot at `index` is initialized. * An uninitialized slot does not necessarily mean that the slot has no owner. */ function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) { return _packedOwnerships[index] != 0; } /** * @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); } } /** * @dev Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) { if (_startTokenId() <= tokenId) { packed = _packedOwnerships[tokenId]; if (tokenId > _sequentialUpTo()) { if (_packedOwnershipExists(packed)) return packed; _revert(OwnerQueryForNonexistentToken.selector); } // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector); // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = _packedOwnerships[--tokenId]; } if (packed == 0) continue; if (packed & _BITMASK_BURNED == 0) return packed; // Otherwise, the token is burned, and we must revert. // This handles the case of batch burned tokens, where only the burned bit // of the starting slot is set, and remaining slots are left uninitialized. _revert(OwnerQueryForNonexistentToken.selector); } } // Otherwise, the data exists and we can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. // If the token is not burned, return `packed`. Otherwise, revert. if (packed & _BITMASK_BURNED == 0) return packed; } _revert(OwnerQueryForNonexistentToken.selector); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve(address to, uint256 tokenId) public payable virtual override { _approve(to, tokenId, true); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) _revert(ApprovalQueryForNonexistentToken.selector); 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 result) { if (_startTokenId() <= tokenId) { if (tokenId > _sequentialUpTo()) return _packedOwnershipExists(_packedOwnerships[tokenId]); if (tokenId < _currentIndex) { uint256 packed; while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId; result = packed & _BITMASK_BURNED == 0; } } } /** * @dev Returns whether `packed` represents a token that exists. */ function _packedOwnershipExists(uint256 packed) private pure returns (bool result) { assembly { // The following is equivalent to `owner != address(0) && burned == false`. // Symbolically tested. result := gt(and(packed, _BITMASK_ADDRESS), and(packed, _BITMASK_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); // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS)); if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector); (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.selector); _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; } } } } // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; assembly { // 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. from, // `from`. toMasked, // `to`. tokenId // `tokenId`. ) } if (toMasked == 0) _revert(TransferToZeroAddress.selector); _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.selector); } } /** * @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.selector); } 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.selector); _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: // - `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) ); // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); uint256 end = startTokenId + quantity; uint256 tokenId = startTokenId; if (end - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector); do { assembly { // 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`. tokenId // `tokenId`. ) } // The `!=` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. } while (++tokenId != end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) _revert(MintToZeroAddress.selector); if (quantity == 0) _revert(MintZeroQuantity.selector); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector); _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) ); if (startTokenId + quantity - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector); 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.selector); } } while (index < end); // This prevents reentrancy to `_safeMint`. // It does not prevent reentrancy to `_safeMintSpot`. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } /** * @dev Mints a single token at `tokenId`. * * Note: A spot-minted `tokenId` that has been burned can be re-minted again. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` must be greater than `_sequentialUpTo()`. * - `tokenId` must not exist. * * Emits a {Transfer} event for each mint. */ function _mintSpot(address to, uint256 tokenId) internal virtual { if (tokenId <= _sequentialUpTo()) _revert(SpotMintTokenIdTooSmall.selector); uint256 prevOwnershipPacked = _packedOwnerships[tokenId]; if (_packedOwnershipExists(prevOwnershipPacked)) _revert(TokenAlreadyExists.selector); _beforeTokenTransfers(address(0), to, tokenId, 1); // Overflows are incredibly unrealistic. // The `numberMinted` for `to` is incremented by 1, and has a max limit of 2**64 - 1. // `_spotMinted` is incremented by 1, and has a max limit of 2**256 - 1. unchecked { // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `true` (as `quantity == 1`). _packedOwnerships[tokenId] = _packOwnershipData( to, _nextInitializedFlag(1) | _nextExtraData(address(0), to, prevOwnershipPacked) ); // Updates: // - `balance += 1`. // - `numberMinted += 1`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += (1 << _BITPOS_NUMBER_MINTED) | 1; // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS; if (toMasked == 0) _revert(MintToZeroAddress.selector); assembly { // 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`. tokenId // `tokenId`. ) } ++_spotMinted; } _afterTokenTransfers(address(0), to, tokenId, 1); } /** * @dev Safely mints a single token at `tokenId`. * * Note: A spot-minted `tokenId` that has been burned can be re-minted again. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}. * - `tokenId` must be greater than `_sequentialUpTo()`. * - `tokenId` must not exist. * * See {_mintSpot}. * * Emits a {Transfer} event. */ function _safeMintSpot( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mintSpot(to, tokenId); unchecked { if (to.code.length != 0) { uint256 currentSpotMinted = _spotMinted; if (!_checkContractOnERC721Received(address(0), to, tokenId, _data)) { _revert(TransferToNonERC721ReceiverImplementer.selector); } // This prevents reentrancy to `_safeMintSpot`. // It does not prevent reentrancy to `_safeMint`. if (_spotMinted != currentSpotMinted) revert(); } } } /** * @dev Equivalent to `_safeMintSpot(to, tokenId, '')`. */ function _safeMintSpot(address to, uint256 tokenId) internal virtual { _safeMintSpot(to, tokenId, ''); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck && _msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { _revert(ApprovalCallerNotOwnerNorApproved.selector); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) _revert(TransferCallerNotOwnerNorApproved.selector); } _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 + _spotMinted` 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.selector); 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) } } /** * @dev For more efficient reverts. */ function _revert(bytes4 errorSelector) internal pure { assembly { mstore(0x00, errorSelector) revert(0x00, 0x04) } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/utils/Context.sol"; abstract contract OwnablePermissions is Context { function _requireCallerIsContractOwner() internal view virtual; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @dev Constant bytes32 value of 0x000...000 bytes32 constant ZERO_BYTES32 = bytes32(0); /// @dev Constant value of 0 uint256 constant ZERO = 0; /// @dev Constant value of 1 uint256 constant ONE = 1; /// @dev Constant value representing an open order in storage uint8 constant ORDER_STATE_OPEN = 0; /// @dev Constant value representing a filled order in storage uint8 constant ORDER_STATE_FILLED = 1; /// @dev Constant value representing a cancelled order in storage uint8 constant ORDER_STATE_CANCELLED = 2; /// @dev Constant value representing the ERC721 token type for signatures and transfer hooks uint256 constant TOKEN_TYPE_ERC721 = 721; /// @dev Constant value representing the ERC1155 token type for signatures and transfer hooks uint256 constant TOKEN_TYPE_ERC1155 = 1155; /// @dev Constant value representing the ERC20 token type for signatures and transfer hooks uint256 constant TOKEN_TYPE_ERC20 = 20; /// @dev Constant value to mask the upper bits of a signature that uses a packed `vs` value to extract `s` bytes32 constant UPPER_BIT_MASK = 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff; /// @dev EIP-712 typehash used for validating signature based stored approvals bytes32 constant UPDATE_APPROVAL_TYPEHASH = keccak256("UpdateApprovalBySignature(uint256 tokenType,address token,uint256 id,uint256 amount,uint256 nonce,address operator,uint256 approvalExpiration,uint256 sigDeadline,uint256 masterNonce)"); /// @dev EIP-712 typehash used for validating a single use permit without additional data bytes32 constant SINGLE_USE_PERMIT_TYPEHASH = keccak256("PermitTransferFrom(uint256 tokenType,address token,uint256 id,uint256 amount,uint256 nonce,address operator,uint256 expiration,uint256 masterNonce)"); /// @dev EIP-712 typehash used for validating a single use permit with additional data string constant SINGLE_USE_PERMIT_TRANSFER_ADVANCED_TYPEHASH_STUB = "PermitTransferFromWithAdditionalData(uint256 tokenType,address token,uint256 id,uint256 amount,uint256 nonce,address operator,uint256 expiration,uint256 masterNonce,"; /// @dev EIP-712 typehash used for validating an order permit that updates storage as it fills string constant PERMIT_ORDER_ADVANCED_TYPEHASH_STUB = "PermitOrderWithAdditionalData(uint256 tokenType,address token,uint256 id,uint256 amount,uint256 salt,address operator,uint256 expiration,uint256 masterNonce,"; /// @dev Pausable flag for stored approval transfers of ERC721 assets uint256 constant PAUSABLE_APPROVAL_TRANSFER_FROM_ERC721 = 1 << 0; /// @dev Pausable flag for stored approval transfers of ERC1155 assets uint256 constant PAUSABLE_APPROVAL_TRANSFER_FROM_ERC1155 = 1 << 1; /// @dev Pausable flag for stored approval transfers of ERC20 assets uint256 constant PAUSABLE_APPROVAL_TRANSFER_FROM_ERC20 = 1 << 2; /// @dev Pausable flag for single use permit transfers of ERC721 assets uint256 constant PAUSABLE_PERMITTED_TRANSFER_FROM_ERC721 = 1 << 3; /// @dev Pausable flag for single use permit transfers of ERC1155 assets uint256 constant PAUSABLE_PERMITTED_TRANSFER_FROM_ERC1155 = 1 << 4; /// @dev Pausable flag for single use permit transfers of ERC20 assets uint256 constant PAUSABLE_PERMITTED_TRANSFER_FROM_ERC20 = 1 << 5; /// @dev Pausable flag for order fill transfers of ERC1155 assets uint256 constant PAUSABLE_ORDER_TRANSFER_FROM_ERC1155 = 1 << 6; /// @dev Pausable flag for order fill transfers of ERC20 assets uint256 constant PAUSABLE_ORDER_TRANSFER_FROM_ERC20 = 1 << 7;
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/common/ERC2981.sol) pragma solidity ^0.8.20; import {IERC2981} from "../../interfaces/IERC2981.sol"; import {IERC165, ERC165} from "../../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 ERC. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 tokenId => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev The default royalty set is invalid (eg. (numerator / denominator) >= 1). */ error ERC2981InvalidDefaultRoyalty(uint256 numerator, uint256 denominator); /** * @dev The default royalty receiver is invalid. */ error ERC2981InvalidDefaultRoyaltyReceiver(address receiver); /** * @dev The royalty set for an specific `tokenId` is invalid (eg. (numerator / denominator) >= 1). */ error ERC2981InvalidTokenRoyalty(uint256 tokenId, uint256 numerator, uint256 denominator); /** * @dev The royalty receiver for `tokenId` is invalid. */ error ERC2981InvalidTokenRoyaltyReceiver(uint256 tokenId, address receiver); /** * @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 returns (address receiver, uint256 amount) { RoyaltyInfo storage _royaltyInfo = _tokenRoyaltyInfo[tokenId]; address royaltyReceiver = _royaltyInfo.receiver; uint96 royaltyFraction = _royaltyInfo.royaltyFraction; if (royaltyReceiver == address(0)) { royaltyReceiver = _defaultRoyaltyInfo.receiver; royaltyFraction = _defaultRoyaltyInfo.royaltyFraction; } uint256 royaltyAmount = (salePrice * royaltyFraction) / _feeDenominator(); return (royaltyReceiver, 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 { uint256 denominator = _feeDenominator(); if (feeNumerator > denominator) { // Royalty fee will exceed the sale price revert ERC2981InvalidDefaultRoyalty(feeNumerator, denominator); } if (receiver == address(0)) { revert ERC2981InvalidDefaultRoyaltyReceiver(address(0)); } _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 { uint256 denominator = _feeDenominator(); if (feeNumerator > denominator) { // Royalty fee will exceed the sale price revert ERC2981InvalidTokenRoyalty(tokenId, feeNumerator, denominator); } if (receiver == address(0)) { revert ERC2981InvalidTokenRoyaltyReceiver(tokenId, address(0)); } _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 pragma solidity ^0.8.4; import "../access/OwnablePermissions.sol"; /** * @title AutomaticValidatorTransferApproval * @author Limit Break, Inc. * @notice Base contract mix-in that provides boilerplate code giving the contract owner the * option to automatically approve a 721-C transfer validator implementation for transfers. */ abstract contract AutomaticValidatorTransferApproval is OwnablePermissions { /// @dev Emitted when the automatic approval flag is modified by the creator. event AutomaticApprovalOfTransferValidatorSet(bool autoApproved); /// @dev If true, the collection's transfer validator is automatically approved to transfer holder's tokens. bool public autoApproveTransfersFromValidator; /** * @notice Sets if the transfer validator is automatically approved as an operator for all token owners. * * @dev Throws when the caller is not the contract owner. * * @param autoApprove If true, the collection's transfer validator will be automatically approved to * transfer holder's tokens. */ function setAutomaticApprovalOfTransfersFromValidator(bool autoApprove) external { _requireCallerIsContractOwner(); autoApproveTransfersFromValidator = autoApprove; emit AutomaticApprovalOfTransferValidatorSet(autoApprove); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "../access/OwnablePermissions.sol"; import "../interfaces/ICreatorToken.sol"; import "../interfaces/ICreatorTokenLegacy.sol"; import "../interfaces/ITransferValidator.sol"; import "./TransferValidation.sol"; import "../interfaces/ITransferValidatorSetTokenType.sol"; /** * @title CreatorTokenBase * @author Limit Break, Inc. * @notice CreatorTokenBaseV3 is an abstract contract that provides basic functionality for managing token * transfer policies through an implementation of ICreatorTokenTransferValidator/ICreatorTokenTransferValidatorV2/ICreatorTokenTransferValidatorV3. * This contract is intended to be used as a base for creator-specific token contracts, enabling customizable transfer * restrictions and security policies. * * <h4>Features:</h4> * <ul>Ownable: This contract can have an owner who can set and update the transfer validator.</ul> * <ul>TransferValidation: Implements the basic token transfer validation interface.</ul> * * <h4>Benefits:</h4> * <ul>Provides a flexible and modular way to implement custom token transfer restrictions and security policies.</ul> * <ul>Allows creators to enforce policies such as account and codehash blacklists, whitelists, and graylists.</ul> * <ul>Can be easily integrated into other token contracts as a base contract.</ul> * * <h4>Intended Usage:</h4> * <ul>Use as a base contract for creator token implementations that require advanced transfer restrictions and * security policies.</ul> * <ul>Set and update the ICreatorTokenTransferValidator implementation contract to enforce desired policies for the * creator token.</ul> * * <h4>Compatibility:</h4> * <ul>Backward and Forward Compatible - V1/V2/V3 Creator Token Base will work with V1/V2/V3 Transfer Validators.</ul> */ abstract contract CreatorTokenBase is OwnablePermissions, TransferValidation, ICreatorToken { /// @dev Thrown when setting a transfer validator address that has no deployed code. error CreatorTokenBase__InvalidTransferValidatorContract(); /// @dev The default transfer validator that will be used if no transfer validator has been set by the creator. address public constant DEFAULT_TRANSFER_VALIDATOR = address(0x721C002B0059009a671D00aD1700c9748146cd1B); /// @dev Used to determine if the default transfer validator is applied. /// @dev Set to true when the creator sets a transfer validator address. bool private isValidatorInitialized; /// @dev Address of the transfer validator to apply to transactions. address private transferValidator; constructor() { _emitDefaultTransferValidator(); _registerTokenType(DEFAULT_TRANSFER_VALIDATOR); } /** * @notice Sets the transfer validator for the token contract. * * @dev Throws when provided validator contract is not the zero address and does not have code. * @dev Throws when the caller is not the contract owner. * * @dev <h4>Postconditions:</h4> * 1. The transferValidator address is updated. * 2. The `TransferValidatorUpdated` event is emitted. * * @param transferValidator_ The address of the transfer validator contract. */ function setTransferValidator(address transferValidator_) public { _requireCallerIsContractOwner(); bool isValidTransferValidator = transferValidator_.code.length > 0; if(transferValidator_ != address(0) && !isValidTransferValidator) { revert CreatorTokenBase__InvalidTransferValidatorContract(); } emit TransferValidatorUpdated(address(getTransferValidator()), transferValidator_); isValidatorInitialized = true; transferValidator = transferValidator_; _registerTokenType(transferValidator_); } /** * @notice Returns the transfer validator contract address for this token contract. */ function getTransferValidator() public view override returns (address validator) { validator = transferValidator; if (validator == address(0)) { if (!isValidatorInitialized) { validator = DEFAULT_TRANSFER_VALIDATOR; } } } /** * @dev Pre-validates a token transfer, reverting if the transfer is not allowed by this token's security policy. * Inheriting contracts are responsible for overriding the _beforeTokenTransfer function, or its equivalent * and calling _validateBeforeTransfer so that checks can be properly applied during token transfers. * * @dev Be aware that if the msg.sender is the transfer validator, the transfer is automatically permitted, as the * transfer validator is expected to pre-validate the transfer. * * @dev Throws when the transfer doesn't comply with the collection's transfer policy, if the transferValidator is * set to a non-zero address. * * @param caller The address of the caller. * @param from The address of the sender. * @param to The address of the receiver. * @param tokenId The token id being transferred. */ function _preValidateTransfer( address caller, address from, address to, uint256 tokenId, uint256 /*value*/) internal virtual override { address validator = getTransferValidator(); if (validator != address(0)) { if (msg.sender == validator) { return; } ITransferValidator(validator).validateTransfer(caller, from, to, tokenId); } } /** * @dev Pre-validates a token transfer, reverting if the transfer is not allowed by this token's security policy. * Inheriting contracts are responsible for overriding the _beforeTokenTransfer function, or its equivalent * and calling _validateBeforeTransfer so that checks can be properly applied during token transfers. * * @dev Be aware that if the msg.sender is the transfer validator, the transfer is automatically permitted, as the * transfer validator is expected to pre-validate the transfer. * * @dev Used for ERC20 and ERC1155 token transfers which have an amount value to validate in the transfer validator. * @dev The `tokenId` for ERC20 tokens should be set to `0`. * * @dev Throws when the transfer doesn't comply with the collection's transfer policy, if the transferValidator is * set to a non-zero address. * * @param caller The address of the caller. * @param from The address of the sender. * @param to The address of the receiver. * @param tokenId The token id being transferred. * @param amount The amount of token being transferred. */ function _preValidateTransfer( address caller, address from, address to, uint256 tokenId, uint256 amount, uint256 /*value*/) internal virtual override { address validator = getTransferValidator(); if (validator != address(0)) { if (msg.sender == validator) { return; } ITransferValidator(validator).validateTransfer(caller, from, to, tokenId, amount); } } function _tokenType() internal virtual pure returns(uint16); function _registerTokenType(address validator) internal { if (validator != address(0)) { uint256 validatorCodeSize; assembly { validatorCodeSize := extcodesize(validator) } if(validatorCodeSize > 0) { try ITransferValidatorSetTokenType(validator).setTokenTypeOfCollection(address(this), _tokenType()) { } catch { } } } } /** * @dev Used during contract deployment for constructable and cloneable creator tokens * @dev to emit the `TransferValidatorUpdated` event signaling the validator for the contract * @dev is the default transfer validator. */ function _emitDefaultTransferValidator() internal { emit TransferValidatorUpdated(address(0), DEFAULT_TRANSFER_VALIDATOR); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.3.0 // 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(); /** * `_sequentialUpTo()` must be greater than `_startTokenId()`. */ error SequentialUpToTooSmall(); /** * The `tokenId` of a sequential mint exceeds `_sequentialUpTo()`. */ error SequentialMintExceedsLimit(); /** * Spot minting requires a `tokenId` greater than `_sequentialUpTo()`. */ error SpotMintTokenIdTooSmall(); /** * Cannot mint over a token that already exists. */ error TokenAlreadyExists(); /** * The feature is not compatible with spot mints. */ error NotCompatibleWithSpotMints(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.20; import {IERC165} from "../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. */ 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. * * NOTE: ERC-2981 allows setting the royalty to 100% of the price. In that case all the price would be sent to the * royalty receiver and 0 tokens to the seller. Contracts dealing with royalty should consider empty transfers. */ function royaltyInfo( uint256 tokenId, uint256 salePrice ) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC-165 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); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface ITransferValidator { function applyCollectionTransferPolicy(address caller, address from, address to) external view; function validateTransfer(address caller, address from, address to) external view; function validateTransfer(address caller, address from, address to, uint256 tokenId) external view; function validateTransfer(address caller, address from, address to, uint256 tokenId, uint256 amount) external; function beforeAuthorizedTransfer(address operator, address token, uint256 tokenId) external; function afterAuthorizedTransfer(address token, uint256 tokenId) external; function beforeAuthorizedTransfer(address operator, address token) external; function afterAuthorizedTransfer(address token) external; function beforeAuthorizedTransfer(address token, uint256 tokenId) external; function beforeAuthorizedTransferWithAmount(address token, uint256 tokenId, uint256 amount) external; function afterAuthorizedTransferWithAmount(address token, uint256 tokenId) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/utils/Context.sol"; /** * @title TransferValidation * @author Limit Break, Inc. * @notice A mix-in that can be combined with ERC-721 contracts to provide more granular hooks. * Openzeppelin's ERC721 contract only provides hooks for before and after transfer. This allows * developers to validate or customize transfers within the context of a mint, a burn, or a transfer. */ abstract contract TransferValidation is Context { /// @dev Thrown when the from and to address are both the zero address. error ShouldNotMintToBurnAddress(); /*************************************************************************/ /* Transfers Without Amounts */ /*************************************************************************/ /// @dev Inheriting contracts should call this function in the _beforeTokenTransfer function to get more granular hooks. function _validateBeforeTransfer(address from, address to, uint256 tokenId) internal virtual { bool fromZeroAddress = from == address(0); bool toZeroAddress = to == address(0); if(fromZeroAddress && toZeroAddress) { revert ShouldNotMintToBurnAddress(); } else if(fromZeroAddress) { _preValidateMint(_msgSender(), to, tokenId, msg.value); } else if(toZeroAddress) { _preValidateBurn(_msgSender(), from, tokenId, msg.value); } else { _preValidateTransfer(_msgSender(), from, to, tokenId, msg.value); } } /// @dev Inheriting contracts should call this function in the _afterTokenTransfer function to get more granular hooks. function _validateAfterTransfer(address from, address to, uint256 tokenId) internal virtual { bool fromZeroAddress = from == address(0); bool toZeroAddress = to == address(0); if(fromZeroAddress && toZeroAddress) { revert ShouldNotMintToBurnAddress(); } else if(fromZeroAddress) { _postValidateMint(_msgSender(), to, tokenId, msg.value); } else if(toZeroAddress) { _postValidateBurn(_msgSender(), from, tokenId, msg.value); } else { _postValidateTransfer(_msgSender(), from, to, tokenId, msg.value); } } /// @dev Optional validation hook that fires before a mint function _preValidateMint(address caller, address to, uint256 tokenId, uint256 value) internal virtual {} /// @dev Optional validation hook that fires after a mint function _postValidateMint(address caller, address to, uint256 tokenId, uint256 value) internal virtual {} /// @dev Optional validation hook that fires before a burn function _preValidateBurn(address caller, address from, uint256 tokenId, uint256 value) internal virtual {} /// @dev Optional validation hook that fires after a burn function _postValidateBurn(address caller, address from, uint256 tokenId, uint256 value) internal virtual {} /// @dev Optional validation hook that fires before a transfer function _preValidateTransfer(address caller, address from, address to, uint256 tokenId, uint256 value) internal virtual {} /// @dev Optional validation hook that fires after a transfer function _postValidateTransfer(address caller, address from, address to, uint256 tokenId, uint256 value) internal virtual {} /*************************************************************************/ /* Transfers With Amounts */ /*************************************************************************/ /// @dev Inheriting contracts should call this function in the _beforeTokenTransfer function to get more granular hooks. function _validateBeforeTransfer(address from, address to, uint256 tokenId, uint256 amount) internal virtual { bool fromZeroAddress = from == address(0); bool toZeroAddress = to == address(0); if(fromZeroAddress && toZeroAddress) { revert ShouldNotMintToBurnAddress(); } else if(fromZeroAddress) { _preValidateMint(_msgSender(), to, tokenId, amount, msg.value); } else if(toZeroAddress) { _preValidateBurn(_msgSender(), from, tokenId, amount, msg.value); } else { _preValidateTransfer(_msgSender(), from, to, tokenId, amount, msg.value); } } /// @dev Inheriting contracts should call this function in the _afterTokenTransfer function to get more granular hooks. function _validateAfterTransfer(address from, address to, uint256 tokenId, uint256 amount) internal virtual { bool fromZeroAddress = from == address(0); bool toZeroAddress = to == address(0); if(fromZeroAddress && toZeroAddress) { revert ShouldNotMintToBurnAddress(); } else if(fromZeroAddress) { _postValidateMint(_msgSender(), to, tokenId, amount, msg.value); } else if(toZeroAddress) { _postValidateBurn(_msgSender(), from, tokenId, amount, msg.value); } else { _postValidateTransfer(_msgSender(), from, to, tokenId, amount, msg.value); } } /// @dev Optional validation hook that fires before a mint function _preValidateMint(address caller, address to, uint256 tokenId, uint256 amount, uint256 value) internal virtual {} /// @dev Optional validation hook that fires after a mint function _postValidateMint(address caller, address to, uint256 tokenId, uint256 amount, uint256 value) internal virtual {} /// @dev Optional validation hook that fires before a burn function _preValidateBurn(address caller, address from, uint256 tokenId, uint256 amount, uint256 value) internal virtual {} /// @dev Optional validation hook that fires after a burn function _postValidateBurn(address caller, address from, uint256 tokenId, uint256 amount, uint256 value) internal virtual {} /// @dev Optional validation hook that fires before a transfer function _preValidateTransfer(address caller, address from, address to, uint256 tokenId, uint256 amount, uint256 value) internal virtual {} /// @dev Optional validation hook that fires after a transfer function _postValidateTransfer(address caller, address from, address to, uint256 tokenId, uint256 amount, uint256 value) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface ICreatorTokenLegacy { event TransferValidatorUpdated(address oldValidator, address newValidator); function getTransferValidator() external view returns (address validator); function setTransferValidator(address validator) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface ICreatorToken { event TransferValidatorUpdated(address oldValidator, address newValidator); function getTransferValidator() external view returns (address validator); function setTransferValidator(address validator) external; function getTransferValidationFunction() external view returns (bytes4 functionSignature, bool isViewFunction); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface ITransferValidatorSetTokenType { function setTokenTypeOfCollection(address collection, uint16 tokenType) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[ERC]. * * 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[ERC 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); }
{ "evmVersion": "paris", "optimizer": { "enabled": true, "mode": "3", "runs": 200 }, "outputSelection": { "*": { "*": [ "abi" ] } }, "detectMissingLibraries": false, "forceEVMLA": false, "enableEraVMExtensions": false, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"royaltyReceiver_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"CreatorTokenBase__InvalidTransferValidatorContract","type":"error"},{"inputs":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidDefaultRoyalty","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidDefaultRoyaltyReceiver","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidTokenRoyalty","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidTokenRoyaltyReceiver","type":"error"},{"inputs":[],"name":"ExceedsSupply","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotCompatibleWithSpotMints","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SequentialMintExceedsLimit","type":"error"},{"inputs":[],"name":"SequentialUpToTooSmall","type":"error"},{"inputs":[],"name":"ShouldNotMintToBurnAddress","type":"error"},{"inputs":[],"name":"SpotMintTokenIdTooSmall","type":"error"},{"inputs":[],"name":"TokenAlreadyExists","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"TransfersNotEnabled","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":false,"internalType":"bool","name":"autoApproved","type":"bool"}],"name":"AutomaticApprovalOfTransferValidatorSet","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":"receiver","type":"address"},{"indexed":false,"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"DefaultRoyaltySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"TokenRoyaltySet","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":"oldValidator","type":"address"},{"indexed":false,"internalType":"address","name":"newValidator","type":"address"}],"name":"TransferValidatorUpdated","type":"event"},{"inputs":[],"name":"DEFAULT_TRANSFER_VALIDATOR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"autoApproveTransfersFromValidator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTransferValidationFunction","outputs":[{"internalType":"bytes4","name":"functionSignature","type":"bytes4"},{"internalType":"bool","name":"isViewFunction","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getTransferValidator","outputs":[{"internalType":"address","name":"validator","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isApproved","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"receiver","type":"address"},{"internalType":"uint256","name":"amount","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":"bool","name":"autoApprove","type":"bool"}],"name":"setAutomaticApprovalOfTransfersFromValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseUri_","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver_","type":"address"},{"internalType":"uint96","name":"feeNumerator_","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"},{"internalType":"address","name":"receiver_","type":"address"},{"internalType":"uint96","name":"feeNumerator_","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"transferValidator_","type":"address"}],"name":"setTransferValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled_","type":"bool"}],"name":"setTransfersEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId_","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"result","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transfersEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
9c4d535b0000000000000000000000000000000000000000000000000000000000000000010003b720fe79fbf10fcdd38a213f2296e8a98dcd4c71876cc5156cb60d69df0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000002000000000000000000000000059475df1b73b38c839dbe6eb8789bee98c6678f5
Deployed Bytecode
0x0001000000000002000700000000000200000000000103550000008003000039000000400030043f0000006004100270000003260440019700000001002001900000002d0000c13d000000040040008c0000004f0000413d000000000201043b000000e002200270000003460020009c000000510000213d0000035e0020009c0000006a0000213d0000036a0020009c000000d20000213d000003700020009c0000014c0000213d000003730020009c0000027e0000613d000003740020009c0000004f0000c13d000000240040008c0000004f0000413d0000000002000416000000000002004b0000004f0000c13d0000000401100370000000000201043b000003a1002001980000004f0000c13d0000000101000039000003a202200197000003a30020009c000004e10000a13d000003a40020009c000004ea0000613d000003a50020009c000004ea0000613d000003a60020009c000004ea0000613d000004e50000013d0000000002000416000000000002004b0000004f0000c13d0000001f0240003900000327022001970000008002200039000000400020043f0000001f0540018f000003280640019800000080026000390000003d0000613d000000000701034f000000007807043c0000000003830436000000000023004b000000390000c13d000000000005004b0000004a0000613d000000000161034f0000000303500210000000000502043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f0000000000120435000000200040008c0000004f0000413d000000800a00043d0000032900a0009c000000770000a13d000000000100001900000c9400010430000003470020009c000000b00000213d000003530020009c000000e70000213d000003590020009c0000016f0000213d0000035c0020009c000002850000613d0000035d0020009c0000004f0000c13d000000240040008c0000004f0000413d0000000002000416000000000002004b0000004f0000c13d0000000401100370000000000101043b000003290010009c0000004f0000213d000000000001004b000004870000c13d0000039101000041000000000010043f0000037d0100004100000c94000104300000035f0020009c0000010c0000213d000003650020009c000001a10000213d000003680020009c000002950000613d000003690020009c0000004f0000c13d00000000010400190c9207eb0000040f0c9208250000040f000000000100001900000c930001042e000000400200043d0000032a0020009c000004350000813d0000004001200039000000400010043f000000080100003900000000051204360000032b010000410000000000150435000000400b00043d0000032c00b0009c000004350000213d0000004001b00039000000400010043f0000000601000039000000000c1b04360000032d0100004100000000001c043500000000030204330000032e0030009c000004350000213d0000000201000039000000000401041a000000010640019000000001044002700000007f0440618f0000001f0040008c00000000070000390000000107002039000000000076004b000004460000c13d000000200040008c000000a70000413d000000000010043f0000001f0630003900000005066002700000032f0660009a000000200030008c00000330060040410000001f0440003900000005044002700000032f0440009a000000000046004b000000a70000813d000000000006041b0000000106600039000000000046004b000000a30000413d0000001f0030008c0000000104300210000004060000a13d000000000010043f000003aa073001980000041a0000c13d00000020060000390000033005000041000004260000013d000003480020009c000001230000213d0000034e0020009c000001d40000213d000003510020009c000002a00000613d000003520020009c0000004f0000c13d000000440040008c0000004f0000413d0000000002000416000000000002004b0000004f0000c13d0000000402100370000000000202043b000700000002001d000003290020009c0000004f0000213d0000002401100370000000000201043b000000000002004b0000000001000039000000010100c039000600000002001d000000000012004b0000004f0000c13d0000000d01000039000000000101041a000000ff00100190000004ee0000c13d0000038601000041000000000010043f0000037d0100004100000c94000104300000036b0020009c0000021d0000213d0000036e0020009c000002df0000613d0000036f0020009c0000004f0000c13d000000440040008c0000004f0000413d0000000402100370000000000202043b000600000002001d000003290020009c0000004f0000213d0000002401100370000000000101043b000000000001004b000004910000c13d0000039c01000041000000000010043f0000037d0100004100000c9400010430000003540020009c0000022a0000213d000003570020009c000003070000613d000003580020009c0000004f0000c13d0000000001000416000000000001004b0000004f0000c13d0000000303000039000000000203041a000000010420019000000001012002700000007f0110618f0000001f0010008c00000000050000390000000105002039000000000552013f0000000100500190000004460000c13d000000800010043f000000000004004b000003f00000613d000000000030043f000000000001004b0000000002000019000003f50000613d00000389030000410000000002000019000000000403041a000000a005200039000000000045043500000001033000390000002002200039000000000012004b000001040000413d000003f50000013d000003600020009c000002520000213d000003630020009c000003100000613d000003640020009c0000004f0000c13d00000000010400190c9207eb0000040f000700000001001d000600000002001d000500000003001d000000400100043d000400000001001d00000020020000390c9208080000040f000000040400002900000000000404350000000701000029000000060200002900000005030000290c9209bb0000040f000000000100001900000c930001042e000003490020009c0000025d0000213d0000034c0020009c000003170000613d0000034d0020009c0000004f0000c13d000000240040008c0000004f0000413d0000000002000416000000000002004b0000004f0000c13d0000000401100370000000000201043b000000000002004b000005c50000613d000000000100041a000000000021004b000005c50000a13d000600000002001d000700000002001d000000000020043f0000000401000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f00000001002001900000004f0000613d000000000101043b000000000101041a000000000001004b000005910000c13d0000000702000029000000000002004b000000010220008a000001360000c13d000003010000013d000003710020009c000003220000613d000003720020009c0000004f0000c13d0000000001000416000000000001004b0000004f0000c13d0000000203000039000000000203041a000000010420019000000001012002700000007f0110618f0000001f0010008c00000000050000390000000105002039000000000552013f0000000100500190000004460000c13d000000800010043f000000000004004b000003f00000613d000000000030043f000000000001004b0000000002000019000003f50000613d00000330030000410000000002000019000000000403041a000000a005200039000000000045043500000001033000390000002002200039000000000012004b000001670000413d000003f50000013d0000035a0020009c0000033e0000613d0000035b0020009c0000004f0000c13d000000240040008c0000004f0000413d0000000002000416000000000002004b0000004f0000c13d0000000402100370000000000202043b0000032e0020009c0000004f0000213d0000002303200039000000000043004b0000004f0000813d0000000403200039000000000131034f000000000101043b000200000001001d0000032e0010009c0000004f0000213d000100240020003d000000020100002900000005011002100000000101100029000000000041004b0000004f0000213d0000000901000039000000000101041a00000329021001970000000001000411000000000012004b000004100000c13d0000000101000039000000000101041a000003ab01100167000000000200041a000500000002001d00000000011200190000000202000029000000000021001a000003010000413d0000000001210019000007d00010008c000005ea0000a13d0000039001000041000000000010043f0000037d0100004100000c9400010430000003660020009c000003570000613d000003670020009c0000004f0000c13d000000440040008c0000004f0000413d0000000002000416000000000002004b0000004f0000c13d0000002402100370000000000202043b000700000002001d0000000401100370000000000101043b000000000010043f0000000c01000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f00000001002001900000004f0000613d000000000101043b000000000201041a0000032901200198000001c20000c13d0000000b01000039000000000201041a0000032901200197000000a003200270000000070400002900000000024300a9000000000004004b000001ca0000613d00000000044200d9000000000043004b000003010000c13d000027100220011a000000400300043d000000200430003900000000002404350000000000130435000003260030009c0000032603008041000000400130021000000397011001c700000c930001042e0000034f0020009c000003670000613d000003500020009c0000004f0000c13d000000840040008c0000004f0000413d0000000402100370000000000502043b000003290050009c0000004f0000213d0000002402100370000000000202043b000003290020009c0000004f0000213d0000004403100370000000000303043b0000006406100370000000000706043b0000032e0070009c0000004f0000213d0000002306700039000000000046004b0000004f0000813d0000000408700039000000000681034f000000000606043b0000032e0060009c000004350000213d0000001f0a600039000003aa0aa001970000003f0aa00039000003aa0aa001970000037f00a0009c000004350000213d000000800aa000390000004000a0043f000000800060043f00000000076700190000002407700039000000000047004b0000004f0000213d0000002004800039000000000441034f000003aa076001980000001f0860018f000000a001700039000002090000613d000000a009000039000000000a04034f00000000ab0a043c0000000009b90436000000000019004b000002050000c13d000000000008004b000002160000613d000000000474034f0000000307800210000000000801043300000000087801cf000000000878022f000000000404043b0000010007700089000000000474022f00000000047401cf000000000484019f0000000000410435000000a0016000390000000000010435000000800400003900000000010500190c9209bb0000040f000000000100001900000c930001042e0000036c0020009c0000038e0000613d0000036d0020009c0000004f0000c13d0000000001000416000000000001004b0000004f0000c13d0000039801000041000000800010043f0000000101000039000000a00010043f000003990100004100000c930001042e000003550020009c000003950000613d000003560020009c0000004f0000c13d000000240040008c0000004f0000413d0000000002000416000000000002004b0000004f0000c13d0000000401100370000000000101043b000000000001004b0000000002000039000000010200c039000000000021004b0000004f0000c13d0000000902000039000000000202041a00000329032001970000000002000411000000000023004b000004150000c13d0000000a02000039000000000302041a0000038203300197000000000001004b0000000004000019000003830400c041000000000343019f000000000032041b000000800010043f0000000001000414000003260010009c0000032601008041000000c00110021000000387011001c70000800d0200003900000001030000390000038804000041000003520000013d000003610020009c000003b40000613d000003620020009c0000004f0000c13d0000000001000416000000000001004b0000004f0000c13d0000000a01000039000000000101041a00000381001001980000031d0000013d0000034a0020009c000003d80000613d0000034b0020009c0000004f0000c13d000000240040008c0000004f0000413d0000000002000416000000000002004b0000004f0000c13d0000000401100370000000000601043b000003290060009c0000004f0000213d0000000901000039000000000201041a00000329032001970000000005000411000000000053004b000003eb0000c13d000000000006004b000006a80000613d0000033302200197000000000262019f000000000021041b0000000001000414000003260010009c0000032601008041000000c00110021000000334011001c70000800d0200003900000003030000390000033504000041000003520000013d0000000001000416000000000001004b0000004f0000c13d0000033601000041000000800010043f0000037e0100004100000c930001042e000000240040008c0000004f0000413d0000000002000416000000000002004b0000004f0000c13d0000000401100370000000000101043b0c920c360000040f0000032901100197000000400200043d0000000000120435000003260020009c0000032602008041000000400120021000000378011001c700000c930001042e0000000001000416000000000001004b0000004f0000c13d0000000101000039000000000101041a000003ab01100167000000000200041a0000000001120019000000800010043f0000037e0100004100000c930001042e000000240040008c0000004f0000413d0000000002000416000000000002004b0000004f0000c13d0000000402100370000000000302043b0000032e0030009c0000004f0000213d0000002302300039000000000042004b0000004f0000813d0000000406300039000000000261034f000000000202043b0000032e0020009c0000004f0000213d00000024053000390000000003520019000000000043004b0000004f0000213d0000000903000039000000000303041a00000329043001970000000003000411000000000034004b000005d70000c13d0000000e03000039000000000703041a000000010070019000000001047002700000007f0440618f0000001f0040008c00000000080000390000000108002039000000000787013f0000000100700190000004460000c13d000000200040008c000002d70000413d000000000030043f0000001f0720003900000005077002700000033f0770009a000000200020008c00000342070040410000001f0440003900000005044002700000033f0440009a000000000047004b000002d70000813d000000000007041b0000000107700039000000000047004b000002d30000413d0000001f0020008c000007600000a13d000000000030043f000003aa06200198000007880000c13d00000342040000410000000007000019000007920000013d000000240040008c0000004f0000413d0000000002000416000000000002004b0000004f0000c13d0000000401100370000000000201043b000000000002004b000005d30000613d000000000100041a000000000021004b000005d30000a13d000600000002001d000700000002001d000000000020043f0000000401000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f00000001002001900000004f0000613d000000000101043b000000000101041a000000000001004b000005c90000c13d0000000702000029000000000002004b000000010220008a000002ec0000c13d0000038401000041000000000010043f0000001101000039000000040010043f000003760100004100000c94000104300000000001000416000000000001004b0000004f0000c13d0000000901000039000000000101041a0000032901100197000000800010043f0000037e0100004100000c930001042e0000000001000416000000000001004b0000004f0000c13d000007d001000039000000800010043f0000037e0100004100000c930001042e0000000001000416000000000001004b0000004f0000c13d0000000d01000039000000000101041a000000ff001001900000000001000039000000010100c039000000800010043f0000037e0100004100000c930001042e000000440040008c0000004f0000413d0000000002000416000000000002004b0000004f0000c13d0000000402100370000000000502043b000003290050009c0000004f0000213d0000002401100370000000000101043b000003920010009c0000004f0000213d0000000902000039000000000202041a00000329032001970000000002000411000000000023004b000004150000c13d000027110010008c000005dc0000413d000003a002000041000000000020043f000000040010043f0000271001000039000000240010043f0000033c0100004100000c94000104300000000001000416000000000001004b0000004f0000c13d0000000901000039000000000201041a00000329032001970000000005000411000000000053004b000003eb0000c13d0000033302200197000000000021041b0000000001000414000003260010009c0000032601008041000000c00110021000000334011001c70000800d020000390000000303000039000003350400004100000000060000190c920c880000040f00000001002001900000004f0000613d000000000100001900000c930001042e000000240040008c0000004f0000413d0000000001000416000000000001004b0000004f0000c13d0c9207fd0000040f000700000001001d0c920c6a0000040f0000000d01000039000000000201041a000003ac02200197000000070000006b000000010220c1bf000000000021041b000000000100001900000c930001042e000000240040008c0000004f0000413d0000000002000416000000000002004b0000004f0000c13d0000000401100370000000000101043b000700000001001d000003290010009c0000004f0000213d0000000901000039000000000101041a00000329021001970000000001000411000000000012004b000004100000c13d00000339010000410000000000100443000000070100002900000004001004430000000001000414000003260010009c0000032601008041000000c0011002100000033a011001c700008002020000390c920c8d0000040f0000000100200190000007d10000613d0000000704000029000000000004004b0000052a0000613d000000000101043b000000000001004b0000052a0000c13d0000038001000041000000000010043f0000037d0100004100000c94000104300000000001000416000000000001004b0000004f0000c13d0c92081a0000040f000000800010043f0000037e0100004100000c930001042e0000000001000416000000000001004b0000004f0000c13d0000000e03000039000000000203041a000000010420019000000001012002700000007f0110618f0000001f0010008c00000000050000390000000105002039000000000552013f0000000100500190000004460000c13d000000800010043f000000000004004b000003f00000613d000000000030043f000000000001004b0000000002000019000003f50000613d00000342030000410000000002000019000000000403041a000000a005200039000000000045043500000001033000390000002002200039000000000012004b000003ac0000413d000003f50000013d000000640040008c0000004f0000413d0000000002000416000000000002004b0000004f0000c13d0000000402100370000000000202043b000700000002001d0000002402100370000000000202043b000600000002001d000003290020009c0000004f0000213d0000004401100370000000000101043b000500000001001d000003920010009c0000004f0000213d0000000901000039000000000101041a00000329021001970000000001000411000000000012004b000004100000c13d0000000503000029000027110030008c000005e00000413d0000039501000041000000000010043f0000000701000029000000040010043f000000240030043f0000271001000039000000440010043f000003960100004100000c9400010430000000440040008c0000004f0000413d0000000002000416000000000002004b0000004f0000c13d0000000402100370000000000302043b000003290030009c0000004f0000213d0000002401100370000000000201043b000003290020009c0000004f0000213d00000000010300190c920c000000040f000000000001004b0000000001000039000000010100c0390000028e0000013d0000037501000041000000000010043f000000040050043f000003760100004100000c9400010430000003ac02200197000000a00020043f000000000001004b00000020020000390000000002006039000000200220003900000080010000390c9208080000040f000000400100043d000700000001001d00000080020000390c9207d60000040f00000007020000290000000001210049000003260010009c00000326010080410000006001100210000003260020009c00000326020080410000004002200210000000000121019f00000c930001042e000000000003004b00000000020000190000040a0000613d00000000020504330000000303300210000003ab0330027f000003ab03300167000000000232016f000000000242019f000004310000013d0000037502000041000000000020043f000000040010043f000003760100004100000c94000104300000037501000041000000000010043f000000040020043f000003760100004100000c940001043000000330050000410000002006000039000000010870008a0000000508800270000003310880009a00000000092600190000000009090433000000000095041b00000020066000390000000105500039000000000085004b0000041f0000c13d000000000037004b000004300000813d0000000303300210000000f80330018f000003ab0330027f000003ab0330016700000000022600190000000002020433000000000232016f000000000025041b00000001024001bf000000000021041b00000000040b04330000032e0040009c0000043b0000a13d0000038401000041000000000010043f0000004101000039000000040010043f000003760100004100000c94000104300000000307000039000000000107041a000000010010019000000001031002700000007f0330618f0000001f0030008c00000000020000390000000102002039000000000121013f00000001001001900000044c0000613d0000038401000041000000000010043f0000002201000039000000040010043f000003760100004100000c9400010430000000200030008c00050000000a001d000004710000413d000300000003001d000600000004001d00040000000c001d00070000000b001d000000000070043f0000000001000414000003260010009c0000032601008041000000c00110021000000332011001c700008010020000390c920c8d0000040f00000001002001900000004f0000613d00000006040000290000001f024000390000000502200270000000200040008c0000000002004019000000000301043b00000003010000290000001f01100039000000050110027000000000011300190000000002230019000000000012004b000000070b000029000000040c0000290000000307000039000004710000813d000000000002041b0000000102200039000000000012004b0000046d0000413d000000200040008c0000051f0000413d000600000004001d00070000000b001d000000000070043f0000000001000414000003260010009c0000032601008041000000c00110021000000332011001c700008010020000390c920c8d0000040f00000001002001900000004f0000613d0000000608000029000003aa02800198000000000101043b0000000706000029000006890000c13d00000020030000390000000307000039000006960000013d000000000010043f0000000501000039000000200010043f00000040010000390c920c770000040f000000000101041a0000032e01100197000000800010043f0000037e0100004100000c930001042e000500000001001d000000000010043f0000000401000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f00000001002001900000004f0000613d000000000101043b000000000101041a000000000001004b000004b90000c13d000000000100041a0000000502000029000000000021004b000000e30000a13d000000010220008a000700000002001d000000000020043f0000000401000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f00000001002001900000004f0000613d000000000101043b000000000101041a000000000001004b0000000702000029000004a60000613d00000379001001980000000502000029000000e30000c13d000703290010019b0000000003000411000000070030006c0000072d0000c13d000000000020043f0000000601000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f00000001002001900000004f0000613d00000006020000290000032906200197000000000101043b000000000201041a0000033302200197000000000262019f000000000021041b0000000001000414000003260010009c0000032601008041000000c00110021000000334011001c70000800d0200003900000004030000390000039b04000041000000070500002900000005070000290c920c880000040f00000001002001900000004f0000613d000003550000013d000003a70020009c000004ea0000613d000003a80020009c000004ea0000613d000003a70020009c00000000010000390000000101006039000003a90020009c00000001011061bf000000010110018f000000800010043f0000037e0100004100000c930001042e0000000001000411000000000010043f0000000701000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f00000001002001900000004f0000613d000000000101043b0000000702000029000000000020043f000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f00000001002001900000004f0000613d000000000101043b000000000201041a000003ac022001970000000603000029000000000232019f000000000021041b000000400100043d0000000000310435000003260010009c000003260100804100000040011002100000000002000414000003260020009c0000032602008041000000c002200210000000000112019f00000332011001c70000800d020000390000000303000039000003850400004100000000050004110000000706000029000003520000013d000000000004004b0000000001000019000006a20000613d0000000301400210000003ab0110027f000003ab0110016700000000020c0433000000000112016f0000000102400210000000000121019f000006a20000013d0000000a01000039000000000101041a0000032901100198000005330000c13d0000000901000039000000000101041a000003810010019800000000010000190000033601006041000000400200043d000000200320003900000000004304350000000000120435000003260020009c000003260200804100000040012002100000000002000414000003260020009c0000032602008041000000c002200210000000000112019f00000337011001c70000800d02000039000000010300003900000338040000410c920c880000040f00000001002001900000004f0000613d0000000902000039000000000102041a000003820110019700000383011001c7000000000012041b0000000a03000039000000000103041a000003330110019700000007011001af000000000013041b000000070000006b000003550000613d00000339010000410000000000100443000000070100002900000004001004430000000001000414000003260010009c0000032601008041000000c0011002100000033a011001c700008002020000390c920c8d0000040f0000000100200190000007d10000613d000000000101043b000000000001004b000003550000613d00000339010000410000000000100443000000070100002900000004001004430000000001000414000003260010009c0000032601008041000000c0011002100000033a011001c700008002020000390c920c8d0000040f0000000100200190000007d10000613d000000000101043b000000000001004b0000004f0000613d000000400300043d0000002401300039000002d10200003900000000002104350000033b010000410000000000130435000000040130003900000000020004100000000000210435000003260030009c000600000003001d0000032601000041000000000103401900000040011002100000000002000414000003260020009c0000032602008041000000c002200210000000000112019f0000033c011001c700000007020000290c920c880000040f0000000100200190000003550000613d00000006010000290000032e0010009c000004350000213d0000000601000029000000400010043f000000000100001900000c930001042e00000379001001980000000606000029000005c50000c13d000000400200043d000000a001200039000000400010043f000000800120003900000000000104350000000003010019000000090060008c0000000a1660011a000000f804100210000000010130008a00000000050104330000037a05500197000000000445019f0000037b044001c70000000000410435000005990000213d00000000023200490000008104200039000000210230008a00000000004204350000000e06000039000000000506041a000000010750019000000001035002700000007f0330618f0000001f0030008c00000000040000390000000104002039000000000445013f0000000100400190000004460000c13d000000400400043d00000000090400190000002004400039000000000007004b0000076c0000613d000000000060043f000000000003004b0000076e0000613d000003420500004100000000060000190000000007460019000000000805041a000000000087043500000001055000390000002006600039000000000036004b000005bd0000413d0000076e0000013d0000037c01000041000000000010043f0000037d0100004100000c940001043000000379001001980000000601000029000005d30000c13d000000000010043f0000000601000039000000200010043f00000040010000390c920c770000040f000000000101041a0000028d0000013d0000039d01000041000000000010043f0000037d0100004100000c94000104300000037501000041000000000010043f000000040030043f000003760100004100000c9400010430000000000005004b0000064d0000c13d0000039f01000041000006a90000013d0000000602000029000000000002004b0000065f0000c13d0000039401000041000000000010043f0000000701000029000000040010043f000000240000043f0000033c0100004100000c9400010430000000000002004b000003550000613d000400000000001d000005f60000013d0000000303000029000000000030041b00000004020000290000000102200039000400000002001d000000020020006c000500000003001d000003550000813d0000000401000029000000050110021000000001011000290000000001100367000000000101043b000600000001001d000003290010009c0000004f0000213d000000060000006b000007d20000613d0000038a0100004100000000001004430000000001000414000003260010009c0000032601008041000000c0011002100000038b011001c70000800b020000390c920c8d0000040f0000000100200190000007d10000613d000000000101043b000700000001001d0000000501000029000000000010043f0000000401000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f00000001002001900000004f0000613d0000000702000029000000a0022002100000000603000029000000000223019f0000038c022001c7000000000101043b000000000021041b000000000030043f0000000501000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f00000001002001900000004f0000613d000000000101043b000000000201041a0000038d0220009a000000000021041b0000000501000029000300010010003d000700000001001d0000000001000019000006460000013d00000007070000290000000001000414000003260010009c0000032601008041000000c00110021000000334011001c70000800d0200003900000004030000390000038e0400004100000000050000190000000606000029000700000007001d0c920c880000040f000000010020019000000001010000390000004f0000613d0000000100100190000006360000613d0000000707000029000000050070006c000005ee0000613d0000000107700039000006370000013d000000c002000039000000400020043f000000800050043f000000a00010043f000000a002100210000000000252019f0000000b03000039000000000023041b000000c00010043f0000000001000414000003260010009c0000032601008041000000c0011002100000039e011001c70000800d0200003900000002030000390000033e04000041000003520000013d000000c001000039000000400010043f000000800020043f000000a00030043f0000000701000029000000000010043f0000000c01000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f00000001002001900000004f0000613d000000800200043d0000032902200197000000a00300043d000000a003300210000000000223019f000000000101043b000000000021041b000000400100043d00000005020000290000000000210435000003260010009c000003260100804100000040011002100000000002000414000003260020009c0000032602008041000000c002200210000000000112019f00000332011001c70000800d020000390000000303000039000003930400004100000007050000290000000606000029000003520000013d000000010320008a0000000503300270000000000431001900000020030000390000000104400039000000030700003900000000056300190000000005050433000000000051041b00000020033000390000000101100039000000000041004b0000068f0000c13d000000000082004b000006a00000813d0000000302800210000000f80220018f000003ab0220027f000003ab0220016700000000036300190000000003030433000000000223016f000000000021041b000000010180021000000001011001bf000000000017041b0000000101000039000000000010041b0000000001000411000000000001004b000006ad0000c13d0000037701000041000000000010043f000000040000043f000003760100004100000c940001043000000329061001970000000901000039000000000201041a0000033303200197000000000363019f000000000031041b00000000010004140000032905200197000003260010009c0000032601008041000000c00110021000000334011001c70000800d02000039000000030300003900000335040000410c920c880000040f00000001002001900000004f0000613d000000400100043d0000002002100039000003360300004100000000003204350000000000010435000003260010009c000003260100804100000040011002100000000002000414000003260020009c0000032602008041000000c002200210000000000112019f00000337011001c70000800d02000039000000010300003900000338040000410c920c880000040f00000001002001900000004f0000613d00000339010000410000000000100443000003360100004100000004001004430000000001000414000003260010009c0000032601008041000000c0011002100000033a011001c700008002020000390c920c8d0000040f0000000100200190000007d10000613d000000000101043b000000000001004b000007a30000c13d00000005010000290000032905100198000005de0000613d000000400100043d0000032c0010009c000004350000213d0000004002100039000000400020043f0000002002100039000001f403000039000000000032043500000000005104350000033d015001c70000000b02000039000000000012041b000000400100043d0000000000310435000003260010009c000003260100804100000040011002100000000002000414000003260020009c0000032602008041000000c002200210000000000112019f00000332011001c70000800d0200003900000002030000390000033e040000410c920c880000040f00000001002001900000004f0000613d0000000d01000039000000000201041a000003ac0220019700000001022001bf000000000021041b0000000e01000039000000000301041a000000010030019000000001023002700000007f0220618f0000001f0020008c00000000040000390000000104002039000000000343013f0000000100300190000004460000c13d000000200020008c0000071f0000413d000000410020008c0000071f0000413d0000001f0220003900000005022002700000033f0220009a0000034003000041000000000003041b0000000103300039000000000023004b0000071b0000413d0000006d02000039000000000021041b000000000010043f00000341010000410000034202000041000000000012041b00000343010000410000034402000041000000000012041b000000200100003900000100001004430000012000000443000003450100004100000c930001042e0000000701000029000000000010043f0000000701000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f00000001002001900000004f0000613d000000000101043b00000000020004110000032902200197000400000002001d000000000020043f000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f00000001002001900000004f0000613d000000000101043b000000000101041a000000ff001001900000000502000029000004c00000c13d0000000a01000039000000000101041a00000381001001980000075c0000613d0000032901100198000007590000c13d0000000901000039000000000101041a000003810010019800000000010000190000033601006041000000040010006b0000000502000029000004c00000613d0000039a01000041000000000010043f0000037d0100004100000c9400010430000000000002004b0000000004000019000007660000613d0000002004600039000000000141034f000000000401043b0000000301200210000003ab0110027f000003ab01100167000000000414016f00000001012002100000079f0000013d000003ac05500197000000000054043500000000034300190000000002020433000000000002004b0000077a0000613d000000000400001900000000053400190000000006140019000000000606043300000000006504350000002004400039000000000024004b000007730000413d00000000013200190000000000010435000700000009001d0000000002910049000000200120008a000000000019043500000000010900190c9208080000040f000000400100043d000600000001001d00000007020000290c9207d60000040f0000000602000029000003fd0000013d000003420400004100000000070000190000000008570019000000000881034f000000000808043b000000000084041b00000001044000390000002007700039000000000067004b0000078a0000413d000000000026004b0000079d0000813d0000000306200210000000f80660018f000003ab0660027f000003ab066001670000000005570019000000000151034f000000000101043b000000000161016f000000000014041b00000001010000390000000104200210000000000114019f000000000013041b000000000100001900000c930001042e00000339010000410000000000100443000003360100004100000004001004430000000001000414000003260010009c0000032601008041000000c0011002100000033a011001c700008002020000390c920c8d0000040f0000000100200190000007d10000613d000000000101043b000000000001004b0000004f0000613d000000400300043d0000002401300039000002d10200003900000000002104350000033b010000410000000000130435000000040130003900000000020004100000000000210435000003260030009c000700000003001d0000032601000041000000000103401900000040011002100000000002000414000003260020009c0000032602008041000000c002200210000000000112019f0000033c011001c700000336020000410c920c880000040f0000000100200190000006e30000613d00000007010000290000032e0010009c000004350000213d0000000701000029000000400010043f000006e30000013d000000000001042f0000038f01000041000000000010043f0000037d0100004100000c940001043000000020030000390000000004310436000000003202043400000000002404350000004001100039000000000002004b000007e50000613d000000000400001900000000051400190000000006430019000000000606043300000000006504350000002004400039000000000024004b000007de0000413d000000000312001900000000000304350000001f02200039000003aa022001970000000001120019000000000001042d000003ad0010009c000007fb0000213d000000630010008c000007fb0000a13d00000000030003670000000401300370000000000101043b000003290010009c000007fb0000213d0000002402300370000000000202043b000003290020009c000007fb0000213d0000004403300370000000000303043b000000000001042d000000000100001900000c940001043000000004010000390000000001100367000000000101043b000000000001004b0000000002000039000000010200c039000000000021004b000008060000c13d000000000001042d000000000100001900000c94000104300000001f02200039000003aa022001970000000001120019000000000021004b000000000200003900000001020040390000032e0010009c000008140000213d0000000100200190000008140000c13d000000400010043f000000000001042d0000038401000041000000000010043f0000004101000039000000040010043f000003760100004100000c94000104300000000a01000039000000000101041a00000329011001980000081f0000613d000000000001042d0000000901000039000000000101041a000003810010019800000000010000190000033601006041000000000001042d0008000000000002000400000002001d000600000001001d000700000003001d000000000003004b0000097c0000613d0000000701000029000000000010043f0000000401000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f00000001002001900000097a0000613d000000000101043b000000000101041a000000000001004b000008530000c13d000000000100041a000000070010006c0000097c0000a13d0000000702000029000000010220008a000800000002001d000000000020043f0000000401000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f00000001002001900000097a0000613d000000000101043b000000000101041a000000000001004b0000000802000029000008400000613d00000379001001980000097c0000c13d00000006020000290000032902200197000500000001001d0000032901100197000600000002001d000000000021004b000009810000c13d0000000701000029000000000010043f0000000601000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f00000001002001900000097a0000613d000000000301043b000000000403041a000000000600041100000329056001970000000602000029000000000025004b000008a40000613d000000000045004b000008a40000613d000100000004001d000200000003001d000000000020043f0000000701000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c70000801002000039000300000005001d0c920c8d0000040f000000030300002900000001002001900000097a0000613d000000000101043b000000000030043f000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f000000030500002900000001002001900000097a0000613d000000000101043b000000000101041a000000ff001001900000000602000029000000020300002900000001040000290000000006000411000008a40000c13d0000000a01000039000000000101041a00000381001001980000098d0000613d0000032901100198000008a20000c13d0000000901000039000000000101041a000003810010019800000000010000190000033601006041000000000015004b0000098d0000c13d000000000002004b000008aa0000613d0000000d01000039000000000101041a000000ff00100190000009850000613d00000004010000290000032901100197000000000002004b000800000001001d000008f00000613d000000000001004b000008f20000613d0000000a01000039000000000101041a0000032907100198000009720000613d000000000076004b000008f20000613d000300000005001d000100000004001d000200000003001d00000339010000410000000000100443000400000007001d00000004007004430000000001000414000003260010009c0000032601008041000000c0011002100000033a011001c700008002020000390c920c8d0000040f0000000100200190000009800000613d000000000101043b000000000001004b00000003030000290000097a0000613d000000400400043d0000006401400039000000070200002900000000002104350000004401400039000000080200002900000000002104350000002401400039000000060200002900000000002104350000039801000041000000000014043500000004014000390000000000310435000003260040009c000300000004001d0000032601000041000000000104401900000040011002100000000002000414000003260020009c0000032602008041000000c002200210000000000112019f000003b0011001c700000004020000290c920c8d0000040f0000000100200190000009950000613d0000000301000029000003b10010009c00000002030000290000000104000029000009b50000813d000000400010043f0000000602000029000008f20000013d000000000001004b000009910000613d000000000004004b000008f50000613d000000000003041b000000000020043f0000000501000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f00000001002001900000097a0000613d000000000101043b000000000201041a000000010220008a000000000021041b0000000801000029000000000010043f0000000501000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f00000001002001900000097a0000613d000000000101043b000000000201041a0000000102200039000000000021041b0000038a0100004100000000001004430000000001000414000003260010009c0000032601008041000000c0011002100000038b011001c70000800b020000390c920c8d0000040f0000000100200190000009800000613d000000000101043b000400000001001d0000000701000029000000000010043f0000000401000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f00000001002001900000097a0000613d0000000402000029000000a0022002100000000806000029000000000262019f0000038c022001c7000000000101043b000000000021041b00000005010000290000038c00100198000009620000c13d00000007010000290000000101100039000400000001001d000000000010043f0000000401000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f00000001002001900000097a0000613d000000000101043b000000000101041a000000000001004b0000000806000029000009620000c13d000000000100041a000000040010006b000009620000613d0000000401000029000000000010043f0000000401000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f00000001002001900000097a0000613d000000000101043b0000000502000029000000000021041b00000008060000290000000001000414000003260010009c0000032601008041000000c00110021000000334011001c70000800d0200003900000004030000390000038e04000041000000060500002900000007070000290c920c880000040f00000001002001900000097a0000613d000000080000006b000009890000613d000000000001042d0000000901000039000000000101041a0000038100100198000008f20000c13d0000033607000041000000000076004b000008b70000c13d000008f20000013d000000000100001900000c94000104300000039c01000041000000000010043f0000037d0100004100000c9400010430000000000001042f000003ae01000041000000000010043f0000037d0100004100000c94000104300000038601000041000000000010043f0000037d0100004100000c9400010430000003b201000041000000000010043f0000037d0100004100000c9400010430000003af01000041000000000010043f0000037d0100004100000c94000104300000038f01000041000000000010043f0000037d0100004100000c940001043000000060061002700000001f0460018f0000032805600198000000400200043d0000000003520019000009a10000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000038004b0000099d0000c13d0000032606600197000000000004004b000009af0000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f00000000001304350000006001600210000003260020009c00000326020080410000004002200210000000000112019f00000c94000104300000038401000041000000000010043f0000004101000039000000040010043f000003760100004100000c9400010430000b000000000002000400000004001d000700000002001d000900000001001d000a00000003001d000000000003004b00000b860000613d0000000a01000029000000000010043f0000000401000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f000000010020019000000b840000613d000000000101043b000000000101041a000000000001004b000009ea0000c13d000000000100041a0000000a0010006c00000b860000a13d0000000a02000029000000010220008a000b00000002001d000000000020043f0000000401000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f000000010020019000000b840000613d000000000101043b000000000101041a000000000001004b0000000b02000029000009d70000613d000003790010019800000b860000c13d00000009020000290000032902200197000600000001001d0000032901100197000900000002001d000000000021004b00000b8b0000c13d0000000a01000029000000000010043f0000000601000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f000000010020019000000b840000613d000000000401043b000000000504041a0000000006000411000803290060019b0000000902000029000000080020006b00000a390000613d000000080050006b00000a390000613d000300000005001d000500000004001d000000000020043f0000000701000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f000000010020019000000b840000613d000000000101043b0000000802000029000000000020043f000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f000000010020019000000b840000613d000000000101043b000000000101041a000000ff00100190000000090200002900000005040000290000000305000029000000000600041100000a390000c13d0000000a01000039000000000101041a000003810010019800000b9b0000613d000003290110019800000a370000c13d0000000901000039000000000101041a000003810010019800000000010000190000033601006041000000080010006b00000b9b0000c13d000000000002004b00000a3f0000613d0000000d01000039000000000101041a000000ff0010019000000b8f0000613d00000007010000290000032901100197000000000002004b000b00000001001d00000a840000613d000000000001004b00000a860000613d0000000a01000039000000000101041a000003290310019800000b7c0000613d000000000036004b00000a860000613d000300000005001d000500000004001d00000339010000410000000000100443000200000003001d00000004003004430000000001000414000003260010009c0000032601008041000000c0011002100000033a011001c700008002020000390c920c8d0000040f000000010020019000000b8a0000613d000000000101043b000000000001004b00000b840000613d000000400300043d00000064013000390000000a02000029000000000021043500000044013000390000000b02000029000000000021043500000024013000390000000902000029000000000021043500000398010000410000000000130435000000040130003900000008020000290000000000210435000003260030009c000100000003001d0000032601000041000000000103401900000040011002100000000002000414000003260020009c0000032602008041000000c002200210000000000112019f000003b0011001c700000002020000290c920c8d0000040f000000010020019000000be00000613d0000000101000029000003b10010009c0000000504000029000000030500002900000bd10000813d000000400010043f000000090200002900000a860000013d000000000001004b00000b9f0000613d000000000005004b00000a890000613d000000000004041b000000000020043f0000000501000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f000000010020019000000b840000613d000000000101043b000000000201041a000000010220008a000000000021041b0000000b01000029000000000010043f0000000501000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f000000010020019000000b840000613d000000000101043b000000000201041a0000000102200039000000000021041b0000038a0100004100000000001004430000000001000414000003260010009c0000032601008041000000c0011002100000038b011001c70000800b020000390c920c8d0000040f000000010020019000000b8a0000613d000000000101043b000500000001001d0000000a01000029000000000010043f0000000401000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f000000010020019000000b840000613d0000000502000029000000a0022002100000000b06000029000000000262019f0000038c022001c7000000000101043b000000000021041b00000006010000290000038c0010019800000af60000c13d0000000a010000290000000101100039000500000001001d000000000010043f0000000401000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f000000010020019000000b840000613d000000000101043b000000000101041a000000000001004b0000000b0600002900000af60000c13d000000000100041a000000050010006b00000af60000613d0000000501000029000000000010043f0000000401000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f000000010020019000000b840000613d000000000101043b0000000602000029000000000021041b0000000b060000290000000001000414000003260010009c0000032601008041000000c00110021000000334011001c70000800d0200003900000004030000390000038e0400004100000009050000290000000a070000290c920c880000040f000000010020019000000b840000613d0000000b0000006b00000b930000613d00000339010000410000000000100443000000070100002900000004001004430000000001000414000003260010009c0000032601008041000000c0011002100000033a011001c700008002020000390c920c8d0000040f000000010020019000000b8a0000613d000000000101043b000000000001004b00000b7b0000613d000000400700043d00000064017000390000008002000039000700000002001d000000000021043500000044017000390000000a020000290000000000210435000000240170003900000009020000290000000000210435000003b30100004100000000001704350000000401700039000000080200002900000000002104350000008402700039000000040100002900000000310104340000000000120435000000a402700039000000000001004b00000b340000613d000000000400001900000000052400190000000006430019000000000606043300000000006504350000002004400039000000000014004b00000b2d0000413d0000001f03100039000003aa0330019700000000012100190000000000010435000000a401300039000003260010009c00000326010080410000006001100210000003260070009c000003260200004100000000020740190000004002200210000000000121019f0000000002000414000003260020009c0000032602008041000000c002200210000000000112019f0000000b02000029000b00000007001d0c920c880000040f0000000b0b00002900000060031002700000032603300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000000057b001900000b590000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b00000b550000c13d000000000006004b00000b660000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000010020019000000b970000613d0000001f01400039000000600210018f0000000001b20019000000000021004b000000000200003900000001020040390000032e0010009c00000bd10000213d000000010020019000000bd10000c13d000000400010043f000000200030008c00000b840000413d00000000010b0433000003a10010019800000b840000c13d000003a201100197000003b30010009c00000bcd0000c13d000000000001042d0000000901000039000000000101041a000003810010019800000a860000c13d0000033603000041000000000036004b00000a4c0000c13d00000a860000013d000000000100001900000c94000104300000039c01000041000000000010043f0000037d0100004100000c9400010430000000000001042f000003ae01000041000000000010043f0000037d0100004100000c94000104300000038601000041000000000010043f0000037d0100004100000c9400010430000003b201000041000000000010043f0000037d0100004100000c9400010430000000000003004b00000ba30000c13d000000600200003900000bca0000013d000003af01000041000000000010043f0000037d0100004100000c94000104300000038f01000041000000000010043f0000037d0100004100000c94000104300000001f0230003900000327022001970000003f02200039000003b404200197000000400200043d0000000004420019000000000024004b000000000500003900000001050040390000032e0040009c00000bd10000213d000000010050019000000bd10000c13d000000400040043f0000001f0430018f00000000063204360000032805300198000700000006001d000000000356001900000bbd0000613d000000000601034f0000000707000029000000006806043c0000000007870436000000000037004b00000bb90000c13d000000000004004b00000bca0000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f00000000001304350000000001020433000000000001004b00000bd70000c13d000003b501000041000000000010043f0000037d0100004100000c94000104300000038401000041000000000010043f0000004101000039000000040010043f000003760100004100000c94000104300000000702000029000003260020009c00000326020080410000004002200210000003260010009c00000326010080410000006001100210000000000121019f00000c940001043000000060061002700000001f0460018f0000032805600198000000400200043d000000000352001900000bec0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000038004b00000be80000c13d0000032606600197000000000004004b00000bfa0000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f00000000001304350000006001600210000003260020009c00000326020080410000004002200210000000000112019f00000c94000104300001000000000002000100000002001d0000032901100197000000000010043f0000000701000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f000000010020019000000c340000613d000000000101043b00000001020000290000032902200197000100000002001d000000000020043f000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f000000010020019000000c340000613d000000000101043b000000000101041a000000ff0110019000000c230000613d000000000001042d0000000a01000039000000000101041a000003810010019800000c320000613d000003290110019800000c2e0000c13d0000000901000039000000000101041a000003810010019800000000010000190000033601006041000000010010006b00000000010000390000000101006039000000000001042d0000000001000019000000000001042d000000000100001900000c94000104300001000000000002000000000001004b00000c660000613d000100000001001d000000000010043f0000000401000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f000000010020019000000c640000613d000000000101043b000000000101041a000000000001004b00000c610000c13d000000000100041a0000000102000029000000000021004b00000c660000a13d000000010220008a000100000002001d000000000020043f0000000401000039000000200010043f0000000001000414000003260010009c0000032601008041000000c00110021000000337011001c700008010020000390c920c8d0000040f000000010020019000000c640000613d000000000101043b000000000101041a000000000001004b000000010200002900000c4e0000613d000003790010019800000c660000c13d000000000001042d000000000100001900000c94000104300000039c01000041000000000010043f0000037d0100004100000c94000104300000000901000039000000000101041a00000329021001970000000001000411000000000012004b00000c710000c13d000000000001042d0000037502000041000000000020043f000000040010043f000003760100004100000c9400010430000000000001042f000003260010009c000003260100804100000060011002100000000002000414000003260020009c0000032602008041000000c002200210000000000112019f00000334011001c700008010020000390c920c8d0000040f000000010020019000000c860000613d000000000101043b000000000001042d000000000100001900000c940001043000000c8b002104210000000102000039000000000001042d0000000002000019000000000001042d00000c90002104230000000102000039000000000001042d0000000002000019000000000001042d00000c920000043200000c930001042e00000c940001043000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000001ffffffe000000000000000000000000000000000000000000000000000000000ffffffe0000000000000000000000000ffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000ffffffffffffffc0547275636b657273000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffbf545255434b520000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffbfa87805ed57dc1f0d489ce33be4c4577d74ccde357eeeee058a32c55c44a532405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acebfa87805ed57dc1f0d489ce33be4c4577d74ccde357eeeee058a32c55c44a5310200000000000000000000000000000000000020000000000000000000000000ffffffffffffffffffffffff000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000008be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0000000000000000000000000721c002b0059009a671d00ad1700c9748146cd1b0200000000000000000000000000000000000040000000000000000000000000cc5dc080ff977b3c3a211fa63ab74f90f658f5ba9d3236e92c8f59570f442aac1806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b830200000200000000000000000000000000000024000000000000000000000000fb2de5d70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000440000000000000000000000000000000000000000000001f400000000000000000000000000000000000000008a8bae378cb731c5c40b632330c6836c2f916f48edb967699c86736f9a6a76ef4484b5bab23cb6c6dcb7d0f87ddcd612e617dbb100a7d33dfb07aab3c9df3c03bb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3ff697066733a2f2f516d55444e6531754a746a746d527a38506b527451314d5147bb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd505a7471466d5334775252666542794c46463273372f00000000000000000000bb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fe0000000200000000000000000000000000000040000001000000000000000000000000000000000000000000000000000000000000000000000000006352211d00000000000000000000000000000000000000000000000000000000a0bcfc7e00000000000000000000000000000000000000000000000000000000bef97c8600000000000000000000000000000000000000000000000000000000e985e9c400000000000000000000000000000000000000000000000000000000e985e9c500000000000000000000000000000000000000000000000000000000f2fde38b00000000000000000000000000000000000000000000000000000000bef97c8700000000000000000000000000000000000000000000000000000000c87b56dd00000000000000000000000000000000000000000000000000000000a9fc664d00000000000000000000000000000000000000000000000000000000a9fc664e00000000000000000000000000000000000000000000000000000000b88d4fde00000000000000000000000000000000000000000000000000000000a0bcfc7f00000000000000000000000000000000000000000000000000000000a22cb465000000000000000000000000000000000000000000000000000000008da5cb5a000000000000000000000000000000000000000000000000000000009abc831f000000000000000000000000000000000000000000000000000000009abc8320000000000000000000000000000000000000000000000000000000009e05d240000000000000000000000000000000000000000000000000000000008da5cb5b0000000000000000000000000000000000000000000000000000000095d89b4100000000000000000000000000000000000000000000000000000000715018a500000000000000000000000000000000000000000000000000000000715018a600000000000000000000000000000000000000000000000000000000729ad39e000000000000000000000000000000000000000000000000000000006352211e0000000000000000000000000000000000000000000000000000000070a082310000000000000000000000000000000000000000000000000000000018160ddc0000000000000000000000000000000000000000000000000000000032cb6b0b000000000000000000000000000000000000000000000000000000005944c752000000000000000000000000000000000000000000000000000000005944c753000000000000000000000000000000000000000000000000000000006221d13c0000000000000000000000000000000000000000000000000000000032cb6b0c0000000000000000000000000000000000000000000000000000000042842e0e0000000000000000000000000000000000000000000000000000000026b9ce120000000000000000000000000000000000000000000000000000000026b9ce13000000000000000000000000000000000000000000000000000000002a55205a0000000000000000000000000000000000000000000000000000000018160ddd0000000000000000000000000000000000000000000000000000000023b872dd00000000000000000000000000000000000000000000000000000000081812fb00000000000000000000000000000000000000000000000000000000098144d300000000000000000000000000000000000000000000000000000000098144d4000000000000000000000000000000000000000000000000000000000d705df600000000000000000000000000000000000000000000000000000000081812fc00000000000000000000000000000000000000000000000000000000095ea7b30000000000000000000000000000000000000000000000000000000004634d8c0000000000000000000000000000000000000000000000000000000004634d8d0000000000000000000000000000000000000000000000000000000006fdde0300000000000000000000000000000000000000000000000000000000014635460000000000000000000000000000000000000000000000000000000001ffc9a7118cdaa70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000240000000000000000000000001e4fbdf7000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff3000000000000000000000000000000000000000000000000000000000000000a14c4b500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000020000000800000000000000000000000000000000000000000000000000000000000000000ffffffffffffff7f32483afb000000000000000000000000000000000000000000000000000000000000000000000000000000ff0000000000000000000000000000000000000000ffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff00000000000000000000000100000000000000000000000000000000000000004e487b710000000000000000000000000000000000000000000000000000000017307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c317bf21fee0000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000200000008000000000000000006787c7f9a80aa0f5ceddab2c54f1f5169c0b88e75dd5e19d5e858a64144c7dbcc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b796b89b91644bc98cd93958e4c9038275d622183e25ac5af08cc6b5d9553913202000002000000000000000000000000000000040000000000000000000000000000000200000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffeffffffffffffffffddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5cbd9441000000000000000000000000000000000000000000000000000000002d573a55000000000000000000000000000000000000000000000000000000008f4eb604000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffff7f5b076c952c0ec86e5425963c1326dd0f03a3595c19f81d765e8ff559a6e33c969f085200000000000000000000000000000000000000000000000000000000dfd1fc1b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000040000000000000000000000000caee23ea000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000800000000000000000cfb3b942000000000000000000000000000000000000000000000000000000008c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925df2d9b4200000000000000000000000000000000000000000000000000000000cf4700e4000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000020000000c00000000000000000b6d9900a000000000000000000000000000000000000000000000000000000006f483d090000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000080ac58ccffffffffffffffffffffffffffffffffffffffffffffffffffffffff80ac58cd00000000000000000000000000000000000000000000000000000000a07d229a00000000000000000000000000000000000000000000000000000000ad0d7f6c0000000000000000000000000000000000000000000000000000000001ffc9a7000000000000000000000000000000000000000000000000000000005b5e139f000000000000000000000000000000000000000000000000000000002a55205a00000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa11481000000000000000000000000000000000000000000000000000000000059c896be0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000840000000000000000000000000000000000000000000000000000000000000000000000010000000000000000ea553b3400000000000000000000000000000000000000000000000000000000150b7a020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003ffffffe0d1a57ed60000000000000000000000000000000000000000000000000000000044aa66691bfe1b53af249eb6bc7bc25cbac7781fe2c4bc9b541b4102dccb05b6
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000059475df1b73b38c839dbe6eb8789bee98c6678f5
-----Decoded View---------------
Arg [0] : royaltyReceiver_ (address): 0x59475dF1B73B38C839dBE6EB8789BEE98C6678f5
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000059475df1b73b38c839dbe6eb8789bee98c6678f5
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.