Giter Site home page Giter Site logo

neo-templates's Introduction

neo-templates

Neo blockchain C# templates for dotnet-new.

This package includes smart contracts and unit tests templates.

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-templates's People

Contributors

cschuchardt88 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.