app

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: AGPL-3.0 Imports: 30 Imported by: 0

README

Enigma

Enigma secures the decentralized web

What is Enigma?

Want to build a better internet? Solve for privacy.

Enigma is a decentralized, open-source protocol that lets anyone perform computations on encrypted data, bringing privacy to smart contracts and public blockchains. Our mission: improve the adoption and usability of decentralized technologies, for the benefit of all.

Mainnet is out! Get the latest release at https://github.com/enigmampc/enigmachain/releases/latest.

Docs

Archive

Documentation

Index

Constants

This section is empty.

Variables

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

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

	// 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{},
	)
)

Functions

func GetMaccPerms

func GetMaccPerms() map[string][]string

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

func MakeCodec

func MakeCodec() *codec.Codec

MakeCodec creates the application codec. The codec is sealed before it is returned.

func NewDefaultGenesisState

func NewDefaultGenesisState() simapp.GenesisState

NewDefaultGenesisState return a default genesis state

Types

type EnigmaChainApp

type EnigmaChainApp struct {
	*bam.BaseApp
	// contains filtered or unexported fields
}

EnigmaChainApp extended ABCI application

func NewEnigmaChainApp

func NewEnigmaChainApp(
	logger log.Logger,
	db dbm.DB,
	traceStore io.Writer,
	loadLatest bool,
	invCheckPeriod uint,
	skipUpgradeHeights map[int64]bool,
	baseAppOptions ...func(*bam.BaseApp),
) *EnigmaChainApp

NewEnigmaChainApp is a constructor function for enigmaChainApp

func (*EnigmaChainApp) BeginBlocker

BeginBlocker application updates every begin block

func (*EnigmaChainApp) Codec

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

Codec returns the application's sealed codec.

func (*EnigmaChainApp) EndBlocker

EndBlocker application updates every end block

func (*EnigmaChainApp) ExportAppStateAndValidators

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

func (*EnigmaChainApp) InitChainer

InitChainer application update at chain initialization

func (*EnigmaChainApp) LoadHeight

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

LoadHeight loads a particular height

func (*EnigmaChainApp) ModuleAccountAddrs

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

ModuleAccountAddrs returns all the app's module account addresses.

func (*EnigmaChainApp) Name

func (app *EnigmaChainApp) Name() string

Name returns the name of the App

func (*EnigmaChainApp) SimulationManager

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

SimulationManager implements the SimulationApp interface

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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