Documentation
¶
Index ¶
- Constants
- Variables
- func GetMaccPerms() map[string][]string
- func NewAccNonceHandler(ak auth.AccountKeeper) sdk.AccNonceHandler
- func NewDefaultGenesisState() simapp.GenesisState
- func NewEvmModuleStopLogic(ak *evm.Keeper) sdk.CustomizeOnStop
- func NewEvmSysContractAddressHandler(ak *evm.Keeper) sdk.EvmSysContractAddressHandler
- func NewMptCommitHandler(ak *evm.Keeper) sdk.MptCommitHandler
- func NewUpdateCMTxNonceHandler() sdk.UpdateCMTxNonceHandler
- func PreRun(ctx *server.Context, cmd *cobra.Command) error
- func RepairState(ctx *server.Context, onStart bool)
- type ElapsedTimeInfos
- type GRIDIronxChainApp
- func (app *GRIDIronxChainApp) BeginBlock(req abci.RequestBeginBlock) (res abci.ResponseBeginBlock)
- func (app *GRIDIronxChainApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *GRIDIronxChainApp) Codec() *codec.Codec
- func (o *GRIDIronxChainApp) CollectUpgradeModules(m *module.Manager) (map[int64]*upgradetypes.HeightTasks, map[string]params.ParamSet, ...)
- func (app *GRIDIronxChainApp) Commit(req abci.RequestCommit) abci.ResponseCommit
- func (app *GRIDIronxChainApp) DeliverRealTx(req abci.TxEssentials) (res abci.ResponseDeliverTx)
- func (app *GRIDIronxChainApp) DeliverTx(req abci.RequestDeliverTx) (res abci.ResponseDeliverTx)
- func (app *GRIDIronxChainApp) EndBlock(req abci.RequestEndBlock) (res abci.ResponseEndBlock)
- func (app *GRIDIronxChainApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *GRIDIronxChainApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
- func (app *GRIDIronxChainApp) GetKey(storeKey string) *sdk.KVStoreKey
- func (app *GRIDIronxChainApp) GetSubspace(moduleName string) params.Subspace
- func (app *GRIDIronxChainApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *GRIDIronxChainApp) LoadHeight(height int64) error
- func (app *GRIDIronxChainApp) LoadStartVersion(height int64) error
- func (app *GRIDIronxChainApp) Marshal() *codec.CodecProxy
- func (app *GRIDIronxChainApp) ModuleAccountAddrs() map[string]bool
- func (app *GRIDIronxChainApp) Name() string
- func (app *GRIDIronxChainApp) PreDeliverRealTx(req []byte) (res abci.TxEssentials)
- func (app *GRIDIronxChainApp) RegisterTxService(clientCtx cliContext.CLIContext)
- func (app *GRIDIronxChainApp) SetOption(req abci.RequestSetOption) (res abci.ResponseSetOption)
- func (app *GRIDIronxChainApp) SimulationManager() *module.SimulationManager
- 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("$HOME/.gridchaincli") // DefaultNodeHome sets the folder where the applcation data and configuration will be stored DefaultNodeHome = os.ExpandEnv("$HOME/.gridchaind") // 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, paramsclient.UpgradeProposalHandler, distr.CommunityPoolSpendProposalHandler, distr.ChangeDistributionTypeProposalHandler, distr.WithdrawRewardEnabledProposalHandler, distr.RewardTruncatePrecisionProposalHandler, dexclient.DelistProposalHandler, farmclient.ManageWhiteListProposalHandler, evmclient.ManageContractDeploymentWhitelistProposalHandler, evmclient.ManageContractBlockedListProposalHandler, evmclient.ManageContractMethodGuFactorProposalHandler, evmclient.ManageContractMethodBlockedListProposalHandler, evmclient.ManageSysContractAddressProposalHandler, evmclient.ManageContractByteCodeProposalHandler, govclient.ManageTreasuresProposalHandler, govclient.ModifyNextBlockUpdateProposalHandler, erc20client.TokenMappingProposalHandler, erc20client.ProxyContractRedirectHandler, erc20client.ContractTemplateProposalHandler, client.UpdateClientProposalHandler, fsclient.FeeSplitSharesProposalHandler, wasmclient.MigrateContractProposalHandler, wasmclient.UpdateContractAdminProposalHandler, wasmclient.PinCodesProposalHandler, wasmclient.UnpinCodesProposalHandler, wasmclient.UpdateDeploymentWhitelistProposalHandler, wasmclient.UpdateWASMContractMethodBlockedListProposalHandler, wasmclient.GetCmdExtraProposal, ), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, evidence.AppModuleBasic{}, upgrade.AppModuleBasic{}, evm.AppModuleBasic{}, token.AppModuleBasic{}, dex.AppModuleBasic{}, order.AppModuleBasic{}, ammswap.AppModuleBasic{}, farm.AppModuleBasic{}, infura.AppModuleBasic{}, capabilityModule.AppModuleBasic{}, ibc.AppModuleBasic{}, ibctransfer.AppModuleBasic{}, erc20.AppModuleBasic{}, wasm.AppModuleBasic{}, feesplit.AppModuleBasic{}, ica.AppModuleBasic{}, ibcfee.AppModuleBasic{}, icamauth.AppModuleBasic{}, ) )
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 NewEvmModuleStopLogic ¶
func NewEvmModuleStopLogic(ak *evm.Keeper) sdk.CustomizeOnStop
func NewEvmSysContractAddressHandler ¶
func NewEvmSysContractAddressHandler(ak *evm.Keeper) sdk.EvmSysContractAddressHandler
func NewMptCommitHandler ¶
func NewMptCommitHandler(ak *evm.Keeper) sdk.MptCommitHandler
func NewUpdateCMTxNonceHandler ¶
func NewUpdateCMTxNonceHandler() sdk.UpdateCMTxNonceHandler
func RepairState ¶
Types ¶
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 GRIDIronxChainApp ¶
type GRIDIronxChainApp 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
WasmKeeper wasm.Keeper
WasmPermissionKeeper wasm.ContractOpsKeeper
InfuraKeeper infura.Keeper
FeeSplitKeeper feesplit.Keeper
// ibc
ScopedIBCKeeper capabilitykeeper.ScopedKeeper
ScopedTransferKeeper capabilitykeeper.ScopedKeeper
ScopedIBCMockKeeper capabilitykeeper.ScopedKeeper
TransferKeeper ibctransferkeeper.Keeper
CapabilityKeeper *capabilitykeeper.Keeper
IBCKeeper *ibc.Keeper // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly
IBCFeeKeeper ibcfeekeeper.Keeper
Erc20Keeper erc20.Keeper
ICAMauthKeeper icamauthkeeper.Keeper
ICAControllerKeeper icacontrollerkeeper.Keeper
ICAHostKeeper icahostkeeper.Keeper
VMBridgeKeeper *vmbridge.Keeper
WasmHandler wasmkeeper.HandlerOption
// contains filtered or unexported fields
}
GRIDIronxChainApp implements an extended ABCI application. It is an application that may process transactions through Ethereum's EVM running atop of Tendermint consensus.
func NewGRIDIronxChainApp ¶
func NewGRIDIronxChainApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, skipUpgradeHeights map[int64]bool, invCheckPeriod uint, baseAppOptions ...func(*bam.BaseApp), ) *GRIDIronxChainApp
NewGRIDIronxChainApp returns a reference to a new initialized GRIDIronxChain application.
func Setup ¶
func Setup(isCheckTx bool, options ...Option) *GRIDIronxChainApp
Setup initializes a new GRIDIronxChainApp. A Nop logger is set in GRIDIronxChainApp.
func (*GRIDIronxChainApp) BeginBlock ¶
func (app *GRIDIronxChainApp) BeginBlock(req abci.RequestBeginBlock) (res abci.ResponseBeginBlock)
BeginBlock implements the Application interface
func (*GRIDIronxChainApp) BeginBlocker ¶
func (app *GRIDIronxChainApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker updates every begin block
func (*GRIDIronxChainApp) Codec ¶
func (app *GRIDIronxChainApp) Codec() *codec.Codec
Codec returns GRIDIronxChain'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 (*GRIDIronxChainApp) CollectUpgradeModules ¶
func (o *GRIDIronxChainApp) CollectUpgradeModules(m *module.Manager) (map[int64]*upgradetypes.HeightTasks, map[string]params.ParamSet, []types.StoreFilter, []types.StoreFilter, []types.VersionFilter)
func (*GRIDIronxChainApp) Commit ¶
func (app *GRIDIronxChainApp) Commit(req abci.RequestCommit) abci.ResponseCommit
Commit implements the Application interface
func (*GRIDIronxChainApp) DeliverRealTx ¶
func (app *GRIDIronxChainApp) DeliverRealTx(req abci.TxEssentials) (res abci.ResponseDeliverTx)
func (*GRIDIronxChainApp) DeliverTx ¶
func (app *GRIDIronxChainApp) DeliverTx(req abci.RequestDeliverTx) (res abci.ResponseDeliverTx)
func (*GRIDIronxChainApp) EndBlock ¶
func (app *GRIDIronxChainApp) EndBlock(req abci.RequestEndBlock) (res abci.ResponseEndBlock)
EndBlock implements the Application interface
func (*GRIDIronxChainApp) EndBlocker ¶
func (app *GRIDIronxChainApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker updates every end block
func (*GRIDIronxChainApp) ExportAppStateAndValidators ¶
func (app *GRIDIronxChainApp) 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 (*GRIDIronxChainApp) GetKey ¶
func (app *GRIDIronxChainApp) 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 (*GRIDIronxChainApp) GetSubspace ¶
func (app *GRIDIronxChainApp) 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 (*GRIDIronxChainApp) InitChainer ¶
func (app *GRIDIronxChainApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer updates at chain initialization
func (*GRIDIronxChainApp) LoadHeight ¶
func (app *GRIDIronxChainApp) LoadHeight(height int64) error
LoadHeight loads state at a particular height
func (*GRIDIronxChainApp) LoadStartVersion ¶
func (app *GRIDIronxChainApp) LoadStartVersion(height int64) error
func (*GRIDIronxChainApp) Marshal ¶
func (app *GRIDIronxChainApp) Marshal() *codec.CodecProxy
func (*GRIDIronxChainApp) ModuleAccountAddrs ¶
func (app *GRIDIronxChainApp) ModuleAccountAddrs() map[string]bool
ModuleAccountAddrs returns all the app's module account addresses.
func (*GRIDIronxChainApp) Name ¶
func (app *GRIDIronxChainApp) Name() string
Name returns the name of the App
func (*GRIDIronxChainApp) PreDeliverRealTx ¶
func (app *GRIDIronxChainApp) PreDeliverRealTx(req []byte) (res abci.TxEssentials)
func (*GRIDIronxChainApp) RegisterTxService ¶
func (app *GRIDIronxChainApp) RegisterTxService(clientCtx cliContext.CLIContext)
func (*GRIDIronxChainApp) SetOption ¶
func (app *GRIDIronxChainApp) SetOption(req abci.RequestSetOption) (res abci.ResponseSetOption)
func (*GRIDIronxChainApp) SimulationManager ¶
func (app *GRIDIronxChainApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface
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. |