A fundraiser, or crowdfund, is an application where any number of users are able to pledge towards a goal specified by the creator of the campaign. If the target amount is reached, or surpassed, then after the deadline of the campaign the creator is able to take those funds and spend it towards the proposed goal. On the other hand, if the target is not reached then all the users that have pledged are able to withdraw their pledge.
In this case the pledged asset is a native asset on the Fuel network. More information can be found in the specification.
The project consists of a smart contract.
fundraiser
├── fundraiser-contract
│ ├── src/main.sw
│ └── tests/harness.rs
├── README.md
└── SPECIFICATION.md
TODO: The user interface does not currently exist.
In order to run the subsequent commands change into the following directory /path/to/fundraiser/<here>
.
forc build --locked
Before running the tests the programs must be compiled with the command above.
cargo test --locked