app

package
v0.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2021 License: Apache-2.0 Imports: 113 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "axelar"

Name is the name of the application

Variables

View Source
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

func RegisterSwaggerAPI(rtr *mux.Router)

RegisterSwaggerAPI registers swagger route with API Server

func SetConfig

func SetConfig()

SetConfig sets the prefix config for the bech32 encoding

Types

type AxelarApp

type AxelarApp struct {
	*baseapp.BaseApp
	// contains filtered or unexported fields
}

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

func (app *AxelarApp) AppCodec() codec.Codec

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

func (app *AxelarApp) LoadHeight(height int64) error

LoadHeight loads the application version at a given height. It will panic if called more than once on a running baseapp.

func (*AxelarApp) ModuleAccountAddrs

func (app *AxelarApp) ModuleAccountAddrs() map[string]bool

ModuleAccountAddrs returns all the app's module account addresses.

func (*AxelarApp) RegisterAPIRoutes

func (app *AxelarApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)

RegisterAPIRoutes registers all application module routes with the provided API server.

func (*AxelarApp) RegisterTendermintService

func (app *AxelarApp) RegisterTendermintService(clientCtx client.Context)

RegisterTendermintService implements the Application.RegisterTendermintService method.

func (*AxelarApp) RegisterTxService

func (app *AxelarApp) RegisterTxService(clientCtx client.Context)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL