mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-15 12:35:20 +00:00
3c53e72220
- Add initial setup and empty genesis type for x/precisebank - Basic tests with mostly empty values, to be filled out with additional implementation
24 lines
533 B
Go
24 lines
533 B
Go
package keeper
|
|
|
|
import (
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
storetypes "github.com/cosmos/cosmos-sdk/store/types"
|
|
)
|
|
|
|
// TODO: Enforce that Keeper implements the expected keeper interfaces
|
|
// var _ types.BankKeeper = Keeper{}
|
|
|
|
// Keeper defines the precisebank module's keeper
|
|
type Keeper struct {
|
|
cdc codec.BinaryCodec
|
|
storeKey storetypes.StoreKey
|
|
}
|
|
|
|
// NewKeeper creates a new keeper
|
|
func NewKeeper(cdc codec.BinaryCodec, storeKey storetypes.StoreKey) Keeper {
|
|
return Keeper{
|
|
cdc: cdc,
|
|
storeKey: storeKey,
|
|
}
|
|
}
|