neo-storm

所属分类:区块链开发
开发工具:GO
文件大小:49KB
下载次数:0
上传日期:2019-08-27 06:06:42
上 传 者sh-1993
说明:  neo-storm,用Go编程语言编写的neo智能经济智能合约框架。
(neo-storm,Smart contract framework for the NEO smart economy written in the Go programming language.)

文件列表:
.circleci (0, 2018-10-30)
.circleci\config.yml (219, 2018-10-30)
CHANGELOG.md (344, 2018-10-30)
CONTRIBUTING.md (597, 2018-10-30)
Gopkg.lock (2703, 2018-10-30)
Gopkg.toml (809, 2018-10-30)
LICENSE.md (1129, 2018-10-30)
Makefile (912, 2018-10-30)
cli (0, 2018-10-30)
cli\main.go (6474, 2018-10-30)
cli\main_test.go (1604, 2018-10-30)
compiler (0, 2018-10-30)
compiler\analysis.go (4495, 2018-10-30)
compiler\codegen.go (20458, 2018-10-30)
compiler\compiler.go (2978, 2018-10-30)
compiler\compiler_test.go (1029, 2018-10-30)
compiler\emit.go (2649, 2018-10-30)
compiler\emit_test.go (765, 2018-10-30)
compiler\func_scope.go (2865, 2018-10-30)
compiler\syscall.go (3256, 2018-10-30)
docs (0, 2018-10-30)
docs\runtime.md (9123, 2018-10-30)
examples (0, 2018-10-30)
examples\engine (0, 2018-10-30)
examples\engine\engine.go (482, 2018-10-30)
examples\iterator (0, 2018-10-30)
examples\iterator\iterator.go (442, 2018-10-30)
examples\runtime (0, 2018-10-30)
examples\runtime\runtime.go (929, 2018-10-30)
examples\storage (0, 2018-10-30)
examples\storage\storage.go (810, 2018-10-30)
examples\token (0, 2018-10-30)
examples\token\nep5 (0, 2018-10-30)
examples\token\nep5\nep5.go (2285, 2018-10-30)
... ...

neo-storm

Smart contract framework for the NEO smart economy written in the Go programming language.

# Overview - Golang to NVM bytecode compiler - NEO Virtual machine - Smart contract debugger - Private network for quickly deploying and testing smart contracts - Tooling for deploying smart contracts in production environments - Package manager for smart contract modules that are written in Go # Installation The following section will help you with installing neo-storm and it's dependencies. [**A very in-depth tutorial about how to get started with neo-storm can be found here**](https://medium.com/@likkee.chong/neo-token-contract-nep-5-in-go-f6b0102c59ee) ## Project dependencies ### Golang neo-storm requires a working and proper ***Golang*** installation. To install Golang you can check out these [installation instructions](https://golang.org/doc/install). ### Godep For package management neo-storm uses ***dep***. To install dep you can check out these [installations instructions](https://github.com/golang/dep). # Installing the neo-storm framework ### Unix `neo-storm` uses [dep](https://github.com/golang/dep) as its dependency manager. After installing `dep` you can run: ``` make install ``` After the installation is completed, you can find the binary in `bin/neo-storm` or globally use `neo-storm`. # Getting started Lot's of **examples contracts** can be found in the [examples folder](https://github.com/CityOfZion/neo-storm/tree/master/examples). ### Create a new smart contract To create a new smart contract you can run the `init` command: ``` neo-storm init --name mycontract ``` This will generate a folder called `mycontract` with a `main.go` file in the root directory. The folder structure will look like this: ``` - mycontract - main.go ``` And will produce the following `main.go` file in the root of the directory: ``` package mycontract import "github.com/CityOfZion/neo-storm/interop/runtime" func Main(op string, args []interface{}) { runtime.Notify("Hello world!") } ``` ### Compiling smart contracts To compile a smart contract you can run the `compile` command: ``` neo-storm compile -i path/to/file.go ``` This will output an `.avm` file in the same directory you executed this command in. You can change location directory of the output file by adding the `-o, --out` flag. ``` neo-storm compile -i path/to/file.go -o path/to/file.avm ``` # Tutorials - [Step-by-step guide on issuing your NEP-5 token on NEOs Private net using Go](https://medium.com/@likkee.chong/neo-token-contract-nep-5-in-go-f6b0102c59ee) # Contributing Feel free to contribute to this project after reading the [contributing guidelines](https://github.com/CityOfZion/neo-storm/blob/master/CONTRIBUTING.md). # Contact - [@anthdm](https://github.com/anthdm) on Github - [@anthdm](https://twitter.com/anthdm) on Twitter - [@jeroenptrs](https://github.com/jeroenptrs) on Github - [@_jptrs](https://twitter.com/_jptrs) on Twitter - Reach out to us on the [NEO Discord](https://discordapp.com/invite/R8v48YA) channel - Send us an email: anthony@cityofzion.io # Licence - Open-source MIT

近期下载者

相关文件


收藏者