Skip to content

Commit

Permalink
Merge pull request #106 from plex/remove-modules
Browse files Browse the repository at this point in the history
Remove unused modules from Canto
  • Loading branch information
tkkwon1998 authored Jul 21, 2023
2 parents c7c0964 + 9eec3a4 commit baf024d
Show file tree
Hide file tree
Showing 71 changed files with 9 additions and 17,638 deletions.
11 changes: 0 additions & 11 deletions app/ante/handler_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import (
evmtypes "github.com/evmos/ethermint/x/evm/types"

cosmosante "github.com/Canto-Network/Canto/v6/app/ante/cosmos"

vestingtypes "github.com/Canto-Network/Canto/v6/x/vesting/types"
sdkvesting "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
)

Expand All @@ -27,7 +25,6 @@ type HandlerOptions struct {
BankKeeper evmtypes.BankKeeper
IBCKeeper *ibckeeper.Keeper
FeeMarketKeeper evmtypes.FeeMarketKeeper
StakingKeeper vestingtypes.StakingKeeper
EvmKeeper ethante.EVMKeeper
FeegrantKeeper ante.FeegrantKeeper
SignModeHandler authsigning.SignModeHandler
Expand All @@ -44,9 +41,6 @@ func (options HandlerOptions) Validate() error {
if options.BankKeeper == nil {
return sdkerrors.Wrap(sdkerrors.ErrLogic, "bank keeper is required for AnteHandler")
}
if options.StakingKeeper == nil {
return sdkerrors.Wrap(sdkerrors.ErrLogic, "staking keeper is required for AnteHandler")
}
if options.SignModeHandler == nil {
return sdkerrors.Wrap(sdkerrors.ErrLogic, "sign mode handler is required for ante builder")
}
Expand All @@ -69,7 +63,6 @@ func newEthAnteHandler(options HandlerOptions) sdk.AnteHandler {
ethante.NewEthSigVerificationDecorator(options.EvmKeeper),
ethante.NewEthAccountVerificationDecorator(options.AccountKeeper, options.EvmKeeper),
ethante.NewCanTransferDecorator(options.EvmKeeper),
NewEthVestingTransactionDecorator(options.AccountKeeper),
ethante.NewEthGasConsumeDecorator(options.EvmKeeper, options.MaxTxGasWanted),
ethante.NewEthIncrementSenderSequenceDecorator(options.AccountKeeper),
ethante.NewGasWantedDecorator(options.EvmKeeper, options.FeeMarketKeeper),
Expand All @@ -84,7 +77,6 @@ func newCosmosAnteHandler(options HandlerOptions) sdk.AnteHandler {
cosmosante.NewAuthzLimiterDecorator(
sdk.MsgTypeURL(&evmtypes.MsgEthereumTx{}),
sdk.MsgTypeURL(&sdkvesting.MsgCreateVestingAccount{}),
sdk.MsgTypeURL(&vestingtypes.MsgCreateClawbackVestingAccount{}),
),
ante.NewSetUpContextDecorator(),
ante.NewRejectExtensionOptionsDecorator(),
Expand All @@ -95,7 +87,6 @@ func newCosmosAnteHandler(options HandlerOptions) sdk.AnteHandler {
ante.NewValidateMemoDecorator(options.AccountKeeper),
ante.NewConsumeGasForTxSizeDecorator(options.AccountKeeper),
ante.NewDeductFeeDecorator(options.AccountKeeper, options.BankKeeper, options.FeegrantKeeper),
NewRejectClawbackVestingAccount(),
NewValidatorCommissionDecorator(options.Cdc),
// SetPubKeyDecorator must be called before all signature verification decorators
ante.NewSetPubKeyDecorator(options.AccountKeeper),
Expand All @@ -115,7 +106,6 @@ func newCosmosAnteHandlerEip712(options HandlerOptions) sdk.AnteHandler {
cosmosante.NewAuthzLimiterDecorator(
sdk.MsgTypeURL(&evmtypes.MsgEthereumTx{}),
sdk.MsgTypeURL(&sdkvesting.MsgCreateVestingAccount{}),
sdk.MsgTypeURL(&vestingtypes.MsgCreateClawbackVestingAccount{}),
),
ante.NewSetUpContextDecorator(),
ante.NewMempoolFeeDecorator(),
Expand All @@ -125,7 +115,6 @@ func newCosmosAnteHandlerEip712(options HandlerOptions) sdk.AnteHandler {
ante.NewValidateMemoDecorator(options.AccountKeeper),
ante.NewConsumeGasForTxSizeDecorator(options.AccountKeeper),
ante.NewDeductFeeDecorator(options.AccountKeeper, options.BankKeeper, options.FeegrantKeeper),
NewRejectClawbackVestingAccount(),
NewValidatorCommissionDecorator(options.Cdc),
// SetPubKeyDecorator must be called before all signature verification decorators
ante.NewSetPubKeyDecorator(options.AccountKeeper),
Expand Down
196 changes: 0 additions & 196 deletions app/ante/vesting.go

This file was deleted.

Loading

0 comments on commit baf024d

Please sign in to comment.