Documentation
¶
Index ¶
- Constants
- Variables
- func GetDefaultBypassFeeMessages() []string
- func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, 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) 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) GetSubspace(moduleName string) paramstypes.Subspace
- 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 *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) RegisterSwaggerUI(apiSvr *api.Server) error
- 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 HandlerOptions
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{ v28.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{}, params.AppModuleBasic{}, authzmodule.AppModuleBasic{}, nftmodule.AppModuleBasic{}, consensus.AppModuleBasic{}, crisis.AppModuleBasic{}, mintmodule.AppModuleBasic{}, tokenfactorymodule.AppModuleBasic{}, globalfeemodule.AppModuleBasic{}, feepaymodule.AppModuleBasic{}, feesharemodule.AppModuleBasic{}, dripmodule.AppModuleBasic{}, clockmodule.AppModuleBasic{}, cwhooksmodule.AppModuleBasic{}, ibctm.AppModuleBasic{}, capability.AppModuleBasic{}, ibc.AppModuleBasic{}, transfer.AppModuleBasic{}, ica.AppModuleBasic{}, ibcfee.AppModuleBasic{}, ibc_hooks.AppModuleBasic{}, icq.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 NewAnteHandler ¶
func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
NewAnteHandler returns an AnteHandler that checks and increments sequence numbers, checks signatures & account numbers, and deducts fees from the first signer.
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) 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) GetSubspace ¶
func (app *App) GetSubspace(moduleName string) paramstypes.Subspace
GetSubspace returns a param subspace for a given module name.
NOTE: Still used in ibc-go, wait for them to remove params usage before removing this.
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
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 HandlerOptions ¶
type HandlerOptions struct { ante.HandlerOptions Cdc codec.BinaryCodec TxEncoder sdk.TxEncoder // cosmos sdk GovKeeper govkeeper.Keeper StakingKeeper stakingkeeper.Keeper BondDenom string BankKeeper bankkeeper.Keeper // ibc IBCKeeper *ibckeeper.Keeper // wasm TXCounterStoreService corestoretypes.KVStoreService NodeConfig *wasmtypes.NodeConfig WasmKeeper *wasmkeeper.Keeper // fee modules FeePayKeeper feepaykeeper.Keeper GlobalFeeKeeper globalfeekeeper.Keeper BypassMinFeeMsgTypes []string }
HandlerOptions extends the SDK's AnteHandler options by requiring the IBC channel keeper and a BankKeeper with an added method for fee sharing.