cosmos-sdk/types/invariant.go

11 lines
343 B
Go

package types
// An Invariant is a function which tests a particular invariant.
// If the invariant has been broken, it should return an error
// containing a descriptive message about what happened.
// The simulator will then halt and print the logs.
type Invariant func(ctx Context) error
// group of Invarient
type Invariants []Invariant