Merge pull request #710 from nspcc-dev/neo-go-nspcc-dev

nspcc-dev/neo-go
This commit is contained in:
Roman Khimov 2020-03-03 17:36:24 +03:00 committed by GitHub
commit 7480ad1a4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
218 changed files with 667 additions and 668 deletions

View file

@ -28,7 +28,7 @@ commands:
jobs: jobs:
lint: lint:
working_directory: /go/src/github.com/CityOfZion/neo-go working_directory: /go/src/github.com/nspcc-dev/neo-go
executor: go1_13 executor: go1_13
steps: steps:
- checkout - checkout
@ -40,7 +40,7 @@ jobs:
golint -set_exit_status ./... golint -set_exit_status ./...
vet: vet:
working_directory: /go/src/github.com/CityOfZion/neo-go working_directory: /go/src/github.com/nspcc-dev/neo-go
executor: go1_13 executor: go1_13
steps: steps:
- checkout - checkout
@ -50,7 +50,7 @@ jobs:
command: go vet ./... command: go vet ./...
test_1_12: test_1_12:
working_directory: /go/src/github.com/CityOfZion/neo-go working_directory: /go/src/github.com/nspcc-dev/neo-go
executor: go1_12 executor: go1_12
steps: steps:
- checkout - checkout
@ -60,7 +60,7 @@ jobs:
- run: go test -v -race ./... - run: go test -v -race ./...
test_1_13: test_1_13:
working_directory: /go/src/github.com/CityOfZion/neo-go working_directory: /go/src/github.com/nspcc-dev/neo-go
executor: go1_13 executor: go1_13
steps: steps:
- checkout - checkout
@ -72,7 +72,7 @@ jobs:
file: coverage.txt file: coverage.txt
build_cli: build_cli:
working_directory: /go/src/github.com/CityOfZion/neo-go working_directory: /go/src/github.com/nspcc-dev/neo-go
executor: go1_12 executor: go1_12
steps: steps:
- checkout - checkout
@ -83,7 +83,7 @@ jobs:
destination: / destination: /
build_image: build_image:
working_directory: /go/src/github.com/CityOfZion/neo-go working_directory: /go/src/github.com/nspcc-dev/neo-go
executor: go1_12 executor: go1_12
docker: docker:
- image: golang:1-alpine - image: golang:1-alpine

View file

@ -3,8 +3,8 @@
First, thank you for contributing! We love and encourage pull requests from everyone. Please First, thank you for contributing! We love and encourage pull requests from everyone. Please
follow the guidelines: follow the guidelines:
1. Check the open [issues](https://github.com/CityOfZion/neo-go/issues) and 1. Check the open [issues](https://github.com/nspcc-dev/neo-go/issues) and
[pull requests](https://github.com/CityOfZion/neo-go/pulls) for existing discussions. [pull requests](https://github.com/nspcc-dev/neo-go/pulls) for existing discussions.
1. Open an issue first, to discuss a new feature or enhancement. 1. Open an issue first, to discuss a new feature or enhancement.
1. Write tests, and make sure the test suite passes locally and on CI. 1. Write tests, and make sure the test suite passes locally and on CI.
1. Open a pull request, and reference the relevant issue(s). 1. Open a pull request, and reference the relevant issue(s).

View file

@ -3,11 +3,11 @@ package main
import ( import (
"os" "os"
"github.com/CityOfZion/neo-go/cli/server" "github.com/nspcc-dev/neo-go/cli/server"
"github.com/CityOfZion/neo-go/cli/smartcontract" "github.com/nspcc-dev/neo-go/cli/smartcontract"
"github.com/CityOfZion/neo-go/cli/vm" "github.com/nspcc-dev/neo-go/cli/vm"
"github.com/CityOfZion/neo-go/cli/wallet" "github.com/nspcc-dev/neo-go/cli/wallet"
"github.com/CityOfZion/neo-go/config" "github.com/nspcc-dev/neo-go/config"
"github.com/urfave/cli" "github.com/urfave/cli"
) )

View file

@ -7,8 +7,8 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/CityOfZion/neo-go/pkg/core/storage" "github.com/nspcc-dev/neo-go/pkg/core/storage"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
) )
type dump []interface{} type dump []interface{}

View file

