app

package
v0.7.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: Apache-2.0 Imports: 34 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultCLIHome represents the default home directory for the application CLI
	DefaultCLIHome = os.ExpandEnv("$HOME/.bitsongcli")

	// DefaultNodeHome sets the folder where the application data and configuration will be stored
	DefaultNodeHome = os.ExpandEnv("$HOME/.bitsongd")

	// ModuleBasics is in charge of setting up basic module elements
	ModuleBasics = module.NewBasicManager(
		auth.AppModuleBasic{},
		genutil.AppModuleBasic{},
		bank.AppModuleBasic{},
		staking.AppModuleBasic{},
		mint.AppModuleBasic{},
		distr.AppModuleBasic{},
		gov.NewAppModuleBasic(
			paramsclient.ProposalHandler, distr.ProposalHandler, upgradeclient.ProposalHandler,
		),
		params.AppModuleBasic{},
		crisis.AppModuleBasic{},
		slashing.AppModuleBasic{},
		upgrade.AppModuleBasic{},
		supply.AppModuleBasic{},
		evidence.AppModuleBasic{},
	)
)

Functions

func Init added in v0.4.0

func Init()

Init initializes the application, overriding the default genesis states that should be changed

func MakeCodec

func MakeCodec() *codec.Codec

MakeCodec constructs the *std.Codec and *codec.Codec instances used by BitsongApp.

func SetupConfig added in v0.7.0

func SetupConfig(config *sdk.Config)

SetupConfig add bitsong customizations

Types

type GenesisState added in v0.5.0

type GenesisState map[string]json.RawMessage

The genesis state of the blockchain is represented here as a map of raw json messages key'd by a identifier string. The identifier is used to determine which module genesis information belongs to so it may be appropriately routed during init chain. Within this application default genesis information is retrieved from the ModuleBasicManager which populates json from each BasicModule object provided to it during init.

func NewDefaultGenesisState added in v0.5.0

func NewDefaultGenesisState() GenesisState

NewDefaultGenesisState generates the default state for the application.

type GoBitsong

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

Extended ABCI application

func NewBitsongApp

func NewBitsongApp(
	logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool,
	skipUpgradeHeights map[int64]bool, invCheckPeriod uint, baseAppOptions ...func(*bam.BaseApp),
) *GoBitsong

NewBitsongApp returns a reference to an initialized GoBitsong.

func (*GoBitsong) BeginBlocker

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

BeginBlocker application updates every begin block

func (*GoBitsong) BlacklistedAccAddrs added in v0.4.0

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

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

func (*GoBitsong) Codec added in v0.4.0

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

Codec returns the application's sealed codec.

func (*GoBitsong) EndBlocker

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

EndBlocker application updates every end block

func (*GoBitsong) ExportAppStateAndValidators

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

export the state of go-bitsong for a genesis file

func (*GoBitsong) InitChainer

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

InitChainer application update at chain initialization

func (*GoBitsong) LoadHeight

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

LoadHeight loads a particular height

func (*GoBitsong) ModuleAccountAddrs

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

ModuleAccountAddrs returns all the app's module account addresses.

func (*GoBitsong) Name added in v0.4.0

func (app *GoBitsong) Name() string

Name returns the name of the App

func (*GoBitsong) SimulationManager added in v0.4.0

func (app *GoBitsong) 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