Documentation ¶
Index ¶
- Variables
- func GetMaccPerms() map[string][]string
- func MakeCodec() *codec.Codec
- type EthereumBridgeApp
- func (app *EthereumBridgeApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *EthereumBridgeApp) Codec() *codec.Codec
- func (app *EthereumBridgeApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *EthereumBridgeApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
- func (app *EthereumBridgeApp) GetKey(storeKey string) *sdk.KVStoreKey
- func (app *EthereumBridgeApp) GetTKey(storeKey string) *sdk.TransientStoreKey
- func (app *EthereumBridgeApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *EthereumBridgeApp) LoadHeight(height int64) error
- func (app *EthereumBridgeApp) ModuleAccountAddrs() map[string]bool
- type GenesisState
Constants ¶
This section is empty.
Variables ¶
var ( // DefaultCLIHome default home directories for quizcli DefaultCLIHome = os.ExpandEnv("$HOME/.quizcli") // DefaultNodeHome sets the folder where the application data and configuration will be stored DefaultNodeHome = os.ExpandEnv("$HOME/.quizd") // 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{}, quizes.AppModuleBasic{}, oracle.AppModuleBasic{}, ethbridge.AppModuleBasic{}, ) )
Functions ¶
func GetMaccPerms ¶
GetMaccPerms returns a copy of the module account permissions
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 ¶
func (app *EthereumBridgeApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker application updates every begin block
func (*EthereumBridgeApp) Codec ¶
func (app *EthereumBridgeApp) Codec() *codec.Codec
Codec returns simapp's codec
func (*EthereumBridgeApp) EndBlocker ¶
func (app *EthereumBridgeApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
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 ¶
func (app *EthereumBridgeApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
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.