2020-09-02 19:41:05 +00:00
|
|
|
package keeper
|
|
|
|
|
|
|
|
import (
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
|
|
|
2022-06-19 09:43:41 +00:00
|
|
|
"github.com/evmos/ethermint/x/evm/types"
|
2020-09-02 19:41:05 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// GetParams returns the total set of evm parameters.
|
|
|
|
func (k Keeper) GetParams(ctx sdk.Context) (params types.Params) {
|
2021-05-25 12:56:36 +00:00
|
|
|
k.paramSpace.GetParamSet(ctx, ¶ms)
|
|
|
|
return params
|
2020-09-02 19:41:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetParams sets the evm parameters to the param space.
|
|
|
|
func (k Keeper) SetParams(ctx sdk.Context, params types.Params) {
|
2021-05-25 12:56:36 +00:00
|
|
|
k.paramSpace.SetParamSet(ctx, ¶ms)
|
|
|
|
}
|