Skip to content

Commit d40a667

Browse files
committed
remove all core references
1 parent 9de156b commit d40a667

File tree

4 files changed

+4
-23
lines changed

4 files changed

+4
-23
lines changed

collections/go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module cosmossdk.io/collections
33
go 1.23.2
44

55
require (
6-
cosmossdk.io/core v1.0.0
76
cosmossdk.io/schema v1.0.0
87
github.com/cosmos/gogoproto v1.7.0
98
github.com/google/go-cmp v0.6.0

collections/go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
cosmossdk.io/core v1.0.0 h1:e7XBbISOytLBOXMVwpRPixThXqEkeLGlg8no/qpgS8U=
2-
cosmossdk.io/core v1.0.0/go.mod h1:mKIp3RkoEmtqdEdFHxHwWAULRe+79gfdOvmArrLDbDc=
31
cosmossdk.io/schema v1.0.0 h1:/diH4XJjpV1JQwuIozwr+A4uFuuwanFdnw2kKeiXwwQ=
42
cosmossdk.io/schema v1.0.0/go.mod h1:RDAhxIeNB4bYqAlF4NBJwRrgtnciMcyyg0DOKnhNZQQ=
53
github.com/cosmos/gogoproto v1.7.0 h1:79USr0oyXAbxg3rspGh/m4SWNyoz/GLaAh0QlCe2fro=

collections/internal/coretesting/memdb.go

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
"github.com/tidwall/btree"
1010

11-
"cosmossdk.io/core/store"
11+
store "cosmossdk.io/collections/corecompat"
1212
)
1313

1414
const (
@@ -258,16 +258,14 @@ func (mi *memIterator) assertValid() {
258258
}
259259
}
260260

261-
var _ store.KVStoreWithBatch = (*MemDB)(nil)
262-
263261
// MemDB is a simple in-memory key-value store with Batch support.
264262
type MemDB struct {
265263
kv MemKV
266264
mtx sync.RWMutex
267265
}
268266

269267
// NewMemDB creates a new MemDB.
270-
func NewMemDB() store.KVStoreWithBatch {
268+
func NewMemDB() store.KVStore {
271269
return &MemDB{kv: NewMemKV()}
272270
}
273271

@@ -339,16 +337,6 @@ func (db *MemDB) Close() error {
339337
return nil
340338
}
341339

342-
// NewBatch returns a new memDBBatch.
343-
func (db *MemDB) NewBatch() store.Batch {
344-
return newMemDBBatch(db)
345-
}
346-
347-
// NewBatchWithSize returns a new memDBBatch with the given size.
348-
func (db *MemDB) NewBatchWithSize(size int) store.Batch {
349-
return newMemDBBatch(db)
350-
}
351-
352340
// memDBBatch operations
353341
type opType int
354342

@@ -370,8 +358,6 @@ type memDBBatch struct {
370358
size int
371359
}
372360

373-
var _ store.Batch = (*memDBBatch)(nil)
374-
375361
// newMemDBBatch creates a new memDBBatch
376362
func newMemDBBatch(db *MemDB) *memDBBatch {
377363
return &memDBBatch{

collections/internal/coretesting/store.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ import (
44
"context"
55
"fmt"
66

7-
"cosmossdk.io/core/store"
8-
9-
"cosmossdk.io/collections/corecompat"
7+
store "cosmossdk.io/collections/corecompat"
108
)
119

12-
var _ corecompat.KVStoreService = (*kvStoreService)(nil)
10+
var _ store.KVStoreService = (*kvStoreService)(nil)
1311

1412
func KVStoreService(ctx context.Context, moduleName string) store.KVStoreService {
1513
unwrap(ctx).stores[moduleName] = NewMemKV()

0 commit comments

Comments
 (0)