Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Releases: cschuchardt88/neo-templates

Neo.Events.SmartContract.Templates v1.1.3

10 Nov 19:01
Compare
Choose a tag to compare

Change Log

  • Add line comment to help beginners
  • Add SmartContract class to owner class
  • Add version default to 1.0.0.0 for contracts

Contract Support

  • neo v3.6.0
  • nccs 3.6.0
  • dotnet v7.0
  • neo-express v3.5.20 or higher

How to Install

Type the following command in a terminal.

tux@PC01:~/$ dotnet new install NeoEvents.SmartContract.Templates

List of Templates

Template Name                            Short Name             Language  Tags
---------------------------------------  ---------------------  --------  -----------------------------------
Neo NEP-17 Smart Contract Class          neonep17contractclass  [C#]      neo/smart contract/class/nep-17
Neo Oracle Smart Contract Project        neooracleproject       [C#]      neo/smart contract/oracle
Neo Smart Contract Class                 neocontractclass       [C#]      neo/smart contract/class/basic
Neo Smart Contract Class (with a Owner)  neocontractownerclass  [C#]      neo/smart contract/class
Neo Smart Contract Project (Basic)       neosmartcontract       [C#]      neo/smart contract/basic
Neo Smart Contract Project (Empty)       neoemptyproject        [C#]      neo/smart contract/empty
Neo Smart Contract Test Project          neosmartcontracttest   [C#]      neo/smart contract/test/xunit

How to Create & Build a Project

Type in a terminal the following commands:

tux@PC01:~/Downloads$ dotnet new neosmartcontract -o MyContract
tux@PC01:~/Downloads$ cd MyContract
tux@PC01:~/Downloads/MyContract$ dotnet tool restore
tux@PC01:~/Downloads/MyContract$ dotnet build

How to Configure a Unit Test

You will see a file called setup.batch in the project root directory. Open
this file and configure your nef filename.

Setup.batch File

Find this line:

#contract deploy <Enter Nef Filename>

Remove # and replace <Enter Nef Filename> with your nef filename.

Example:

contract deploy "../Contract1/bin/sc/Contract1.nef"

Neo.Events.SmartContract.Templates v1.1.2

08 Nov 05:14
Compare
Choose a tag to compare

Change Log

  • Updated neo-express to 3.6.17

Contract Support

  • neo v3.6.0
  • nccs 3.6.0
  • dotnet v7.0
  • neo-express v3.5.20 or higher

How to Install

Type the following command in a terminal.

tux@PC01:~/$ dotnet new install NeoEvents.SmartContract.Templates

List of Templates

Template Name                            Short Name             Language  Tags
---------------------------------------  ---------------------  --------  -----------------------------------
Neo NEP-17 Smart Contract Class          neonep17contractclass  [C#]      neo/smart contract/class/nep-17
Neo Oracle Smart Contract Project        neooracleproject       [C#]      neo/smart contract/oracle
Neo Smart Contract Class                 neocontractclass       [C#]      neo/smart contract/class/basic
Neo Smart Contract Class (with a Owner)  neocontractownerclass  [C#]      neo/smart contract/class
Neo Smart Contract Project (Basic)       neosmartcontract       [C#]      neo/smart contract/basic
Neo Smart Contract Project (Empty)       neoemptyproject        [C#]      neo/smart contract/empty
Neo Smart Contract Test Project          neosmartcontracttest   [C#]      neo/smart contract/test/xunit

How to Create & Build a Project

Type in a terminal the following commands:

tux@PC01:~/Downloads$ dotnet new neosmartcontract -o MyContract
tux@PC01:~/Downloads$ cd MyContract
tux@PC01:~/Downloads/MyContract$ dotnet tool restore
tux@PC01:~/Downloads/MyContract$ dotnet build

How to Configure a Unit Test

You will see a file called setup.batch in the project root directory. Open
this file and configure your nef filename.

Setup.batch File

Find this line:

#contract deploy <Enter Nef Filename>

Remove # and replace <Enter Nef Filename> with your nef filename.

Example:

contract deploy "../Contract1/bin/sc/Contract1.nef"

Neo.Events.SmartContract.Templates v1.1.1

12 Oct 02:37
Compare
Choose a tag to compare

Change Log

  • Added smart contract unit test project type.

Contract Support

  • neo v3.6.0
  • nccs 3.6.0
  • dotnet v7.0
  • neo-express v3.5.20

How to Install

Type the following command in a terminal.

tux@PC01:~/$ dotnet new install NeoEvents.SmartContract.Templates

List of Templates

Template Name                            Short Name             Language  Tags
---------------------------------------  ---------------------  --------  -----------------------------------
Neo NEP-17 Smart Contract Class          neonep17contractclass  [C#]      neo/smart contract/class/nep-17
Neo Oracle Smart Contract Project        neooracleproject       [C#]      neo/smart contract/oracle
Neo Smart Contract Class                 neocontractclass       [C#]      neo/smart contract/class/basic
Neo Smart Contract Class (with a Owner)  neocontractownerclass  [C#]      neo/smart contract/class
Neo Smart Contract Project (Basic)       neosmartcontract       [C#]      neo/smart contract/basic
Neo Smart Contract Project (Empty)       neoemptyproject        [C#]      neo/smart contract/empty
Neo Smart Contract Test Project          neosmartcontracttest   [C#]      neo/smart contract/test/xunit

How to Create & Build a Project

Type in a terminal the following commands:

tux@PC01:~/Downloads$ dotnet new neosmartcontract -o MyContract
tux@PC01:~/Downloads$ cd MyContract
tux@PC01:~/Downloads/MyContract$ dotnet tool restore
tux@PC01:~/Downloads/MyContract$ dotnet build

How to Configure a Unit Test

You will see a file called setup.batch in the project root directory. Open
this file and configure your nef filename.

Setup.batch File

Find this line:

#contract deploy <Enter Nef Filename>

Remove # and replace <Enter Nef Filename> with your nef filename.

Example:

contract deploy "../Contract1/bin/sc/Contract1.nef"

NeoEvents.SmartContract.Templates v1.1.0

09 Oct 21:15
Compare
Choose a tag to compare

Change Log

  • Added oracle project type.

List of Templates

Template Name                            Short Name             Language  Tags
---------------------------------------  ---------------------  --------  -------------------------------
Neo NEP-17 Smart Contract Class          neonep17contractclass  [C#]      neo/smart contract/class/nep-17
Neo Oracle Smart Contract Project        neooracleproject       [C#]      neo/smart contract/oracle
Neo Smart Contract Class                 neocontractclass       [C#]      neo/smart contract/class/basic
Neo Smart Contract Class (with a Owner)  neocontractownerclass  [C#]      neo/smart contract/class
Neo Smart Contract Project (Basic)       neosmartcontract       [C#]      neo/smart contract/basic
Neo Smart Contract Project (Empty)       neoemptyproject        [C#]      neo/smart contract/empty

How to Create & Build a Project

Type in a terminal the following commands:

tux@PC01:~/Downloads$ dotnet new neosmartcontract -o MyContract
tux@PC01:~/Downloads$ cd MyContract
tux@PC01:~/Downloads/MyContract$ dotnet tool restore
tux@PC01:~/Downloads/MyContract$ dotnet build

NeoEvents.SmartContract.Templates v1.0.0

09 Oct 00:39
Compare
Choose a tag to compare

Neo.Events.SmartContract.Templates

Neo blockchain C# templates for dotnet-new cli.

How to Install

Download the nuget package than type the following command in a terminal.

tux@PC01:~/Downloads$ dotnet new install .\NeoEvents.SmartContract.Templates.1.0.0.nupkg

List of Templates

Template Name                            Short Name             Language  Tags
---------------------------------------  ---------------------  --------  -------------------------------
Neo NEP-17 Smart Contract Class          neonep17contractclass  [C#]      neo/smart contract/class/nep-17
Neo Smart Contract Class                 neocontractclass       [C#]      neo/smart contract/class/basic
Neo Smart Contract Class (with a Owner)  neocontractownerclass  [C#]      neo/smart contract/class
Neo Smart Contract Project (Basic)       neosmartcontract       [C#]      neo/smart contract/basic
Neo Smart Contract Project (Empty)       neoemptyproject        [C#]      neo/smart contract/empty

How to Create & Build Project

tux@PC01:~/Downloads$ dotnet new neosmartcontract -o MyContract
tux@PC01:~/Downloads$ cd MyContract
tux@PC01:~/Downloads/MyContract$ dotnet tool restore
tux@PC01:~/Downloads/MyContract$ dotnet build