Documentation
¶
Index ¶
- Constants
- Variables
- func BlockedAddresses() map[string]bool
- func GetMaccPerms() map[string][]string
- func GetSimulatorFlags()
- func InitGenesisModuleList() []string
- func MakeEncodingConfig() simappparams.EncodingConfig
- func NewConfigFromFlags() simulation.Config
- func RegisterSwaggerAPI(_ client.Context, rtr *mux.Router)
- func SetConfig()
- func VerifyAddressFormat(bz []byte) error
- type GenesisState
- type PellApp
- func (app *PellApp) Amino() *codec.LegacyAmino
- func (app *PellApp) AppCodec() codec.Codec
- func (app *PellApp) AutoCliOpts() autocli.AppOptions
- func (app *PellApp) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error)
- func (app *PellApp) BlockedAddrs() map[string]bool
- func (app *PellApp) EndBlocker(ctx sdk.Context) (sdk.EndBlock, error)
- func (app *PellApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs, modulesToExport []string) (servertypes.ExportedApp, error)
- func (app *PellApp) GetKey(storeKey string) *storetypes.KVStoreKey
- func (app *PellApp) GetMemKey(storeKey string) *storetypes.MemoryStoreKey
- func (app *PellApp) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *PellApp) GetTKey(storeKey string) *storetypes.TransientStoreKey
- func (app *PellApp) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error)
- func (app *PellApp) InterfaceRegistry() types.InterfaceRegistry
- func (app *PellApp) LegacyAmino() *codec.LegacyAmino
- func (app *PellApp) LoadHeight(height int64) error
- func (app *PellApp) ModuleAccountAddrs() map[string]bool
- func (app *PellApp) Name() string
- func (app *PellApp) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error)
- func (app *PellApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *PellApp) RegisterNodeService(clientCtx client.Context, cfg config.Config)
- func (app *PellApp) RegisterTendermintService(clientCtx client.Context)
- func (app *PellApp) RegisterTxService(clientCtx client.Context)
- func (app *PellApp) RegisterUpgradeHandlers()
- func (app *PellApp) SimulationManager() *module.SimulationManager
- func (app *PellApp) TxConfig() client.TxConfig
Constants ¶
const Name = "pellcore"
Variables ¶
var ( AccountAddressPrefix = "pell" NodeDir = ".pellcored" // AddrLen is the allowed length (in bytes) for an address. // // NOTE: In the SDK, the default value is 255. AddrLen = 20 )
var ( // DefaultNodeHome default home directories for wasmd DefaultNodeHome = os.ExpandEnv("$HOME/") + NodeDir // Bech32PrefixAccAddr defines the Bech32 prefix of an account's address Bech32PrefixAccAddr = AccountAddressPrefix // Bech32PrefixAccPub defines the Bech32 prefix of an account's public key Bech32PrefixAccPub = AccountAddressPrefix + sdk.PrefixPublic // Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address Bech32PrefixValAddr = AccountAddressPrefix + sdk.PrefixValidator + sdk.PrefixOperator // Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key Bech32PrefixValPub = AccountAddressPrefix + sdk.PrefixValidator + sdk.PrefixOperator + sdk.PrefixPublic // Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address Bech32PrefixConsAddr = AccountAddressPrefix + sdk.PrefixValidator + sdk.PrefixConsensus // Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key Bech32PrefixConsPub = AccountAddressPrefix + sdk.PrefixValidator + sdk.PrefixConsensus + sdk.PrefixPublic )
var ( FlagGenesisFileValue string FlagParamsFileValue string FlagExportParamsPathValue string FlagExportParamsHeightValue int FlagExportStatePathValue string FlagExportStatsPathValue string FlagSeedValue int64 FlagInitialBlockHeightValue int FlagNumBlocksValue int FlagBlockSizeValue int FlagLeanValue bool FlagCommitValue bool FlagOnOperationValue bool // TODO: Remove in favor of binary search for invariant violation FlagAllInvariantsValue bool FlagEnabledValue bool FlagVerboseValue bool FlagPeriodValue uint FlagGenesisTimeValue int64 )
List of available flags for the simulator
var ( ModuleBasics = module.NewBasicManager( auth.AppModuleBasic{}, genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator), bank.AppModuleBasic{}, capability.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distr.AppModuleBasic{}, gov.NewAppModuleBasic([]govclient.ProposalHandler{ paramsclient.ProposalHandler, }), cparams.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, vesting.AppModuleBasic{}, groupmodule.AppModuleBasic{}, authzmodule.AppModuleBasic{}, nftmodule.AppModuleBasic{}, consensus.AppModuleBasic{}, evm.AppModuleBasic{}, feemarket.AppModuleBasic{}, authoritymodule.AppModuleBasic{}, lightclientmodule.AppModuleBasic{}, xmsgmodule.AppModuleBasic{}, relayermodule.AppModuleBasic{}, pevmmodule.AppModuleBasic{}, emissionsmodule.AppModuleBasic{}, restakingmodule.AppModuleBasic{}, xsecuritymodule.AppModuleBasic{}, wasm.AppModuleBasic{}, ibc.AppModuleBasic{}, ibctm.AppModuleBasic{}, transfer.AppModuleBasic{}, ica.AppModuleBasic{}, ibcfee.AppModuleBasic{}, ) )
Functions ¶
func BlockedAddresses ¶
BlockedAddresses returns all the app's blocked account addresses.
func GetMaccPerms ¶
GetMaccPerms returns a copy of the module account permissions
func GetSimulatorFlags ¶
func GetSimulatorFlags()
GetSimulatorFlags gets the values of all the available simulation flags
func InitGenesisModuleList ¶
func InitGenesisModuleList() []string
func MakeEncodingConfig ¶
func MakeEncodingConfig() simappparams.EncodingConfig
MakeEncodingConfig creates a new EncodingConfig with all modules registered
func NewConfigFromFlags ¶
func NewConfigFromFlags() simulation.Config
NewConfigFromFlags creates a simulation from the retrieved values of the flags.
func RegisterSwaggerAPI ¶
RegisterSwaggerAPI registers swagger route with API Server
func VerifyAddressFormat ¶
VerifyAddressFormat verifies the address is compatible with ethereum
Types ¶
type GenesisState ¶
type GenesisState map[string]json.RawMessage
The genesis state of the blockchain is represented here as a map of raw json messages key'd by a identifier string. The identifier is used to determine which module genesis information belongs to so it may be appropriately routed during init chain. Within this application default genesis information is retrieved from the ModuleBasicManager which populates json from each BasicModule object provided to it during init.
func NewDefaultGenesisState ¶
func NewDefaultGenesisState(cdc codec.JSONCodec) GenesisState
NewDefaultGenesisState generates the default state for the application.
type PellApp ¶
type PellApp struct {
*baseapp.BaseApp
// keepers
AccountKeeper authkeeper.AccountKeeper
BankKeeper bankkeeper.Keeper
CapabilityKeeper *capabilitykeeper.Keeper
StakingKeeper *stakingkeeper.Keeper
SlashingKeeper slashingkeeper.Keeper
DistrKeeper distrkeeper.Keeper
GovKeeper govkeeper.Keeper
CrisisKeeper *crisiskeeper.Keeper
UpgradeKeeper *upgradekeeper.Keeper
ParamsKeeper paramskeeper.Keeper
AuthzKeeper authzkeeper.Keeper
EvidenceKeeper evidencekeeper.Keeper
FeeGrantKeeper feegrantkeeper.Keeper
GroupKeeper groupkeeper.Keeper
NFTKeeper nftkeeper.Keeper
ConsensusParamsKeeper consensusparamkeeper.Keeper
CircuitKeeper circuitkeeper.Keeper
IBCKeeper *ibckeeper.Keeper // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly
IBCFeeKeeper ibcfeekeeper.Keeper
ICAControllerKeeper icacontrollerkeeper.Keeper
ICAHostKeeper icahostkeeper.Keeper
TransferKeeper ibctransferkeeper.Keeper
WasmKeeper wasmkeeper.Keeper
ScopedIBCKeeper capabilitykeeper.ScopedKeeper
ScopedICAHostKeeper capabilitykeeper.ScopedKeeper
ScopedICAControllerKeeper capabilitykeeper.ScopedKeeper
ScopedTransferKeeper capabilitykeeper.ScopedKeeper
ScopedIBCFeeKeeper capabilitykeeper.ScopedKeeper
ScopedWasmKeeper capabilitykeeper.ScopedKeeper
// evm keepers
EvmKeeper *evmkeeper.Keeper
FeeMarketKeeper feemarketkeeper.Keeper
// pellchain keepers
AuthorityKeeper authoritykeeper.Keeper
LightclientKeeper lightclientkeeper.Keeper
XmsgKeeper xmsgkeeper.Keeper
RelayerKeeper *relayerkeeper.Keeper
PevmKeeper pevmkeeper.Keeper
EmissionsKeeper emissionskeeper.Keeper
RestakingKeeper restakingkeeper.Keeper
XSecurityKeeper xsecuritykeeper.Keeper
// the module manager
ModuleManager *module.Manager
BasicModuleManager module.BasicManager
// contains filtered or unexported fields
}
PellApp extends an ABCI application, but with most of its parameters exported. They are exported for convenience in creating helper functions, as object capabilities aren't needed for testing.
func NewPellApp ¶
func NewPellApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, skipUpgradeHeights map[int64]bool, homePath string, invCheckPeriod uint, appOpts servertypes.AppOptions, wasmOpts []wasmkeeper.Option, baseAppOptions ...func(*baseapp.BaseApp), ) *PellApp
NewPellApp returns a reference to an initialized PellApp.
func (*PellApp) Amino ¶
func (app *PellApp) Amino() *codec.LegacyAmino
Amino returns Gaia's InterfaceRegistry
func (*PellApp) AppCodec ¶
AppCodec returns Pell app 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 (*PellApp) AutoCliOpts ¶
func (app *PellApp) AutoCliOpts() autocli.AppOptions
AutoCliOpts returns the autocli options for the app.
func (*PellApp) BeginBlocker ¶
BeginBlocker application updates every begin block
func (*PellApp) BlockedAddrs ¶
func (*PellApp) EndBlocker ¶
EndBlocker application updates every end block
func (*PellApp) ExportAppStateAndValidators ¶
func (app *PellApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs, modulesToExport []string) (servertypes.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*PellApp) GetKey ¶
func (app *PellApp) GetKey(storeKey string) *storetypes.KVStoreKey
GetKey returns the KVStoreKey for the provided store key.
NOTE: This is solely to be used for testing purposes.
func (*PellApp) GetMemKey ¶
func (app *PellApp) GetMemKey(storeKey string) *storetypes.MemoryStoreKey
GetMemKey returns the MemStoreKey for the provided mem key.
NOTE: This is solely used for testing purposes.
func (*PellApp) GetSubspace ¶
func (app *PellApp) GetSubspace(moduleName string) paramstypes.Subspace
GetSubspace returns a param subspace for a given module name.
NOTE: This is solely to be used for testing purposes.
func (*PellApp) GetTKey ¶
func (app *PellApp) GetTKey(storeKey string) *storetypes.TransientStoreKey
GetTKey returns the TransientStoreKey for the provided store key.
NOTE: This is solely to be used for testing purposes.
func (*PellApp) InitChainer ¶
func (app *PellApp) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error)
InitChainer application update at chain initialization
func (*PellApp) InterfaceRegistry ¶
func (app *PellApp) InterfaceRegistry() types.InterfaceRegistry
InterfaceRegistry returns Gaia's InterfaceRegistry
func (*PellApp) LegacyAmino ¶
func (app *PellApp) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns SimApp's amino 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 (*PellApp) LoadHeight ¶
LoadHeight loads a particular height
func (*PellApp) ModuleAccountAddrs ¶
ModuleAccountAddrs returns all the app's module account addresses.
func (*PellApp) PreBlocker ¶
func (app *PellApp) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error)
PreBlocker application updates every pre block
func (*PellApp) RegisterAPIRoutes ¶
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*PellApp) RegisterNodeService ¶
func (*PellApp) RegisterTendermintService ¶
RegisterTendermintService implements the Application.RegisterTendermintService method.
func (*PellApp) RegisterTxService ¶
RegisterTxService implements the Application.RegisterTxService method.
func (*PellApp) RegisterUpgradeHandlers ¶
func (app *PellApp) RegisterUpgradeHandlers()
func (*PellApp) SimulationManager ¶
func (app *PellApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface