github.com/KiraCore/sekai@v0.3.43/app/posthandler/post.go (about) 1 package posthandler 2 3 import ( 4 sdk "github.com/cosmos/cosmos-sdk/types" 5 6 feeprocessingkeeper "github.com/KiraCore/sekai/x/feeprocessing/keeper" 7 customgovkeeper "github.com/KiraCore/sekai/x/gov/keeper" 8 ) 9 10 // HandlerOptions are the options required for constructing a default SDK PostHandler. 11 type HandlerOptions struct { 12 customGovKeeper customgovkeeper.Keeper 13 feeprocessingKeeper feeprocessingkeeper.Keeper 14 } 15 16 // NewPostHandler returns an empty PostHandler chain. 17 func NewPostHandler(options HandlerOptions) (sdk.PostHandler, error) { 18 postDecorators := []sdk.PostDecorator{ 19 NewExecutionDecorator(options.customGovKeeper, options.feeprocessingKeeper), 20 } 21 22 return sdk.ChainPostDecorators(postDecorators...), nil 23 }