Skip to content

Commit

Permalink
Bump badger to v4 (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
altafan authored Feb 14, 2024
1 parent ea1aaed commit 6cfbc67
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 49 deletions.
25 changes: 12 additions & 13 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/btcsuite/btcd/btcec/v2 v2.2.0
github.com/btcsuite/btcd/btcutil v1.1.0
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1
github.com/dgraph-io/badger/v3 v3.2103.2
github.com/dgraph-io/badger/v4 v4.2.0
github.com/golang-migrate/migrate/v4 v4.15.2
github.com/gorilla/websocket v1.4.2
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0
Expand All @@ -17,14 +17,14 @@ require (
github.com/spf13/cobra v1.1.3
github.com/spf13/viper v1.12.0
github.com/stretchr/testify v1.8.1
github.com/timshannon/badgerhold/v4 v4.0.2
github.com/timshannon/badgerhold/v4 v4.0.3
github.com/vulpemventures/go-bip39 v1.0.2
github.com/vulpemventures/go-elements v0.5.3
github.com/vulpemventures/neutrino-elements v0.1.3
golang.org/x/crypto v0.1.0
golang.org/x/net v0.7.0
golang.org/x/net v0.10.0
google.golang.org/grpc v1.53.0
google.golang.org/protobuf v1.29.1
google.golang.org/protobuf v1.30.0
)

require (
Expand All @@ -42,20 +42,19 @@ require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/btcsuite/btcd/btcutil/psbt v1.1.4 // indirect
github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f // indirect
github.com/cespare/xxhash v1.1.0 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/decred/dcrd/crypto/blake256 v1.0.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
github.com/dgraph-io/ristretto v0.1.0 // indirect
github.com/dustin/go-humanize v1.0.0 // indirect
github.com/dgraph-io/ristretto v0.1.1 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/fsnotify/fsnotify v1.5.4 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/glog v1.0.0 // indirect
github.com/golang/glog v1.1.1 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/google/flatbuffers v2.0.0+incompatible // indirect
github.com/google/flatbuffers v23.5.9+incompatible // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
Expand All @@ -69,7 +68,7 @@ require (
github.com/jackc/pgtype v1.11.0 // indirect
github.com/jackc/puddle v1.2.1 // indirect
github.com/kkdai/bstream v0.0.0-20181106074824-b3251f7901ec // indirect
github.com/klauspost/compress v1.13.6 // indirect
github.com/klauspost/compress v1.16.5 // indirect
github.com/magiconair/properties v1.8.6 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
Expand All @@ -90,8 +89,8 @@ require (
github.com/vulpemventures/go-secp256k1-zkp v1.1.6 // indirect
go.opencensus.io v0.24.0 // indirect
go.uber.org/atomic v1.10.0 // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/text v0.7.0 // indirect
golang.org/x/sys v0.8.0 // indirect
golang.org/x/text v0.9.0 // indirect
google.golang.org/genproto v0.0.0-20230223222841-637eb2293923 // indirect
gopkg.in/ini.v1 v1.66.4 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
Expand Down
65 changes: 39 additions & 26 deletions go.sum

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package neutrino_scanner
import (
"context"

"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
"github.com/timshannon/badgerhold/v4"
"github.com/vulpemventures/neutrino-elements/pkg/repository"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/btcsuite/btcd/blockchain"
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire"
"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
"github.com/timshannon/badgerhold/v4"
"github.com/vulpemventures/go-elements/block"
"github.com/vulpemventures/neutrino-elements/pkg/repository"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"time"

"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v3/options"
"github.com/dgraph-io/badger/v4"
"github.com/dgraph-io/badger/v4/options"
log "github.com/sirupsen/logrus"
"github.com/timshannon/badgerhold/v4"
"github.com/vulpemventures/go-elements/transaction"
Expand Down
4 changes: 2 additions & 2 deletions internal/infrastructure/storage/db/badger/repo_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"sync"
"time"

"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v3/options"
"github.com/dgraph-io/badger/v4"
"github.com/dgraph-io/badger/v4/options"
log "github.com/sirupsen/logrus"
"github.com/timshannon/badgerhold/v4"
"github.com/vulpemventures/ocean/internal/core/domain"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"sync"

"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
log "github.com/sirupsen/logrus"
"github.com/timshannon/badgerhold/v4"
"github.com/vulpemventures/ocean/internal/core/domain"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"sync"

"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
log "github.com/sirupsen/logrus"
"github.com/timshannon/badgerhold/v4"
"github.com/vulpemventures/ocean/internal/core/domain"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"sync"

"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
log "github.com/sirupsen/logrus"
"github.com/timshannon/badgerhold/v4"
"github.com/vulpemventures/ocean/internal/core/domain"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"sync"

"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
log "github.com/sirupsen/logrus"
"github.com/timshannon/badgerhold/v4"
"github.com/vulpemventures/ocean/internal/core/domain"
Expand Down

0 comments on commit 6cfbc67

Please sign in to comment.