0g-chain/x/circuit-breaker/keeper/keeper.go
rhuairahrighairigh 4989c0938a rough draft
2020-03-04 14:35:16 +00:00

18 lines
342 B
Go

package circuit-breaker
// Keeper stores routes that have been "broken"
type Keeper struct {
}
func (k Keeper) GetRoutes(ctx sdk.Context) []string {
// TODO
}
func (k Keeper) SetRoutes(ctx sdk.Context, routes []string) {
// TODO
}
func (k Keeper) HandleCircuitBreakerProposal(ctx sdk.Context, c Content) {
k.SetRoutes(ctx, c.Routes)
}