Documentation ¶
Index ¶
- Variables
- func GetMaccPerms() map[string][]string
- func MakeCodec() *codec.Codec
- type DafecsIoTApp
- func (app *DafecsIoTApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *DafecsIoTApp) Codec() *codec.Codec
- func (app *DafecsIoTApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *DafecsIoTApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
- func (app *DafecsIoTApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *DafecsIoTApp) LoadHeight(height int64) error
- func (app *DafecsIoTApp) ModuleAccountAddrs() map[string]bool
- func (app *DafecsIoTApp) SimulationManager() *module.SimulationManager
- type GenesisState
Constants ¶
This section is empty.
Variables ¶
var ( // DefaultCLIHome default home directories for the application CLI DefaultCLIHome = os.ExpandEnv("$HOME/.dafecscli") // DefaultNodeHome sets the folder where the applcation data and configuration will be stored DefaultNodeHome = os.ExpandEnv("$HOME/.dafecsd") // 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( genutil.AppModuleBasic{}, auth.AppModuleBasic{}, bank.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distr.AppModuleBasic{}, gov.NewAppModuleBasic(paramsclient.ProposalHandler, distr.ProposalHandler, upgradeclient.ProposalHandler), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, supply.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, datanode.AppModule{}, ) )
Functions ¶
func GetMaccPerms ¶
GetMaccPerms returns a mapping of the application's module account permissions.
Types ¶
type DafecsIoTApp ¶
DafecsIoTApp extended ABCI application
func NewDafecsIoTApp ¶
func NewDafecsIoTApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, invCheckPeriod uint, skipUpgradeHeights map[int64]bool, baseAppOptions ...func(*bam.BaseApp), ) *DafecsIoTApp
Newcosmos-iotApp is a constructor function for cosmos-iotApp
func (*DafecsIoTApp) BeginBlocker ¶
func (app *DafecsIoTApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker application updates every begin block
func (*DafecsIoTApp) Codec ¶
func (app *DafecsIoTApp) Codec() *codec.Codec
Codec returns the application's sealed codec.
func (*DafecsIoTApp) EndBlocker ¶
func (app *DafecsIoTApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker application updates every end block
func (*DafecsIoTApp) ExportAppStateAndValidators ¶
func (app *DafecsIoTApp) ExportAppStateAndValidators( forZeroHeight bool, jailWhiteList []string, ) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*DafecsIoTApp) InitChainer ¶
func (app *DafecsIoTApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer application update at chain initialization
func (*DafecsIoTApp) LoadHeight ¶
func (app *DafecsIoTApp) LoadHeight(height int64) error
LoadHeight loads a particular height
func (*DafecsIoTApp) ModuleAccountAddrs ¶
func (app *DafecsIoTApp) ModuleAccountAddrs() map[string]bool
ModuleAccountAddrs returns all the app's module account addresses.
func (*DafecsIoTApp) SimulationManager ¶
func (app *DafecsIoTApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface
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.