Skip to content

Commit d57c261

Browse files
authored
update dependencies (#18)
1 parent 1013db6 commit d57c261

12 files changed

+205
-142
lines changed

collections_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
db "github.com/tendermint/tm-db"
1010
)
1111

12-
func deps() (sdk.StoreKey, sdk.Context, codec.BinaryCodec) {
12+
func deps() (types.StoreKey, sdk.Context, codec.BinaryCodec) {
1313
sk := sdk.NewKVStoreKey("mock")
1414
dbm := db.NewMemDB()
1515
ms := store.NewCommitMultiStore(dbm)

examples/1.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import (
44
"github.com/NibiruChain/collections"
55
"github.com/cosmos/cosmos-sdk/codec"
66
crypto "github.com/cosmos/cosmos-sdk/crypto/types"
7+
storagetypes "github.com/cosmos/cosmos-sdk/store/types"
78
sdk "github.com/cosmos/cosmos-sdk/types"
8-
"github.com/cosmos/cosmos-sdk/x/auth/types"
9+
types "github.com/cosmos/cosmos-sdk/x/auth/types"
910
)
1011

1112
type AccountKeeper struct {
@@ -14,7 +15,7 @@ type AccountKeeper struct {
1415
Params collections.Item[types.Params]
1516
}
1617

17-
func NewAccountKeeper(sk sdk.StoreKey, cdc codec.BinaryCodec) *AccountKeeper {
18+
func NewAccountKeeper(sk storagetypes.StoreKey, cdc codec.BinaryCodec) *AccountKeeper {
1819
return &AccountKeeper{
1920
AccountNumber: collections.NewSequence(sk, 0), // namespace is unique across the module's collections types
2021
Accounts: collections.NewMap(sk, 1, collections.AccAddressKeyEncoder, collections.ProtoValueEncoder[types.BaseAccount](cdc)), // we pass it the AccAddress key encoder and the base account value encoder.

examples/2.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package examples
33
import (
44
"github.com/NibiruChain/collections"
55
"github.com/cosmos/cosmos-sdk/codec"
6+
storagetypes "github.com/cosmos/cosmos-sdk/store/types"
67
sdk "github.com/cosmos/cosmos-sdk/types"
78
"github.com/cosmos/cosmos-sdk/x/staking/types"
89
)
@@ -13,7 +14,7 @@ type StakingKeeper struct {
1314
Delegations collections.Map[collections.Pair[sdk.ValAddress, sdk.AccAddress], types.Delegation]
1415
}
1516

16-
func NewStakingKeeper(sk sdk.StoreKey, cdc codec.BinaryCodec) *StakingKeeper {
17+
func NewStakingKeeper(sk storagetypes.StoreKey, cdc codec.BinaryCodec) *StakingKeeper {
1718
return &StakingKeeper{
1819
Delegations: collections.NewMap(
1920
sk, 0,

examples/3.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package examples
33
import (
44
"github.com/NibiruChain/collections"
55
"github.com/cosmos/cosmos-sdk/codec"
6+
storagetypes "github.com/cosmos/cosmos-sdk/store/types"
67
sdk "github.com/cosmos/cosmos-sdk/types"
78
"github.com/cosmos/cosmos-sdk/x/staking/types"
89
)
@@ -26,7 +27,7 @@ type StakingKeeper2 struct {
2627
Validators collections.IndexedMap[sdk.ValAddress, types.Validator, ValidatorIndexes]
2728
}
2829

29-
func NewStakingKeeper2(sk sdk.StoreKey, cdc codec.BinaryCodec) *StakingKeeper2 {
30+
func NewStakingKeeper2(sk storagetypes.StoreKey, cdc codec.BinaryCodec) *StakingKeeper2 {
3031
return &StakingKeeper2{
3132
Validators: collections.NewIndexedMap(
3233
sk, 0,

go.mod

+41-37
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,37 @@ module github.com/NibiruChain/collections
22

33
go 1.19
44

5-
replace google.golang.org/grpc => google.golang.org/grpc v1.33.2
6-
75
replace github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
86

97
require (
10-
github.com/cosmos/cosmos-sdk v0.45.10
8+
github.com/cosmos/cosmos-sdk v0.46.9
119
github.com/gogo/protobuf v1.3.3
1210
github.com/stretchr/testify v1.8.1
1311
github.com/tendermint/tm-db v0.6.7
1412
)
1513

1614
require (
17-
filippo.io/edwards25519 v1.0.0-beta.2 // indirect
18-
github.com/99designs/keyring v1.1.6 // indirect
15+
cosmossdk.io/errors v1.0.0-beta.7 // indirect
16+
cosmossdk.io/math v1.0.0-beta.3 // indirect
17+
filippo.io/edwards25519 v1.0.0-rc.1 // indirect
18+
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
19+
github.com/99designs/keyring v1.2.1 // indirect
1920
github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d // indirect
20-
github.com/armon/go-metrics v0.4.0 // indirect
21+
github.com/armon/go-metrics v0.4.1 // indirect
2122
github.com/beorn7/perks v1.0.1 // indirect
2223
github.com/bgentry/speakeasy v0.1.0 // indirect
23-
github.com/btcsuite/btcd v0.22.1 // indirect
24+
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
2425
github.com/cespare/xxhash v1.1.0 // indirect
2526
github.com/cespare/xxhash/v2 v2.1.2 // indirect
26-
github.com/confio/ics23/go v0.7.0 // indirect
27-
github.com/cosmos/btcutil v1.0.4 // indirect
27+
github.com/confio/ics23/go v0.9.0 // indirect
28+
github.com/cosmos/btcutil v1.0.5 // indirect
29+
github.com/cosmos/cosmos-proto v1.0.0-alpha7 // indirect
2830
github.com/cosmos/go-bip39 v1.0.0 // indirect
29-
github.com/cosmos/gorocksdb v1.2.0 // indirect
30-
github.com/cosmos/iavl v0.19.3 // indirect
31-
github.com/cosmos/ledger-cosmos-go v0.11.1 // indirect
32-
github.com/cosmos/ledger-go v0.9.2 // indirect
31+
github.com/cosmos/iavl v0.19.5 // indirect
32+
github.com/cosmos/ledger-cosmos-go v0.12.2 // indirect
3333
github.com/danieljoos/wincred v1.1.2 // indirect
3434
github.com/davecgh/go-spew v1.1.1 // indirect
35+
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
3536
github.com/dgraph-io/badger/v2 v2.2007.4 // indirect
3637
github.com/dgraph-io/ristretto v0.1.0 // indirect
3738
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
@@ -45,9 +46,8 @@ require (
4546
github.com/golang/glog v1.0.0 // indirect
4647
github.com/golang/protobuf v1.5.2 // indirect
4748
github.com/golang/snappy v0.0.4 // indirect
48-
github.com/google/btree v1.0.1 // indirect
49+
github.com/google/btree v1.1.2 // indirect
4950
github.com/google/gofuzz v1.2.0 // indirect
50-
github.com/gorilla/mux v1.8.0 // indirect
5151
github.com/gorilla/websocket v1.5.0 // indirect
5252
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
5353
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
@@ -57,17 +57,15 @@ require (
5757
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
5858
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect
5959
github.com/hashicorp/hcl v1.0.0 // indirect
60-
github.com/hdevalence/ed25519consensus v0.0.0-20210204194344-59a8610d2b87 // indirect
60+
github.com/hdevalence/ed25519consensus v0.0.0-20220222234857-c00d1f31bab3 // indirect
6161
github.com/inconshreveable/mousetrap v1.0.1 // indirect
6262
github.com/jmhodges/levigo v1.0.0 // indirect
63-
github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d // indirect
64-
github.com/klauspost/compress v1.15.9 // indirect
63+
github.com/klauspost/compress v1.15.11 // indirect
6564
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
6665
github.com/magiconair/properties v1.8.6 // indirect
6766
github.com/mattn/go-isatty v0.0.16 // indirect
6867
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
6968
github.com/mimoo/StrobeGo v0.0.0-20210601165009-122bf33a46e0 // indirect
70-
github.com/mitchellh/go-homedir v1.1.0 // indirect
7169
github.com/mitchellh/mapstructure v1.5.0 // indirect
7270
github.com/mtibben/percent v0.2.1 // indirect
7371
github.com/onsi/ginkgo v1.16.5 // indirect
@@ -77,38 +75,44 @@ require (
7775
github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect
7876
github.com/pkg/errors v0.9.1 // indirect
7977
github.com/pmezard/go-difflib v1.0.0 // indirect
80-
github.com/prometheus/client_golang v1.12.2 // indirect
81-
github.com/prometheus/client_model v0.2.0 // indirect
82-
github.com/prometheus/common v0.34.0 // indirect
83-
github.com/prometheus/procfs v0.7.3 // indirect
78+
github.com/prometheus/client_golang v1.14.0 // indirect
79+
github.com/prometheus/client_model v0.3.0 // indirect
80+
github.com/prometheus/common v0.37.0 // indirect
81+
github.com/prometheus/procfs v0.8.0 // indirect
8482
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
85-
github.com/regen-network/cosmos-proto v0.3.1 // indirect
8683
github.com/sasha-s/go-deadlock v0.3.1 // indirect
8784
github.com/spf13/afero v1.8.2 // indirect
8885
github.com/spf13/cast v1.5.0 // indirect
89-
github.com/spf13/cobra v1.6.0 // indirect
86+
github.com/spf13/cobra v1.6.1 // indirect
9087
github.com/spf13/jwalterweatherman v1.1.0 // indirect
9188
github.com/spf13/pflag v1.0.5 // indirect
9289
github.com/spf13/viper v1.13.0 // indirect
9390
github.com/subosito/gotenv v1.4.1 // indirect
9491
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
95-
github.com/tendermint/btcd v0.1.1 // indirect
96-
github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15 // indirect
92+
github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c // indirect
9793
github.com/tendermint/go-amino v0.16.0 // indirect
98-
github.com/tendermint/tendermint v0.34.22 // indirect
99-
github.com/zondax/hid v0.9.0 // indirect
94+
github.com/tendermint/tendermint v0.34.26 // indirect
95+
github.com/tidwall/btree v1.5.0 // indirect
96+
github.com/zondax/hid v0.9.1 // indirect
97+
github.com/zondax/ledger-go v0.14.1 // indirect
10098
go.etcd.io/bbolt v1.3.6 // indirect
101-
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa // indirect
99+
golang.org/x/crypto v0.5.0 // indirect
102100
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect
103-
golang.org/x/net v0.0.0-20220812174116-3211cb980234 // indirect
104-
golang.org/x/sys v0.0.0-20220818161305-2296e01440c6 // indirect
105-
golang.org/x/term v0.0.0-20220722155259-a9ba230a4035 // indirect
106-
golang.org/x/text v0.3.7 // indirect
107-
google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959 // indirect
108-
google.golang.org/grpc v1.50.0 // indirect
109-
google.golang.org/protobuf v1.28.1 // indirect
101+
golang.org/x/net v0.5.0 // indirect
102+
golang.org/x/sys v0.4.0 // indirect
103+
golang.org/x/term v0.4.0 // indirect
104+
golang.org/x/text v0.6.0 // indirect
105+
google.golang.org/genproto v0.0.0-20221118155620-16455021b5e6 // indirect
106+
google.golang.org/grpc v1.52.0 // indirect
107+
google.golang.org/protobuf v1.28.2-0.20220831092852-f930b1dc76e8 // indirect
110108
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
111109
gopkg.in/ini.v1 v1.67.0 // indirect
112110
gopkg.in/yaml.v2 v2.4.0 // indirect
113111
gopkg.in/yaml.v3 v3.0.1 // indirect
112+
sigs.k8s.io/yaml v1.3.0 // indirect
113+
)
114+
115+
replace (
116+
github.com/tendermint/tendermint => github.com/informalsystems/tendermint v0.34.26
117+
github.com/tendermint/tm-db => github.com/cometbft/cometbft-db v0.7.0
114118
)

0 commit comments

Comments
 (0)