Documentation ¶
Index ¶
- Variables
- func DefaultAnteHandler(ibcKeeper ibckeeper.Keeper, ...) sdk.AnteHandler
- func MakeEncodingConfig() simappparams.EncodingConfig
- func NewDefaultGenesisState() simapp.GenesisState
- type IBCApp
- func (app *IBCApp) AppCodec() codec.Codec
- func (app *IBCApp) BlockedAddrs() map[string]bool
- func (app *IBCApp) GetIBCKeeper() ibckeeper.Keeper
- func (app *IBCApp) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *IBCApp) InitChainer(ctx sdk.Context, appStateBytes []byte) error
- func (app *IBCApp) InterfaceRegistry() types.InterfaceRegistry
- func (app *IBCApp) LegacyAmino() *codec.LegacyAmino
Constants ¶
This section is empty.
Variables ¶
var ( // ModuleBasics defines the module BasicManager is in charge of setting up basic, // non-dependant module elements, such as codec registration // and genesis verification. ModuleBasics = module.NewBasicManager( auth.AppModuleBasic{}, bank.AppModuleBasic{}, capability.AppModuleBasic{}, ibc.AppModuleBasic{}, fabric.AppModuleBasic{}, transfer.AppModuleBasic{}, ) )
Functions ¶
func DefaultAnteHandler ¶
func DefaultAnteHandler( ibcKeeper ibckeeper.Keeper, sigGasConsumer ante.SignatureVerificationGasConsumer, ) sdk.AnteHandler
DefaultAnteHandler returns an AnteHandler that checks and increments sequence numbers, checks signatures & account numbers, and deducts fees from the first signer.
func MakeEncodingConfig ¶
func MakeEncodingConfig() simappparams.EncodingConfig
MakeEncodingConfig creates an EncodingConfig for an amino based test configuration.
func NewDefaultGenesisState ¶
func NewDefaultGenesisState() simapp.GenesisState
NewDefaultGenesisState generates the default state for the application.
Types ¶
type IBCApp ¶
type IBCApp struct { *app.BaseApp // keepers AccountKeeper authkeeper.AccountKeeper BankKeeper bankkeeper.Keeper CapabilityKeeper *capabilitykeeper.Keeper StakingKeeper stakingkeeper.Keeper SlashingKeeper slashingkeeper.Keeper MintKeeper mintkeeper.Keeper DistrKeeper distrkeeper.Keeper GovKeeper govkeeper.Keeper CrisisKeeper crisiskeeper.Keeper UpgradeKeeper upgradekeeper.Keeper ParamsKeeper paramskeeper.Keeper IBCKeeper *ibckeeper.Keeper // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly EvidenceKeeper evidencekeeper.Keeper TransferKeeper ibctransferkeeper.Keeper // make scoped keepers public for test purposes ScopedIBCKeeper capabilitykeeper.ScopedKeeper ScopedTransferKeeper capabilitykeeper.ScopedKeeper ScopedIBCMockKeeper capabilitykeeper.ScopedKeeper // contains filtered or unexported fields }
func NewIBCApp ¶
func NewIBCApp(appName string, logger log.Logger, db dbm.DB, traceStore io.Writer, encodingConfig simappparams.EncodingConfig, seqMgr commitment.SequenceManager, blockProvider app.BlockProvider, anteHandlerProvider app.AnteHandlerProvider) (*IBCApp, error)
func (*IBCApp) AppCodec ¶
AppCodec returns IBCApp's app codec.
NOTE: This is solely to be used for testing purposes as it may be desirable for modules to register their own custom testing types.
func (*IBCApp) BlockedAddrs ¶
BlockedAddrs returns all the app's module account addresses that are not allowed to receive external tokens.
func (*IBCApp) GetIBCKeeper ¶
func (*IBCApp) GetSubspace ¶
func (app *IBCApp) GetSubspace(moduleName string) paramstypes.Subspace
GetSubspace returns a param subspace for a given module name.
NOTE: This is solely to be used for testing purposes.
func (*IBCApp) InitChainer ¶
func (*IBCApp) InterfaceRegistry ¶
func (app *IBCApp) InterfaceRegistry() types.InterfaceRegistry
func (*IBCApp) LegacyAmino ¶
func (app *IBCApp) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns IBCApp's amino codec.
NOTE: This is solely to be used for testing purposes as it may be desirable for modules to register their own custom testing types.