@@ -12,8 +12,9 @@ import (
12
12
ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper"
13
13
14
14
opchildante "github.com/initia-labs/OPinit/x/opchild/ante"
15
- opchildtypes "github.com/initia-labs/OPinit/x/opchild/types "
15
+ opchildkeeper "github.com/initia-labs/OPinit/x/opchild/keeper "
16
16
"github.com/initia-labs/initia/app/ante/accnum"
17
+ "github.com/initia-labs/initia/app/ante/sigverify"
17
18
18
19
"github.com/skip-mev/block-sdk/v2/block"
19
20
auctionante "github.com/skip-mev/block-sdk/v2/x/auction/ante"
@@ -29,8 +30,8 @@ type HandlerOptions struct {
29
30
ante.HandlerOptions
30
31
Codec codec.BinaryCodec
31
32
IBCkeeper * ibckeeper.Keeper
32
- OPChildKeeper opchildtypes. AnteKeeper
33
- AuctionKeeper auctionkeeper.Keeper
33
+ OPChildKeeper * opchildkeeper. Keeper
34
+ AuctionKeeper * auctionkeeper.Keeper
34
35
TxEncoder sdk.TxEncoder
35
36
MevLane auctionante.MEVLane
36
37
FreeLane block.Lane
@@ -48,30 +49,34 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
48
49
if options .AccountKeeper == nil {
49
50
return nil , errorsmod .Wrap (sdkerrors .ErrLogic , "account keeper is required for ante builder" )
50
51
}
51
-
52
52
if options .BankKeeper == nil {
53
53
return nil , errorsmod .Wrap (sdkerrors .ErrLogic , "bank keeper is required for ante builder" )
54
54
}
55
-
56
55
if options .SignModeHandler == nil {
57
56
return nil , errorsmod .Wrap (sdkerrors .ErrLogic , "sign mode handler is required for ante builder" )
58
57
}
59
-
60
58
if options .WasmConfig == nil {
61
59
return nil , errorsmod .Wrap (sdkerrors .ErrLogic , "wasm config is required for ante builder" )
62
60
}
63
-
64
61
if options .WasmKeeper == nil {
65
62
return nil , errorsmod .Wrap (sdkerrors .ErrLogic , "wasm keeper is required for ante builder" )
66
63
}
67
-
68
64
if options .TXCounterStoreService == nil {
69
65
return nil , errorsmod .Wrap (sdkerrors .ErrLogic , "wasm store service is required for ante builder" )
70
66
}
67
+ if options .OPChildKeeper == nil {
68
+ return nil , errorsmod .Wrap (sdkerrors .ErrLogic , "opchild keeper is required for ante builder" )
69
+ }
70
+ if options .AuctionKeeper == nil {
71
+ return nil , errorsmod .Wrap (sdkerrors .ErrLogic , "auction keeper is required for ante builder" )
72
+ }
73
+ if options .IBCkeeper == nil {
74
+ return nil , errorsmod .Wrap (sdkerrors .ErrLogic , "IBC keeper is required for ante builder" )
75
+ }
71
76
72
77
sigGasConsumer := options .SigGasConsumer
73
78
if sigGasConsumer == nil {
74
- sigGasConsumer = ante .DefaultSigVerificationGasConsumer
79
+ sigGasConsumer = sigverify .DefaultSigVerificationGasConsumer
75
80
}
76
81
77
82
txFeeChecker := options .TxFeeChecker
@@ -111,10 +116,11 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
111
116
ante .NewSetPubKeyDecorator (options .AccountKeeper ),
112
117
ante .NewValidateSigCountDecorator (options .AccountKeeper ),
113
118
ante .NewSigGasConsumeDecorator (options .AccountKeeper , sigGasConsumer ),
114
- ante .NewSigVerificationDecorator (options .AccountKeeper , options .SignModeHandler ),
119
+ sigverify .NewSigVerificationDecorator (options .AccountKeeper , options .SignModeHandler ),
115
120
ante .NewIncrementSequenceDecorator (options .AccountKeeper ),
116
121
ibcante .NewRedundantRelayDecorator (options .IBCkeeper ),
117
122
auctionante .NewAuctionDecorator (options .AuctionKeeper , options .TxEncoder , options .MevLane ),
123
+ opchildante .NewRedundantBridgeDecorator (options .OPChildKeeper ),
118
124
}
119
125
120
126
return sdk .ChainAnteDecorators (anteDecorators ... ), nil
0 commit comments