crisis

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 8 Imported by: 0

README

Crisis module

Usage

(Tx) Invariant broken
invariantBrokenMsg := types.InvariantBrokenMsg{
    ModuleName: "module_name",
    InvariantRoute: "invariant_route",
}

txbytes, err := xplac.InvariantBroken(invariantBrokenMsg).CreateAndSignTx()
res, err := xplac.Broadcast(txbytes)

Documentation

Index

Constants

View Source
const (
	CrisisModule                 = "crisis"
	CrisisInvariantBrokenMsgType = "crisis-invariant-broken"
)

Variables

This section is empty.

Functions

func MakeInvariantRouteMsg

func MakeInvariantRouteMsg(invariantBrokenMsg types.InvariantBrokenMsg, senderAddr sdk.AccAddress) (crisistypes.MsgVerifyInvariant, error)

(Tx) make msg - invariant broken

func NewCoreModule added in v0.1.2

func NewCoreModule() core.CoreModule

Types

type CrisisExternal added in v0.1.2

type CrisisExternal struct {
	Xplac provider.XplaClient
}

func NewCrisisExternal added in v0.1.2

func NewCrisisExternal(xplac provider.XplaClient) (e CrisisExternal)

func (CrisisExternal) InvariantBroken added in v0.1.2

func (e CrisisExternal) InvariantBroken(invariantBrokenMsg types.InvariantBrokenMsg) provider.XplaClient

Submit proof that an invariant broken to halt the chain.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL