-
Notifications
You must be signed in to change notification settings - Fork 873
Register accesscontrol module #257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,6 @@ import ( | |
| "github.com/cosmos/cosmos-sdk/x/auth/ante" | ||
| ibcante "github.com/cosmos/ibc-go/v3/modules/core/ante" | ||
| ibckeeper "github.com/cosmos/ibc-go/v3/modules/core/keeper" | ||
| "github.com/sei-protocol/sei-chain/app/antedecorators" | ||
| "github.com/sei-protocol/sei-chain/utils/tracing" | ||
| "github.com/sei-protocol/sei-chain/x/dex" | ||
| dexkeeper "github.com/sei-protocol/sei-chain/x/dex/keeper" | ||
|
|
@@ -66,11 +65,9 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) { | |
| // sigVerifyDecorator = ante.NewBatchSigVerificationDecorator(options.BatchVerifier, sequentialVerifyDecorator) | ||
| // } | ||
|
|
||
| memPoolDecorator := ante.NewMempoolFeeDecorator() | ||
| anteDecorators := []sdk.AnteDecorator{ | ||
| ante.NewSetUpContextDecorator(), // outermost AnteDecorator. SetUpContext must be called first | ||
| // TODO: have dex antehandler separate, and then call the individual antehandlers FROM the gasless antehandler decorator wrapper | ||
| antedecorators.NewGaslessDecorator([]sdk.AnteDecorator{&memPoolDecorator}, *options.OracleKeeper), | ||
| wasmkeeper.NewLimitSimulationGasDecorator(options.WasmConfig.SimulationGasLimit), // after setup context to enforce limits early | ||
| wasmkeeper.NewCountTXDecorator(options.TXCounterStoreKey), | ||
| ante.NewRejectExtensionOptionsDecorator(), | ||
|
|
@@ -79,7 +76,7 @@ func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) { | |
| ante.NewTxTimeoutHeightDecorator(), | ||
| ante.NewValidateMemoDecorator(options.AccountKeeper), | ||
| ante.NewConsumeGasForTxSizeDecorator(options.AccountKeeper), | ||
| ante.NewDeductFeeDecorator(options.AccountKeeper, options.BankKeeper, options.FeegrantKeeper), | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Passing in an addtional arg that's just the TxFeeChecker which is already an option
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cc @Kbhat1 from this PR: https://github.com/sei-protocol/sei-cosmos/pull/23/files |
||
| ante.NewDeductFeeDecorator(options.AccountKeeper, options.BankKeeper, options.FeegrantKeeper, options.TxFeeChecker), | ||
| // SetPubKeyDecorator must be called before all signature verification decorators | ||
| ante.NewSetPubKeyDecorator(options.AccountKeeper), | ||
| ante.NewValidateSigCountDecorator(options.AccountKeeper), | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MempoolFeeDecorator was removed in the PR:
https://github.com/sei-protocol/sei-cosmos/pull/23/files#diff-e7b77179f4b011191f102b6d407a8295311bf2a6a7f141c1d4745d8f0b21db8fL53