-
createProject(Patika,1,1):
I create a project called Patika
I want to collect 1 BNB in total to fund the project
The last parameter means I want my funding to end in 1 hours -
fundProject(1):
I funded the project with id 1, my msg value was 1 BNB.
If it was more than 1 BNB, thanks to the conditions in my fundproject function it would refund the exceeded amount
The parameter isFunded of project with id 1 became true, because it reached the goal amount. -
withdrawFunds(1):
I withdrawed the 1st project's funds to the owner wallet.
The parameter isWithdrawn of project with id 1 became true;
0: address: creator 0x39eCEc85DF8e2D63456436443Ded27e305184208
1: string: projectName Patika
2: uint256: goalAmount 1
3: uint256: raisedAmount 1
4: uint256: deadline 1687011228
5: bool: isFunded true
6: bool: isWithdrawn true -
getContribution(1):
uint256: 1
it shows the msg.sender's contribution to the project with id 1. -
getContributionByAddress(1,0x39eCEc85DF8e2D63456436443Ded27e305184208):
uint256: 1
it shows the contributions by addresses.
Repository navigation
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|