diff --git a/Makefile b/Makefile index 898262a..f968e05 100644 --- a/Makefile +++ b/Makefile @@ -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: diff --git a/README.md b/README.md index 0cfec1b..32ac512 100644 --- a/README.md +++ b/README.md @@ -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): @@ -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 @@ -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 diff --git a/go.mod b/go.mod index 8f90dde..f70a7e9 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/ferranbt/fastssz +module github.com/NilFoundation/fastssz go 1.22 diff --git a/spectests/beacon_state_bellatrix_test.go b/spectests/beacon_state_bellatrix_test.go index f7e8ec1..4077d38 100644 --- a/spectests/beacon_state_bellatrix_test.go +++ b/spectests/beacon_state_bellatrix_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - ssz "github.com/ferranbt/fastssz" + ssz "github.com/NilFoundation/fastssz" "github.com/stretchr/testify/require" ) diff --git a/spectests/structs_encoding.go b/spectests/structs_encoding.go index 1dbfafa..4e0f869 100644 --- a/spectests/structs_encoding.go +++ b/spectests/structs_encoding.go @@ -4,7 +4,7 @@ package spectests import ( - ssz "github.com/ferranbt/fastssz" + ssz "github.com/NilFoundation/fastssz" ) // MarshalSSZ ssz marshals the AggregateAndProof object diff --git a/spectests/structs_fuzz_test.go b/spectests/structs_fuzz_test.go index fd88067..11914ce 100644 --- a/spectests/structs_fuzz_test.go +++ b/spectests/structs_fuzz_test.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "github.com/ferranbt/fastssz/fuzz" + "github.com/NilFoundation/fastssz/fuzz" ) func randomInt(min, max int) int { diff --git a/spectests/structs_test.go b/spectests/structs_test.go index 910734e..e1aa268 100644 --- a/spectests/structs_test.go +++ b/spectests/structs_test.go @@ -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" diff --git a/sszgen/generator/generator.go b/sszgen/generator/generator.go index aa9ba43..57267e7 100644 --- a/sszgen/generator/generator.go +++ b/sszgen/generator/generator.go @@ -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" ) @@ -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 }} ) diff --git a/sszgen/main.go b/sszgen/main.go index 05a44eb..51dc2cf 100644 --- a/sszgen/main.go +++ b/sszgen/main.go @@ -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() { diff --git a/sszgen/testcases/case1_encoding.go b/sszgen/testcases/case1_encoding.go index 741ec3a..225bb59 100644 --- a/sszgen/testcases/case1_encoding.go +++ b/sszgen/testcases/case1_encoding.go @@ -4,7 +4,7 @@ package testcases import ( - ssz "github.com/ferranbt/fastssz" + ssz "github.com/NilFoundation/fastssz" ) // MarshalSSZ ssz marshals the Case1A object diff --git a/sszgen/testcases/case2_encoding.go b/sszgen/testcases/case2_encoding.go index 27d807b..c4bf677 100644 --- a/sszgen/testcases/case2_encoding.go +++ b/sszgen/testcases/case2_encoding.go @@ -4,7 +4,7 @@ package testcases import ( - ssz "github.com/ferranbt/fastssz" + ssz "github.com/NilFoundation/fastssz" ) // MarshalSSZ ssz marshals the Case2A object diff --git a/sszgen/testcases/case3.go b/sszgen/testcases/case3.go index ed328d4..dd749f6 100644 --- a/sszgen/testcases/case3.go +++ b/sszgen/testcases/case3.go @@ -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 diff --git a/sszgen/testcases/case3_encoding.go b/sszgen/testcases/case3_encoding.go index bf09cc6..8c53d7b 100644 --- a/sszgen/testcases/case3_encoding.go +++ b/sszgen/testcases/case3_encoding.go @@ -1,11 +1,11 @@ // Code generated by fastssz. DO NOT EDIT. -// Hash: 08a1c4ee3ea715c80a7a22849c7bd1ef7ba338cd3a1540de1bc941c23bceeaa1 +// Hash: 0aca0ed5db0471d3c88ee07357f9f54fcfd884b2ecf33ae591401ee982980434 // Version: 0.1.3 package testcases import ( - ssz "github.com/ferranbt/fastssz" - "github.com/ferranbt/fastssz/sszgen/testcases/other" + ssz "github.com/NilFoundation/fastssz" + "github.com/NilFoundation/fastssz/sszgen/testcases/other" ) // MarshalSSZ ssz marshals the Case3B object diff --git a/sszgen/testcases/case4.go b/sszgen/testcases/case4.go index 107d762..31b2352 100644 --- a/sszgen/testcases/case4.go +++ b/sszgen/testcases/case4.go @@ -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 diff --git a/sszgen/testcases/case4_encoding.go b/sszgen/testcases/case4_encoding.go index dee6ab5..316b9cb 100644 --- a/sszgen/testcases/case4_encoding.go +++ b/sszgen/testcases/case4_encoding.go @@ -1,12 +1,12 @@ // Code generated by fastssz. DO NOT EDIT. -// Hash: 1972e16d65fdcc8211a5dfdf1e8ed9466bea4e0d7a1107df19a594eb7bf09928 +// Hash: 0b9226602a80c088edc665b1a1ad735449906d7d98eada191a05d0041d01e705 // Version: 0.1.3 package testcases import ( - ssz "github.com/ferranbt/fastssz" - "github.com/ferranbt/fastssz/sszgen/testcases/other" - alias "github.com/ferranbt/fastssz/sszgen/testcases/other2" + ssz "github.com/NilFoundation/fastssz" + "github.com/NilFoundation/fastssz/sszgen/testcases/other" + alias "github.com/NilFoundation/fastssz/sszgen/testcases/other2" ) // MarshalSSZ ssz marshals the Case4 object diff --git a/sszgen/testcases/case5_encoding.go b/sszgen/testcases/case5_encoding.go index 10fa10d..04730cd 100644 --- a/sszgen/testcases/case5_encoding.go +++ b/sszgen/testcases/case5_encoding.go @@ -4,7 +4,7 @@ package testcases import ( - ssz "github.com/ferranbt/fastssz" + ssz "github.com/NilFoundation/fastssz" ) // MarshalSSZ ssz marshals the Case5A object diff --git a/sszgen/testcases/case6_encoding.go b/sszgen/testcases/case6_encoding.go index ad59b4f..be6edb9 100644 --- a/sszgen/testcases/case6_encoding.go +++ b/sszgen/testcases/case6_encoding.go @@ -4,7 +4,7 @@ package testcases import ( - ssz "github.com/ferranbt/fastssz" + ssz "github.com/NilFoundation/fastssz" ) // MarshalSSZ ssz marshals the Case6 object diff --git a/sszgen/testcases/case7_encoding.go b/sszgen/testcases/case7_encoding.go index 73e25d7..222612a 100644 --- a/sszgen/testcases/case7_encoding.go +++ b/sszgen/testcases/case7_encoding.go @@ -4,7 +4,7 @@ package testcases import ( - ssz "github.com/ferranbt/fastssz" + ssz "github.com/NilFoundation/fastssz" ) // MarshalSSZ ssz marshals the Case7 object diff --git a/sszgen/testcases/container_encoding.go b/sszgen/testcases/container_encoding.go index 5c58766..886b0f7 100644 --- a/sszgen/testcases/container_encoding.go +++ b/sszgen/testcases/container_encoding.go @@ -4,7 +4,7 @@ package testcases import ( - ssz "github.com/ferranbt/fastssz" + ssz "github.com/NilFoundation/fastssz" ) // MarshalSSZ ssz marshals the Vec object diff --git a/sszgen/testcases/issue_127_encoding.go b/sszgen/testcases/issue_127_encoding.go index 7a5d175..6e19eba 100644 --- a/sszgen/testcases/issue_127_encoding.go +++ b/sszgen/testcases/issue_127_encoding.go @@ -4,7 +4,7 @@ package testcases import ( - ssz "github.com/ferranbt/fastssz" + ssz "github.com/NilFoundation/fastssz" ) // MarshalSSZ ssz marshals the Obj2 object diff --git a/sszgen/testcases/issue_136.go b/sszgen/testcases/issue_136.go index 25d2144..53c1c8d 100644 --- a/sszgen/testcases/issue_136.go +++ b/sszgen/testcases/issue_136.go @@ -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 diff --git a/sszgen/testcases/issue_136_encoding.go b/sszgen/testcases/issue_136_encoding.go index 760ee54..d54c337 100644 --- a/sszgen/testcases/issue_136_encoding.go +++ b/sszgen/testcases/issue_136_encoding.go @@ -1,10 +1,10 @@ // Code generated by fastssz. DO NOT EDIT. -// Hash: 22872cb5f02d33c6ee2acc9844f53481205561564476c8432034be93eabdb966 +// Hash: 1bb7e03ae032f29c7e41ebec8539d7bcf5a2f5a50de987af189c469a1dba4af2 // Version: 0.1.3 package testcases import ( - ssz "github.com/ferranbt/fastssz" + ssz "github.com/NilFoundation/fastssz" ) // MarshalSSZ ssz marshals the Issue136 object diff --git a/sszgen/testcases/issue_153_encoding.go b/sszgen/testcases/issue_153_encoding.go index e72e868..4b27a91 100644 --- a/sszgen/testcases/issue_153_encoding.go +++ b/sszgen/testcases/issue_153_encoding.go @@ -4,7 +4,7 @@ package testcases import ( - ssz "github.com/ferranbt/fastssz" + ssz "github.com/NilFoundation/fastssz" ) // MarshalSSZ ssz marshals the Issue153 object diff --git a/sszgen/testcases/issue_156_encoding.go b/sszgen/testcases/issue_156_encoding.go index 880d701..5dbe8f9 100644 --- a/sszgen/testcases/issue_156_encoding.go +++ b/sszgen/testcases/issue_156_encoding.go @@ -4,7 +4,7 @@ package testcases import ( - ssz "github.com/ferranbt/fastssz" + ssz "github.com/NilFoundation/fastssz" ) // MarshalSSZ ssz marshals the Issue156 object diff --git a/sszgen/testcases/list_encoding.go b/sszgen/testcases/list_encoding.go index b26e507..673a028 100644 --- a/sszgen/testcases/list_encoding.go +++ b/sszgen/testcases/list_encoding.go @@ -4,7 +4,7 @@ package testcases import ( - ssz "github.com/ferranbt/fastssz" + ssz "github.com/NilFoundation/fastssz" ) // MarshalSSZ ssz marshals the BytesWrapper object diff --git a/sszgen/testcases/other/case3_encoding.go b/sszgen/testcases/other/case3_encoding.go index 6ad63b1..ae14c96 100644 --- a/sszgen/testcases/other/case3_encoding.go +++ b/sszgen/testcases/other/case3_encoding.go @@ -4,7 +4,7 @@ package other import ( - ssz "github.com/ferranbt/fastssz" + ssz "github.com/NilFoundation/fastssz" ) // MarshalSSZ ssz marshals the Case3B object diff --git a/sszgen/testcases/other/case4.go b/sszgen/testcases/other/case4.go index dbbc771..ba9b23e 100644 --- a/sszgen/testcases/other/case4.go +++ b/sszgen/testcases/other/case4.go @@ -1,6 +1,6 @@ package other -import ssz "github.com/ferranbt/fastssz" +import ssz "github.com/NilFoundation/fastssz" type Case4Interface struct { } diff --git a/sszgen/testcases/pr_152_encoding.go b/sszgen/testcases/pr_152_encoding.go index 7f16bd9..7965f27 100644 --- a/sszgen/testcases/pr_152_encoding.go +++ b/sszgen/testcases/pr_152_encoding.go @@ -4,7 +4,7 @@ package testcases import ( - ssz "github.com/ferranbt/fastssz" + ssz "github.com/NilFoundation/fastssz" ) // MarshalSSZ ssz marshals the PR1512 object diff --git a/sszgen/testcases/time_encoding.go b/sszgen/testcases/time_encoding.go index b85ebc2..1ea7e28 100644 --- a/sszgen/testcases/time_encoding.go +++ b/sszgen/testcases/time_encoding.go @@ -3,7 +3,7 @@ package testcases import ( - ssz "github.com/ferranbt/fastssz" + ssz "github.com/NilFoundation/fastssz" ) // MarshalSSZ ssz marshals the TimeType object diff --git a/sszgen/testcases/uint_encoding.go b/sszgen/testcases/uint_encoding.go index 8863458..8d4e438 100644 --- a/sszgen/testcases/uint_encoding.go +++ b/sszgen/testcases/uint_encoding.go @@ -4,7 +4,7 @@ package testcases import ( - ssz "github.com/ferranbt/fastssz" + ssz "github.com/NilFoundation/fastssz" ) // MarshalSSZ ssz marshals the Uints object diff --git a/tests/codetrie_encoding.go b/tests/codetrie_encoding.go index bc3a7e5..cb2cc84 100644 --- a/tests/codetrie_encoding.go +++ b/tests/codetrie_encoding.go @@ -4,7 +4,7 @@ package tests import ( - ssz "github.com/ferranbt/fastssz" + ssz "github.com/NilFoundation/fastssz" ) // MarshalSSZ ssz marshals the Metadata object diff --git a/tests/codetrie_test.go b/tests/codetrie_test.go index 5a7e047..2b529dc 100644 --- a/tests/codetrie_test.go +++ b/tests/codetrie_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - ssz "github.com/ferranbt/fastssz" + ssz "github.com/NilFoundation/fastssz" "github.com/iden3/go-iden3-crypto/poseidon" )