Documentation
¶
Index ¶
- Variables
- func Init()
- func MakeCodec() *codec.Codec
- type GenesisState
- type GoBitsong
- func (app *GoBitsong) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *GoBitsong) BlacklistedAccAddrs() map[string]bool
- func (app *GoBitsong) Codec() *codec.Codec
- func (app *GoBitsong) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *GoBitsong) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
- func (app *GoBitsong) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *GoBitsong) LoadHeight(height int64) error
- func (app *GoBitsong) ModuleAccountAddrs() map[string]bool
- func (app *GoBitsong) Name() string
- func (app *GoBitsong) SimulationManager() *module.SimulationManager
Constants ¶
This section is empty.
Variables ¶
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 ¶
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 ¶
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
BlacklistedAccAddrs returns all the app's module account addresses black listed for receiving tokens.
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 ¶
LoadHeight loads a particular height
func (*GoBitsong) ModuleAccountAddrs ¶
ModuleAccountAddrs returns all the app's module account addresses.
func (*GoBitsong) SimulationManager ¶ added in v0.4.0
func (app *GoBitsong) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface