Documentation ¶
Index ¶
- Variables
- func GetEncodingConfig() params.EncodingConfig
- func GetMaccPerms() map[string][]string
- func IxoAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
- func MakeCodecs() (codec.Codec, *codec.LegacyAmino)
- func MakeEncodingConfig() params.EncodingConfig
- func NewIxoAnteHandler(options HandlerOptions) sdk.AnteHandler
- func NewPostHandler(cdc codec.Codec, smartAccountKeeper *smartaccountkeeper.Keeper, ...) sdk.PostHandler
- func NewTestNetworkFixture() network.TestFixture
- func OrderBeginBlockers() []string
- func OrderEndBlockers() []string
- func OrderInitGenesis() []string
- func RegisterSwaggerAPI(_ client.Context, rtr *mux.Router, swaggerEnabled bool) error
- type GenesisState
- type HandlerOptions
- type IxoApp
- func (app *IxoApp) AppCodec() codec.Codec
- func (app *IxoApp) AutoCliOpts() autocli.AppOptions
- func (app *IxoApp) BeginBlocker(ctx sdk.Context) (sdk.BeginBlock, error)
- func (app *IxoApp) BlockedAddresses() map[string]bool
- func (app *IxoApp) DefaultGenesis() map[string]json.RawMessage
- func (app *IxoApp) EndBlocker(ctx sdk.Context) (sdk.EndBlock, error)
- func (app *IxoApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string) (servertypes.ExportedApp, error)
- func (app *IxoApp) ExportState(ctx sdk.Context) map[string]json.RawMessage
- func (app *IxoApp) GetBaseApp() *baseapp.BaseApp
- func (app *IxoApp) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error)
- func (app *IxoApp) InterfaceRegistry() types.InterfaceRegistry
- func (app *IxoApp) LegacyAmino() *codec.LegacyAmino
- func (app *IxoApp) LoadHeight(height int64) error
- func (app *IxoApp) ModuleAccountAddrs() map[string]bool
- func (app *IxoApp) Name() string
- func (app *IxoApp) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error)
- func (app *IxoApp) Precommitter(ctx sdk.Context)
- func (app *IxoApp) PrepareCheckStater(ctx sdk.Context)
- func (app *IxoApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig srvconfig.APIConfig)
- func (app *IxoApp) RegisterNodeService(clientCtx client.Context, cfg srvconfig.Config)
- func (app *IxoApp) RegisterTendermintService(clientCtx client.Context)
- func (app *IxoApp) RegisterTxService(clientCtx client.Context)
- func (app *IxoApp) SimulationManager() *module.SimulationManager
- func (app *IxoApp) TxConfig() client.TxConfig
Constants ¶
This section is empty.
Variables ¶
var ( // DefaultNodeHome default home directories for the application daemon DefaultNodeHome string // scheduled upgrades and forks Upgrades = []upgrades.Upgrade{v2.Upgrade, v3.Upgrade, v4.Upgrade} Forks = []upgrades.Fork{} // EmptyWasmOpts defines a type alias for a list of wasm options. EmptyWasmOpts []wasmkeeper.Option )
Functions ¶
func GetEncodingConfig ¶
func GetEncodingConfig() params.EncodingConfig
func GetMaccPerms ¶
GetMaccPerms returns a copy of the module account permissions
func IxoAnteHandler ¶
func IxoAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
IxoAnteHandler returns an AnteHandler that checks and increments sequence numbers, checks signatures & account numbers, and deducts fees from the first signer.
func MakeCodecs ¶
func MakeCodecs() (codec.Codec, *codec.LegacyAmino)
MakeCodecs returns the application codec and a legacy Amino codec.
func MakeEncodingConfig ¶
func MakeEncodingConfig() params.EncodingConfig
MakeEncodingConfig creates an EncodingConfig.
func NewIxoAnteHandler ¶
func NewIxoAnteHandler(options HandlerOptions) sdk.AnteHandler
NewIxoAnteHandler returns a new sdk.AnteHandler or panics if fail to create.
func NewPostHandler ¶
func NewPostHandler( cdc codec.Codec, smartAccountKeeper *smartaccountkeeper.Keeper, accountKeeper authkeeper.AccountKeeper, sigModeHandler *txsigning.HandlerMap, ) sdk.PostHandler
func NewTestNetworkFixture ¶
func NewTestNetworkFixture() network.TestFixture
NewTestNetworkFixture returns a new ixo simapp AppConstructor for network simulation tests
func OrderBeginBlockers ¶
func OrderBeginBlockers() []string
OrderBeginBlockers returns the order of BeginBlockers, by module name.
func OrderEndBlockers ¶
func OrderEndBlockers() []string
OrderEndBlockers returns EndBlockers (crisis, govtypes, staking) with no relative order.
func OrderInitGenesis ¶
func OrderInitGenesis() []string
OrderInitGenesis returns module names in order for init genesis calls.
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.
type HandlerOptions ¶
type HandlerOptions struct { authante.HandlerOptions IidKeeper iidkeeper.Keeper EntityKeeper entitykeeper.Keeper WasmConfig wasmtypes.WasmConfig IBCKeeper *ibckeeper.Keeper TxCounterStoreKey corestoretypes.KVStoreService // contains filtered or unexported fields }
HandlerOptions are the options required for constructing a default SDK AnteHandler.
type IxoApp ¶
type IxoApp struct { *baseapp.BaseApp keepers.AppKeepers // the module manager ModuleManager *module.Manager BasicModuleManager module.BasicManager // contains filtered or unexported fields }
IxoApp 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 NewIxoApp ¶
func NewIxoApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, skipUpgradeHeights map[int64]bool, homePath string, appOpts servertypes.AppOptions, wasmOpts []wasmkeeper.Option, baseAppOptions ...func(*baseapp.BaseApp), ) *IxoApp
NewIxoApp returns a reference to an initialized IxoApp.
func (*IxoApp) AppCodec ¶
AppCodec returns IxoApp'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 (*IxoApp) AutoCliOpts ¶
func (app *IxoApp) AutoCliOpts() autocli.AppOptions
AutoCliOpts returns the autocli options for the app.
func (*IxoApp) BeginBlocker ¶
BeginBlocker application updates every begin block
func (*IxoApp) BlockedAddresses ¶
BlockedAddrs returns all the app's module account addresses that are not allowed to receive external tokens.
func (*IxoApp) DefaultGenesis ¶
func (app *IxoApp) DefaultGenesis() map[string]json.RawMessage
DefaultGenesis returns a default genesis from the registered AppModuleBasic's.
func (*IxoApp) EndBlocker ¶
EndBlocker application updates every end block
func (*IxoApp) ExportAppStateAndValidators ¶
func (app *IxoApp) ExportAppStateAndValidators( forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string, ) (servertypes.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*IxoApp) ExportState ¶
func (*IxoApp) GetBaseApp ¶
GetBaseApp returns the base app of the application
func (*IxoApp) InitChainer ¶
func (app *IxoApp) InitChainer(ctx sdk.Context, req *abci.RequestInitChain) (*abci.ResponseInitChain, error)
InitChainer application update at chain initialization
func (*IxoApp) InterfaceRegistry ¶
func (app *IxoApp) InterfaceRegistry() types.InterfaceRegistry
InterfaceRegistry returns IxoApp's InterfaceRegistry
func (*IxoApp) LegacyAmino ¶
func (app *IxoApp) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns IxoApp'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 (*IxoApp) LoadHeight ¶
LoadHeight loads a particular height
func (*IxoApp) ModuleAccountAddrs ¶
ModuleAccountAddrs returns all the app's module account addresses.
func (*IxoApp) PreBlocker ¶
func (app *IxoApp) PreBlocker(ctx sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error)
PreBlocker application updates before each begin block.
func (*IxoApp) Precommitter ¶
Precommitter application updates before the commital of a block after all transactions have been delivered.
func (*IxoApp) PrepareCheckStater ¶
func (*IxoApp) RegisterAPIRoutes ¶
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*IxoApp) RegisterNodeService ¶
RegisterNodeService registers the node gRPC Query service.
func (*IxoApp) RegisterTendermintService ¶
RegisterTendermintService implements the Application.RegisterTendermintService method.
func (*IxoApp) RegisterTxService ¶
RegisterTxService implements the Application.RegisterTxService method.
func (*IxoApp) SimulationManager ¶
func (app *IxoApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface