app

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 133 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name defines the application binary name
	Name = "uptickd"

	// ProposalsEnabled If EnabledSpecificProposals is "", and this is "true", then enable all x/wasm proposals.
	// If EnabledSpecificProposals is "", and this is not "true", then disable all x/wasm proposals.
	ProposalsEnabled = "true"
	// EnableSpecificProposals If set to non-empty string it must be comma-separated list of values that are all a subset
	// of "EnableAllProposals" (takes precedence over ProposalsEnabled)
	// https://github.com/CosmWasm/wasmd/blob/02a54d33ff2c064f3539ae12d75d027d9c665f05/x/wasm/internal/types/proposal.go#L28-L34
	EnableSpecificProposals = ""
)

Variables

View Source
var (
	// DefaultNodeHome default home directories for the application daemon
	DefaultNodeHome string
)

Functions

func CustomizeDefaultGenesis added in v0.4.0

func CustomizeDefaultGenesis(cdc codec.JSONCodec, genesis evmostypes.GenesisState)

CustomizeDefaultGenesis overlays Uptick-specific defaults onto a BasicManager genesis map. cosmos/evm defaults EvmDenom to "aatom"; Uptick uses "auptick" and must also inject matching bank denom metadata.

func NoOpMempoolOption added in v0.3.0

func NoOpMempoolOption() func(*baseapp.BaseApp)

NoOpMempoolOption returns a function that sets up a no-op mempool for the given BaseApp.

The function takes a pointer to a BaseApp as a parameter and returns nothing.

func ObservabilityViews

func ObservabilityViews() (views []*view.View)

func RegisterSwaggerAPI

func RegisterSwaggerAPI(_ client.Context, rtr *mux.Router)

RegisterSwaggerAPI registers swagger route with API Server

func SigVerificationGasConsumer

func SigVerificationGasConsumer(
	meter storetypes.GasMeter, sig signing.SignatureV2, params authtypes.Params,
) error

SigVerificationGasConsumer is the Uptick implementation of SignatureVerificationGasConsumer. It consumes gas for signature verification based upon the public key type. The cost is fetched from the given params and is matched by the concrete type. The types of keys supported are:

- ethsecp256k1 (Ethereum keys)

- ed25519 (Validators)

- multisig (Cosmos SDK multisigs)

Types

type Uptick

type Uptick struct {
	*baseapp.BaseApp
	keepers.AppKeepers
	// contains filtered or unexported fields
}

Uptick implements an extended ABCI application. It is an application that may process transactions through Ethereum's EVM running atop of Tendermint consensus.

func NewUptick

func NewUptick(
	logger log.Logger,
	db dbm.DB,
	traceStore io.Writer,
	loadLatest bool,
	appOpts servertypes.AppOptions,
	wasmOpts []wasmkeeper.Option,
	baseAppOptions ...func(*baseapp.BaseApp),
) *Uptick

NewUptick returns a reference to a new initialized Uptick application.

func (*Uptick) AppCodec

func (app *Uptick) AppCodec() codec.Codec

AppCodec returns Uptick's 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 (*Uptick) AutoCliOpts added in v0.3.0

func (app *Uptick) AutoCliOpts() autocli.AppOptions

AutoCliOpts returns the autocli options for the app.

func (*Uptick) BasicManager added in v0.3.0

func (app *Uptick) BasicManager() module.BasicManager

BasicManager return the basic manager

func (*Uptick) BeginBlocker

func (app *Uptick) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error)

BeginBlocker application updates every begin block

func (*Uptick) BlockedAddrs

func (app *Uptick) BlockedAddrs() map[string]bool

BlockedAddrs returns all the app's module account addresses that are not allowed to receive external tokens.

func (*Uptick) BlockedModuleAccountAddrs added in v0.2.16

func (app *Uptick) BlockedModuleAccountAddrs() map[string]bool

BlockedModuleAccountAddrs returns all the app's blocked module account addresses.

func (*Uptick) DefaultGenesis added in v0.3.0

func (app *Uptick) DefaultGenesis() evmostypes.GenesisState

DefaultGenesis returns a default genesis from the registered AppModuleBasic's.

