0g-chain/x/circuit-breaker/keeper/keeper.go

23 lines
486 B
Go
Raw Normal View History

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