Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/explorills/nft-validator
Optimized bitmap-based NFT validator contract for explorills collection
https://github.com/explorills/nft-validator
blockchain defi erc721 ethereum explorills flare nfts web3
Last synced: 13 days ago
JSON representation
Optimized bitmap-based NFT validator contract for explorills collection
- Host: GitHub
- URL: https://github.com/explorills/nft-validator
- Owner: explorills
- License: bsd-3-clause
- Created: 2024-11-02T22:54:30.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-03T15:03:26.000Z (2 months ago)
- Last Synced: 2024-11-10T08:29:46.175Z (about 2 months ago)
- Topics: blockchain, defi, erc721, ethereum, explorills, flare, nfts, web3
- Language: Solidity
- Homepage: https://mint.explorills.com
- Size: 22.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# explorills_NftValidator Contract
Optimized bitmap-based validator contract for ERC721 NFT collection validation
## General Functionality
1. Validates ERC721 NFTs from the explorills collection using efficient bitmap storage
2. Processes large batches of NFTs (up to 300) in a single transaction
3. Maintains permanent validation status for NFTs regardless of ownership changes## Main Functions
* `validateAllBlueMinerals`: Validates all unvalidated ERC721 NFTs owned by the caller
* `manualBatchValidate`: Executor Address only to validate specific NFT by IDs
* `manualBatchUnvalidate`: Executor Address only to unvalidate specific NFT by IDs
* `getGeneralInfo`: View total validated and unvalidated NFTs
* `getAddressInfo`: View validated and unvalidated NFTs for specific address## Technical Features
* Bitmap-based storage for gas optimization
* Capability to process large batches
* Enhanced event emission with detailed validation data### Each event includes:
* Operator address
* Number of NFTs affected
* List of affected NFT IDs## Build and Deployment Settings
* Contract Name: explorills_NftValidator
* Compiler Version: v0.8.24
* EVM Version: London
* Optimization: Enabled (200 runs)
* Network: [Flare](https://flare.network/)## Security Considerations
* No external contract dependencies except for NFT interface## Contract Architecture
```
explorills_NftValidator
├── Storage
│ ├── validationBitmap (mapping)
│ ├── totalValidatedNFTs
│ ├── contractOwner
│ └── paused status
├── Main Functions
│ ├── validateAllBlueMinerals
│ ├── manualBatchValidate
│ └── manualBatchUnvalidate
└── View Functions
├── getGeneralInfo
└── getAddressInfo
```## License
BSD-3-Clause License## Contact
- main: [explorills.com](https://explorills.com)
- mint: [mint.explorills.com](https://mint.explorills.com)
- contact: [email protected]
- security contact: [email protected]## Contract Address
- 0x0E3a65c21059361eBca4Ce5aCFFb21615d1f12F1
### Find at- [Flarescan.com](https://flarescan.com/address/0x0E3a65c21059361eBca4Ce5aCFFb21615d1f12F1/contract/14/code?chainid=14)
- [Flare-explorer](https://flare-explorer.flare.network/address/0x0E3a65c21059361eBca4Ce5aCFFb21615d1f12F1?tab=contract_code)---
- explorills community 2024