mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-24 23:35:19 +00:00
38 lines
760 B
Go
38 lines
760 B
Go
package keeper
|
|
|
|
import (
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
storetypes "github.com/cosmos/cosmos-sdk/store/types"
|
|
|
|
evmtypes "github.com/evmos/ethermint/x/evm/types"
|
|
|
|
"github.com/0glabs/0g-chain/x/precisebank/types"
|
|
)
|
|
|
|
// Enforce that Keeper implements the expected keeper interfaces
|
|
var _ evmtypes.BankKeeper = Keeper{}
|
|
|
|
// Keeper defines the precisebank module's keeper
|
|
type Keeper struct {
|
|
cdc codec.BinaryCodec
|
|
storeKey storetypes.StoreKey
|
|
|
|
bk types.BankKeeper
|
|
ak types.AccountKeeper
|
|
}
|
|
|
|
// NewKeeper creates a new keeper
|
|
func NewKeeper(
|
|
cdc codec.BinaryCodec,
|
|
storeKey storetypes.StoreKey,
|
|
bk types.BankKeeper,
|
|
ak types.AccountKeeper,
|
|
) Keeper {
|
|
return Keeper{
|
|
cdc: cdc,
|
|
storeKey: storeKey,
|
|
bk: bk,
|
|
ak: ak,
|
|
}
|
|
}
|