Initial commit with 🏗️ create-eth @ 2.0.4

This commit is contained in:
han
2026-01-11 17:24:19 +07:00
commit 64378512ba
128 changed files with 27844 additions and 0 deletions

View File

@@ -0,0 +1,61 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20; // Do not change the solidity version as it negatively impacts submission grading
import "hardhat/console.sol";
import "./FundingRecipient.sol";
contract CrowdFund {
/////////////////
/// Errors //////
/////////////////
// Errors go here...
//////////////////////
/// State Variables //
//////////////////////
FundingRecipient public fundingRecipient;
////////////////
/// Events /////
////////////////
// Events go here...
///////////////////
/// Modifiers /////
///////////////////
modifier notCompleted() {
_;
}
///////////////////
/// Constructor ///
///////////////////
constructor(address fundingRecipientAddress) {
fundingRecipient = FundingRecipient(fundingRecipientAddress);
}
///////////////////
/// Functions /////
///////////////////
function contribute() public payable {}
function withdraw() public {}
function execute() public {}
receive() external payable {}
////////////////////////
/// View Functions /////
////////////////////////
function timeLeft() public view returns (uint256) {
return 0;
}
}

View File

@@ -0,0 +1,10 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20; // Do not change the solidity version as it negatively impacts submission grading
contract FundingRecipient {
bool public completed;
function complete() public payable {
completed = true;
}
}