We want to raffle away a single NFT (token) based off of another NFT collection (or drawingToken) in a fair and trustless manner.
체인링크를 활용해서 NFT 라플을 돌리는 프로젝트. 유저들이 NFT를 넣어서 래플을 돌리고 당첨자에게 새로운 NFT를 클레임할 수 있도록 하는 것이 전체적인 흐름이다.
File | SLOC | Description and Coverage | Libraries |
---|---|---|---|
Contracts (4) | |||
src/utils/Version.sol | 10 | 100.00% | |
src/VRFNFTRandomDrawFactoryProxy.sol | 15 | Proxy Contract linking to the Factory, - | @openzeppelin/contracts-upgradeable |
src/VRFNFTRandomDrawFactory.sol | 41 | Factory for VRF NFT Raffle, UUPS Upgradable by owner., 100.00% | @openzeppelin/contracts-upgradeable |
src/VRFNFTRandomDraw.sol ♻️ | 196 | This contract is the main escrow and VRF-integrated raffle contract, 86.67% | @openzeppelin/contracts-upgradeable @chainlink/contracts |
Abstracts (1) | |||
src/ownable/OwnableUpgradeable.sol | 73 | This contract is the main escrow and VRF-integrated raffle contract, 94.12% | @openzeppelin/contracts-upgradeable |
Interfaces (3) | |||
src/interfaces/IVRFNFTRandomDrawFactory.sol | 11 | Interface to the main VRFNFTRandomDraw contract, - | |
src/ownable/IOwnableUpgradeable.sol | 15 | The interface to an owner safe-transferrable upgradeable openzeppelin fork, - | |
src/interfaces/IVRFNFTRandomDraw.sol | 62 | Interface to the factory VRFNFTRandomDrawFactory contract, - | |
Total (over 8 files): | 423 | 89.41% |
LOC가 너무 짧아서 그런지 결함은 못 찾았다. 내가 발견하지 못 한 걸 수도 있으니 나중에 레포트 나오면 꼭 다시 봐야겠다. 기간이 겹치는 콘테스트가 많이 있을 경우 LOC가 너무 짧은 것들은 후순위로 두는 것이 나을 것 같다.