Skip to content

Commit

Permalink
proof
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski committed Oct 7, 2024
1 parent c72f711 commit 89291c9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docs/learn/advanced/17-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ sidebar_position: 1

# Core

Core is package which specifies the interfaces for core components of the Cosmos SDK. Other packages in the SDK implement these interfaces to provide the core functionality. This design provides modularity and flexibility to the SDK, allowing developers to swap out implementations of core components as needed. As such it is often referred to as the Core API.
Core is package which specifies the interfaces for core components of the Cosmos SDK. Other
packages in the SDK implement these interfaces to provide the core functionality. This design
provides modularity and flexibility to the SDK, allowing developers to swap out implementations
of core components as needed. As such it is often referred to as the Core API.

## Environment

The `Environment` struct is a core component of the Cosmos SDK. It provides access to the core services of the SDK, such as the KVStore, EventManager, and Logger. The `Environment` struct is passed to modules and other components of the SDK to provide access to these services.
The `Environment` struct is a core component of the Cosmos SDK. It provides access to the core
services of the SDK, such as the KVStore, EventManager, and Logger. The `Environment` struct is
passed to modules and other components of the SDK to provide access to these services.

```go reference
https://github.com/cosmos/cosmos-sdk/blob/core/v1.0.0-alpha.4/core/appmodule/v2/environment.go#L16-L29
Expand Down Expand Up @@ -49,7 +54,7 @@ committed. If an error occurs, the changes will be rolled back.
## Event Service

The Event Service returns a handle to an [EventManager](https://pkg.go.dev/cosmossdk.io/[email protected]/event#Manager)
which can be used to emit events. For for information on how to emit events and their meaning
which can be used to emit events. For information on how to emit events and their meaning
in the SDK see the [Events](08-events.md) document.

Note that core's `EventManager` API is a subset of the EventManager API described above; the
Expand Down

0 comments on commit 89291c9

Please sign in to comment.