mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-14 20:15:18 +00:00
23 lines
486 B
Go
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)
|
|
}
|