0g-chain/x/router/keeper/keeper.go
Ruaridh 9519690324
Add Combined Earn and Liquid msgs (#1305)
* add new msg type definitions

* add msg methods and tests

* add module and keeper skeleton

* add deposit and withdraw methods (no delegation)

* untested depsit/withdraw with delegation methods

* add cli cmds

* fix cli argument parsing

* add tests for delegate/undelegate msgs

* emit un/delegate events

* add godoc comments
2022-09-28 03:28:57 +01:00

27 lines
511 B
Go

package keeper
import (
"github.com/kava-labs/kava/x/router/types"
)
// Keeper is the keeper for the module
type Keeper struct {
earnKeeper types.EarnKeeper
liquidKeeper types.LiquidKeeper
stakingKeeper types.StakingKeeper
}
// NewKeeper creates a new keeper
func NewKeeper(
earnKeeper types.EarnKeeper,
liquidKeeper types.LiquidKeeper,
stakingKeeper types.StakingKeeper,
) Keeper {
return Keeper{
earnKeeper: earnKeeper,
liquidKeeper: liquidKeeper,
stakingKeeper: stakingKeeper,
}
}