@ -6,15 +6,15 @@ import (
"os" "os"
"os/signal" "os/signal"
"github.com/CityOfZion/neo-go/config" "github.com/nspcc-dev/neo-go/config"
"github.com/CityOfZion/neo-go/pkg/core" "github.com/nspcc-dev/neo-go/pkg/core"
"github.com/CityOfZion/neo-go/pkg/core/block" "github.com/nspcc-dev/neo-go/pkg/core/block"
"github.com/CityOfZion/neo-go/pkg/core/storage" "github.com/nspcc-dev/neo-go/pkg/core/storage"
"github.com/CityOfZion/neo-go/pkg/encoding/address" "github.com/nspcc-dev/neo-go/pkg/encoding/address"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/network" "github.com/nspcc-dev/neo-go/pkg/network"
"github.com/CityOfZion/neo-go/pkg/network/metrics" "github.com/nspcc-dev/neo-go/pkg/network/metrics"
"github.com/CityOfZion/neo-go/pkg/rpc/server" "github.com/nspcc-dev/neo-go/pkg/rpc/server"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/urfave/cli" "github.com/urfave/cli"
"go.uber.org/zap" "go.uber.org/zap"

View file

@ -11,16 +11,16 @@ import (
"os" "os"
"path/filepath" "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/client"
"github.com/CityOfZion/neo-go/pkg/rpc/request"
"github.com/CityOfZion/neo-go/pkg/rpc/response/result"
"github.com/CityOfZion/neo-go/pkg/smartcontract"
"github.com/CityOfZion/neo-go/pkg/util"
"github.com/CityOfZion/neo-go/pkg/vm"
"github.com/go-yaml/yaml" "github.com/go-yaml/yaml"
"github.com/nspcc-dev/neo-go/pkg/compiler"
"github.com/nspcc-dev/neo-go/pkg/crypto/hash"
"github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/nspcc-dev/neo-go/pkg/rpc/client"
"github.com/nspcc-dev/neo-go/pkg/rpc/request"
"github.com/nspcc-dev/neo-go/pkg/rpc/response/result"
"github.com/nspcc-dev/neo-go/pkg/smartcontract"
"github.com/nspcc-dev/neo-go/pkg/util"
"github.com/nspcc-dev/neo-go/pkg/vm"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/urfave/cli" "github.com/urfave/cli"
) )
@ -53,7 +53,7 @@ const (
// %s is parsed to be the smartContractName // %s is parsed to be the smartContractName
smartContractTmpl = `package %s smartContractTmpl = `package %s
import "github.com/CityOfZion/neo-go/pkg/interop/runtime" import "github.com/nspcc-dev/neo-go/pkg/interop/runtime"
func Main(op string, args []interface{}) { func Main(op string, args []interface{}) {
runtime.Notify("Hello world!") runtime.Notify("Hello world!")

View file

@ -1,7 +1,7 @@
package vm package vm
import ( import (
vmcli "github.com/CityOfZion/neo-go/pkg/vm/cli" vmcli "github.com/nspcc-dev/neo-go/pkg/vm/cli"
"github.com/urfave/cli" "github.com/urfave/cli"
) )

View file

@ -9,14 +9,14 @@ import (
"strings" "strings"
"syscall" "syscall"
"github.com/CityOfZion/neo-go/pkg/core" "github.com/nspcc-dev/neo-go/pkg/core"
"github.com/CityOfZion/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/CityOfZion/neo-go/pkg/encoding/address" "github.com/nspcc-dev/neo-go/pkg/encoding/address"
"github.com/CityOfZion/neo-go/pkg/rpc/client" "github.com/nspcc-dev/neo-go/pkg/rpc/client"
"github.com/CityOfZion/neo-go/pkg/rpc/request" "github.com/nspcc-dev/neo-go/pkg/rpc/request"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
"github.com/CityOfZion/neo-go/pkg/wallet" "github.com/nspcc-dev/neo-go/pkg/wallet"
"github.com/urfave/cli" "github.com/urfave/cli"
"golang.org/x/crypto/ssh/terminal" "golang.org/x/crypto/ssh/terminal"
) )

View file

@ -6,11 +6,11 @@ import (
"os" "os"
"time" "time"
"github.com/CityOfZion/neo-go/pkg/core/storage"
"github.com/CityOfZion/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/network/metrics"
"github.com/CityOfZion/neo-go/pkg/util"
"github.com/go-yaml/yaml" "github.com/go-yaml/yaml"
"github.com/nspcc-dev/neo-go/pkg/core/storage"
"github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/nspcc-dev/neo-go/pkg/network/metrics"
"github.com/nspcc-dev/neo-go/pkg/util"
"github.com/pkg/errors" "github.com/pkg/errors"
) )

View file

@ -146,8 +146,8 @@ Some examples are provided in the [examples directory](https://github.com/nspcc-
package mycontract package mycontract
import ( import (
"github.com/CityOfZion/neo-go/pkg/interop/runtime" "github.com/nspcc-dev/neo-go/pkg/interop/runtime"
"github.com/CityOfZion/neo-go/pkg/interop/util" "github.com/nspcc-dev/neo-go/pkg/interop/util"
) )
var owner = util.FromAddress("AJX1jGfj3qPBbpAKjY527nPbnrnvSx9nCg") var owner = util.FromAddress("AJX1jGfj3qPBbpAKjY527nPbnrnvSx9nCg")
@ -170,8 +170,8 @@ func Main() bool {
package mytoken package mytoken
import ( import (
"github.com/CityOfZion/neo-go/pkg/interop/runtime" "github.com/nspcc-dev/neo-go/pkg/interop/runtime"
"github.com/CityOfZion/neo-go/pkg/interop/storage" "github.com/nspcc-dev/neo-go/pkg/interop/storage"
) )
var owner = util.FromAddress("AJX1jGfj3qPBbpAKjY527nPbnrnvSx9nCg") var owner = util.FromAddress("AJX1jGfj3qPBbpAKjY527nPbnrnvSx9nCg")

View file

@ -117,7 +117,7 @@ You can invoke smart contracts with arguments. Take the following ***roll the di
``` ```
package rollthedice package rollthedice
import "github.com/CityOfZion/neo-go/pkg/interop/runtime" import "github.com/nspcc-dev/neo-go/pkg/interop/runtime"
func Main(method string, args []interface{}) int { func Main(method string, args []interface{}) int {
if method == "rollDice" { if method == "rollDice" {

View file

@ -1,8 +1,8 @@
package enginecontract package enginecontract
import ( import (
"github.com/CityOfZion/neo-go/pkg/interop/engine" "github.com/nspcc-dev/neo-go/pkg/interop/engine"
"github.com/CityOfZion/neo-go/pkg/interop/runtime" "github.com/nspcc-dev/neo-go/pkg/interop/runtime"
) )
// Main is that famous Main() function, you know. // Main is that famous Main() function, you know.

View file

@ -1,9 +1,9 @@
package iteratorcontract package iteratorcontract
import ( import (
"github.com/CityOfZion/neo-go/pkg/interop/iterator" "github.com/nspcc-dev/neo-go/pkg/interop/iterator"
"github.com/CityOfZion/neo-go/pkg/interop/runtime" "github.com/nspcc-dev/neo-go/pkg/interop/runtime"
"github.com/CityOfZion/neo-go/pkg/interop/storage" "github.com/nspcc-dev/neo-go/pkg/interop/storage"
) )
// Main is Main(), really. // Main is Main(), really.

View file

@ -1,8 +1,8 @@
package runtimecontract package runtimecontract
import ( import (
"github.com/CityOfZion/neo-go/pkg/interop/runtime" "github.com/nspcc-dev/neo-go/pkg/interop/runtime"
"github.com/CityOfZion/neo-go/pkg/interop/util" "github.com/nspcc-dev/neo-go/pkg/interop/util"
) )
// Check if the invoker of the contract is the specified owner // Check if the invoker of the contract is the specified owner

View file

@ -1,7 +1,7 @@
package storagecontract package storagecontract
import ( import (
"github.com/CityOfZion/neo-go/pkg/interop/storage" "github.com/nspcc-dev/neo-go/pkg/interop/storage"
) )
// Main is a very useful function. // Main is a very useful function.

View file

@ -1,9 +1,9 @@
package tokensale package tokensale
import ( import (
"github.com/CityOfZion/neo-go/pkg/interop/runtime" "github.com/nspcc-dev/neo-go/pkg/interop/runtime"
"github.com/CityOfZion/neo-go/pkg/interop/storage" "github.com/nspcc-dev/neo-go/pkg/interop/storage"
"github.com/CityOfZion/neo-go/pkg/interop/util" "github.com/nspcc-dev/neo-go/pkg/interop/util"
) )
const ( const (

View file

@ -1,10 +1,10 @@
package nep5 package nep5
import ( import (
"github.com/CityOfZion/neo-go/pkg/interop/engine" "github.com/nspcc-dev/neo-go/pkg/interop/engine"
"github.com/CityOfZion/neo-go/pkg/interop/runtime" "github.com/nspcc-dev/neo-go/pkg/interop/runtime"
"github.com/CityOfZion/neo-go/pkg/interop/storage" "github.com/nspcc-dev/neo-go/pkg/interop/storage"
"github.com/CityOfZion/neo-go/pkg/interop/util" "github.com/nspcc-dev/neo-go/pkg/interop/util"
) )
// Token holds all token info // Token holds all token info

View file

@ -1,10 +1,10 @@
package tokencontract package tokencontract
import ( import (
"github.com/CityOfZion/neo-go/examples/token/nep5" "github.com/nspcc-dev/neo-go/examples/token/nep5"
"github.com/CityOfZion/neo-go/pkg/interop/storage" "github.com/nspcc-dev/neo-go/pkg/interop/storage"
"github.com/CityOfZion/neo-go/pkg/interop/util" "github.com/nspcc-dev/neo-go/pkg/interop/util"
) )
const ( const (

4
go.mod
View file

@ -1,4 +1,4 @@
module github.com/CityOfZion/neo-go module github.com/nspcc-dev/neo-go
require ( require (
github.com/Workiva/go-datastructures v1.0.50 github.com/Workiva/go-datastructures v1.0.50
@ -7,7 +7,7 @@ require (
github.com/go-redis/redis v6.10.2+incompatible github.com/go-redis/redis v6.10.2+incompatible
github.com/go-yaml/yaml v2.1.0+incompatible github.com/go-yaml/yaml v2.1.0+incompatible
github.com/mr-tron/base58 v1.1.2 github.com/mr-tron/base58 v1.1.2
github.com/nspcc-dev/dbft v0.0.0-20200219114139-199d286ed6c1 github.com/nspcc-dev/dbft v0.0.0-20200303142906-383e2589bc69
github.com/nspcc-dev/rfc6979 v0.2.0 github.com/nspcc-dev/rfc6979 v0.2.0
github.com/pkg/errors v0.8.1 github.com/pkg/errors v0.8.1
github.com/prometheus/client_golang v1.2.1 github.com/prometheus/client_golang v1.2.1

11
go.sum
View file

@ -1,7 +1,7 @@
github.com/CityOfZion/neo-go v0.62.1-pre.0.20191114145240-e740fbe708f8/go.mod h1:MJCkWUBhi9pn/CrYO1Q3P687y2KeahrOPS9BD9LDGb0= github.com/nspcc-dev/neo-go v0.62.1-pre.0.20191114145240-e740fbe708f8/go.mod h1:MJCkWUBhi9pn/CrYO1Q3P687y2KeahrOPS9BD9LDGb0=
github.com/CityOfZion/neo-go v0.70.1-pre.0.20191209120015-fccb0085941e/go.mod h1:0enZl0az8xA6PVkwzEOwPWVJGqlt/GO4hA4kmQ5Xzig= github.com/nspcc-dev/neo-go v0.70.1-pre.0.20191209120015-fccb0085941e/go.mod h1:0enZl0az8xA6PVkwzEOwPWVJGqlt/GO4hA4kmQ5Xzig=
github.com/CityOfZion/neo-go v0.70.1-pre.0.20191212173117-32ac01130d4c/go.mod h1:JtlHfeqLywZLswKIKFnAp+yzezY4Dji9qlfQKB2OD/I= github.com/nspcc-dev/neo-go v0.70.1-pre.0.20191212173117-32ac01130d4c/go.mod h1:JtlHfeqLywZLswKIKFnAp+yzezY4Dji9qlfQKB2OD/I=
github.com/CityOfZion/neo-go v0.71.1-pre.0.20200129171427-f773ec69fb84/go.mod h1:FLI526IrRWHmcsO+mHsCbj64pJZhwQFTLJZu+A4PGOA= github.com/nspcc-dev/neo-go v0.71.1-pre.0.20200129171427-f773ec69fb84/go.mod h1:FLI526IrRWHmcsO+mHsCbj64pJZhwQFTLJZu+A4PGOA=
github.com/Workiva/go-datastructures v1.0.50 h1:slDmfW6KCHcC7U+LP3DDBbm4fqTwZGn1beOFPfGaLvo= github.com/Workiva/go-datastructures v1.0.50 h1:slDmfW6KCHcC7U+LP3DDBbm4fqTwZGn1beOFPfGaLvo=
github.com/Workiva/go-datastructures v1.0.50/go.mod h1:Z+F2Rca0qCsVYDS8z7bAGm8f3UkzuWYS/oBZz5a7VVA= github.com/Workiva/go-datastructures v1.0.50/go.mod h1:Z+F2Rca0qCsVYDS8z7bAGm8f3UkzuWYS/oBZz5a7VVA=
github.com/abiosoft/ishell v2.0.0+incompatible h1:zpwIuEHc37EzrsIYah3cpevrIc8Oma7oZPxr03tlmmw= github.com/abiosoft/ishell v2.0.0+incompatible h1:zpwIuEHc37EzrsIYah3cpevrIc8Oma7oZPxr03tlmmw=
@ -99,6 +99,9 @@ github.com/nspcc-dev/dbft v0.0.0-20200117124306-478e5cfbf03a h1:ajvxgEe9qY4vvoSm
github.com/nspcc-dev/dbft v0.0.0-20200117124306-478e5cfbf03a/go.mod h1:/YFK+XOxxg0Bfm6P92lY5eDSLYfp06XOdL8KAVgXjVk= github.com/nspcc-dev/dbft v0.0.0-20200117124306-478e5cfbf03a/go.mod h1:/YFK+XOxxg0Bfm6P92lY5eDSLYfp06XOdL8KAVgXjVk=
github.com/nspcc-dev/dbft v0.0.0-20200219114139-199d286ed6c1 h1:yEx9WznS+rjE0jl0dLujCxuZSIb+UTjF+005TJu/nNI= github.com/nspcc-dev/dbft v0.0.0-20200219114139-199d286ed6c1 h1:yEx9WznS+rjE0jl0dLujCxuZSIb+UTjF+005TJu/nNI=
github.com/nspcc-dev/dbft v0.0.0-20200219114139-199d286ed6c1/go.mod h1:O0qtn62prQSqizzoagHmuuKoz8QMkU3SzBoKdEvm3aQ= github.com/nspcc-dev/dbft v0.0.0-20200219114139-199d286ed6c1/go.mod h1:O0qtn62prQSqizzoagHmuuKoz8QMkU3SzBoKdEvm3aQ=
github.com/nspcc-dev/dbft v0.0.0-20200303142906-383e2589bc69 h1:jp29/ONuo8ECHXNirePBL/fG/fcuFlZxbItMCEZz05A=
github.com/nspcc-dev/dbft v0.0.0-20200303142906-383e2589bc69/go.mod h1:1FYQXSbb6/9HQIkoF8XO7W/S8N7AZRkBsgwbcXRvk0E=
github.com/nspcc-dev/neo-go v0.73.1-pre.0.20200303142215-f5a1b928ce09/go.mod h1:pPYwPZ2ks+uMnlRLUyXOpLieaDQSEaf4NM3zHVbRjmg=
github.com/nspcc-dev/neofs-crypto v0.2.0 h1:ftN+59WqxSWz/RCgXYOfhmltOOqU+udsNQSvN6wkFck= github.com/nspcc-dev/neofs-crypto v0.2.0 h1:ftN+59WqxSWz/RCgXYOfhmltOOqU+udsNQSvN6wkFck=
github.com/nspcc-dev/neofs-crypto v0.2.0/go.mod h1:F/96fUzPM3wR+UGsPi3faVNmFlA9KAEAUQR7dMxZmNA= github.com/nspcc-dev/neofs-crypto v0.2.0/go.mod h1:F/96fUzPM3wR+UGsPi3faVNmFlA9KAEAUQR7dMxZmNA=
github.com/nspcc-dev/neofs-crypto v0.2.3 h1:aca3X2aly92ENRbFK+kH6Hd+J9EQ4Eu6XMVoITSIKtc= github.com/nspcc-dev/neofs-crypto v0.2.3 h1:aca3X2aly92ENRbFK+kH6Hd+J9EQ4Eu6XMVoITSIKtc=

View file

@ -13,7 +13,7 @@ Result:
``` ```
10000 402421 ns/op 177370 B/op 90 allocs/op 10000 402421 ns/op 177370 B/op 90 allocs/op
PASS PASS
ok github.com/CityOfZion/neo-go/integration 4.360s ok github.com/nspcc-dev/neo-go/integration 4.360s
``` ```

View file

@ -4,14 +4,14 @@ import (
"math/rand" "math/rand"
"testing" "testing"
"github.com/CityOfZion/neo-go/config" "github.com/nspcc-dev/neo-go/config"
"github.com/CityOfZion/neo-go/pkg/core" "github.com/nspcc-dev/neo-go/pkg/core"
"github.com/CityOfZion/neo-go/pkg/core/storage" "github.com/nspcc-dev/neo-go/pkg/core/storage"
"github.com/CityOfZion/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/CityOfZion/neo-go/pkg/encoding/address" "github.com/nspcc-dev/neo-go/pkg/encoding/address"
"github.com/CityOfZion/neo-go/pkg/network" "github.com/nspcc-dev/neo-go/pkg/network"
"github.com/CityOfZion/neo-go/pkg/wallet" "github.com/nspcc-dev/neo-go/pkg/wallet"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"go.uber.org/zap/zaptest" "go.uber.org/zap/zaptest"

View file

@ -13,11 +13,11 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/CityOfZion/neo-go/pkg/encoding/address" "github.com/nspcc-dev/neo-go/pkg/encoding/address"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/vm" "github.com/nspcc-dev/neo-go/pkg/vm"
"github.com/CityOfZion/neo-go/pkg/vm/emit" "github.com/nspcc-dev/neo-go/pkg/vm/emit"
"github.com/CityOfZion/neo-go/pkg/vm/opcode" "github.com/nspcc-dev/neo-go/pkg/vm/opcode"
) )
// The identifier of the entry function. Default set to Main. // The identifier of the entry function. Default set to Main.

View file

@ -4,8 +4,8 @@ import (
"go/token" "go/token"
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/vm/opcode" "github.com/nspcc-dev/neo-go/pkg/vm/opcode"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View file

@ -6,7 +6,7 @@ import (
"path" "path"
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/compiler" "github.com/nspcc-dev/neo-go/pkg/compiler"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -6,9 +6,9 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/compiler" "github.com/nspcc-dev/neo-go/pkg/compiler"
"github.com/CityOfZion/neo-go/pkg/vm" "github.com/nspcc-dev/neo-go/pkg/vm"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -9,7 +9,7 @@ func TestImportFunction(t *testing.T) {
src := ` src := `
package somethingelse package somethingelse
import "github.com/CityOfZion/neo-go/pkg/compiler/testdata/foo" import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/foo"
func Main() int { func Main() int {
i := foo.NewBar() i := foo.NewBar()
@ -23,7 +23,7 @@ func TestImportStruct(t *testing.T) {
src := ` src := `
package somethingwedontcareabout package somethingwedontcareabout
import "github.com/CityOfZion/neo-go/pkg/compiler/testdata/bar" import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/bar"
func Main() int { func Main() int {
b := bar.Bar{ b := bar.Bar{
@ -39,7 +39,7 @@ func TestMultipleDirFileImport(t *testing.T) {
src := ` src := `
package hello package hello
import "github.com/CityOfZion/neo-go/pkg/compiler/testdata/foobar" import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/foobar"
func Main() bool { func Main() bool {
ok := foobar.OtherBool() ok := foobar.OtherBool()

View file

@ -5,10 +5,10 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/compiler" "github.com/nspcc-dev/neo-go/pkg/compiler"
"github.com/CityOfZion/neo-go/pkg/crypto/hash" "github.com/nspcc-dev/neo-go/pkg/crypto/hash"
"github.com/CityOfZion/neo-go/pkg/encoding/address" "github.com/nspcc-dev/neo-go/pkg/encoding/address"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )
@ -24,7 +24,7 @@ func TestFromAddress(t *testing.T) {
t.Run("append 2 addresses", func(t *testing.T) { t.Run("append 2 addresses", func(t *testing.T) {
src := ` src := `
package foo package foo
import "github.com/CityOfZion/neo-go/pkg/interop/util" import "github.com/nspcc-dev/neo-go/pkg/interop/util"
func Main() []byte { func Main() []byte {
addr1 := util.FromAddress("` + as1 + `") addr1 := util.FromAddress("` + as1 + `")
addr2 := util.FromAddress("` + as2 + `") addr2 := util.FromAddress("` + as2 + `")
@ -39,7 +39,7 @@ func TestFromAddress(t *testing.T) {
t.Run("append 2 addresses inline", func(t *testing.T) { t.Run("append 2 addresses inline", func(t *testing.T) {
src := ` src := `
package foo package foo
import "github.com/CityOfZion/neo-go/pkg/interop/util" import "github.com/nspcc-dev/neo-go/pkg/interop/util"
func Main() []byte { func Main() []byte {
addr1 := util.FromAddress("` + as1 + `") addr1 := util.FromAddress("` + as1 + `")
sum := append(addr1, util.FromAddress("` + as2 + `")...) sum := append(addr1, util.FromAddress("` + as2 + `")...)
@ -101,7 +101,7 @@ func TestAppCall(t *testing.T) {
t.Run("convert from string constant", func(t *testing.T) { t.Run("convert from string constant", func(t *testing.T) {
src := ` src := `
package foo package foo
import "github.com/CityOfZion/neo-go/pkg/interop/engine" import "github.com/nspcc-dev/neo-go/pkg/interop/engine"
const scriptHash = ` + fmt.Sprintf("%#v", string(ih.BytesBE())) + ` const scriptHash = ` + fmt.Sprintf("%#v", string(ih.BytesBE())) + `
func Main() []byte { func Main() []byte {
x := []byte{1, 2} x := []byte{1, 2}
@ -123,7 +123,7 @@ func TestAppCall(t *testing.T) {
func getAppCallScript(h string) string { func getAppCallScript(h string) string {
return ` return `
package foo package foo
import "github.com/CityOfZion/neo-go/pkg/interop/engine" import "github.com/nspcc-dev/neo-go/pkg/interop/engine"
func Main() []byte { func Main() []byte {
x := []byte{1, 2} x := []byte{1, 2}
y := []byte{3, 4} y := []byte{3, 4}

View file

@ -5,7 +5,7 @@ import (
"math/big" "math/big"
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/vm" "github.com/nspcc-dev/neo-go/pkg/vm"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -4,7 +4,7 @@ import (
"math/big" "math/big"
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/vm" "github.com/nspcc-dev/neo-go/pkg/vm"
) )
var structTestCases = []testCase{ var structTestCases = []testCase{

View file

@ -8,7 +8,7 @@ func TestStoragePutGet(t *testing.T) {
src := ` src := `
package foo package foo
import "github.com/CityOfZion/neo-go/pkg/interop/storage" import "github.com/nspcc-dev/neo-go/pkg/interop/storage"
func Main() string { func Main() string {
ctx := storage.GetContext() ctx := storage.GetContext()

View file

@ -1,6 +1,6 @@
package compile package compile
import "github.com/CityOfZion/neo-go/pkg/interop/runtime" import "github.com/nspcc-dev/neo-go/pkg/interop/runtime"
func Main() { func Main() {
runtime.Notify("Hello world!") runtime.Notify("Hello world!")

View file

@ -8,7 +8,7 @@ func TestSHA256(t *testing.T) {
src := ` src := `
package foo package foo
import ( import (
"github.com/CityOfZion/neo-go/pkg/interop/crypto" "github.com/nspcc-dev/neo-go/pkg/interop/crypto"
) )
func Main() []byte { func Main() []byte {
src := []byte{0x97} src := []byte{0x97}
@ -23,7 +23,7 @@ func TestSHA1(t *testing.T) {
src := ` src := `
package foo package foo
import ( import (
"github.com/CityOfZion/neo-go/pkg/interop/crypto" "github.com/nspcc-dev/neo-go/pkg/interop/crypto"
) )
func Main() []byte { func Main() []byte {
src := []byte{0x97} src := []byte{0x97}
@ -38,7 +38,7 @@ func TestHash160(t *testing.T) {
src := ` src := `
package foo package foo
import ( import (
"github.com/CityOfZion/neo-go/pkg/interop/crypto" "github.com/nspcc-dev/neo-go/pkg/interop/crypto"
) )
func Main() []byte { func Main() []byte {
src := []byte{0x97} src := []byte{0x97}
@ -53,7 +53,7 @@ func TestHash256(t *testing.T) {
src := ` src := `
package foo package foo
import ( import (
"github.com/CityOfZion/neo-go/pkg/interop/crypto" "github.com/nspcc-dev/neo-go/pkg/interop/crypto"
) )
func Main() []byte { func Main() []byte {
src := []byte{0x97} src := []byte{0x97}

View file

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )
@ -43,7 +43,7 @@ func getVerifyProg(pub, sig, msg []byte) string {
return ` return `
package hello package hello
import "github.com/CityOfZion/neo-go/pkg/interop/crypto" import "github.com/nspcc-dev/neo-go/pkg/interop/crypto"
func Main() bool { func Main() bool {
pub := ` + pubS + ` pub := ` + pubS + `

View file

@ -5,8 +5,8 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/compiler" "github.com/nspcc-dev/neo-go/pkg/compiler"
"github.com/CityOfZion/neo-go/pkg/vm" "github.com/nspcc-dev/neo-go/pkg/vm"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -1,11 +1,11 @@
package consensus package consensus
import ( import (
coreb "github.com/CityOfZion/neo-go/pkg/core/block"
"github.com/CityOfZion/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/util"
"github.com/nspcc-dev/dbft/block" "github.com/nspcc-dev/dbft/block"
"github.com/nspcc-dev/dbft/crypto" "github.com/nspcc-dev/dbft/crypto"
coreb "github.com/nspcc-dev/neo-go/pkg/core/block"
"github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/nspcc-dev/neo-go/pkg/util"
) )
// neoBlock is a wrapper of core.Block which implements // neoBlock is a wrapper of core.Block which implements

View file

@ -4,9 +4,9 @@ import (
"crypto/rand" "crypto/rand"
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/util"
"github.com/nspcc-dev/dbft/block" "github.com/nspcc-dev/dbft/block"
"github.com/nspcc-dev/dbft/crypto" "github.com/nspcc-dev/dbft/crypto"
"github.com/nspcc-dev/neo-go/pkg/util"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -4,7 +4,7 @@ import (
"container/list" "container/list"
"sync" "sync"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
) )
// relayCache is a payload cache which is used to store // relayCache is a payload cache which is used to store

View file

@ -1,8 +1,8 @@
package consensus package consensus
import ( import (
"github.com/CityOfZion/neo-go/pkg/io"
"github.com/nspcc-dev/dbft/payload" "github.com/nspcc-dev/dbft/payload"
"github.com/nspcc-dev/neo-go/pkg/io"
) )
// changeView represents dBFT ChangeView message. // changeView represents dBFT ChangeView message.

View file

@ -1,8 +1,8 @@
package consensus package consensus
import ( import (
"github.com/CityOfZion/neo-go/pkg/io"
"github.com/nspcc-dev/dbft/payload" "github.com/nspcc-dev/dbft/payload"
"github.com/nspcc-dev/neo-go/pkg/io"
) )
// commit represents dBFT Commit message. // commit represents dBFT Commit message.

View file

@ -6,20 +6,20 @@ import (
"sort" "sort"
"time" "time"
"github.com/CityOfZion/neo-go/config"
"github.com/CityOfZion/neo-go/pkg/core"
coreb "github.com/CityOfZion/neo-go/pkg/core/block"
"github.com/CityOfZion/neo-go/pkg/core/mempool"
"github.com/CityOfZion/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/crypto/keys"
"github.com/CityOfZion/neo-go/pkg/smartcontract"
"github.com/CityOfZion/neo-go/pkg/util"
"github.com/CityOfZion/neo-go/pkg/vm/opcode"
"github.com/CityOfZion/neo-go/pkg/wallet"
"github.com/nspcc-dev/dbft" "github.com/nspcc-dev/dbft"
"github.com/nspcc-dev/dbft/block" "github.com/nspcc-dev/dbft/block"
"github.com/nspcc-dev/dbft/crypto" "github.com/nspcc-dev/dbft/crypto"
"github.com/nspcc-dev/dbft/payload" "github.com/nspcc-dev/dbft/payload"
"github.com/nspcc-dev/neo-go/config"
"github.com/nspcc-dev/neo-go/pkg/core"
coreb "github.com/nspcc-dev/neo-go/pkg/core/block"
"github.com/nspcc-dev/neo-go/pkg/core/mempool"
"github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/nspcc-dev/neo-go/pkg/smartcontract"
"github.com/nspcc-dev/neo-go/pkg/util"
"github.com/nspcc-dev/neo-go/pkg/vm/opcode"
"github.com/nspcc-dev/neo-go/pkg/wallet"
"go.uber.org/zap" "go.uber.org/zap"
) )
@ -446,7 +446,7 @@ func (s *service) getVerifiedTx(count int) []block.Transaction {
pk := s.dbft.Pub.(*publicKey) pk := s.dbft.Pub.(*publicKey)
sh = pk.GetScriptHash() sh = pk.GetScriptHash()
} }
txOuts = []transaction.Output{transaction.Output{ txOuts = []transaction.Output{{
AssetID: core.UtilityTokenID(), AssetID: core.UtilityTokenID(),
Amount: netFee, Amount: netFee,
ScriptHash: sh, ScriptHash: sh,

View file

@ -3,14 +3,14 @@ package consensus
import ( import (
"testing" "testing"
"github.com/CityOfZion/neo-go/config"
"github.com/CityOfZion/neo-go/pkg/core"
"github.com/CityOfZion/neo-go/pkg/core/storage"
"github.com/CityOfZion/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/crypto/keys"
"github.com/CityOfZion/neo-go/pkg/util"
"github.com/nspcc-dev/dbft/block" "github.com/nspcc-dev/dbft/block"
"github.com/nspcc-dev/dbft/payload" "github.com/nspcc-dev/dbft/payload"
"github.com/nspcc-dev/neo-go/config"
"github.com/nspcc-dev/neo-go/pkg/core"
"github.com/nspcc-dev/neo-go/pkg/core/storage"
"github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/nspcc-dev/neo-go/pkg/util"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"go.uber.org/zap/zaptest" "go.uber.org/zap/zaptest"
) )

View file

@ -4,7 +4,7 @@ import (
"crypto/sha256" "crypto/sha256"
"errors" "errors"
"github.com/CityOfZion/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
) )
// privateKey is a wrapper around keys.PrivateKey // privateKey is a wrapper around keys.PrivateKey

View file

@ -3,7 +3,7 @@ package consensus
import ( import (
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -4,14 +4,14 @@ import (
"crypto/sha256" "crypto/sha256"
"fmt" "fmt"
"github.com/CityOfZion/neo-go/pkg/core"
"github.com/CityOfZion/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/crypto/hash"
"github.com/CityOfZion/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/util"
"github.com/CityOfZion/neo-go/pkg/vm"
"github.com/CityOfZion/neo-go/pkg/vm/opcode"
"github.com/nspcc-dev/dbft/payload" "github.com/nspcc-dev/dbft/payload"
"github.com/nspcc-dev/neo-go/pkg/core"
"github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/nspcc-dev/neo-go/pkg/crypto/hash"
"github.com/nspcc-dev/neo-go/pkg/io"
"github.com/nspcc-dev/neo-go/pkg/util"
"github.com/nspcc-dev/neo-go/pkg/vm"
"github.com/nspcc-dev/neo-go/pkg/vm/opcode"
"github.com/pkg/errors" "github.com/pkg/errors"
) )

View file

@ -7,12 +7,12 @@ import (
"testing" "testing"
"time" "time"
"github.com/CityOfZion/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/crypto/keys"
"github.com/CityOfZion/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/util"
"github.com/CityOfZion/neo-go/pkg/vm/opcode"
"github.com/nspcc-dev/dbft/payload" "github.com/nspcc-dev/dbft/payload"
"github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/nspcc-dev/neo-go/pkg/io"
"github.com/nspcc-dev/neo-go/pkg/util"
"github.com/nspcc-dev/neo-go/pkg/vm/opcode"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -1,10 +1,10 @@
package consensus package consensus
import ( import (
"github.com/CityOfZion/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/util"
"github.com/nspcc-dev/dbft/payload" "github.com/nspcc-dev/dbft/payload"
"github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/nspcc-dev/neo-go/pkg/io"
"github.com/nspcc-dev/neo-go/pkg/util"
) )
// prepareRequest represents dBFT prepareRequest message. // prepareRequest represents dBFT prepareRequest message.

View file

@ -3,7 +3,7 @@ package consensus
import ( import (
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -1,9 +1,9 @@
package consensus package consensus
import ( import (
"github.com/CityOfZion/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/util"
"github.com/nspcc-dev/dbft/payload" "github.com/nspcc-dev/dbft/payload"
"github.com/nspcc-dev/neo-go/pkg/io"
"github.com/nspcc-dev/neo-go/pkg/util"
) )
// prepareResponse represents dBFT PrepareResponse message. // prepareResponse represents dBFT PrepareResponse message.

View file

@ -3,7 +3,7 @@ package consensus
import ( import (
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -1,10 +1,10 @@
package consensus package consensus
import ( import (
"github.com/CityOfZion/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/util"
"github.com/nspcc-dev/dbft/crypto" "github.com/nspcc-dev/dbft/crypto"
"github.com/nspcc-dev/dbft/payload" "github.com/nspcc-dev/dbft/payload"
"github.com/nspcc-dev/neo-go/pkg/io"
"github.com/nspcc-dev/neo-go/pkg/util"
"github.com/pkg/errors" "github.com/pkg/errors"
) )

View file

@ -5,11 +5,11 @@ import (
gio "io" gio "io"
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/crypto/keys"
"github.com/CityOfZion/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/util"
"github.com/nspcc-dev/dbft/crypto" "github.com/nspcc-dev/dbft/crypto"
"github.com/nspcc-dev/dbft/payload" "github.com/nspcc-dev/dbft/payload"
"github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/nspcc-dev/neo-go/pkg/io"
"github.com/nspcc-dev/neo-go/pkg/util"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -1,8 +1,8 @@
package consensus package consensus
import ( import (
"github.com/CityOfZion/neo-go/pkg/io"
"github.com/nspcc-dev/dbft/payload" "github.com/nspcc-dev/dbft/payload"
"github.com/nspcc-dev/neo-go/pkg/io"
) )
// recoveryRequest represents dBFT RecoveryRequest message. // recoveryRequest represents dBFT RecoveryRequest message.

View file

@ -4,11 +4,11 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/CityOfZion/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/crypto/hash"
"github.com/CityOfZion/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/util"
"github.com/Workiva/go-datastructures/queue" "github.com/Workiva/go-datastructures/queue"
"github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/nspcc-dev/neo-go/pkg/crypto/hash"
"github.com/nspcc-dev/neo-go/pkg/io"
"github.com/nspcc-dev/neo-go/pkg/util"
) )
// Block represents one block in the chain. // Block represents one block in the chain.

View file

@ -3,10 +3,10 @@ package block
import ( import (
"fmt" "fmt"
"github.com/CityOfZion/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/crypto/hash" "github.com/nspcc-dev/neo-go/pkg/crypto/hash"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
) )
// Base holds the base info of a block // Base holds the base info of a block

View file

@ -4,10 +4,10 @@ import (
"encoding/hex" "encoding/hex"
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/crypto/hash" "github.com/nspcc-dev/neo-go/pkg/crypto/hash"
"github.com/CityOfZion/neo-go/pkg/encoding/address" "github.com/nspcc-dev/neo-go/pkg/encoding/address"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -3,7 +3,7 @@ package block
import ( import (
"fmt" "fmt"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
) )
// Header holds the head info of a block. // Header holds the head info of a block.

View file

@ -4,10 +4,10 @@ import (
"testing" "testing"
"time" "time"
"github.com/CityOfZion/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/crypto/hash" "github.com/nspcc-dev/neo-go/pkg/crypto/hash"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View file

@ -7,7 +7,7 @@ import (
"io/ioutil" "io/ioutil"
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -9,19 +9,19 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/CityOfZion/neo-go/config" "github.com/nspcc-dev/neo-go/config"
"github.com/CityOfZion/neo-go/pkg/core/block" "github.com/nspcc-dev/neo-go/pkg/core/block"
"github.com/CityOfZion/neo-go/pkg/core/mempool" "github.com/nspcc-dev/neo-go/pkg/core/mempool"
"github.com/CityOfZion/neo-go/pkg/core/state" "github.com/nspcc-dev/neo-go/pkg/core/state"
"github.com/CityOfZion/neo-go/pkg/core/storage" "github.com/nspcc-dev/neo-go/pkg/core/storage"
"github.com/CityOfZion/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/smartcontract" "github.com/nspcc-dev/neo-go/pkg/smartcontract"
"github.com/CityOfZion/neo-go/pkg/smartcontract/trigger" "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
"github.com/CityOfZion/neo-go/pkg/vm" "github.com/nspcc-dev/neo-go/pkg/vm"
"github.com/CityOfZion/neo-go/pkg/vm/emit" "github.com/nspcc-dev/neo-go/pkg/vm/emit"
"github.com/pkg/errors" "github.com/pkg/errors"
"go.uber.org/zap" "go.uber.org/zap"
) )

View file

@ -3,12 +3,12 @@ package core
import ( import (
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/core/block" "github.com/nspcc-dev/neo-go/pkg/core/block"
"github.com/CityOfZion/neo-go/pkg/core/storage" "github.com/nspcc-dev/neo-go/pkg/core/storage"
"github.com/CityOfZion/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/crypto/hash" "github.com/nspcc-dev/neo-go/pkg/crypto/hash"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -1,15 +1,15 @@
package core package core
import ( import (
"github.com/CityOfZion/neo-go/config" "github.com/nspcc-dev/neo-go/config"
"github.com/CityOfZion/neo-go/pkg/core/block" "github.com/nspcc-dev/neo-go/pkg/core/block"
"github.com/CityOfZion/neo-go/pkg/core/mempool" "github.com/nspcc-dev/neo-go/pkg/core/mempool"
"github.com/CityOfZion/neo-go/pkg/core/state" "github.com/nspcc-dev/neo-go/pkg/core/state"
"github.com/CityOfZion/neo-go/pkg/core/storage" "github.com/nspcc-dev/neo-go/pkg/core/storage"
"github.com/CityOfZion/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
"github.com/CityOfZion/neo-go/pkg/vm" "github.com/nspcc-dev/neo-go/pkg/vm"
) )
// Blockchainer is an interface that abstract the implementation // Blockchainer is an interface that abstract the implementation

View file

@ -1,9 +1,9 @@
package core package core
import ( import (
"github.com/CityOfZion/neo-go/pkg/core/state" "github.com/nspcc-dev/neo-go/pkg/core/state"
"github.com/CityOfZion/neo-go/pkg/core/storage" "github.com/nspcc-dev/neo-go/pkg/core/storage"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
) )
// cachedDao is a data access object that mimics dao, but has a write cache // cachedDao is a data access object that mimics dao, but has a write cache

View file

@ -3,11 +3,11 @@ package core
import ( import (
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/core/state" "github.com/nspcc-dev/neo-go/pkg/core/state"
"github.com/CityOfZion/neo-go/pkg/core/storage" "github.com/nspcc-dev/neo-go/pkg/core/storage"
"github.com/CityOfZion/neo-go/pkg/crypto/hash" "github.com/nspcc-dev/neo-go/pkg/crypto/hash"
"github.com/CityOfZion/neo-go/pkg/internal/random" "github.com/nspcc-dev/neo-go/pkg/internal/random"
"github.com/CityOfZion/neo-go/pkg/smartcontract" "github.com/nspcc-dev/neo-go/pkg/smartcontract"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -6,13 +6,13 @@ import (
"fmt" "fmt"
"sort" "sort"
"github.com/CityOfZion/neo-go/pkg/core/block" "github.com/nspcc-dev/neo-go/pkg/core/block"
"github.com/CityOfZion/neo-go/pkg/core/state" "github.com/nspcc-dev/neo-go/pkg/core/state"
"github.com/CityOfZion/neo-go/pkg/core/storage" "github.com/nspcc-dev/neo-go/pkg/core/storage"
"github.com/CityOfZion/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
) )
// dao is a data access object. // dao is a data access object.

View file

@ -3,15 +3,15 @@ package core
import ( import (
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/core/block" "github.com/nspcc-dev/neo-go/pkg/core/block"
"github.com/CityOfZion/neo-go/pkg/core/state" "github.com/nspcc-dev/neo-go/pkg/core/state"
"github.com/CityOfZion/neo-go/pkg/core/storage" "github.com/nspcc-dev/neo-go/pkg/core/storage"
"github.com/CityOfZion/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/CityOfZion/neo-go/pkg/internal/random" "github.com/nspcc-dev/neo-go/pkg/internal/random"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/smartcontract" "github.com/nspcc-dev/neo-go/pkg/smartcontract"
"github.com/CityOfZion/neo-go/pkg/vm/opcode" "github.com/nspcc-dev/neo-go/pkg/vm/opcode"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -1,10 +1,10 @@
package core package core
import ( import (
"github.com/CityOfZion/neo-go/pkg/smartcontract" "github.com/nspcc-dev/neo-go/pkg/smartcontract"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
"github.com/CityOfZion/neo-go/pkg/vm" "github.com/nspcc-dev/neo-go/pkg/vm"
"github.com/CityOfZion/neo-go/pkg/vm/opcode" "github.com/nspcc-dev/neo-go/pkg/vm/opcode"
) )
// interopGasRatio is a multiplier by which a number returned from price getter // interopGasRatio is a multiplier by which a number returned from price getter

View file

@ -3,10 +3,10 @@ package core
import ( import (
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/core/storage" "github.com/nspcc-dev/neo-go/pkg/core/storage"
"github.com/CityOfZion/neo-go/pkg/smartcontract/trigger" "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
"github.com/CityOfZion/neo-go/pkg/vm" "github.com/nspcc-dev/neo-go/pkg/vm"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -1,8 +1,8 @@
package core package core
import ( import (
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
) )
// A HeaderHashList represents a list of header hashes. // A HeaderHashList represents a list of header hashes.

View file

@ -9,18 +9,18 @@ import (
"testing" "testing"
"time" "time"
"github.com/CityOfZion/neo-go/config" "github.com/nspcc-dev/neo-go/config"
"github.com/CityOfZion/neo-go/pkg/core/block" "github.com/nspcc-dev/neo-go/pkg/core/block"
"github.com/CityOfZion/neo-go/pkg/core/storage" "github.com/nspcc-dev/neo-go/pkg/core/storage"
"github.com/CityOfZion/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/crypto/hash" "github.com/nspcc-dev/neo-go/pkg/crypto/hash"
"github.com/CityOfZion/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/smartcontract" "github.com/nspcc-dev/neo-go/pkg/smartcontract"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
"github.com/CityOfZion/neo-go/pkg/vm/emit" "github.com/nspcc-dev/neo-go/pkg/vm/emit"
"github.com/CityOfZion/neo-go/pkg/vm/opcode" "github.com/nspcc-dev/neo-go/pkg/vm/opcode"
"github.com/CityOfZion/neo-go/pkg/wallet" "github.com/nspcc-dev/neo-go/pkg/wallet"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"go.uber.org/zap/zaptest" "go.uber.org/zap/zaptest"
) )

View file

@ -6,13 +6,13 @@ import (
"math" "math"
"strings" "strings"
"github.com/CityOfZion/neo-go/pkg/core/state" "github.com/nspcc-dev/neo-go/pkg/core/state"
"github.com/CityOfZion/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/CityOfZion/neo-go/pkg/smartcontract" "github.com/nspcc-dev/neo-go/pkg/smartcontract"
"github.com/CityOfZion/neo-go/pkg/smartcontract/trigger" "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
"github.com/CityOfZion/neo-go/pkg/vm" "github.com/nspcc-dev/neo-go/pkg/vm"
gherr "github.com/pkg/errors" gherr "github.com/pkg/errors"
) )

View file

@ -4,17 +4,17 @@ import (
"math/big" "math/big"
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/core/block" "github.com/nspcc-dev/neo-go/pkg/core/block"
"github.com/CityOfZion/neo-go/pkg/core/state" "github.com/nspcc-dev/neo-go/pkg/core/state"
"github.com/CityOfZion/neo-go/pkg/core/storage" "github.com/nspcc-dev/neo-go/pkg/core/storage"
"github.com/CityOfZion/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/CityOfZion/neo-go/pkg/internal/random" "github.com/nspcc-dev/neo-go/pkg/internal/random"
"github.com/CityOfZion/neo-go/pkg/smartcontract" "github.com/nspcc-dev/neo-go/pkg/smartcontract"
"github.com/CityOfZion/neo-go/pkg/smartcontract/trigger" "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
"github.com/CityOfZion/neo-go/pkg/vm" "github.com/nspcc-dev/neo-go/pkg/vm"
"github.com/CityOfZion/neo-go/pkg/vm/opcode" "github.com/nspcc-dev/neo-go/pkg/vm/opcode"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -5,13 +5,13 @@ import (
"fmt" "fmt"
"math" "math"
"github.com/CityOfZion/neo-go/pkg/core/block" "github.com/nspcc-dev/neo-go/pkg/core/block"
"github.com/CityOfZion/neo-go/pkg/core/state" "github.com/nspcc-dev/neo-go/pkg/core/state"
"github.com/CityOfZion/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/CityOfZion/neo-go/pkg/smartcontract/trigger" "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
"github.com/CityOfZion/neo-go/pkg/vm" "github.com/nspcc-dev/neo-go/pkg/vm"
gherr "github.com/pkg/errors" gherr "github.com/pkg/errors"
"go.uber.org/zap" "go.uber.org/zap"
) )

View file

@ -10,12 +10,12 @@ package core
import ( import (
"sort" "sort"
"github.com/CityOfZion/neo-go/pkg/core/block" "github.com/nspcc-dev/neo-go/pkg/core/block"
"github.com/CityOfZion/neo-go/pkg/core/state" "github.com/nspcc-dev/neo-go/pkg/core/state"
"github.com/CityOfZion/neo-go/pkg/core/storage" "github.com/nspcc-dev/neo-go/pkg/core/storage"
"github.com/CityOfZion/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/smartcontract/trigger" "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger"
"github.com/CityOfZion/neo-go/pkg/vm" "github.com/nspcc-dev/neo-go/pkg/vm"
"go.uber.org/zap" "go.uber.org/zap"
) )

View file

@ -5,9 +5,9 @@ import (
"runtime" "runtime"
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/core/storage" "github.com/nspcc-dev/neo-go/pkg/core/storage"
"github.com/CityOfZion/neo-go/pkg/smartcontract/trigger" "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger"
"github.com/CityOfZion/neo-go/pkg/vm" "github.com/nspcc-dev/neo-go/pkg/vm"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -1,8 +1,8 @@
package mempool package mempool
import ( import (
"github.com/CityOfZion/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
) )
// Feer is an interface that abstract the implementation of the fee calculation. // Feer is an interface that abstract the implementation of the fee calculation.

View file

@ -6,8 +6,8 @@ import (
"sync" "sync"
"time" "time"
"github.com/CityOfZion/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
) )
var ( var (

View file

@ -4,9 +4,9 @@ import (
"sort" "sort"
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/internal/random" "github.com/nspcc-dev/neo-go/pkg/internal/random"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -1,9 +1,9 @@
package core package core
import ( import (
"github.com/CityOfZion/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
) )
// SpentCoinState represents the state of a spent coin. // SpentCoinState represents the state of a spent coin.

View file

@ -3,8 +3,8 @@ package core
import ( import (
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/internal/random" "github.com/nspcc-dev/neo-go/pkg/internal/random"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View file

@ -1,9 +1,9 @@
package state package state
import ( import (
"github.com/CityOfZion/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
) )
// UnspentBalance contains input/output transactons that sum up into the // UnspentBalance contains input/output transactons that sum up into the

View file

@ -3,10 +3,10 @@ package state
import ( import (
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/CityOfZion/neo-go/pkg/internal/random" "github.com/nspcc-dev/neo-go/pkg/internal/random"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View file

@ -1,10 +1,10 @@
package state package state
import ( import (
"github.com/CityOfZion/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
) )
const feeMode = 0x0 const feeMode = 0x0

View file

@ -3,11 +3,11 @@ package state
import ( import (
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/core/transaction" "github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/CityOfZion/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/CityOfZion/neo-go/pkg/internal/random" "github.com/nspcc-dev/neo-go/pkg/internal/random"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View file

@ -1,10 +1,10 @@
package state package state
import ( import (
"github.com/CityOfZion/neo-go/pkg/crypto/hash" "github.com/nspcc-dev/neo-go/pkg/crypto/hash"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/smartcontract" "github.com/nspcc-dev/neo-go/pkg/smartcontract"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
) )
// Contract holds information about a smart contract in the NEO blockchain. // Contract holds information about a smart contract in the NEO blockchain.

View file

@ -3,9 +3,9 @@ package state
import ( import (
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/crypto/hash" "github.com/nspcc-dev/neo-go/pkg/crypto/hash"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/smartcontract" "github.com/nspcc-dev/neo-go/pkg/smartcontract"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View file

@ -1,10 +1,10 @@
package state package state
import ( import (
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/smartcontract/trigger" "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
"github.com/CityOfZion/neo-go/pkg/vm" "github.com/nspcc-dev/neo-go/pkg/vm"
) )
// NotificationEvent is a tuple of scripthash that emitted the StackItem as a // NotificationEvent is a tuple of scripthash that emitted the StackItem as a

View file

@ -3,8 +3,8 @@ package state
import ( import (
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/internal/random" "github.com/nspcc-dev/neo-go/pkg/internal/random"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View file

@ -1,7 +1,7 @@
package state package state
import ( import (
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
) )
// StorageItem is the value to be stored with read-only flag. // StorageItem is the value to be stored with read-only flag.

View file

@ -3,7 +3,7 @@ package state
import ( import (
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -1,9 +1,9 @@
package state package state
import ( import (
"github.com/CityOfZion/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
) )
// MaxValidatorsVoted limits the number of validators that one can vote for. // MaxValidatorsVoted limits the number of validators that one can vote for.

View file

@ -4,9 +4,9 @@ import (
"math/big" "math/big"
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/CityOfZion/neo-go/pkg/util" "github.com/nspcc-dev/neo-go/pkg/util"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -5,8 +5,8 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/CityOfZion/neo-go/pkg/io"
"github.com/etcd-io/bbolt" "github.com/etcd-io/bbolt"
"github.com/nspcc-dev/neo-go/pkg/io"
"github.com/syndtr/goleveldb/leveldb/util" "github.com/syndtr/goleveldb/leveldb/util"
) )

View file

@ -5,7 +5,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
) )
// Attribute represents a Transaction attribute. // Attribute represents a Transaction attribute.

View file

@ -1,7 +1,7 @@
package transaction package transaction
import ( import (
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
) )
// ClaimTX represents a claim transaction. // ClaimTX represents a claim transaction.

View file

@ -1,7 +1,7 @@
package transaction package transaction
import ( import (
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
) )
// ContractTX represents a contract transaction. // ContractTX represents a contract transaction.

View file

@ -4,7 +4,7 @@ import (
"encoding/hex" "encoding/hex"
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View file

@ -1,8 +1,8 @@
package transaction package transaction
import ( import (
"github.com/CityOfZion/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
) )
// EnrollmentTX transaction represents an enrollment form, which indicates // EnrollmentTX transaction represents an enrollment form, which indicates

View file

@ -4,7 +4,7 @@ import (
"encoding/hex" "encoding/hex"
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View file

@ -4,7 +4,7 @@ import (
"encoding/hex" "encoding/hex"
"testing" "testing"
"github.com/CityOfZion/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/io"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

Some files were not shown because too many files have changed in this diff Show more