0g-chain/x/circuit-breaker/keeper/keeper.go
2020-03-04 16:41:13 +00:00

23 lines
486 B
Go

package keeper
import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/kava-labs/kava/x/circuit-breaker/types"
)
// Keeper stores routes that have been "broken"
type Keeper struct {
}
func (k Keeper) GetMsgRoutes(ctx sdk.Context) []types.MsgRoute {
// TODO
}
func (k Keeper) SetMsgRoutes(ctx sdk.Context, routes []types.MsgRoute) {
// TODO
}
func HandleCircuitBreakerProposal(ctx sdk.Context, k Keeper, c types.CircuitBreakProposal) {
k.SetMsgRoutes(ctx, c.MsgRoutes)
}