Documentation

Index

Constants

View Source
const (

	// DefaultStakeDenom for Stakebird
	DefaultStakeDenom = "ufuel"

	// DefaultUnbondingPeriod for Stakebird
	DefaultUnbondingPeriod = "504h"

	// Bech32MainPrefix defines the Bech32 prefix of an account's address
	Bech32MainPrefix = "stake"

	// PrefixAccount is the prefix for account keys
	PrefixAccount = "acc"
	// PrefixValidator is the prefix for validator keys
	PrefixValidator = "val"
	// PrefixConsensus is the prefix for consensus keys
	PrefixConsensus = "cons"
	// PrefixPublic is the prefix for public keys
	PrefixPublic = "pub"
	// PrefixOperator is the prefix for operator keys
	PrefixOperator = "oper"

	// PrefixAddress is the prefix for addresses
	PrefixAddress = "addr"

	// Bech32PrefixAccAddr defines the Bech32 prefix of an account's address
	Bech32PrefixAccAddr = Bech32MainPrefix
	// Bech32PrefixAccPub defines the Bech32 prefix of an account's public key
	Bech32PrefixAccPub = Bech32MainPrefix + PrefixPublic
	// Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address
	Bech32PrefixValAddr = Bech32MainPrefix + PrefixValidator + PrefixOperator
	// Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key
	Bech32PrefixValPub = Bech32MainPrefix + PrefixValidator + PrefixOperator + PrefixPublic
	// Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address
	Bech32PrefixConsAddr = Bech32MainPrefix + PrefixValidator + PrefixConsensus
	// Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key
	Bech32PrefixConsPub = Bech32MainPrefix + PrefixValidator + PrefixConsensus + PrefixPublic
)

Variables

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

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

	// ModuleBasics The module BasicManager is in charge of setting up basic,
	// non-dependant module elements, such as codec registration
	// and genesis verification.
	ModuleBasics = module.NewBasicManager(
		auth.AppModuleBasic{},
		genutil.AppModuleBasic{},
		bank.AppModuleBasic{},
		capability.AppModuleBasic{},
		staking.AppModuleBasic{},
		mint.AppModuleBasic{},
		distr.AppModuleBasic{},
		gov.NewAppModuleBasic(
			paramsclient.ProposalHandler, distr.ProposalHandler, upgradeclient.ProposalHandler,
		),
		params.AppModuleBasic{},
		crisis.AppModuleBasic{},
		slashing.AppModuleBasic{},
		ibc.AppModuleBasic{},
		upgrade.AppModuleBasic{},
		evidence.AppModuleBasic{},
		transfer.AppModuleBasic{},
		stake.AppModuleBasic{},
		bondcurve.AppModuleBasic{},
	)
)

Functions

func GetMaccPerms

func GetMaccPerms() map[string][]string

    GetMaccPerms returns a copy of the module account permissions

    func MakeCodecs

    func MakeCodecs() (*std.Codec, *codec.Codec)

      MakeCodecs constructs the *std.Codec and *codec.Codec instances used by simapp. It is useful for tests and clients who do not want to construct the full simapp

      Types

      type GenesisState

      type GenesisState map[string]json.RawMessage

        GenesisState represents chain state at the start of the chain. Any initial state (account balances) are stored here.

        func NewDefaultGenesisState

        func NewDefaultGenesisState() GenesisState

          NewDefaultGenesisState generates the default state for the application.

          type RocketApp

          type RocketApp struct {
          	*baseapp.BaseApp
          	// contains filtered or unexported fields
          }

            RocketApp extended ABCI application

            func NewRocketApp

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

              NewRocketApp is a constructor function for mothershipApp

              func (*RocketApp) BeginBlocker

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

                BeginBlocker application updates every begin block

                func (*RocketApp) BlacklistedAccAddrs

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

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

                  func (*RocketApp) Codec

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

                    Codec returns RocketApp'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 (*RocketApp) EndBlocker

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

                      EndBlocker application updates every end block

                      func (*RocketApp) ExportAppStateAndValidators

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

                        ExportAppStateAndValidators export the state of gaia for a genesis file

                        func (*RocketApp) InitChainer

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

                          InitChainer application update at chain initialization

                          func (*RocketApp) LoadHeight

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

                            LoadHeight loads a particular height

                            func (*RocketApp) ModuleAccountAddrs

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

                              ModuleAccountAddrs returns all the app's module account addresses.

                              func (*RocketApp) Name

                              func (app *RocketApp) Name() string

                                Name returns the name of the App

                                func (*RocketApp) SimulationManager

                                func (app *RocketApp) SimulationManager() *module.SimulationManager

                                  SimulationManager implements the SimulationApp interface