app

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultCLIHome defines default home directories for terracli
	DefaultCLIHome = os.ExpandEnv("$HOME/.terracli")

	// DefaultNodeHome defines default home directories for terrad
	DefaultNodeHome = os.ExpandEnv("$HOME/.terrad")

	// ModuleBasics = The ModuleBasicManager is in charge of setting up basic,
	// non-dependant module elements, such as codec registration
	// and genesis verification.
	ModuleBasics = module.NewBasicManager(
		genutil.AppModuleBasic{},
		auth.AppModuleBasic{},
		bank.AppModuleBasic{},
		staking.AppModuleBasic{},
		mint.AppModuleBasic{},
		distr.AppModuleBasic{},
		gov.NewAppModuleBasic(
			paramsclient.ProposalHandler,
			distrclient.ProposalHandler,
			upgradeclient.ProposalHandler,
			treasuryclient.TaxRateUpdateProposalHandler,
			treasuryclient.RewardWeightUpdateProposalHandler,
		),
		params.AppModuleBasic{},
		crisis.AppModuleBasic{},
		slashing.AppModuleBasic{},
		supply.AppModuleBasic{},
		evidence.AppModuleBasic{},
		upgrade.AppModuleBasic{},
		oracle.AppModuleBasic{},
		market.AppModuleBasic{},
		treasury.AppModuleBasic{},
		wasm.AppModuleBasic{},
		msgauth.AppModuleBasic{},
	)
)

Functions

func GetMaccPerms added in v0.4.0

func GetMaccPerms() map[string][]string

GetMaccPerms returns a copy of the module account permissions

func MakeCodec

func MakeCodec() *codec.Codec

MakeCodec builds application codec

Types

type TerraApp

type TerraApp struct {
	*bam.BaseApp
	// contains filtered or unexported fields
}

TerraApp is Extended ABCI application

func NewTerraApp

func NewTerraApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool,
	invCheckPeriod uint, skipUpgradeHeights map[int64]bool, wasmConfig *wasmconfig.Config,
	baseAppOptions ...func(*bam.BaseApp)) *TerraApp

NewTerraApp returns a reference to an initialized TerraApp.

func (*TerraApp) BeginBlocker

func (app *TerraApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock

BeginBlocker defines application updates at every begin block

func (*TerraApp) BlacklistedAccAddrs added in v0.4.0

func (app *TerraApp) BlacklistedAccAddrs() map[string]bool

BlacklistedAccAddrs returns all the app's module account addresses black listed for receiving tokens.

func (*TerraApp) Codec added in v0.4.0

func (app *TerraApp) Codec() *codec.Codec

Codec returns TerraApp's 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 (*TerraApp) EndBlocker

func (app *TerraApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock

EndBlocker defines application updates at every end block

func (*TerraApp) ExportAppStateAndValidators

func (app *TerraApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string,
) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)

ExportAppStateAndValidators exports the state of terra for a genesis file

func (*TerraApp) GetKey added in v0.4.0

func (app *TerraApp) GetKey(storeKey string) *sdk.KVStoreKey

GetKey returns the KVStoreKey for the provided store key.

NOTE: This is solely to be used for testing purposes.

func (*TerraApp) GetSubspace added in v0.4.0

func (app *TerraApp) GetSubspace(moduleName string) params.Subspace

GetSubspace returns a param subspace for a given module name.

NOTE: This is solely to be used for testing purposes.

func (*TerraApp) GetTKey added in v0.4.0

func (app *TerraApp) GetTKey(storeKey string) *sdk.TransientStoreKey

GetTKey returns the TransientStoreKey for the provided store key.

NOTE: This is solely to be used for testing purposes.

func (*TerraApp) GetTreasuryKeeper added in v0.4.0

func (app *TerraApp) GetTreasuryKeeper() treasury.Keeper

GetTreasuryKeeper is test purpose function to return treasury keeper

func (*TerraApp) InitChainer added in v0.3.0

func (app *TerraApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain

InitChainer defines application update at chain initialization

func (*TerraApp) LoadHeight

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

LoadHeight loads a particular height

func (*TerraApp) ModuleAccountAddrs added in v0.3.0

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

ModuleAccountAddrs returns all the app's module account addresses.

func (*TerraApp) Name added in v0.4.0

func (app *TerraApp) Name() string

Name returns the name of the App

func (*TerraApp) SimulationManager added in v0.4.0

func (app *TerraApp) SimulationManager() *module.SimulationManager

SimulationManager implements the SimulationApp interface

Jump to

Keyboard shortcuts

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