-
Notifications
You must be signed in to change notification settings - Fork 1
/
keeper.go
35 lines (26 loc) · 854 Bytes
/
keeper.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package keeper
import (
"github.com/FiboChain/fbc/x/vmbridge/types"
"github.com/FiboChain/fbc/libs/cosmos-sdk/codec"
"github.com/FiboChain/fbc/libs/tendermint/libs/log"
)
type Keeper struct {
cdc *codec.CodecProxy
logger log.Logger
evmKeeper EVMKeeper
wasmKeeper WASMKeeper
accountKeeper AccountKeeper
}
func NewKeeper(cdc *codec.CodecProxy, logger log.Logger, evmKeeper EVMKeeper, wasmKeeper WASMKeeper, accountKeeper AccountKeeper) *Keeper {
logger = logger.With("module", types.ModuleName)
return &Keeper{cdc: cdc, logger: logger, evmKeeper: evmKeeper, wasmKeeper: wasmKeeper, accountKeeper: accountKeeper}
}
func (k Keeper) Logger() log.Logger {
return k.logger
}
func (k Keeper) getAminoCodec() *codec.Codec {
return k.cdc.GetCdc()
}
func (k Keeper) GetProtoCodec() *codec.ProtoCodec {
return k.cdc.GetProtocMarshal()
}