Documentation ¶
Index ¶
- Variables
- func GetMaccPerms() map[string][]string
- func NewDefaultGenesisState() simapp.GenesisState
- type BlockchainApp
- func (app *BlockchainApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *BlockchainApp) BlacklistedAccAddrs() map[string]bool
- func (app *BlockchainApp) Codec() *codec.Codec
- func (app *BlockchainApp) DeliverTx(req abci.RequestDeliverTx) (res abci.ResponseDeliverTx)
- func (app *BlockchainApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *BlockchainApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
- func (app *BlockchainApp) GetKey(storeKey string) *sdk.KVStoreKey
- func (app *BlockchainApp) GetSubspace(moduleName string) params.Subspace
- func (app *BlockchainApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *BlockchainApp) LoadHeight(height int64) error
- func (app *BlockchainApp) ModuleAccountAddrs() map[string]bool
- func (app *BlockchainApp) Name() string
- func (app *BlockchainApp) SimulationManager() *module.SimulationManager
Constants ¶
This section is empty.
Variables ¶
var ( // DefaultCLIHome sets the default home directories for the application CLI DefaultCLIHome = os.ExpandEnv("$HOME/.fastock-chain-cli") // DefaultNodeHome sets the folder where the applcation data and configuration will be stored DefaultNodeHome = os.ExpandEnv("$HOME/.fastock-chain-daemon") // ModuleBasics defines 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{}, supply.AppModuleBasic{}, genutil.AppModuleBasic{}, bank.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distr.AppModuleBasic{}, gov.NewAppModuleBasic( paramsclient.ProposalHandler, distr.ProposalHandler, dexclient.DelistProposalHandler, farmclient.ManageWhiteListProposalHandler, ), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, evidence.AppModuleBasic{}, upgrade.AppModuleBasic{}, evm.AppModuleBasic{}, token.AppModuleBasic{}, dex.AppModuleBasic{}, order.AppModuleBasic{}, backend.AppModuleBasic{}, stream.AppModuleBasic{}, debug.AppModuleBasic{}, ammswap.AppModuleBasic{}, farm.AppModuleBasic{}, ) )
Functions ¶
func GetMaccPerms ¶
GetMaccPerms returns a copy of the module account permissions
func NewDefaultGenesisState ¶
func NewDefaultGenesisState() simapp.GenesisState
NewDefaultGenesisState generates the default state for the application.
Types ¶
type BlockchainApp ¶
type BlockchainApp struct { *bam.BaseApp // keepers AccountKeeper auth.AccountKeeper BankKeeper bank.Keeper SupplyKeeper supply.Keeper StakingKeeper staking.Keeper SlashingKeeper slashing.Keeper MintKeeper mint.Keeper DistrKeeper distr.Keeper GovKeeper gov.Keeper CrisisKeeper crisis.Keeper UpgradeKeeper upgrade.Keeper ParamsKeeper params.Keeper EvidenceKeeper evidence.Keeper EvmKeeper *evm.Keeper TokenKeeper token.Keeper DexKeeper dex.Keeper OrderKeeper order.Keeper SwapKeeper ammswap.Keeper FarmKeeper farm.Keeper BackendKeeper backend.Keeper StreamKeeper stream.Keeper // contains filtered or unexported fields }
BlockchainApp implements an extended ABCI application. It is an application that may process transactions through Ethereum's EVM running atop of Tendermint consensus.
func NewBlockchainApp ¶
func NewBlockchainApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, skipUpgradeHeights map[int64]bool, invCheckPeriod uint, baseAppOptions ...func(*bam.BaseApp), ) *BlockchainApp
NewBlockchainApp returns a reference to a new initialized Blockchain application.
func Setup ¶
func Setup(isCheckTx bool) *BlockchainApp
Setup initializes a new BlockchainApp. A Nop logger is set in BlockchainApp.
func (*BlockchainApp) BeginBlocker ¶
func (app *BlockchainApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker updates every begin block
func (*BlockchainApp) BlacklistedAccAddrs ¶
func (app *BlockchainApp) BlacklistedAccAddrs() map[string]bool
BlacklistedAccAddrs returns all the app's module account addresses black listed for receiving tokens.
func (*BlockchainApp) Codec ¶
func (app *BlockchainApp) Codec() *codec.Codec
Codec returns Blockchain's codec.
NOTE: This is solely to be used for testing purposes as it may be desirable for modules to register their own custom testing types.
func (*BlockchainApp) DeliverTx ¶
func (app *BlockchainApp) DeliverTx(req abci.RequestDeliverTx) (res abci.ResponseDeliverTx)
func (*BlockchainApp) EndBlocker ¶
func (app *BlockchainApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker updates every end block
func (*BlockchainApp) ExportAppStateAndValidators ¶
func (app *BlockchainApp) ExportAppStateAndValidators( forZeroHeight bool, jailWhiteList []string, ) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*BlockchainApp) GetKey ¶
func (app *BlockchainApp) GetKey(storeKey string) *sdk.KVStoreKey
GetKey returns the KVStoreKey for the provided store key.
NOTE: This is solely to be used for testing purposes.
func (*BlockchainApp) GetSubspace ¶
func (app *BlockchainApp) GetSubspace(moduleName string) params.Subspace
GetSubspace returns a param subspace for a given module name.
NOTE: This is solely to be used for testing purposes.
func (*BlockchainApp) InitChainer ¶
func (app *BlockchainApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer updates at chain initialization
func (*BlockchainApp) LoadHeight ¶
func (app *BlockchainApp) LoadHeight(height int64) error
LoadHeight loads state at a particular height
func (*BlockchainApp) ModuleAccountAddrs ¶
func (app *BlockchainApp) ModuleAccountAddrs() map[string]bool
ModuleAccountAddrs returns all the app's module account addresses.
func (*BlockchainApp) Name ¶
func (app *BlockchainApp) Name() string
Name returns the name of the App
func (*BlockchainApp) SimulationManager ¶
func (app *BlockchainApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface
Directories ¶
Path | Synopsis |
---|---|
Package ante defines the SDK auth module's AnteHandler as well as an internal AnteHandler for an Ethereum transaction (i.e MsgEthereumTx).
|
Package ante defines the SDK auth module's AnteHandler as well as an internal AnteHandler for an Ethereum transaction (i.e MsgEthereumTx). |
crypto
|
|
Package rpc contains RPC handler methods, namespaces and utilities to start Ethermint's Web3-compatible JSON-RPC server.
|
Package rpc contains RPC handler methods, namespaces and utilities to start Ethermint's Web3-compatible JSON-RPC server. |