mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 10:05:18 +00:00
20 lines
453 B
Go
20 lines
453 B
Go
package liquidator
|
|
|
|
import (
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
)
|
|
|
|
// InitGenesis sets the genesis state in the keeper.
|
|
func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState) {
|
|
|
|
keeper.SetParams(ctx, data.Params)
|
|
}
|
|
|
|
// ExportGenesis returns a GenesisState for a given context and keeper.
|
|
func ExportGenesis(ctx sdk.Context, keeper Keeper) GenesisState {
|
|
params := keeper.GetParams(ctx)
|
|
return GenesisState{
|
|
Params: params,
|
|
}
|
|
}
|