2020-09-02 19:41:05 +00:00
|
|
|
package keeper
|
|
|
|
|
|
|
|
import (
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
|
|
|
2021-06-22 10:49:18 +00:00
|
|
|
"github.com/tharsis/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)
|
|
|
|
}
|