Verified contractExactMIT
NeverTransferredEligibility
Address0xa0d013f0a3239fced9225627acfcd34fef1a7388
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.8.17
- Same code
Only this contract
Details
- Compiler
- solc 0.8.17+commit.8df45f5f
- Language
- solidity
- Optimization
- Yes, 1,000 runs
- EVM version
- london
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,330,290
- Creation transaction
- 0xcf51422550…23d374cc21
src/eligibility/NeverTransferredEligibility.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
import {IEligibilityCondition} from "../interfaces/IEligibilityCondition.sol";
import {ITransferredAfterMint} from "../interfaces/ITransferredAfterMint.sol";
/// @notice Erfuellt, wenn DIESES Token seit dem Mint nie den Besitzer gewechselt hat.
/// Ersetzt die fruehere "wallet_age"-Scan-Quest-Klasse (Pflicht 2026-09-04 Abend, siehe
/// docs/superpowers/notes/2026-09-04-no-scan-quests-onchain-only.md): reiner Contract-
/// State statt Website-Scan/Signer/Alchemy-Historie. Burn zaehlt als Transfer (nach
/// `address(0)`) -- ein verbranntes Token verliert diesen Trait, das ist gewollt. `tba`
/// wird bewusst ignoriert, die Pruefung haengt am Token-State, nicht an der TBA.
contract NeverTransferredEligibility is IEligibilityCondition {
ITransferredAfterMint public immutable nft;
constructor(address nft_) {
nft = ITransferredAfterMint(nft_);
}
function isEligible(address, uint256 tokenId) external view returns (bool) {
return !nft.transferredAfterMint(tokenId);
}
}
src/interfaces/IEligibilityCondition.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
/// @notice Ja/Nein-Gegenstueck zu ITraitCondition: statt eine Tier-Stufe liefert
/// isEligible() nur "erfuellt der Halter diese eine Bedingung gerade oder nicht" --
/// Grundlage fuer TraitManagers freischaltbare Wahl-Traits (equipTrait).
interface IEligibilityCondition {
function isEligible(address tba, uint256 tokenId) external view returns (bool);
}
src/interfaces/ITransferredAfterMint.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
interface ITransferredAfterMint {
function transferredAfterMint(uint256 tokenId) external view returns (bool);
}
Compiler settingsShow
{
"viaIR": false,
"metadata": {
"bytecodeHash": "ipfs",
"useLiteralContent": false
},
"optimizer": {
"runs": 1000,
"enabled": true
},
"evmVersion": "london",
"remappings": [
"solady/=lib/solady/src/",
"forge-std/=lib/forge-std/src/",
"ERC721A/=lib/ERC721A/contracts/",
"solmate/=lib/solmate/src/",
"utility-contracts/=lib/utility-contracts/src/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/",
"seadrop/=lib/seadrop/",
"ds-test/=/home/philipp/Schreibtisch/Projekte/Crypto/Auditors-EigeneKollektion/contract/contracts/lib/solmate/lib/ds-test/src/"
]
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.