app

package
v0.0.0-...-21ace4c Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: GPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Bech32MainPrefix = "band"
	Bip44CoinType    = 494
)

Variables

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

	// default home directories for the application daemon
	DefaultNodeHome = os.ExpandEnv("$HOME/.bandd")

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

		zoracle.AppModuleBasic{},
	)
)

Functions

func GetDefaultDataSourcesAndOracleScripts

func GetDefaultDataSourcesAndOracleScripts(owner sdk.AccAddress) json.RawMessage

func MakeCodec

func MakeCodec() *codec.Codec

MakeCodec generates the necessary codecs for Amino

func NewBandApp

func NewBandApp(
	logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool,
	invCheckPeriod uint, baseAppOptions ...func(*bam.BaseApp),
) *bandApp

NewBandApp is a constructor function for bandApp

func NewDBBandApp

func NewDBBandApp(
	logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool,
	invCheckPeriod uint, dbBand *db.BandDB, baseAppOptions ...func(*bam.BaseApp),
) *dbBandApp

func SetBech32AddressPrefixesAndBip44CoinType

func SetBech32AddressPrefixesAndBip44CoinType(config *sdk.Config)

Types

type GenesisState

type GenesisState map[string]json.RawMessage

GenesisState defines a type alias for the Gaia genesis application state.

func NewDefaultGenesisState

func NewDefaultGenesisState() GenesisState

NewDefaultGenesisState generates the default state for the application.

Jump to

Keyboard shortcuts

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