func (*Uptick) EncodingConfig added in v0.3.0

func (app *Uptick) EncodingConfig() uptickparams.EncodingConfig

EncodingConfig returns Uptick's EncodingConfig

func (*Uptick) EndBlocker

func (app *Uptick) EndBlocker(ctx sdk.Context) (sdk.EndBlock, error)

EndBlocker application updates every end block

func (*Uptick) ExportAppStateAndValidators

func (app *Uptick) ExportAppStateAndValidators(
	forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string,
) (servertypes.ExportedApp, error)

ExportAppStateAndValidators exports the state of the application for a genesis file.

func (*Uptick) GetBaseApp

func (app *Uptick) GetBaseApp() *baseapp.BaseApp

GetBaseApp implements the TestingApp interface.

func (*Uptick) GetIBCKeeper

func (app *Uptick) GetIBCKeeper() *ibckeeper.Keeper

GetIBCKeeper implements the TestingApp interface.

func (*Uptick) GetMempool added in v0.4.0

func (app *Uptick) GetMempool() mempool.ExtMempool

GetMempool returns the app's mempool. Required by cosmos/evm server.Application interface.

func (*Uptick) GetScopedIBCKeeper

func (app *Uptick) GetScopedIBCKeeper() interface{}

GetScopedIBCKeeper implements the TestingApp interface.

func (*Uptick) GetStakingKeeper

func (app *Uptick) GetStakingKeeper() stakingkeeper.Keeper

GetStakingKeeper implements the TestingApp interface.

func (*Uptick) GetSubspace

func (app *Uptick) 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 (*Uptick) GetTxConfig

func (app *Uptick) GetTxConfig() client.TxConfig

GetTxConfig implements the TestingApp interface.

func (*Uptick) InitChainer

func (app *Uptick) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error)

InitChainer application update at chain initialization

func (*Uptick) InterfaceRegistry

func (app *Uptick) InterfaceRegistry() types.InterfaceRegistry

InterfaceRegistry returns Uptick's InterfaceRegistry

func (*Uptick) LegacyAmino

func (app *Uptick) LegacyAmino() *codec.LegacyAmino

LegacyAmino returns Uptick'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 (*Uptick) LoadHeight

func (app *Uptick) LoadHeight(height int64) error

LoadHeight loads state at a particular height

func (*Uptick) ModuleAccountAddrs

func (app *Uptick) ModuleAccountAddrs() map[string]bool

ModuleAccountAddrs returns all the app's module account addresses.

func (*Uptick) Name

func (app *Uptick) Name() string

Name returns the name of the App

func (*Uptick) PreBlocker added in v0.3.0

func (app *Uptick) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error)

PreBlocker application updates every pre block

func (*Uptick) RegisterAPIRoutes

func (app *Uptick) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)

RegisterAPIRoutes registers all application module routes with the provided API server.

func (*Uptick) RegisterNodeService added in v0.2.16

func (app *Uptick) RegisterNodeService(clientCtx client.Context, c config.Config)

RegisterNodeService registers the node gRPC service on the provided

func (*Uptick) RegisterPendingTxListener added in v0.4.0

func (app *Uptick) RegisterPendingTxListener(listener func(common.Hash))

RegisterPendingTxListener registers a pending tx listener. Required by cosmos/evm server.Application interface.

func (*Uptick) RegisterTendermintService

func (app *Uptick) RegisterTendermintService(clientCtx client.Context)

RegisterTendermintService implements the Application.RegisterTendermintService method.

func (*Uptick) RegisterTxService

func (app *Uptick) RegisterTxService(clientCtx client.Context)

func (*Uptick) RegisterUpgradePlans added in v0.3.0

func (app *Uptick) RegisterUpgradePlans()

RegisterUpgradePlans register a handler of upgrade plan

func (*Uptick) SetClientCtx added in v0.4.0

func (app *Uptick) SetClientCtx(clientCtx client.Context)

SetClientCtx sets the client context on the app. Required by cosmos/evm server.Application interface.

func (*Uptick) SimulationManager

func (app *Uptick) 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).
Package precompiles provides Uptick's EVM static precompile configuration.
Package precompiles provides Uptick's EVM static precompile configuration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL