-
Notifications
You must be signed in to change notification settings - Fork 2
/
alias.go
42 lines (37 loc) · 1022 Bytes
/
alias.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
36
37
38
39
40
41
42
package evm
import (
"github.com/fibonacci-chain/fbc/libs/cosmos-sdk/codec"
sdk "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/types"
"github.com/fibonacci-chain/fbc/x/evm/keeper"
"github.com/fibonacci-chain/fbc/x/evm/types"
)
// nolint
const (
ModuleName = types.ModuleName
StoreKey = types.StoreKey
RouterKey = types.RouterKey
DefaultParamspace = types.DefaultParamspace
)
// nolint
var (
NewKeeper = keeper.NewKeeper
TxDecoder = types.TxDecoder
NewSimulateKeeper = keeper.NewSimulateKeeper
NewLogProcessEvmHook = keeper.NewLogProcessEvmHook
NewMultiEvmHooks = keeper.NewMultiEvmHooks
)
// nolint
type (
Keeper = keeper.Keeper
GenesisState = types.GenesisState
EvmLogHandler = types.EvmLogHandler
)
func WithMoreDeocder(cdc *codec.Codec, cc sdk.TxDecoder) sdk.TxDecoder {
return func(txBytes []byte, height ...int64) (sdk.Tx, error) {
ret, err := cc(txBytes, height...)
if nil == err {
return ret, nil
}
return ret, nil
}
}