Skip to content

Commit

Permalink
change go mod
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxuuu committed Jan 27, 2023
1 parent fc5dda4 commit 64b5fab
Show file tree
Hide file tree
Showing 14 changed files with 30 additions and 322 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

<p>
<img src="https://img.shields.io/github/actions/workflow/status/bnb-chain/zkbnb-smt/checker.yml?style=flat-square">
<a href="https://github.com/bnb-chain/zkbnb-smt/blob/master/LICENSE">
<a href="https://github.com/zecrey-labs/zecrey-smt/blob/master/LICENSE">
<img src="https://img.shields.io/github/license/globocom/go-buffer?color=blue&style=flat-square">
</a>
<img src="https://img.shields.io/github/go-mod/go-version/bnb-chain/zkbnb-smt?style=flat-square">
<a href="https://pkg.go.dev/github.com/bnb-chain/zkbnb-smt">
<a href="https://pkg.go.dev/github.com/zecrey-labs/zecrey-smt">
<img src="https://img.shields.io/badge/Go-reference-blue?style=flat-square">
</a>
</p>
Expand All @@ -18,7 +18,7 @@ For an overview, see the [design](./docs/design.md).

## Installation
```shell
go get github.com/bnb-chain/zkbnb-smt@latest
go get github.com/zecrey-labs/zecrey-smt@latest
```

## Quickstart
Expand All @@ -30,8 +30,8 @@ import (
"crypto/sha256"
"fmt"

bsmt "github.com/bnb-chain/zkbnb-smt"
"github.com/bnb-chain/zkbnb-smt/database/memory"
bsmt "github.com/zecrey-labs/zecrey-smt"
"github.com/zecrey-labs/zecrey-smt/database/memory"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion database/dbtest/testsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"bytes"
"testing"

"github.com/bnb-chain/zkbnb-smt/database"
"github.com/zecrey-labs/zecrey-smt/database"
)

// TestDatabaseSuite runs a suite of tests against a KeyValueStore database
Expand Down
2 changes: 1 addition & 1 deletion database/leveldb/leveldb.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/syndtr/goleveldb/leveldb/filter"
"github.com/syndtr/goleveldb/leveldb/opt"

"github.com/bnb-chain/zkbnb-smt/database"
"github.com/zecrey-labs/zecrey-smt/database"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions database/leveldb/leveldb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/storage"

"github.com/bnb-chain/zkbnb-smt/database"
"github.com/bnb-chain/zkbnb-smt/database/dbtest"
"github.com/zecrey-labs/zecrey-smt/database"
"github.com/zecrey-labs/zecrey-smt/database/dbtest"
)

func TestLevelDB(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions database/memory/memorydb.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ package memory
import (
"sync"

"github.com/bnb-chain/zkbnb-smt/database"
"github.com/bnb-chain/zkbnb-smt/utils"
"github.com/zecrey-labs/zecrey-smt/database"
"github.com/zecrey-labs/zecrey-smt/utils"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions database/memory/memorydb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ package memory
import (
"testing"

"github.com/bnb-chain/zkbnb-smt/database"
"github.com/bnb-chain/zkbnb-smt/database/dbtest"
"github.com/zecrey-labs/zecrey-smt/database"
"github.com/zecrey-labs/zecrey-smt/database/dbtest"
)

func TestMemoryDB(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions database/redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/go-redis/redis/v8"
stdErrors "github.com/pkg/errors"

"github.com/bnb-chain/zkbnb-smt/database"
"github.com/bnb-chain/zkbnb-smt/utils"
"github.com/zecrey-labs/zecrey-smt/database"
"github.com/zecrey-labs/zecrey-smt/utils"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions database/redis/redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"github.com/alicebob/miniredis/v2"
"github.com/go-redis/redis/v8"

"github.com/bnb-chain/zkbnb-smt/database"
"github.com/bnb-chain/zkbnb-smt/database/dbtest"
"github.com/zecrey-labs/zecrey-smt/database"
"github.com/zecrey-labs/zecrey-smt/database/dbtest"
)

func TestRedis(t *testing.T) {
Expand Down
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/bnb-chain/zkbnb-smt
module github.com/zecrey-labs/zecrey-smt

go 1.17
go 1.19

require (
github.com/alicebob/miniredis/v2 v2.22.0
Expand All @@ -22,7 +22,6 @@ require (
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
github.com/onsi/gomega v1.19.0 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.32.1 // indirect
github.com/prometheus/procfs v0.7.3 // indirect
Expand Down
293 changes: 1 addition & 292 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion metrics/prometheus/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/prometheus/client_golang/prometheus"

"github.com/bnb-chain/zkbnb-smt/metrics"
"github.com/zecrey-labs/zecrey-smt/metrics"
)

var _ metrics.Metrics = (*Collector)(nil)
Expand Down
2 changes: 1 addition & 1 deletion options.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
package bsmt

import (
"github.com/bnb-chain/zkbnb-smt/metrics"
"github.com/panjf2000/ants/v2"
"github.com/zecrey-labs/zecrey-smt/metrics"
)

// Option is a function that configures SMT.
Expand Down
8 changes: 4 additions & 4 deletions smt.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ import (
sysMemory "github.com/pbnjay/memory"
"github.com/pkg/errors"

"github.com/bnb-chain/zkbnb-smt/database"
"github.com/bnb-chain/zkbnb-smt/database/memory"
"github.com/bnb-chain/zkbnb-smt/metrics"
"github.com/bnb-chain/zkbnb-smt/utils"
"github.com/zecrey-labs/zecrey-smt/database"
"github.com/zecrey-labs/zecrey-smt/database/memory"
"github.com/zecrey-labs/zecrey-smt/metrics"
"github.com/zecrey-labs/zecrey-smt/utils"
)

var (
Expand Down
8 changes: 4 additions & 4 deletions smt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import (
"testing"
"time"

"github.com/bnb-chain/zkbnb-smt/database"
wrappedLevelDB "github.com/bnb-chain/zkbnb-smt/database/leveldb"
"github.com/bnb-chain/zkbnb-smt/database/memory"
wrappedRedis "github.com/bnb-chain/zkbnb-smt/database/redis"
"github.com/zecrey-labs/zecrey-smt/database"
wrappedLevelDB "github.com/zecrey-labs/zecrey-smt/database/leveldb"
"github.com/zecrey-labs/zecrey-smt/database/memory"
wrappedRedis "github.com/zecrey-labs/zecrey-smt/database/redis"
)

var (
Expand Down

0 comments on commit 64b5fab

Please sign in to comment.