Documentation
¶
Index ¶
- Constants
- Variables
- func BlockedAddresses() map[string]bool
- func Config() depinject.Config
- func GetMaccPerms() map[string][]string
- func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
- func RegisterIBC(registry cdctypes.InterfaceRegistry) map[string]appmodule.AppModule
- type App
- func (app *App) AppCodec() codec.Codec
- func (app *App) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs, modulesToExport []string) (servertypes.ExportedApp, error)
- func (app *App) GetCapabilityScopedKeeper(moduleName string) capabilitykeeper.ScopedKeeper
- func (app *App) GetIBCKeeper() *ibckeeper.Keeper
- func (app *App) GetKey(storeKey string) *storetypes.KVStoreKey
- func (app *App) GetMemKey(storeKey string) *storetypes.MemoryStoreKey
- func (app *App) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *App) InterfaceRegistry() codectypes.InterfaceRegistry
- func (app *App) LegacyAmino() *codec.LegacyAmino
- func (app *App) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *App) SimulationManager() *module.SimulationManager
- func (app *App) TxConfig() client.TxConfig
- type GenesisState
- type HandlerOptions
- type SimGenesisAccount
Constants ¶
const ( // AccountAddressPrefix prefix used for generating account address AccountAddressPrefix = "sge" Name = "sge" )
const (
ErrTextVestingAccountStartBeforeEnd = "vesting start-time cannot be before end-time"
)
x/mint module sentinel errors
Variables ¶
Functions ¶
func BlockedAddresses ¶ added in v1.8.1
BlockedAddresses returns all the app's blocked account addresses.
func GetMaccPerms ¶
GetMaccPerms returns a copy of the module account permissions
NOTE: This is solely to be used for testing purposes.
func NewAnteHandler ¶ added in v1.4.5
func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
NewAnteHandler constructor
func RegisterIBC ¶ added in v1.8.1
func RegisterIBC(registry cdctypes.InterfaceRegistry) map[string]appmodule.AppModule
RegisterIBC Since the IBC modules don't support dependency injection, we need to manually register the modules on the client side. This needs to be removed after IBC supports App Wiring.
Types ¶
type App ¶ added in v1.8.1
type App struct { *runtime.App *keepers.AppKeepers // 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 NewApp ¶ added in v1.8.1
func NewApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, appOpts servertypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp), ) (*App, error)
NewApp returns a reference to an initialized Sge.
func (*App) AppCodec ¶ added in v1.8.1
AppCodec returns App'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) ExportAppStateAndValidators ¶ added in v1.8.1
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) GetCapabilityScopedKeeper ¶ added in v1.8.1
func (app *App) GetCapabilityScopedKeeper(moduleName string) capabilitykeeper.ScopedKeeper
GetCapabilityScopedKeeper returns the capability scoped keeper.
func (*App) GetIBCKeeper ¶ added in v1.8.1
GetIBCKeeper returns the IBC keeper.
func (*App) GetKey ¶ added in v1.8.1
func (app *App) GetKey(storeKey string) *storetypes.KVStoreKey
GetKey returns the KVStoreKey for the provided store key.
func (*App) GetMemKey ¶ added in v1.8.1
func (app *App) GetMemKey(storeKey string) *storetypes.MemoryStoreKey
GetMemKey returns the MemoryStoreKey for the provided store key.
func (*App) GetSubspace ¶ added in v1.8.1
func (app *App) GetSubspace(moduleName string) paramstypes.Subspace
GetSubspace returns a param subspace for a given module name.
func (*App) InterfaceRegistry ¶ added in v1.8.1
func (app *App) InterfaceRegistry() codectypes.InterfaceRegistry
InterfaceRegistry returns App's interfaceRegistry.
func (*App) LegacyAmino ¶ added in v1.8.1
func (app *App) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns App'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) RegisterAPIRoutes ¶ added in v1.8.1
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*App) SimulationManager ¶ added in v1.8.1
func (app *App) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface.
type GenesisState ¶
type GenesisState map[string]json.RawMessage
GenesisState is the genesis state of the blockchain and represented here as a map of raw json messages key'd by an 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 ¶ added in v1.4.5
type HandlerOptions struct { ante.HandlerOptions IBCKeeper *keeper.Keeper WasmConfig *wasmTypes.WasmConfig WasmKeeper *wasmkeeper.Keeper TXCounterStoreService corestoretypes.KVStoreService CircuitKeeper *circuitkeeper.Keeper }
HandlerOptions extend the SDK's AnteHandler options by requiring the IBC channel keeper.
type SimGenesisAccount ¶
type SimGenesisAccount struct { *authtypes.BaseAccount // vesting account fields OriginalVesting sdk.Coins `json:"original_vesting" yaml:"original_vesting"` // total vesting coins upon initialization DelegatedFree sdk.Coins `json:"delegated_free" yaml:"delegated_free"` // delegated vested coins at time of delegation DelegatedVesting sdk.Coins `json:"delegated_vesting" yaml:"delegated_vesting"` // delegated vesting coins at time of delegation StartTime int64 `json:"start_time" yaml:"start_time"` // vesting start time (UNIX Epoch time) EndTime int64 `json:"end_time" yaml:"end_time"` // vesting end time (UNIX Epoch time) // module account fields ModuleName string `json:"module_name" yaml:"module_name"` // name of the module account ModulePermissions []string `json:"module_permissions" yaml:"module_permissions"` // permissions of module account }
SimGenesisAccount defines a type that implements the GenesisAccount interface to be used for simulation accounts in the genesis state.
func (SimGenesisAccount) Validate ¶
func (sga SimGenesisAccount) Validate() error
Validate checks for errors on the vesting and module account parameters