Skip to content

Commit

Permalink
update paths
Browse files Browse the repository at this point in the history
  • Loading branch information
olegrok committed Jun 10, 2024
1 parent 044173f commit d042d7c
Show file tree
Hide file tree
Showing 32 changed files with 44 additions and 44 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

.PHONY:
build-spec-tests:
go run github.com/ferranbt/fastssz/sszgen --path ./spectests/structs.go --exclude-objs Hash,Uint256
go run github.com/ferranbt/fastssz/sszgen --path ./tests
go run github.com/NilFoundation/fastssz/sszgen --path ./spectests/structs.go --exclude-objs Hash,Uint256
go run github.com/NilFoundation/fastssz/sszgen --path ./tests

.PHONY:
get-spec-tests:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ $ FUZZ_TESTS=True go test -v ./spectests/... -run TestFuzz
To install the generator run:

```
$ go get github.com/ferranbt/fastssz/sszgen
$ go get github.com/NilFoundation/fastssz/sszgen
```

Benchmark (BeaconBlock):
Expand All @@ -65,7 +65,7 @@ Benchmark (BeaconBlock):
$ go test -v ./spectests/... -run=XXX -bench=.
goos: linux
goarch: amd64
pkg: github.com/ferranbt/fastssz/spectests
pkg: github.com/NilFoundation/fastssz/spectests
cpu: AMD Ryzen 5 2400G with Radeon Vega Graphics
BenchmarkMarshal_Fast
BenchmarkMarshal_Fast-8 291054 4088 ns/op 8192 B/op 1 allocs/op
Expand All @@ -80,7 +80,7 @@ BenchmarkHashTreeRoot_SuperFast-8 54078 21999 ns/op 0 B/op
BenchmarkProof_Tree
BenchmarkProof_Tree-8 3649 312761 ns/op 118145 B/op 1605 allocs/op
PASS
ok github.com/ferranbt/fastssz/spectests 5.501s
ok github.com/NilFoundation/fastssz/spectests 5.501s
```

## Package reference
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/ferranbt/fastssz
module github.com/NilFoundation/fastssz

go 1.22

Expand Down
2 changes: 1 addition & 1 deletion spectests/beacon_state_bellatrix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"testing"

ssz "github.com/ferranbt/fastssz"
ssz "github.com/NilFoundation/fastssz"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion spectests/structs_encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion spectests/structs_fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"testing"

"github.com/ferranbt/fastssz/fuzz"
"github.com/NilFoundation/fastssz/fuzz"
)

func randomInt(min, max int) int {
Expand Down
2 changes: 1 addition & 1 deletion spectests/structs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"testing"

ssz "github.com/ferranbt/fastssz"
ssz "github.com/NilFoundation/fastssz"
"github.com/golang/snappy"
"github.com/prysmaticlabs/gohashtree"

Expand Down
4 changes: 2 additions & 2 deletions sszgen/generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"strings"
"text/template"

"github.com/ferranbt/fastssz/sszgen/version"
"github.com/NilFoundation/fastssz/sszgen/version"
"github.com/iden3/go-iden3-crypto/poseidon"
)

Expand Down Expand Up @@ -401,7 +401,7 @@ func (e *env) print(order []string) (string, bool, error) {
package {{.package}}
import (
ssz "github.com/ferranbt/fastssz" {{ if .imports }}{{ range $value := .imports }}
ssz "github.com/NilFoundation/fastssz" {{ if .imports }}{{ range $value := .imports }}
{{ $value }} {{ end }}
{{ end }}
)
Expand Down
4 changes: 2 additions & 2 deletions sszgen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"os"
"strings"

"github.com/ferranbt/fastssz/sszgen/generator"
"github.com/ferranbt/fastssz/sszgen/version"
"github.com/NilFoundation/fastssz/sszgen/generator"
"github.com/NilFoundation/fastssz/sszgen/version"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion sszgen/testcases/case1_encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sszgen/testcases/case2_encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sszgen/testcases/case3.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package testcases

import (
"github.com/ferranbt/fastssz/sszgen/testcases/other"
"github.com/NilFoundation/fastssz/sszgen/testcases/other"
)

//go:generate go run ../main.go --path case3.go
Expand Down
6 changes: 3 additions & 3 deletions sszgen/testcases/case3_encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sszgen/testcases/case4.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package testcases

import (
"github.com/ferranbt/fastssz/sszgen/testcases/other"
alias "github.com/ferranbt/fastssz/sszgen/testcases/other2"
"github.com/NilFoundation/fastssz/sszgen/testcases/other"
alias "github.com/NilFoundation/fastssz/sszgen/testcases/other2"
)

//go:generate go run ../main.go --include ./other,./other2 --path case4.go
Expand Down
8 changes: 4 additions & 4 deletions sszgen/testcases/case4_encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sszgen/testcases/case5_encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sszgen/testcases/case6_encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sszgen/testcases/case7_encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sszgen/testcases/container_encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sszgen/testcases/issue_127_encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sszgen/testcases/issue_136.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package testcases

import "github.com/ferranbt/fastssz/sszgen/testcases/other"
import "github.com/NilFoundation/fastssz/sszgen/testcases/other"

//go:generate go run ../main.go --path issue_136.go --include ./other

Expand Down
4 changes: 2 additions & 2 deletions sszgen/testcases/issue_136_encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sszgen/testcases/issue_153_encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sszgen/testcases/issue_156_encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sszgen/testcases/list_encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sszgen/testcases/other/case3_encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sszgen/testcases/other/case4.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package other

import ssz "github.com/ferranbt/fastssz"
import ssz "github.com/NilFoundation/fastssz"

type Case4Interface struct {
}
Expand Down
2 changes: 1 addition & 1 deletion sszgen/testcases/pr_152_encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sszgen/testcases/time_encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sszgen/testcases/uint_encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/codetrie_encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/codetrie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

ssz "github.com/ferranbt/fastssz"
ssz "github.com/NilFoundation/fastssz"
"github.com/iden3/go-iden3-crypto/poseidon"
)

Expand Down

0 comments on commit d042d7c

Please sign in to comment.