Documentation ¶
Index ¶
- Constants
- Variables
- func GetEnabledProposals() []wasm.ProposalType
- func GetMaccPerms() map[string][]string
- func IxoAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
- func MakeCodecs() (codec.Codec, *codec.LegacyAmino)
- func MakeTestEncodingConfig() params.EncodingConfig
- func RegisterSwaggerAPI(ctx client.Context, rtr *mux.Router)
- type GenesisState
- type HandlerOptions
- type IxoApp
- func (app *IxoApp) AppCodec() codec.Codec
- func (app *IxoApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *IxoApp) BlockedAddrs() map[string]bool
- func (app *IxoApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *IxoApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string) (servertypes.ExportedApp, error)
- func (app *IxoApp) GetBaseApp() *baseapp.BaseApp
- func (app *IxoApp) GetKey(storeKey string) *sdk.KVStoreKey
- func (app *IxoApp) GetMemKey(storeKey string) *sdk.MemoryStoreKey
- func (app *IxoApp) GetTKey(storeKey string) *sdk.TransientStoreKey
- func (app *IxoApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- 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) RegisterAPIRoutes(apiSvr *api.Server, apiConfig srvconfig.APIConfig)
- func (app *IxoApp) RegisterTendermintService(clientCtx client.Context)
- func (app *IxoApp) RegisterTxService(clientCtx client.Context)
- func (app *IxoApp) SimulationManager() *module.SimulationManager
Constants ¶
const ( Bech32MainPrefix = "ixo" Bech32PrefixAccAddr = Bech32MainPrefix Bech32PrefixAccPub = Bech32MainPrefix + sdk.PrefixPublic Bech32PrefixValAddr = Bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixOperator Bech32PrefixValPub = Bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixOperator + sdk.PrefixPublic Bech32PrefixConsAddr = Bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixConsensus Bech32PrefixConsPub = Bech32MainPrefix + sdk.PrefixValidator + sdk.PrefixConsensus + sdk.PrefixPublic )
Variables ¶
var ( // DefaultNodeHome default home directories for the application daemon DefaultNodeHome = os.ExpandEnv("$HOME/.ixod") // ModuleBasics defines the module BasicManager which is in charge of setting up basic, // non-dependant module elements, such as codec registration // and genesis verification. ModuleBasics = module.NewBasicManager( auth.AppModuleBasic{}, genutil.AppModuleBasic{}, authzmodule.AppModuleBasic{}, bank.AppModuleBasic{}, capability.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distr.AppModuleBasic{}, sdkparams.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, ibc.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, transfer.AppModuleBasic{}, vesting.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, gov.NewAppModuleBasic( append( wasmclient.ProposalHandlers, paramsclient.ProposalHandler, distrclient.ProposalHandler, upgradeclient.ProposalHandler, upgradeclient.CancelProposalHandler, entityclient.ProposalHandler, tokenclient.ProposalHandler, ibcclientclient.UpdateClientProposalHandler, ibcclientclient.UpgradeProposalHandler, )..., ), wasm.AppModuleBasic{}, ica.AppModuleBasic{}, intertx.AppModuleBasic{}, ibcfee.AppModuleBasic{}, iidmodule.AppModuleBasic{}, bonds.AppModuleBasic{}, entitymodule.AppModuleBasic{}, tokenmodule.AppModuleBasic{}, claimsmodule.AppModuleBasic{}, ) )
var ( // 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 = "false" // 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 = "" )
Functions ¶
func GetEnabledProposals ¶ added in v0.18.0
func GetEnabledProposals() []wasm.ProposalType
func GetMaccPerms ¶ added in v0.14.0
GetMaccPerms returns a copy of the module account permissions
func IxoAnteHandler ¶ added in v0.19.0
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 ¶ added in v0.15.0
func MakeCodecs() (codec.Codec, *codec.LegacyAmino)
MakeCodecs constructs the *std.Codec and *codec.LegacyAmino instances used by ixoapp. It is useful for tests and clients who do not want to construct the full ixoapp.
func MakeTestEncodingConfig ¶ added in v0.15.0
func MakeTestEncodingConfig() params.EncodingConfig
MakeTestEncodingConfig creates an EncodingConfig for testing
Types ¶
type GenesisState ¶ added in v0.14.0
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 ¶ added in v0.14.0
func NewDefaultGenesisState(cdc codec.JSONCodec) GenesisState
NewDefaultGenesisState generates the default state for the application.
type HandlerOptions ¶ added in v0.19.0
type HandlerOptions struct { AccountKeeper authante.AccountKeeper BankKeeper bankkeeper.Keeper FeegrantKeeper authante.FeegrantKeeper IidKeeper iidkeeper.Keeper EntityKeeper entitykeeper.Keeper IBCKeeper *ibckeeper.Keeper SignModeHandler authsigning.SignModeHandler SigGasConsumer func(meter sdk.GasMeter, sig txsigning.SignatureV2, params authtypes.Params) error // contains filtered or unexported fields }
HandlerOptions are the options required for constructing a default SDK AnteHandler.
type IxoApp ¶ added in v0.15.0
type IxoApp struct { *baseapp.BaseApp // keepers AuthzKeeper authzkeeper.Keeper AccountKeeper authkeeper.AccountKeeper BankKeeper bankkeeper.Keeper CapabilityKeeper *capabilitykeeper.Keeper StakingKeeper stakingkeeper.Keeper SlashingKeeper slashingkeeper.Keeper MintKeeper mintkeeper.Keeper DistrKeeper distrkeeper.Keeper GovKeeper govkeeper.Keeper CrisisKeeper crisiskeeper.Keeper UpgradeKeeper upgradekeeper.Keeper ParamsKeeper paramskeeper.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 InterTxKeeper intertxkeeper.Keeper EvidenceKeeper evidencekeeper.Keeper TransferKeeper ibctransferkeeper.Keeper FeeGrantKeeper feegrantkeeper.Keeper WasmKeeper wasm.Keeper // make scoped keepers public for test purposes ScopedIBCKeeper capabilitykeeper.ScopedKeeper ScopedICAHostKeeper capabilitykeeper.ScopedKeeper ScopedICAControllerKeeper capabilitykeeper.ScopedKeeper ScopedInterTxKeeper capabilitykeeper.ScopedKeeper ScopedTransferKeeper capabilitykeeper.ScopedKeeper ScopedWasmKeeper capabilitykeeper.ScopedKeeper ScopedIBCFeeKeeper capabilitykeeper.ScopedKeeper IidKeeper iidmodulekeeper.Keeper EntityKeeper entitykeeper.Keeper TokenKeeper tokenkeeper.Keeper BondsKeeper bondskeeper.Keeper ClaimsKeeper claimsmodulekeeper.Keeper // contains filtered or unexported fields }
Extended ABCI application
func NewIxoApp ¶
func NewIxoApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, skipUpgradeHeights map[int64]bool, homePath string, invCheckPeriod uint, encodingConfig params.EncodingConfig, enabledProposals []wasm.ProposalType, appOpts servertypes.AppOptions, wasmOpts []wasm.Option, baseAppOptions ...func(*baseapp.BaseApp), ) *IxoApp
NewIxoApp returns a reference to an initialized IxoApp.
func (*IxoApp) AppCodec ¶ added in v0.15.0
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) BeginBlocker ¶ added in v0.15.0
func (app *IxoApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker application updates every begin block
func (*IxoApp) BlockedAddrs ¶ added in v0.15.0
BlockedAddrs returns all the app's module account addresses black listed for receiving tokens.
func (*IxoApp) EndBlocker ¶ added in v0.15.0
func (app *IxoApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker application updates every end block
func (*IxoApp) ExportAppStateAndValidators ¶ added in v0.15.0
func (app *IxoApp) ExportAppStateAndValidators( forZeroHeight bool, jailAllowedAddrs []string, ) (servertypes.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*IxoApp) GetBaseApp ¶ added in v0.20.0
GetBaseApp returns the base app of the application
func (*IxoApp) GetKey ¶ added in v0.15.0
func (app *IxoApp) GetKey(storeKey string) *sdk.KVStoreKey
GetKey returns the KVStoreKey for the provided store key.
NOTE: This is solely to be used for testing purposes.
func (*IxoApp) GetMemKey ¶ added in v0.15.0
func (app *IxoApp) GetMemKey(storeKey string) *sdk.MemoryStoreKey
GetMemKey returns the MemStoreKey for the provided mem key.
NOTE: This is solely used for testing purposes.
func (*IxoApp) GetTKey ¶ added in v0.15.0
func (app *IxoApp) GetTKey(storeKey string) *sdk.TransientStoreKey
GetTKey returns the TransientStoreKey for the provided store key.
NOTE: This is solely to be used for testing purposes.
func (*IxoApp) InitChainer ¶ added in v0.15.0
func (app *IxoApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer application update at chain initialization
func (*IxoApp) InterfaceRegistry ¶ added in v0.15.0
func (app *IxoApp) InterfaceRegistry() types.InterfaceRegistry
InterfaceRegistry returns IxoApp's InterfaceRegistry
func (*IxoApp) LegacyAmino ¶ added in v0.15.0
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 ¶ added in v0.15.0
LoadHeight loads a particular height
func (*IxoApp) ModuleAccountAddrs ¶ added in v0.15.0
ModuleAccountAddrs returns all the app's module account addresses.
func (*IxoApp) RegisterAPIRoutes ¶ added in v0.15.0
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*IxoApp) RegisterTendermintService ¶ added in v0.15.0
RegisterTendermintService implements the Application.RegisterTendermintService method.
func (*IxoApp) RegisterTxService ¶ added in v0.15.0
RegisterTxService implements the Application.RegisterTxService method.
func (*IxoApp) SimulationManager ¶ added in v0.15.0
func (app *IxoApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface