app

package
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultCLIHome default home directories for dawncli
	DefaultCLIHome = os.ExpandEnv("$HOME/.dawncli")

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

	// 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(
		genaccounts.AppModuleBasic{},
		genutil.AppModuleBasic{},
		auth.AppModuleBasic{},
		bank.AppModuleBasic{},
		staking.AppModuleBasic{},
		params.AppModuleBasic{},
		supply.AppModuleBasic{},
		oracle.AppModuleBasic{},
		ethbridge.AppModuleBasic{},
		slashing.AppModuleBasic{},
		mint.AppModuleBasic{},
		distr.AppModuleBasic{},
		gov.NewAppModuleBasic(paramsclient.ProposalHandler, distr.ProposalHandler),
	)
)

Functions

func GetMaccPerms

func GetMaccPerms() map[string][]string

GetMaccPerms returns a copy of the module account permissions

func MakeCodec

func MakeCodec() *codec.Codec

MakeCodec generates the necessary codecs for Amino

Types

type EthereumBridgeApp

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

EthereumBridgeApp defines the Ethereum-Cosmos peg-zone application

func NewEthereumBridgeApp

func NewEthereumBridgeApp(logger log.Logger, db dbm.DB,
	baseAppOptions ...func(*bam.BaseApp)) *EthereumBridgeApp

NewEthereumBridgeApp is a constructor function for EthereumBridgeApp

func (*EthereumBridgeApp) BeginBlocker

BeginBlocker application updates every begin block

func (*EthereumBridgeApp) Codec

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

Codec returns simapp's codec

func (*EthereumBridgeApp) EndBlocker

EndBlocker application updates every end block

func (*EthereumBridgeApp) ExportAppStateAndValidators

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

ExportAppStateAndValidators export the state of the eth peg-zone for a genesis file

func (*EthereumBridgeApp) GetKey

func (app *EthereumBridgeApp) GetKey(storeKey string) *sdk.KVStoreKey

GetKey returns the KVStoreKey for the provided store key

func (*EthereumBridgeApp) GetTKey

func (app *EthereumBridgeApp) GetTKey(storeKey string) *sdk.TransientStoreKey

GetTKey returns the TransientStoreKey for the provided store key

func (*EthereumBridgeApp) InitChainer

InitChainer application update at chain initialization

func (*EthereumBridgeApp) LoadHeight

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

LoadHeight loads a particular height

func (*EthereumBridgeApp) ModuleAccountAddrs

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

ModuleAccountAddrs returns all the app's module account addresses.

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

Source Files

Jump to

Keyboard shortcuts

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