Co-authored-by: Akhil Kumar P <36399231+akhilkumarpilli@users.noreply.github.com>
This commit is contained in:
parent
0d201dead3
commit
6ffa71abd3
52
UPGRADING.md
52
UPGRADING.md
@ -106,7 +106,7 @@ For non depinject users, simply call `RegisterLegacyAminoCodec` and `RegisterInt
|
||||
|
||||
Additionally, thanks to the genesis simplification, as explained in [the genesis interface update](#genesis-interface), the module manager `InitGenesis` and `ExportGenesis` methods do not require the codec anymore.
|
||||
|
||||
##### GRPC-WEB
|
||||
##### GRPC WEB
|
||||
|
||||
Grpc-web embedded client has been removed from the server. If you would like to use grpc-web, you can use the [envoy proxy](https://www.envoyproxy.io/docs/envoy/latest/start/start). Here's how to set it up:
|
||||
|
||||
@ -347,6 +347,8 @@ Also, any usages of the interfaces `AnyUnpacker` and `UnpackInterfacesMessage` m
|
||||
|
||||
#### `**all**`
|
||||
|
||||
All modules (expect `auth`) were spun out into their own `go.mod`. Replace their imports by `cosmossdk.io/x/{moduleName}`.
|
||||
|
||||
##### Core API
|
||||
|
||||
Core API has been introduced for modules since v0.47. With the deprecation of `sdk.Context`, we strongly recommend to use the `cosmossdk.io/core/appmodule` interfaces for the modules. This will allow the modules to work out of the box with server/v2 and baseapp, as well as limit their dependencies on the SDK.
|
||||
@ -399,7 +401,7 @@ All modules using dependency injection must update their imports.
|
||||
|
||||
##### Params
|
||||
|
||||
Previous module migrations have been removed. It is required to migrate to v0.50 prior to upgrading to v0.51 for not missing any module migrations.
|
||||
Previous module migrations have been removed. It is required to migrate to v0.50 prior to upgrading to v0.52 for not missing any module migrations.
|
||||
|
||||
##### Genesis Interface
|
||||
|
||||
@ -436,60 +438,24 @@ if err != nil {
|
||||
}
|
||||
```
|
||||
|
||||
#### `x/auth`
|
||||
### `x/crisis`
|
||||
|
||||
Auth was spun out into its own `go.mod`. To import it use `cosmossdk.io/x/auth`
|
||||
|
||||
#### `x/authz`
|
||||
|
||||
Authz was spun out into its own `go.mod`. To import it use `cosmossdk.io/x/authz`
|
||||
|
||||
#### `x/bank`
|
||||
|
||||
Bank was spun out into its own `go.mod`. To import it use `cosmossdk.io/x/bank`
|
||||
|
||||
### `x/crsis`
|
||||
|
||||
The Crisis module was removed due to it not being supported or functional any longer.
|
||||
The `x/crisis` module was removed due to it not being supported or functional any longer.
|
||||
|
||||
#### `x/distribution`
|
||||
|
||||
Distribution was spun out into its own `go.mod`. To import it use `cosmossdk.io/x/distribution`
|
||||
|
||||
The existing chains using x/distribution module needs to add the new x/protocolpool module.
|
||||
|
||||
#### `x/group`
|
||||
|
||||
Group was spun out into its own `go.mod`. To import it use `cosmossdk.io/x/group`
|
||||
Existing chains using `x/distribution` module must add the new `x/protocolpool` module.
|
||||
|
||||
#### `x/gov`
|
||||
|
||||
Gov was spun out into its own `go.mod`. To import it use `cosmossdk.io/x/gov`
|
||||
|
||||
Gov v1beta1 proposal handler has been changed to take in a `context.Context` instead of `sdk.Context`.
|
||||
This change was made to allow legacy proposals to be compatible with server/v2.
|
||||
If you wish to migrate to server/v2, you should update your proposal handler to take in a `context.Context` and use services.
|
||||
On the other hand, if you wish to keep using baseapp, simply unwrap the sdk context in your proposal handler.
|
||||
|
||||
#### `x/mint`
|
||||
|
||||
Mint was spun out into its own `go.mod`. To import it use `cosmossdk.io/x/mint`
|
||||
|
||||
#### `x/slashing`
|
||||
|
||||
Slashing was spun out into its own `go.mod`. To import it use `cosmossdk.io/x/slashing`
|
||||
|
||||
#### `x/staking`
|
||||
|
||||
Staking was spun out into its own `go.mod`. To import it use `cosmossdk.io/x/staking`
|
||||
|
||||
#### `x/params`
|
||||
|
||||
A standalone Go module was created and it is accessible at "cosmossdk.io/x/params".
|
||||
|
||||
#### `x/protocolpool`
|
||||
|
||||
Introducing a new `x/protocolpool` module to handle community pool funds. Its store must be added while upgrading to v0.51.x.
|
||||
Introducing a new `x/protocolpool` module to handle community pool funds. Its store must be added while upgrading to v0.52.x.
|
||||
|
||||
Example:
|
||||
|
||||
@ -506,7 +472,7 @@ func (app SimApp) RegisterUpgradeHandlers() {
|
||||
}
|
||||
```
|
||||
|
||||
Add `x/protocolpool` store while upgrading to v0.51.x:
|
||||
Add `x/protocolpool` store while upgrading to v0.52.x:
|
||||
|
||||
```go
|
||||
storetypes.StoreUpgrades{
|
||||
|
||||
@ -205,7 +205,7 @@ newly committed state and `finalizeBlockState` is set to `nil` to be reset on `F
|
||||
During `InitChain`, the `RequestInitChain` provides `ConsensusParams` which contains parameters
|
||||
related to block execution such as maximum gas and size in addition to evidence parameters. If these
|
||||
parameters are non-nil, they are set in the BaseApp's `ParamStore`. Behind the scenes, the `ParamStore`
|
||||
is managed by an `x/consensus_params` module. This allows the parameters to be tweaked via
|
||||
is managed by an `x/consensus` module. This allows the parameters to be tweaked via
|
||||
on-chain governance.
|
||||
|
||||
## Service Routers
|
||||
|
||||
@ -67,7 +67,7 @@ type Consensus[T transaction.Tx] struct {
|
||||
func NewConsensus[T transaction.Tx](
|
||||
logger log.Logger,
|
||||
appName string,
|
||||
consensusAuthority string,
|
||||
consensusAuthority string, // TODO remove
|
||||
app *appmanager.AppManager[T],
|
||||
mp mempool.Mempool[T],
|
||||
indexedEvents map[string]struct{},
|
||||
|
||||
@ -16,7 +16,7 @@ type AppI[T transaction.Tx] interface {
|
||||
Name() string
|
||||
InterfaceRegistry() server.InterfaceRegistry
|
||||
GetAppManager() *appmanager.AppManager[T]
|
||||
GetConsensusAuthority() string
|
||||
GetConsensusAuthority() string // TODO remove
|
||||
GetGPRCMethodsToMessageMap() map[string]func() gogoproto.Message
|
||||
GetStore() any
|
||||
}
|
||||
|
||||
@ -138,6 +138,10 @@ var (
|
||||
ModuleName: authtypes.ModuleName,
|
||||
KvStoreKey: "acc",
|
||||
},
|
||||
{
|
||||
ModuleName: accounts.ModuleName,
|
||||
KvStoreKey: accounts.StoreKey,
|
||||
},
|
||||
},
|
||||
// NOTE: The genutils module must occur after staking so that pools are
|
||||
// properly initialized with tokens from genesis accounts.
|
||||
@ -260,7 +264,7 @@ var (
|
||||
{
|
||||
Name: consensustypes.ModuleName,
|
||||
Config: appconfig.WrapAny(&consensusmodulev1.Module{
|
||||
Authority: "consensus",
|
||||
Authority: "consensus", // TODO remove.
|
||||
}),
|
||||
},
|
||||
{
|
||||
|
||||
@ -10,7 +10,6 @@ import (
|
||||
|
||||
// BeginBlocker sets the proposer for determining distribution during endblock
|
||||
// and distribute rewards for the previous block.
|
||||
// TODO: use context.Context after including the comet service
|
||||
func (k Keeper) BeginBlocker(ctx context.Context) error {
|
||||
defer telemetry.ModuleMeasureSince(types.ModuleName, telemetry.Now(), telemetry.MetricKeyBeginBlocker)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user