File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ require (
88 github.com/gagliardetto/treeout v0.1.4
99 github.com/google/uuid v1.6.0
1010 github.com/mr-tron/base58 v1.2.0
11+ go.mongodb.org/mongo-driver/v2 v2.5.0
1112)
1213
1314require (
@@ -77,7 +78,6 @@ require (
7778 github.com/spf13/viper v1.20.1
7879 github.com/streamingfast/logging v0.0.0-20250404134358-92b15d2fbd2e
7980 github.com/stretchr/testify v1.11.1
80- go.mongodb.org/mongo-driver v1.17.3
8181 go.uber.org/ratelimit v0.3.1
8282 go.uber.org/zap v1.27.0
8383 golang.org/x/crypto v0.47.0
Original file line number Diff line number Diff line change @@ -152,8 +152,8 @@ github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSW
152152github.com/test-go/testify v1.1.4 h1:Tf9lntrKUMHiXQ07qBScBTSA0dhYQlu83hswqelv1iE =
153153github.com/test-go/testify v1.1.4 /go.mod h1:rH7cfJo/47vWGdi4GPj16x3/t1xGOj2YxzmNQzk2ghU =
154154github.com/yuin/goldmark v1.3.5 /go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k =
155- go.mongodb.org/mongo-driver v1.17.3 h1:TQyXhnsWfWtgAhMtOgtYHMTkZIfBTpMTsMnd9ZBeHxQ =
156- go.mongodb.org/mongo-driver v1.17.3 /go.mod h1:Hy04i7O2kC4RS06ZrhPRqj/u4DTYkFDAAccj+rVKqgQ =
155+ go.mongodb.org/mongo-driver/v2 v2.5.0 h1:yXUhImUjjAInNcpTcAlPHiT7bIXhshCTL3jVBkF3xaE =
156+ go.mongodb.org/mongo-driver/v2 v2.5.0 /go.mod h1:yOI9kBsufol30iFsl1slpdq1I0eHPzybRWdyYUs8K/0 =
157157go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64 =
158158go.opentelemetry.io/auto/sdk v1.2.1 /go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y =
159159go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0 h1:sbiXRNDSWJOTobXh5HyQKjq6wUC5tNybqjIqDpAY4CU =
Original file line number Diff line number Diff line change @@ -32,8 +32,7 @@ import (
3232 "filippo.io/edwards25519"
3333 "github.com/gagliardetto/solana-go/base58"
3434 mrtronbase58 "github.com/mr-tron/base58"
35- "go.mongodb.org/mongo-driver/bson"
36- "go.mongodb.org/mongo-driver/bson/bsontype"
35+ "go.mongodb.org/mongo-driver/v2/bson"
3736)
3837
3938type PrivateKey []byte
@@ -256,12 +255,12 @@ func (p *PublicKey) UnmarshalBSON(data []byte) (err error) {
256255}
257256
258257// MarshalBSONValue implements the bson.ValueMarshaler interface.
259- func (p PublicKey ) MarshalBSONValue () (bsontype .Type , []byte , error ) {
258+ func (p PublicKey ) MarshalBSONValue () (bson .Type , []byte , error ) {
260259 return bson .MarshalValue (p .String ())
261260}
262261
263262// UnmarshalBSONValue implements the bson.ValueUnmarshaler interface.
264- func (p * PublicKey ) UnmarshalBSONValue (t bsontype .Type , data []byte ) (err error ) {
263+ func (p * PublicKey ) UnmarshalBSONValue (t bson .Type , data []byte ) (err error ) {
265264 var s string
266265 if err := bson .UnmarshalValue (t , data , & s ); err != nil {
267266 return err
You can’t perform that action at this time.
0 commit comments