-
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.
* use go1.18 * upgrade to v0.46-rc1 * fix app error * fix app error * fix test error * support ics721 * fix error * update ibc-go version * upgrade to v0.46.1 * add authz&group module * init module version * replace ibc-go with v5.0.0-rc1 version * add ibc interchain account * upgrade docker go image versio * fix export error when with flag --for-zero-height * add changelog * bump up irismod (#2760) * bump up irismod (#2761) * Bump up ibc-go to v5.0.0 (#2762) * bump up ibc-go to v5.0.0 * fix compile error * bump irismod (#2763) Co-authored-by: sheldon <997166273@qq.com> * ica: add gov v1 msg * fix: nft transfer denom owner * Bump cosmos-sdk version to v0.46.4 * fix: replace ics23 * bump: tendermint & tibc-go & irismod * bump ibc-go version to v5.0.1 (#2768) Co-authored-by: sheldon <997166273@qq.com> * bump up irismod to v1.7.0 & bump up tibc-go to v0.4.0 (#2770) Co-authored-by: sheldon <997166273@qq.com> * update changelog for v1.4.0 * Bump up cosmos-sdk to v0.46.5 * chore: replace tendermint tag * chore: update dep tag * remove group module * refactor nft mergration function * bump irismod version to v1.7.2 (#2779) Co-authored-by: sheldon <997166273@qq.com> * add SetIAVLCacheSize and SetIAVLDisableFastNode (#2777) Co-authored-by: sheldon <997166273@qq.com> * Bump tibc-go version to v0.4.2 * Update CHANGELOG for v1.4.1 * Feature/githubaction (#2782) * update makefile: set CGO_ENABLED=1 * update dockerfile: update secend stage baseimage to alpine:3.16 * docs: update join the mainnet * fix swagger-ui * update docs * remove legacy rest * add ibc api * refactor * update auth bech32 account prefix Co-authored-by: Dreamer <745124335@qq.com> Co-authored-by: aofengli <sheldon@bianjie.ai> Co-authored-by: yuandu <taramaoriskykage@gmail.com> Co-authored-by: sheldon <997166273@qq.com> Co-authored-by: yuandu <103229163+taramakage@users.noreply.github.com> Co-authored-by: Pancongwen <peter.pancongwen@gmail.com>
- Loading branch information
1 parent
845a9fd
commit e4d43ba
Showing
51 changed files
with
56,858 additions
and
36,805 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,51 @@ | ||
package app | ||
|
||
import ( | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
"github.com/cosmos/cosmos-sdk/x/auth/ante" | ||
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" | ||
|
||
guardiankeeper "github.com/irisnet/irishub/modules/guardian/keeper" | ||
|
||
oraclekeeper "github.com/irisnet/irismod/modules/oracle/keeper" | ||
tokenkeeper "github.com/irisnet/irismod/modules/token/keeper" | ||
) | ||
|
||
// HandlerOptions extend the SDK's AnteHandler options by requiring the IBC | ||
// channel keeper. | ||
type HandlerOptions struct { | ||
ante.HandlerOptions | ||
BankKeeper bankkeeper.Keeper | ||
TokenKeeper tokenkeeper.Keeper | ||
OracleKeeper oraclekeeper.Keeper | ||
GuardianKeeper guardiankeeper.Keeper | ||
BypassMinFeeMsgTypes []string | ||
} | ||
|
||
// NewAnteHandler returns an AnteHandler that checks and increments sequence | ||
// numbers, checks signatures & account numbers, and deducts fees from the first | ||
// signer. | ||
func NewAnteHandler(opts HandlerOptions) (sdk.AnteHandler, error) { | ||
var sigGasConsumer = opts.SigGasConsumer | ||
if sigGasConsumer == nil { | ||
sigGasConsumer = ante.DefaultSigVerificationGasConsumer | ||
} | ||
return sdk.ChainAnteDecorators( | ||
ante.NewSetUpContextDecorator(), // outermost AnteDecorator. SetUpContext must be called first | ||
ante.NewExtensionOptionsDecorator(opts.ExtensionOptionChecker), | ||
ante.NewValidateBasicDecorator(), | ||
ante.NewTxTimeoutHeightDecorator(), | ||
ante.NewValidateMemoDecorator(opts.AccountKeeper), | ||
ante.NewConsumeGasForTxSizeDecorator(opts.AccountKeeper), | ||
ante.NewDeductFeeDecorator(opts.AccountKeeper, opts.BankKeeper, opts.FeegrantKeeper, opts.TxFeeChecker), | ||
ante.NewSetPubKeyDecorator(opts.AccountKeeper), // SetPubKeyDecorator must be called before all signature verification decorators | ||
ante.NewValidateSigCountDecorator(opts.AccountKeeper), | ||
ante.NewSigGasConsumeDecorator(opts.AccountKeeper, sigGasConsumer), | ||
ante.NewSigVerificationDecorator(opts.AccountKeeper, opts.SignModeHandler), | ||
NewValidateTokenDecorator(opts.TokenKeeper), | ||
tokenkeeper.NewValidateTokenFeeDecorator(opts.TokenKeeper, opts.BankKeeper), | ||
oraclekeeper.NewValidateOracleAuthDecorator(opts.OracleKeeper, opts.GuardianKeeper), | ||
NewValidateServiceDecorator(), | ||
ante.NewIncrementSequenceDecorator(opts.AccountKeeper), | ||
), nil | ||
} |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.