mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-21 23:29:38 +00:00
compiler: move it up from vm
It really deserves it, I think. Especially given that it doesn't have any direct usage of `vm` package now.
This commit is contained in:
parent
31add423a8
commit
852e6a335b
12 changed files with 7 additions and 12 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -28,9 +28,6 @@ bin/
|
|||
*~
|
||||
TAGS
|
||||
|
||||
# anthdm todolists
|
||||
/pkg/vm/compiler/todo.md
|
||||
|
||||
# leveldb
|
||||
chains/
|
||||
chain/
|
||||
|
|
|
@ -11,13 +11,13 @@ import (
|
|||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/CityOfZion/neo-go/pkg/compiler"
|
||||
"github.com/CityOfZion/neo-go/pkg/crypto/hash"
|
||||
"github.com/CityOfZion/neo-go/pkg/crypto/keys"
|
||||
"github.com/CityOfZion/neo-go/pkg/rpc"
|
||||
"github.com/CityOfZion/neo-go/pkg/smartcontract"
|
||||
"github.com/CityOfZion/neo-go/pkg/util"
|
||||
"github.com/CityOfZion/neo-go/pkg/vm"
|
||||
"github.com/CityOfZion/neo-go/pkg/vm/compiler"
|
||||
"github.com/go-yaml/yaml"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
|
|
|
@ -166,7 +166,7 @@ INDEX OPCODE DESC
|
|||
```
|
||||
|
||||
In depth documentation about the **neo-go** compiler and smart contract examples can be found inside
|
||||
the [compiler package](https://github.com/nspcc-dev/neo-go/tree/master/pkg/vm/compiler).
|
||||
the [compiler package](https://github.com/nspcc-dev/neo-go/tree/master/pkg/compiler).
|
||||
|
||||
## VM run
|
||||
To run VM use
|
||||
|
@ -182,10 +182,8 @@ There is a small subset of commands:
|
|||
- `ops` -- show the opcodes of currently loaded contract
|
||||
- `run` -- executes currently loaded contract
|
||||
|
||||
More details can be found in
|
||||
[vm package]([compiler package](https://github.com/nspcc-dev/neo-go/tree/master/pkg/vm/compiler))
|
||||
## Wallet operations
|
||||
|
||||
- `./bin/neo-go wallet create -p newWallet` to create new wallet in the path `newWallet`
|
||||
- `./bin/neo-go wallet open -p newWallet` to open created wallet in the path `newWallet`
|
||||
- `./bin/neo-go wallet create -p newWallet -a` to create new account
|
||||
- `./bin/neo-go wallet create -p newWallet -a` to create new account
|
||||
|
|
|
@ -6,10 +6,10 @@ import (
|
|||
"path"
|
||||
"testing"
|
||||
|
||||
"github.com/CityOfZion/neo-go/pkg/vm/compiler"
|
||||
"github.com/CityOfZion/neo-go/pkg/compiler"
|
||||
)
|
||||
|
||||
const examplePath = "../../../examples"
|
||||
const examplePath = "../../examples"
|
||||
|
||||
func TestExamplesFolder(t *testing.T) {
|
||||
infos, err := ioutil.ReadDir(examplePath)
|
|
@ -10,8 +10,8 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/CityOfZion/neo-go/pkg/compiler"
|
||||
"github.com/CityOfZion/neo-go/pkg/vm"
|
||||
"github.com/CityOfZion/neo-go/pkg/vm/compiler"
|
||||
"gopkg.in/abiosoft/ishell.v2"
|
||||
)
|
||||
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/CityOfZion/neo-go/pkg/compiler"
|
||||
"github.com/CityOfZion/neo-go/pkg/vm"
|
||||
"github.com/CityOfZion/neo-go/pkg/vm/compiler"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue