File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
36
36
37
37
# Changelog
38
38
39
- ## [ v0.53.0] ( https://github.com/cosmos/cosmos-sdk/releases/tag/v0.53.0 ) - 2025-04-29
39
+ ## [ v0.53.0] ( https://github.com/cosmos/cosmos-sdk/releases/tag/v0.53.0 ) - 2025-04-29
40
40
41
41
### Features
42
42
Original file line number Diff line number Diff line change @@ -6,17 +6,25 @@ import "fmt"
6
6
// The invariant returns a descriptive message about what happened
7
7
// and a boolean indicating whether the invariant has been broken.
8
8
// The simulator will then halt and print the logs.
9
+ //
10
+ // Deprecated: the Invariant type is deprecated and will be removed once x/crisis is removed.
9
11
type Invariant func (ctx Context ) (string , bool )
10
12
11
13
// Invariants defines a group of invariants
14
+ //
15
+ // Deprecated: the Invariants type is deprecated and will be removed once x/crisis is removed.
12
16
type Invariants []Invariant
13
17
14
18
// expected interface for registering invariants
19
+ //
20
+ // Deprecated: the InvariantRegistry type is deprecated and will be removed once x/crisis is removed.
15
21
type InvariantRegistry interface {
16
22
RegisterRoute (moduleName , route string , invar Invariant )
17
23
}
18
24
19
25
// FormatInvariant returns a standardized invariant message.
26
+ //
27
+ // Deprecated: the FormatInvariant type is deprecated and will be removed once x/crisis is removed.
20
28
func FormatInvariant (module , name , msg string ) string {
21
29
return fmt .Sprintf ("%s: %s invariant\n %s\n " , module , name , msg )
22
30
}
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ type AppModule interface {
210
210
// Deprecated: this will be removed in the next Cosmos SDK release.
211
211
type HasInvariants interface {
212
212
// RegisterInvariants registers module invariants.
213
- RegisterInvariants (sdk.InvariantRegistry )
213
+ RegisterInvariants (sdk.InvariantRegistry ) // nolint: staticcheck // deprecated interface
214
214
}
215
215
216
216
// HasServices is the interface for modules to register services.
@@ -268,6 +268,8 @@ func (GenesisOnlyAppModule) IsOnePerModuleType() {}
268
268
func (GenesisOnlyAppModule ) IsAppModule () {}
269
269
270
270
// RegisterInvariants is a placeholder function register no invariants
271
+ //
272
+ // Deprecated: this function will be removed when x/crisis and invariants are removed from the cosmos SDK.
271
273
func (GenesisOnlyAppModule ) RegisterInvariants (_ sdk.InvariantRegistry ) {}
272
274
273
275
// ConsensusVersion implements AppModule/ConsensusVersion.
You can’t perform that action at this time.
0 commit comments