Documentation
¶
Index ¶
- Constants
- Variables
- func GetDefaultBypassFeeMessages() []string
- func NewPostHandler(options PostHandlerOptions) (sdk.PostHandler, error)
- type App
- func (app *App) AppCodec() codec.Codec
- func (app *App) AutoCLIOpts(initClientCtx client.Context) autocli.AppOptions
- func (app *App) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error)
- func (app *App) Close() error
- func (app *App) DefaultGenesis() map[string]json.RawMessage
- func (app *App) EndBlocker(ctx sdk.Context) (sdk.EndBlock, error)
- func (app *App) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs, modulesToExport []string) (servertypes.ExportedApp, error)
- func (app *App) GetChainBondDenom() string
- func (app *App) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error)
- func (app *App) InterfaceRegistry() types.InterfaceRegistry
- func (app *App) LegacyAmino() *codec.LegacyAmino
- func (app *App) LoadHeight(height int64) error
- func (*App) ModuleAccountAddrs() map[string]bool
- func (app *App) Name() string
- func (app *App) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error)
- func (app *App) RegisterAPIRoutes(apiSvr *api.Server, _ config.APIConfig)
- func (app *App) RegisterNodeService(clientCtx client.Context, cfg config.Config)
- func (app *App) RegisterTendermintService(clientCtx client.Context)
- func (app *App) RegisterTxService(clientCtx client.Context)
- func (app *App) SimulationManager() *module.SimulationManager
- func (app *App) TxConfig() client.TxConfig
- type GenesisState
- type PostHandlerOptions
Constants ¶
const (
Name = "juno"
)
Variables ¶
var ( NodeDir = ".juno" // DefaultNodeHome default home directories for Juno DefaultNodeHome = os.ExpandEnv("$HOME/") + NodeDir // 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" // 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 = "" Upgrades = []upgrades.Upgrade{ v30.Upgrade, } )
var AppModuleBasics = module.NewBasicManager( genutil.AppModuleBasic{}, auth.AppModuleBasic{}, vesting.AppModuleBasic{}, bank.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, gov.AppModuleBasic{}, slashing.AppModuleBasic{}, distr.AppModuleBasic{}, staking.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, authzmodule.AppModuleBasic{}, consensus.AppModuleBasic{}, mintmodule.AppModuleBasic{}, tokenfactorymodule.AppModuleBasic{}, feepaymodule.AppModuleBasic{}, feemarketmodule.AppModuleBasic{}, feesharemodule.AppModuleBasic{}, dripmodule.AppModuleBasic{}, streammodule.AppModuleBasic{}, clockmodule.AppModuleBasic{}, cwhooksmodule.AppModuleBasic{}, votingsnapshotmodule.AppModuleBasic{}, ibctm.AppModuleBasic{}, capability.AppModuleBasic{}, ibc.AppModuleBasic{}, transfer.AppModuleBasic{}, ica.AppModuleBasic{}, ibchooks.AppModuleBasic{}, packetforward.AppModuleBasic{}, wasm.AppModuleBasic{}, )
AppModuleBasics returns AppModuleBasics for the module BasicManager. used only for pre-init stuff like DefaultGenesis generation.
Functions ¶
func GetDefaultBypassFeeMessages ¶
func GetDefaultBypassFeeMessages() []string
func NewPostHandler ¶
func NewPostHandler(options PostHandlerOptions) (sdk.PostHandler, error)
NewPostHandler returns a PostHandler chain with the fee deduct decorator.
Types ¶
type App ¶
type App struct {
*baseapp.BaseApp
// keepers
AppKeepers keepers.AppKeepers
// modules
ModuleManager *module.Manager
BasicModuleManager module.BasicManager
// contains filtered or unexported fields
}
App 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 New ¶
func New( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, homePath string, appOpts servertypes.AppOptions, wasmOpts []wasmkeeper.Option, baseAppOptions ...func(*baseapp.BaseApp), ) *App
New returns a reference to an initialized Juno.
func (*App) AppCodec ¶
AppCodec returns Juno'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 (*App) AutoCLIOpts ¶
func (app *App) AutoCLIOpts(initClientCtx client.Context) autocli.AppOptions
AutoCLIOpts returns options based upon the modules used on Juno.
func (*App) BeginBlocker ¶
BeginBlocker application updates every begin block
func (*App) Close ¶
Close stops the stream dispatcher and performs cleanup and then shuts down the node
func (*App) DefaultGenesis ¶
func (app *App) DefaultGenesis() map[string]json.RawMessage
DefaultGenesis returns a default genesis from the registered AppModuleBasic's.
func (*App) EndBlocker ¶
EndBlocker application updates every end block
func (*App) ExportAppStateAndValidators ¶
func (app *App) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs, modulesToExport []string) (servertypes.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*App) GetChainBondDenom ¶
func (*App) InitChainer ¶
func (app *App) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error)
InitChainer application update at chain initialization
func (*App) InterfaceRegistry ¶
func (app *App) InterfaceRegistry() types.InterfaceRegistry
InterfaceRegistry returns Juno's InterfaceRegistry
func (*App) LegacyAmino ¶
func (app *App) 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 (*App) LoadHeight ¶
LoadHeight loads a particular height
func (*App) ModuleAccountAddrs ¶
ModuleAccountAddrs returns all the app's module account addresses.
func (*App) PreBlocker ¶
func (app *App) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error)
PreBlocker application updates every pre block
func (*App) RegisterAPIRoutes ¶
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*App) RegisterNodeService ¶
func (*App) RegisterTendermintService ¶
RegisterTendermintService implements the Application.RegisterTendermintService method.
func (*App) RegisterTxService ¶
RegisterTxService implements the Application.RegisterTxService method.
func (*App) SimulationManager ¶
func (app *App) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface
type GenesisState ¶
type GenesisState map[string]json.RawMessage
GenesisState 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 PostHandlerOptions ¶
type PostHandlerOptions struct {
AccountKeeper authkeeper.AccountKeeper
BankKeeper bankkeeper.Keeper
FeeMarketKeeper feemarketkeeper.Keeper
FeePayKeeper feepaykeeper.Keeper
StakingKeeper feemarkettypes.StakingKeeper
}
PostHandlerOptions are the options required for constructing a FeeMarket PostHandler.