A collection of templates smart contracts and dApps for the AElf blockchain platform.
Install the templates using the .NET CLI:
dotnet new install AElf.ContractTemplates
aelf-hello-world
- Hello World contract templateaelf-lottery
- Lottery Game contract templateaelf-simple-dao
- Simple DAO contract templateaelf-nft-sale
- NFT Sale contract templateaelf-dao
- BuildersDAO contract templateaelf-tictactoe
- TicTacToe game contract templateaelf-todo
- ToDo list contract templateaelf-expense
- Expense tracker contract templateaelf-staking
- Single pool staking contract template
Create a new project using any template:
# Create a new Hello World project
dotnet new aelf-hello-world -n MyHelloWorld
# Create a new Lottery Game project
dotnet new aelf-lottery -n MyLottery
# Create a new Simple DAO project
dotnet new aelf-simple-dao -n MySimpleDAO
# Create a new NFT Sale project
dotnet new aelf-nft-sale -n MyNFTSale
# Create a new BuildersDAO project
dotnet new aelf-dao -n MyDAO
# Create a new TicTacToe project
dotnet new aelf-tictactoe -n MyGame
# Create a new ToDo project
dotnet new aelf-todo -n MyToDo
# Create a new Expense Tracker project
dotnet new aelf-expense -n MyExpenseTracker
# Create a new Staking project
dotnet new aelf-staking -n MyStaking
Each template contains:
- Smart contract source code
- Unit tests
- Proto files for contract interface definition
- Configuration files for contract deployment
This project is licensed under the MIT License.