Documentation ¶
Index ¶
- Variables
- func GetMaccPerms() map[string][]string
- func MakeCodec() *codec.Codec
- type TerraApp
- func (app *TerraApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *TerraApp) BlacklistedAccAddrs() map[string]bool
- func (app *TerraApp) Codec() *codec.Codec
- func (app *TerraApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *TerraApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
- func (app *TerraApp) GetKey(storeKey string) *sdk.KVStoreKey
- func (app *TerraApp) GetSubspace(moduleName string) params.Subspace
- func (app *TerraApp) GetTKey(storeKey string) *sdk.TransientStoreKey
- func (app *TerraApp) GetTreasuryKeeper() treasury.Keeper
- func (app *TerraApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *TerraApp) LoadHeight(height int64) error
- func (app *TerraApp) ModuleAccountAddrs() map[string]bool
- func (app *TerraApp) Name() string
- func (app *TerraApp) SimulationManager() *module.SimulationManager
Constants ¶
This section is empty.
Variables ¶
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{}, 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
GetMaccPerms returns a copy of the module account permissions
Types ¶
type TerraApp ¶
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
BlacklistedAccAddrs returns all the app's module account addresses black listed for receiving tokens.
func (*TerraApp) Codec ¶ added in v0.4.0
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
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
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 ¶
LoadHeight loads a particular height
func (*TerraApp) ModuleAccountAddrs ¶ added in v0.3.0
ModuleAccountAddrs returns all the app's module account addresses.
func (*TerraApp) SimulationManager ¶ added in v0.4.0
func (app *TerraApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface