app

package
v0.0.0-...-13c1f72 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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

	// 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{},
		staking.AppModuleBasic{},
		params.AppModuleBasic{},
		supply.AppModuleBasic{},
		oracle.AppModuleBasic{},
		ethbridge.AppModuleBasic{},
	)
)

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

	// SDK keepers
	// TODO: add governance keeper
	AccountKeeper auth.AccountKeeper
	BankKeeper    bank.Keeper
	StakingKeeper staking.Keeper
	SupplyKeeper  supply.Keeper
	ParamsKeeper  params.Keeper

	// EthBridge keepers
	BridgeKeeper ethbridge.Keeper
	OracleKeeper oracle.Keeper
	// contains filtered or unexported fields
}

EthereumBridgeApp defines the Ethereum-Cosmos peg-zone application

func NewEthereumBridgeApp

func NewEthereumBridgeApp(
	logger log.Logger, db dbm.DB, loadLatest bool,
	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

NewDefaultGenesisState generates the default state for the application.

Jump to

Keyboard shortcuts

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