app

package module
v0.2.0 Latest Latest
Warning

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

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

README

Secret Network

Secret Network secures the decentralized web

What is Secret Network?

Want to build a better internet? Solve for privacy.

Secret Network is a blockchain-based, 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/SecretNetwork/releases/latest.

Contributor Covenant

Community

Block Explorers

Secret Network is secured by the SCRT coin (Secret), which is used for fees, staking, and governance. Transactions, validators, governance proposals, and more can be viewed using the following Secret Network block explorers:

Wallets

Implementation Discussions

Blockchain REST Providers

Docs

Archive

License

SecretNetwork is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. The GNU Affero General Public License is based on the GNU GPL, but has an additional term to allow users who interact with the licensed software over a network to receive the source for that program.

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
api
x
compute
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/enigmampc/EnigmaBlockchain/x/compute/internal/types ALIASGEN: github.com/enigmampc/EnigmaBlockchain/x/compute/internal/keeper
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/enigmampc/EnigmaBlockchain/x/compute/internal/types ALIASGEN: github.com/enigmampc/EnigmaBlockchain/x/compute/internal/keeper

Jump to

Keyboard shortcuts

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