AElf.ContractTemplates 1.0.3

dotnet add package AElf.ContractTemplates --version 1.0.3                
NuGet\Install-Package AElf.ContractTemplates -Version 1.0.3                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AElf.ContractTemplates" Version="1.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AElf.ContractTemplates --version 1.0.3                
#r "nuget: AElf.ContractTemplates, 1.0.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AElf.ContractTemplates as a Cake Addin
#addin nuget:?package=AElf.ContractTemplates&version=1.0.3

// Install AElf.ContractTemplates as a Cake Tool
#tool nuget:?package=AElf.ContractTemplates&version=1.0.3                

AElf Templates

A collection of templates smart contracts and dApps for the AElf blockchain platform.

Installation

Install the templates using the .NET CLI:

dotnet new install AElf.ContractTemplates

Available Templates

  • aelf-hello-world - Hello World contract template
  • aelf-lottery - Lottery Game contract template
  • aelf-simple-dao - Simple DAO contract template
  • aelf-nft-sale - NFT Sale contract template
  • aelf-dao - BuildersDAO contract template
  • aelf-tictactoe - TicTacToe game contract template
  • aelf-todo - ToDo list contract template
  • aelf-expense - Expense tracker contract template
  • aelf-staking - Single pool staking contract template

Usage

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

Development

Each template contains:

  • Smart contract source code
  • Unit tests
  • Proto files for contract interface definition
  • Configuration files for contract deployment

License

This project is licensed under the MIT License.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 97 1/6/2025
1.0.2 2,069 7/5/2024
1.0.1 107 7/4/2024
1.0.0-alpha 2,208 9/15/2023