Version: v1.2.6 Latest Latest

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

Go to latest
Published: Sep 17, 2020 License: GPL-3.0 Imports: 37 Imported by: 0




View Source
const (
	AppName          = "BandApp"
	Bech32MainPrefix = "band"
	Bip44CoinType    = 494


View Source
var (
	// DefaultCLIHome is the default home directories for bandcli.
	DefaultCLIHome = os.ExpandEnv("$HOME/.bandcli")
	// DefaultNodeHome is the default home directories for bandd.
	DefaultNodeHome = os.ExpandEnv("$HOME/.bandd")
	// ModuleBasics is in charge of setting up basic, non-dependant module elements.
	ModuleBasics = module.NewBasicManager(
		gov.NewAppModuleBasic(paramsclient.ProposalHandler, distr.ProposalHandler, upgradeclient.ProposalHandler),


func GetMaccPerms added in v1.1.0

func GetMaccPerms() map[string][]string

GetMaccPerms returns a mapping of the application's module account permissions.

func MakeCodec

func MakeCodec() *codec.Codec

MakeCodec returns BandChain codec.

func SetBech32AddressPrefixesAndBip44CoinType

func SetBech32AddressPrefixesAndBip44CoinType(config *sdk.Config)

SetBech32AddressPrefixesAndBip44CoinType sets the global Bech32 prefixes and HD wallet coin type.


type BandApp added in v1.1.0

type BandApp struct {

	// Module keepers, publicly accessible to facilate testing and extending (see emitter).
	AccountKeeper  auth.AccountKeeper
	BankKeeper     bank.Keeper
	SupplyKeeper   supply.Keeper
	StakingKeeper  staking.Keeper
	SlashingKeeper slashing.Keeper
	MintKeeper     mint.Keeper
	DistrKeeper    distr.Keeper
	GovKeeper      gov.Keeper
	CrisisKeeper   crisis.Keeper
	ParamsKeeper   params.Keeper
	UpgradeKeeper  upgrade.Keeper
	EvidenceKeeper evidence.Keeper
	OracleKeeper   oracle.Keeper
	// Deliver context, set during InitGenesis/BeginBlock and cleared during Commit. It allows
	// anyone with access to BandApp to read/mutate consensus state anytime. USE WITH CARE!
	DeliverContext sdk.Context
	// contains filtered or unexported fields

BandApp is the application of BandChain, extended base ABCI application.

func NewBandApp

func NewBandApp(
	logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool,
	invCheckPeriod uint, skipUpgradeHeights map[int64]bool, home string,
	disableFeelessReports bool, baseAppOptions ...func(*bam.BaseApp),
) *BandApp

NewBandApp returns a reference to an initialized BandApp.

func (*BandApp) BeginBlocker added in v1.1.0

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

BeginBlocker application updates every begin block.

func (*BandApp) BlacklistedAccAddrs added in v1.1.0

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

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

func (*BandApp) Codec added in v1.1.0

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

Codec returns the application's sealed codec.

func (*BandApp) Commit added in v1.1.0

func (app *BandApp) Commit() (res abci.ResponseCommit)

Commit overrides the default BaseApp's ABCI commit by adding DeliverContext clearing.

func (*BandApp) EndBlocker added in v1.1.0

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

EndBlocker application updates every end block.

func (*BandApp) ExportAppStateAndValidators added in v1.1.0

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

ExportAppStateAndValidators export the state of band for a genesis file

func (*BandApp) InitChainer added in v1.1.0

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

InitChainer application update at chain initialization

func (*BandApp) LoadHeight added in v1.1.0

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

LoadHeight loads a particular height

func (*BandApp) ModuleAccountAddrs added in v1.1.0

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

ModuleAccountAddrs returns all the app's module account addresses.

func (*BandApp) Name added in v1.1.0

func (app *BandApp) Name() string

Name returns the name of the App.

type GenesisState

type GenesisState map[string]json.RawMessage

GenesisState defines a type alias for the Band 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