-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* bump-up: cosmos-sdk v0.47.4 * bump-up: ibc, tibc, irismod, ethermint * fix: tibc keeper compile error * feat: load ibc nft-transfer module * upgrade: add plan v2.1 and fix consensus params migration logic * chore: update change log * chore: update changelog * chore: format code * bump-up: add v2 suffix to module paths * fix: revert path in docs * proto: regeneration * bump-up: irismod supports x/nft api * bump-up: nft-transfer * fix: vesting account loophole * chore: fix typo * fix: adjust ante sequence * ibc: register client app basic module * bump-up ethermint to resolve panic of accessing consensus parmas at upgrade block * fix: support legacy proposal and query on ibc nft * fix: use no-op-mempool to avoid evm tx failure with no signer * fix collect-gentxs command (#2866) * fix: adjust keeper init sequence of gov & farm * refine custom base option function * fix: set localhost for ibc allow clients * chore: fix typo in dockerfile * bump-up: irismod fix farm genesis validation --------- Co-authored-by: aofengli <[email protected]> Co-authored-by: Dreamer <[email protected]>
- Loading branch information
1 parent
5a5a63d
commit f3778fb
Showing
86 changed files
with
762 additions
and
384 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package ante | ||
|
||
import ( | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" | ||
|
||
vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" | ||
) | ||
|
||
// RejectVestingDecorator is responsible for rejecting the vesting msg | ||
type RejectVestingDecorator struct{} | ||
|
||
// NewRejectVestingDecorator returns an instance of ValidateVestingDecorator | ||
func NewRejectVestingDecorator() RejectVestingDecorator { | ||
return RejectVestingDecorator{} | ||
} | ||
|
||
// AnteHandle checks the transaction | ||
func (vvd RejectVestingDecorator) AnteHandle(ctx sdk.Context, | ||
tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) { | ||
for _, msg := range tx.GetMsgs() { | ||
switch msg.(type) { | ||
case *vestingtypes.MsgCreateVestingAccount, | ||
*vestingtypes.MsgCreatePermanentLockedAccount, | ||
*vestingtypes.MsgCreatePeriodicVestingAccount: | ||
return ctx, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, | ||
"currently doesn't support creating vesting account") | ||
} | ||
} | ||
return next(ctx, tx, simulate) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.