Documentation ¶
Index ¶
- Constants
- Variables
- func MakeEncodingConfig() params.EncodingConfig
- func RegisterSwaggerAPI(rtr *mux.Router)
- func SetConfig()
- type AxelarApp
- func (app *AxelarApp) AppCodec() codec.Codec
- func (app *AxelarApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *AxelarApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *AxelarApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string) (servertypes.ExportedApp, error)
- func (app *AxelarApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *AxelarApp) LegacyAmino() *codec.LegacyAmino
- func (app *AxelarApp) LoadHeight(height int64) error
- func (app *AxelarApp) ModuleAccountAddrs() map[string]bool
- func (app *AxelarApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *AxelarApp) RegisterTendermintService(clientCtx client.Context)
- func (app *AxelarApp) RegisterTxService(clientCtx client.Context)
- type GenesisState
Constants ¶
const Name = "axelar"
Name is the name of the application
Variables ¶
var ( // DefaultNodeHome default home directories for the application daemon DefaultNodeHome string // 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{}, genutil.AppModuleBasic{}, bank.AppModuleBasic{}, capability.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distr.AppModuleBasic{}, gov.NewAppModuleBasic( paramsclient.ProposalHandler, distrclient.ProposalHandler, upgradeclient.ProposalHandler, upgradeclient.CancelProposalHandler, ibcclientclient.UpdateClientProposalHandler, ibcclientclient.UpgradeProposalHandler, ), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, vesting.AppModuleBasic{}, ibc.AppModuleBasic{}, transfer.AppModuleBasic{}, tss.AppModuleBasic{}, vote.AppModuleBasic{}, evm.AppModuleBasic{}, snapshot.AppModuleBasic{}, nexus.AppModuleBasic{}, axelarnet.AppModuleBasic{}, reward.AppModuleBasic{}, permission.AppModuleBasic{}, ) )
var ( AccountAddressPrefix = "axelar" AccountPubKeyPrefix = AccountAddressPrefix + sdk.PrefixPublic ValidatorAddressPrefix = AccountAddressPrefix + sdk.PrefixValidator + sdk.PrefixOperator ValidatorPubKeyPrefix = AccountAddressPrefix + sdk.PrefixValidator + sdk.PrefixOperator + sdk.PrefixPublic ConsNodeAddressPrefix = AccountAddressPrefix + sdk.PrefixValidator + sdk.PrefixConsensus ConsNodePubKeyPrefix = AccountAddressPrefix + sdk.PrefixValidator + sdk.PrefixConsensus + sdk.PrefixPublic )
Bech32 prefixes
Functions ¶
func MakeEncodingConfig ¶
func MakeEncodingConfig() params.EncodingConfig
MakeEncodingConfig creates an EncodingConfig for testing
func RegisterSwaggerAPI ¶
RegisterSwaggerAPI registers swagger route with API Server
Types ¶
type AxelarApp ¶
AxelarApp defines the axelar Cosmos app that runs all modules
func NewAxelarApp ¶
func NewAxelarApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, skipUpgradeHeights map[int64]bool, homePath string, invCheckPeriod uint, encodingConfig axelarParams.EncodingConfig, appOpts servertypes.AppOptions, baseAppOptions ...func(*bam.BaseApp)) *AxelarApp
NewAxelarApp is a constructor function for axelar
func (*AxelarApp) AppCodec ¶
AppCodec returns AxelarApp'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 (*AxelarApp) BeginBlocker ¶
func (app *AxelarApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker calls the BeginBlock() function of every module at the beginning of a new block
func (*AxelarApp) EndBlocker ¶
func (app *AxelarApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker calls the EndBlock() function of every module at the end of a block
func (*AxelarApp) ExportAppStateAndValidators ¶
func (app *AxelarApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string) (servertypes.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*AxelarApp) InitChainer ¶
func (app *AxelarApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer handles the chain initialization from a genesis file
func (*AxelarApp) LegacyAmino ¶
func (app *AxelarApp) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns AxelarApp'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.
func (*AxelarApp) LoadHeight ¶
LoadHeight loads the application version at a given height. It will panic if called more than once on a running baseapp.
func (*AxelarApp) ModuleAccountAddrs ¶
ModuleAccountAddrs returns all the app's module account addresses.
func (*AxelarApp) RegisterAPIRoutes ¶
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*AxelarApp) RegisterTendermintService ¶
RegisterTendermintService implements the Application.RegisterTendermintService method.
func (*AxelarApp) RegisterTxService ¶
RegisterTxService implements the Application.RegisterTxService method.
type GenesisState ¶
type GenesisState map[string]json.RawMessage
GenesisState represents chain state at the start of the chain. Any initial state (account balances) are stored here.