Documentation
¶
Index ¶
- Constants
- Variables
- func GetMaccPerms() map[string][]string
- func NewAccNonceHandler(ak auth.AccountKeeper) sdk.AccNonceHandler
- func NewDefaultGenesisState() simapp.GenesisState
- func NewEvmSysContractAddressHandler(ak *evm.Keeper) sdk.EvmSysContractAddressHandler
- func NewGetBlockConfigHandler(pk params.Keeper) sdk.GetBlockConfigHandler
- func NewGetGasConfigHandler(pk params.Keeper) sdk.GetGasConfigHandler
- func NewUpdateCMTxNonceHandler() sdk.UpdateCMTxNonceHandler
- func PreRun(ctx *server.Context, cmd *cobra.Command) error
- func RepairState(ctx *server.Context, onStart bool)
- func RepairStateChangeContract(ctx *server.Context, onStart bool, hash []byte, code []byte)
- type BRCZeroApp
- func (app *BRCZeroApp) BeginBlock(req abci.RequestBeginBlock) (res abci.ResponseBeginBlock)
- func (app *BRCZeroApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *BRCZeroApp) Codec() *codec.Codec
- func (app *BRCZeroApp) Commit(req abci.RequestCommit) abci.ResponseCommit
- func (app *BRCZeroApp) DeliverRealTx(req abci.TxEssentials) (res abci.ResponseDeliverTx)
- func (app *BRCZeroApp) DeliverTx(req abci.RequestDeliverTx) (res abci.ResponseDeliverTx)
- func (app *BRCZeroApp) EndBlock(req abci.RequestEndBlock) (res abci.ResponseEndBlock)
- func (app *BRCZeroApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *BRCZeroApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
- func (app *BRCZeroApp) GetKey(storeKey string) *sdk.KVStoreKey
- func (app *BRCZeroApp) GetSubspace(moduleName string) params.Subspace
- func (app *BRCZeroApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *BRCZeroApp) InitUpgrade(ctx sdk.Context)
- func (app *BRCZeroApp) LoadHeight(height int64) error
- func (app *BRCZeroApp) LoadStartVersion(height int64) error
- func (app *BRCZeroApp) Marshal() *codec.CodecProxy
- func (app *BRCZeroApp) ModuleAccountAddrs() map[string]bool
- func (app *BRCZeroApp) Name() string
- func (app *BRCZeroApp) PreDeliverRealTx(req []byte) (res abci.TxEssentials)
- func (app *BRCZeroApp) RegisterTxService(clientCtx cliContext.CLIContext)
- func (app *BRCZeroApp) SetOption(req abci.RequestSetOption) (res abci.ResponseSetOption)
- func (app *BRCZeroApp) SimulationManager() *module.SimulationManager
- type ElapsedTimeInfos
- type Option
- type SchemaConfig
- type SetupOption
Constants ¶
const ( FlagStartHeight string = "start-height" FlagEnableRepairState string = "enable-repair-state" )
const (
Elapsed = "elapsed"
)
Variables ¶
var ( // DefaultCLIHome sets the default home directories for the application CLI DefaultCLIHome = os.ExpandEnv(system.ClientHome) // DefaultNodeHome sets the folder where the applcation data and configuration will be stored DefaultNodeHome = os.ExpandEnv(system.ServerHome) // 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{}, gov.NewAppModuleBasic( paramsclient.ProposalHandler, stakingclient.ProposeValidatorProposalHandler, ), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, evidence.AppModuleBasic{}, evm.AppModuleBasic{}, brcx.AppModuleBasic{}, ) FlagGolangMaxThreads string = "golang-max-threads" )
var (
DefaultElapsedSchemas string
)
Functions ¶
func GetMaccPerms ¶
GetMaccPerms returns a copy of the module account permissions
func NewAccNonceHandler ¶
func NewAccNonceHandler(ak auth.AccountKeeper) sdk.AccNonceHandler
func NewDefaultGenesisState ¶
func NewDefaultGenesisState() simapp.GenesisState
NewDefaultGenesisState generates the default state for the application.
func NewEvmSysContractAddressHandler ¶
func NewEvmSysContractAddressHandler(ak *evm.Keeper) sdk.EvmSysContractAddressHandler
func NewGetBlockConfigHandler ¶
func NewGetBlockConfigHandler(pk params.Keeper) sdk.GetBlockConfigHandler
func NewGetGasConfigHandler ¶
func NewGetGasConfigHandler(pk params.Keeper) sdk.GetGasConfigHandler
func NewUpdateCMTxNonceHandler ¶
func NewUpdateCMTxNonceHandler() sdk.UpdateCMTxNonceHandler
func RepairState ¶
Types ¶
type BRCZeroApp ¶
type BRCZeroApp struct { *bam.BaseApp // keepers AccountKeeper auth.AccountKeeper BankKeeper bank.Keeper SupplyKeeper supply.Keeper StakingKeeper staking.Keeper SlashingKeeper slashing.Keeper GovKeeper gov.Keeper CrisisKeeper crisis.Keeper ParamsKeeper params.Keeper EvidenceKeeper evidence.Keeper EvmKeeper *evm.Keeper BRCXKeeper *brcx.Keeper // contains filtered or unexported fields }
BRCZeroApp implements an extended ABCI application. It is an application that may process transactions through Ethereum's EVM running atop of Tendermint consensus.
func NewBRCZeroApp ¶
func NewBRCZeroApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, invCheckPeriod uint, baseAppOptions ...func(*bam.BaseApp), ) *BRCZeroApp
NewBRCZeroApp returns a reference to a new initialized BRCZero application.
func Setup ¶
func Setup(isCheckTx bool, options ...Option) *BRCZeroApp
Setup initializes a new BRCZeroApp. A Nop logger is set in BRCZeroApp.
func (*BRCZeroApp) BeginBlock ¶
func (app *BRCZeroApp) BeginBlock(req abci.RequestBeginBlock) (res abci.ResponseBeginBlock)
BeginBlock implements the Application interface
func (*BRCZeroApp) BeginBlocker ¶
func (app *BRCZeroApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker updates every begin block
func (*BRCZeroApp) Codec ¶
func (app *BRCZeroApp) Codec() *codec.Codec
Codec returns BRCZero'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 (*BRCZeroApp) Commit ¶
func (app *BRCZeroApp) Commit(req abci.RequestCommit) abci.ResponseCommit
Commit implements the Application interface
func (*BRCZeroApp) DeliverRealTx ¶
func (app *BRCZeroApp) DeliverRealTx(req abci.TxEssentials) (res abci.ResponseDeliverTx)
func (*BRCZeroApp) DeliverTx ¶
func (app *BRCZeroApp) DeliverTx(req abci.RequestDeliverTx) (res abci.ResponseDeliverTx)
func (*BRCZeroApp) EndBlock ¶
func (app *BRCZeroApp) EndBlock(req abci.RequestEndBlock) (res abci.ResponseEndBlock)
EndBlock implements the Application interface
func (*BRCZeroApp) EndBlocker ¶
func (app *BRCZeroApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker updates every end block
func (*BRCZeroApp) ExportAppStateAndValidators ¶
func (app *BRCZeroApp) 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 (*BRCZeroApp) GetKey ¶
func (app *BRCZeroApp) 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 (*BRCZeroApp) GetSubspace ¶
func (app *BRCZeroApp) 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 (*BRCZeroApp) InitChainer ¶
func (app *BRCZeroApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer updates at chain initialization
func (*BRCZeroApp) InitUpgrade ¶
func (app *BRCZeroApp) InitUpgrade(ctx sdk.Context)
func (*BRCZeroApp) LoadHeight ¶
func (app *BRCZeroApp) LoadHeight(height int64) error
LoadHeight loads state at a particular height
func (*BRCZeroApp) LoadStartVersion ¶
func (app *BRCZeroApp) LoadStartVersion(height int64) error
func (*BRCZeroApp) Marshal ¶
func (app *BRCZeroApp) Marshal() *codec.CodecProxy
func (*BRCZeroApp) ModuleAccountAddrs ¶
func (app *BRCZeroApp) ModuleAccountAddrs() map[string]bool
ModuleAccountAddrs returns all the app's module account addresses.
func (*BRCZeroApp) PreDeliverRealTx ¶
func (app *BRCZeroApp) PreDeliverRealTx(req []byte) (res abci.TxEssentials)
func (*BRCZeroApp) RegisterTxService ¶
func (app *BRCZeroApp) RegisterTxService(clientCtx cliContext.CLIContext)
func (*BRCZeroApp) SetOption ¶
func (app *BRCZeroApp) SetOption(req abci.RequestSetOption) (res abci.ResponseSetOption)
func (*BRCZeroApp) SimulationManager ¶
func (app *BRCZeroApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface
type ElapsedTimeInfos ¶
type ElapsedTimeInfos struct {
// contains filtered or unexported fields
}
func (*ElapsedTimeInfos) AddInfo ¶
func (e *ElapsedTimeInfos) AddInfo(key string, info string)
func (*ElapsedTimeInfos) Dump ¶
func (e *ElapsedTimeInfos) Dump(input interface{})
func (*ElapsedTimeInfos) GetElapsedTime ¶
func (e *ElapsedTimeInfos) GetElapsedTime() int64
func (*ElapsedTimeInfos) SetElapsedTime ¶
func (e *ElapsedTimeInfos) SetElapsedTime(elapsedTime int64)
type SchemaConfig ¶
type SchemaConfig struct {
// contains filtered or unexported fields
}
type SetupOption ¶
type SetupOption struct {
// contains filtered or unexported fields
}
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
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. |