diff --git a/collections/CHANGELOG.md b/collections/CHANGELOG.md index 7fe504f938..3cd224f69e 100644 --- a/collections/CHANGELOG.md +++ b/collections/CHANGELOG.md @@ -31,6 +31,8 @@ Ref: https://keepachangelog.com/en/1.0.0/ ## [Unreleased] +## [v1.2.0](https://github.com/cosmos/cosmos-sdk/releases/tag/collections%2Fv1.2.0) + ### Improvements * [#24081](https://github.com/cosmos/cosmos-sdk/pull/24081) Remove `cosmossdk.io/core` dependency. diff --git a/collections/go.mod b/collections/go.mod index 0db537bb65..16498a49ce 100644 --- a/collections/go.mod +++ b/collections/go.mod @@ -48,3 +48,7 @@ require ( golang.org/x/text v0.14.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) + +retract v1.0.0 + +retract v1.1.0 diff --git a/core/CHANGELOG.md b/core/CHANGELOG.md index 9f75d72639..07a08153f4 100644 --- a/core/CHANGELOG.md +++ b/core/CHANGELOG.md @@ -36,6 +36,10 @@ Ref: https://keepachangelog.com/en/1.0.0/ ## [Unreleased] +## [v0.11.3](https://github.com/cosmos/cosmos-sdk/releases/tag/core%2Fv0.11.3) + +* [#24088](https://github.com/cosmos/cosmos-sdk/pull/24088) Convert store interface type definitions to type aliases for compatibility with `cosmossdk.io/collections` `v1.2.x`. + ## [v0.11.2](https://github.com/cosmos/cosmos-sdk/releases/tag/core%2Fv0.11.2) * [#21298](https://github.com/cosmos/cosmos-sdk/pull/21298) Backport [#19265](https://github.com/cosmos/cosmos-sdk/pull/19265) to core. diff --git a/core/go.mod b/core/go.mod index 6f0df73cd8..cc1d40e8d1 100644 --- a/core/go.mod +++ b/core/go.mod @@ -60,3 +60,5 @@ require ( // Version tagged too early and incompatible with v0.50 (latest at the time of tagging) retract v0.12.0 + +retract v1.0.0 diff --git a/core/store/service.go b/core/store/service.go index 05757b8362..ece975b071 100644 --- a/core/store/service.go +++ b/core/store/service.go @@ -5,7 +5,7 @@ import "context" // KVStoreService represents a unique, non-forgeable handle to a regular merkle-tree // backed KVStore. It should be provided as a module-scoped dependency by the runtime // module being used to build the app. -type KVStoreService interface { +type KVStoreService = interface { // OpenKVStore retrieves the KVStore from the context. OpenKVStore(context.Context) KVStore } @@ -13,7 +13,7 @@ type KVStoreService interface { // MemoryStoreService represents a unique, non-forgeable handle to a memory-backed // KVStore. It should be provided as a module-scoped dependency by the runtime // module being used to build the app. -type MemoryStoreService interface { +type MemoryStoreService = interface { // OpenMemoryStore retrieves the memory store from the context. OpenMemoryStore(context.Context) KVStore } @@ -21,7 +21,7 @@ type MemoryStoreService interface { // TransientStoreService represents a unique, non-forgeable handle to a memory-backed // KVStore which is reset at the start of every block. It should be provided as // a module-scoped dependency by the runtime module being used to build the app. -type TransientStoreService interface { +type TransientStoreService = interface { // OpenTransientStore retrieves the transient store from the context. OpenTransientStore(context.Context) KVStore } diff --git a/core/store/store.go b/core/store/store.go index a82d72f6d3..439b0aca3e 100644 --- a/core/store/store.go +++ b/core/store/store.go @@ -3,7 +3,7 @@ package store import dbm "github.com/cosmos/cosmos-db" // KVStore describes the basic interface for interacting with key-value stores. -type KVStore interface { +type KVStore = interface { // Get returns nil iff key doesn't exist. Errors on nil key. Get(key []byte) ([]byte, error)