forked from TrueCloudLab/neoneo-go
Replace glide with godep (#27)
This commit is contained in:
parent
8fe079ec8e
commit
bebdabab9f
9 changed files with 116 additions and 57 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -10,9 +10,6 @@
|
|||
# Output of the go coverage tool, specifically when used with LiteIDE
|
||||
*.out
|
||||
|
||||
# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
|
||||
.glide/
|
||||
|
||||
# Added by CoZ developers
|
||||
vendor/
|
||||
bin/
|
||||
|
|
55
Gopkg.lock
generated
Normal file
55
Gopkg.lock
generated
Normal file
|
@ -0,0 +1,55 @@
|
|||
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
|
||||
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/CityOfZion/neo-go"
|
||||
packages = [
|
||||
"cli/server",
|
||||
"cli/smartcontract",
|
||||
"pkg/core",
|
||||
"pkg/network",
|
||||
"pkg/network/payload",
|
||||
"pkg/util",
|
||||
"pkg/vm",
|
||||
"pkg/vm/compiler"
|
||||
]
|
||||
revision = "8fe079ec8ebb83ce53d6f1535bfe513271231958"
|
||||
version = "0.11.0"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
name = "github.com/golang/snappy"
|
||||
packages = ["."]
|
||||
revision = "553a641470496b2327abcac10b36396bd98e45c9"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
name = "github.com/syndtr/goleveldb"
|
||||
packages = [
|
||||
"leveldb",
|
||||
"leveldb/cache",
|
||||
"leveldb/comparer",
|
||||
"leveldb/errors",
|
||||
"leveldb/filter",
|
||||
"leveldb/iterator",
|
||||
"leveldb/journal",
|
||||
"leveldb/memdb",
|
||||
"leveldb/opt",
|
||||
"leveldb/storage",
|
||||
"leveldb/table",
|
||||
"leveldb/util"
|
||||
]
|
||||
revision = "211f780988068502fe874c44dae530528ebd840f"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/urfave/cli"
|
||||
packages = ["."]
|
||||
revision = "cfb38830724cc34fedffe9a2a29fb54fa9169cd1"
|
||||
version = "v1.20.0"
|
||||
|
||||
[solve-meta]
|
||||
analyzer-name = "dep"
|
||||
analyzer-version = 1
|
||||
inputs-digest = "ac1d2cc7e9e2cb3985a84af2b75ad9fd78a3b8278abb6d5f7b6dd2210df7c6a2"
|
||||
solver-name = "gps-cdcl"
|
||||
solver-version = 1
|
37
Gopkg.toml
Normal file
37
Gopkg.toml
Normal file
|
@ -0,0 +1,37 @@
|
|||
# Gopkg.toml example
|
||||
#
|
||||
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
|
||||
# for detailed Gopkg.toml documentation.
|
||||
#
|
||||
# required = ["github.com/user/thing/cmd/thing"]
|
||||
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
|
||||
#
|
||||
# [[constraint]]
|
||||
# name = "github.com/user/project"
|
||||
# version = "1.0.0"
|
||||
#
|
||||
# [[constraint]]
|
||||
# name = "github.com/user/project2"
|
||||
# branch = "dev"
|
||||
# source = "github.com/myfork/project2"
|
||||
#
|
||||
# [[override]]
|
||||
# name = "github.com/x/y"
|
||||
# version = "2.4.0"
|
||||
#
|
||||
# [prune]
|
||||
# non-go = false
|
||||
# go-tests = true
|
||||
# unused-packages = true
|
||||
|
||||
[[constraint]]
|
||||
branch = "master"
|
||||
name = "github.com/syndtr/goleveldb"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/urfave/cli"
|
||||
version = "1.20.0"
|
||||
|
||||
[prune]
|
||||
go-tests = true
|
||||
unused-packages = true
|
6
Makefile
6
Makefile
|
@ -8,7 +8,7 @@ check-version:
|
|||
git fetch && (! git rev-list ${VERSION})
|
||||
|
||||
deps:
|
||||
@glide install
|
||||
@dep ensure
|
||||
|
||||
push-tag:
|
||||
git checkout ${BRANCH}
|
||||
|
@ -17,7 +17,7 @@ push-tag:
|
|||
git push origin ${BRANCH} --tags
|
||||
|
||||
test:
|
||||
@go test $(shell glide nv) -cover
|
||||
@go test ./... -cover
|
||||
|
||||
vet:
|
||||
@go vet $(shell glide nv)
|
||||
@go vet ./...
|
32
README.md
32
README.md
|
@ -1,6 +1,6 @@
|
|||
<p align="center">
|
||||
<img
|
||||
src="http://res.cloudinary.com/vidsy/image/upload/v1503160820/CoZ_Icon_DARKBLUE_200x178px_oq0gxm.png"
|
||||
<img
|
||||
src="http://res.cloudinary.com/vidsy/image/upload/v1503160820/CoZ_Icon_DARKBLUE_200x178px_oq0gxm.png"
|
||||
width="125px"
|
||||
>
|
||||
</p>
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
## Project Goals
|
||||
|
||||
Full port of the original C# [NEO project](https://github.com/neo-project).
|
||||
Full port of the original C# [NEO project](https://github.com/neo-project).
|
||||
A complete toolkit for the NEO blockchain, including:
|
||||
|
||||
- Full consensus node
|
||||
|
@ -41,7 +41,7 @@ A complete toolkit for the NEO blockchain, including:
|
|||
## Current State
|
||||
|
||||
This project is still under heavy development. Still working on internal API's and project layout. T
|
||||
his should not take longer than 2 weeks.
|
||||
his should not take longer than 2 weeks.
|
||||
|
||||
The project will exist out of the following packages:
|
||||
|
||||
|
@ -54,11 +54,11 @@ The project will exist out of the following packages:
|
|||
| smartcontract | started | [@revett](https://github.com/revett) |
|
||||
| cli | started | [@revett](https://github.com/revett) |
|
||||
|
||||
# Getting Started
|
||||
# Getting Started
|
||||
|
||||
## Server
|
||||
|
||||
Install dependencies, this requires [Glide](https://github.com/Masterminds/glide#install):
|
||||
Install dependencies, this requires [dep](https://github.com/golang/dep):
|
||||
|
||||
```
|
||||
make deps
|
||||
|
@ -70,9 +70,9 @@ Build the **neo-go** CLI:
|
|||
make build
|
||||
```
|
||||
|
||||
Currently, there is a minimal subset of the NEO protocol implemented.
|
||||
To start experimenting make sure you a have a private net running on your machine.
|
||||
If you dont, take a look at [docker-privnet-with-gas](https://hub.docker.com/r/metachris/neo-privnet-with-gas/).
|
||||
Currently, there is a minimal subset of the NEO protocol implemented.
|
||||
To start experimenting make sure you a have a private net running on your machine.
|
||||
If you dont, take a look at [docker-privnet-with-gas](https://hub.docker.com/r/metachris/neo-privnet-with-gas/).
|
||||
|
||||
Start a NEO node:
|
||||
|
||||
|
@ -86,7 +86,7 @@ You can add multiple seeds if you want:
|
|||
./bin/neo-go node -seed 127.0.0.1:20333,127.0.01:20334
|
||||
```
|
||||
|
||||
By default the server will currently run on port 3000, for testing purposes.
|
||||
By default the server will currently run on port 3000, for testing purposes.
|
||||
You can change that by setting the tcp flag:
|
||||
|
||||
```
|
||||
|
@ -101,8 +101,8 @@ If you want your node to also serve JSON-RPC, you can do that by setting the fol
|
|||
./bin/neo-go node -rpc 4000
|
||||
```
|
||||
|
||||
In this case the server will accept and respond JSON-RPC on port 4000.
|
||||
Keep in mind that currently there is only a small subset of the JSON-RPC implemented.
|
||||
In this case the server will accept and respond JSON-RPC on port 4000.
|
||||
Keep in mind that currently there is only a small subset of the JSON-RPC implemented.
|
||||
Feel free to make a PR with more functionality.
|
||||
|
||||
## VM
|
||||
|
@ -112,7 +112,7 @@ TODO
|
|||
```
|
||||
|
||||
## Smart Contracts
|
||||
> NOTE: At this moment there is only a small subset of the Go language implemented.
|
||||
> NOTE: At this moment there is only a small subset of the Go language implemented.
|
||||
|
||||
### Compile a smart contract
|
||||
|
||||
|
@ -152,10 +152,10 @@ INDEX OPCODE DESC
|
|||
|
||||
# Contributing
|
||||
|
||||
Feel free to contribute to this project after reading the
|
||||
[contributing guidelines](https://github.com/anthdm/neo-go/blob/master/CONTRIBUTING.md).
|
||||
Feel free to contribute to this project after reading the
|
||||
[contributing guidelines](https://github.com/CityOfZion/neo-go/blob/master/CONTRIBUTING.md).
|
||||
|
||||
Before starting to work on a certain topic, create an new issue first,
|
||||
Before starting to work on a certain topic, create an new issue first,
|
||||
describing the feauture/topic you are going to implement.
|
||||
|
||||
# Contact
|
||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
0.11.0
|
||||
0.12.0
|
||||
|
|
|
@ -6,8 +6,8 @@ jobs:
|
|||
- image: vidsyhq/go-builder:latest
|
||||
steps:
|
||||
- checkout
|
||||
- run: go get github.com/Masterminds/glide
|
||||
- run: glide install
|
||||
- run: go get -u github.com/golang/dep/cmd/dep
|
||||
- run: dep ensure
|
||||
- restore_cache:
|
||||
key: dependency-cache-{{ .Revision }}
|
||||
- run: BUILD=false /scripts/build.sh
|
||||
|
@ -46,8 +46,8 @@ jobs:
|
|||
- image: vidsyhq/go-builder:latest
|
||||
steps:
|
||||
- checkout
|
||||
- run: go get github.com/Masterminds/glide
|
||||
- run: glide install
|
||||
- run: go get -u github.com/golang/dep/cmd/dep
|
||||
- run: dep ensure
|
||||
- run: make build
|
||||
|
||||
workflows:
|
||||
|
|
23
glide.lock
generated
23
glide.lock
generated
|
@ -1,23 +0,0 @@
|
|||
hash: 5cb2fb077aa0e57c788a99f9ded4bf2d421a04f12f6b8436234d12e93f418f36
|
||||
updated: 2018-02-09T16:49:32.538502496+01:00
|
||||
imports:
|
||||
- name: github.com/golang/snappy
|
||||
version: 553a641470496b2327abcac10b36396bd98e45c9
|
||||
- name: github.com/syndtr/goleveldb
|
||||
version: 211f780988068502fe874c44dae530528ebd840f
|
||||
subpackages:
|
||||
- leveldb
|
||||
- leveldb/cache
|
||||
- leveldb/comparer
|
||||
- leveldb/errors
|
||||
- leveldb/filter
|
||||
- leveldb/iterator
|
||||
- leveldb/journal
|
||||
- leveldb/memdb
|
||||
- leveldb/opt
|
||||
- leveldb/storage
|
||||
- leveldb/table
|
||||
- leveldb/util
|
||||
- name: github.com/urfave/cli
|
||||
version: cfb38830724cc34fedffe9a2a29fb54fa9169cd1
|
||||
testImports: []
|
|
@ -1,7 +0,0 @@
|
|||
package: github.com/CityOfZion/neo-go
|
||||
import:
|
||||
- package: github.com/syndtr/goleveldb
|
||||
subpackages:
|
||||
- leveldb
|
||||
- package: github.com/urfave/cli
|
||||
version: ^1.20.0
|
Loading…
Reference in a new issue