mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 08:45:19 +00:00
9519690324
* 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
27 lines
511 B
Go
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,
|
|
}
|
|
}
|