Documentation ¶
Index ¶
- Variables
- func GetWasmEnabledProposals() []wasm.ProposalType
- type AppKeepers
- func (appKeepers *AppKeepers) GenerateKeys()
- func (appKeepers *AppKeepers) GetKVStoreKey() map[string]*sdk.KVStoreKey
- func (appKeepers *AppKeepers) GetKey(storeKey string) *sdk.KVStoreKey
- func (appKeepers *AppKeepers) GetMemKey(storeKey string) *sdk.MemoryStoreKey
- func (appKeepers *AppKeepers) GetMemoryStoreKey() map[string]*sdk.MemoryStoreKey
- func (appKeepers *AppKeepers) GetSubspace(moduleName string) paramstypes.Subspace
- func (appKeepers *AppKeepers) GetTKey(storeKey string) *sdk.TransientStoreKey
- func (appKeepers *AppKeepers) GetTransientStoreKey() map[string]*sdk.TransientStoreKey
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // WasmProposalsEnabled enables all x/wasm proposals when it's value is "true" // and EnableSpecificWasmProposals is empty. Otherwise, all x/wasm proposals // are disabled. WasmProposalsEnabled = "true" // EnableSpecificWasmProposals, if set, must be comma-separated list of values // that are all a subset of "EnableAllProposals", which takes precedence over // WasmProposalsEnabled. // // See: https://github.com/CosmWasm/wasmd/blob/02a54d33ff2c064f3539ae12d75d027d9c665f05/x/wasm/internal/types/proposal.go#L28-L34 EnableSpecificWasmProposals = "" // EmptyWasmOpts defines a type alias for a list of wasm options. EmptyWasmOpts []wasm.Option )
View Source
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 = "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 = "" )
Functions ¶
func GetWasmEnabledProposals ¶
func GetWasmEnabledProposals() []wasm.ProposalType
GetWasmEnabledProposals parses the WasmProposalsEnabled and EnableSpecificWasmProposals values to produce a list of enabled proposals to pass into the application.
Types ¶
type AppKeepers ¶
type AppKeepers struct { // keepers 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 ICAControllerKeeper icacontrollerkeeper.Keeper EvidenceKeeper evidencekeeper.Keeper TransferKeeper wrapkeeper.KeeperTransferWrapper FeeKeeper *feekeeper.Keeper // make scoped keepers public for test purposes ScopedIBCKeeper capabilitykeeper.ScopedKeeper ScopedTransferKeeper capabilitykeeper.ScopedKeeper ScopedInterchainTxsKeeper capabilitykeeper.ScopedKeeper ScopedWasmKeeper capabilitykeeper.ScopedKeeper ScopedICAControllerKeeper capabilitykeeper.ScopedKeeper TaxKeeper taxmodulekeeper.Keeper InterchainTxsKeeper interchaintxskeeper.Keeper InterchainQueriesKeeper interchainquerieskeeper.Keeper ContractManagerKeeper contractmanagermodulekeeper.Keeper WasmKeeper wasm.Keeper WasmConfig wasmtypes.WasmConfig // Modules ContractManagerModule contractmanager.AppModule InterchainTxsModule interchaintxs.AppModule InterchainQueriesModule interchainqueries.AppModule TransferModule transferSudo.AppModule FeeRefunderModule feerefunder.AppModule TaxModule tax.AppModule IcaModule ica.AppModule // contains filtered or unexported fields }
func NewAppKeeper ¶
func NewAppKeeper( appCodec codec.Codec, bApp *baseapp.BaseApp, encodingConfig cosmoscmd.EncodingConfig, maccPerms map[string][]string, blockedAddress map[string]bool, skipUpgradeHeights map[int64]bool, homePath string, invCheckPeriod uint, appOpts servertypes.AppOptions, ) AppKeepers
func (*AppKeepers) GenerateKeys ¶
func (appKeepers *AppKeepers) GenerateKeys()
func (*AppKeepers) GetKVStoreKey ¶
func (appKeepers *AppKeepers) GetKVStoreKey() map[string]*sdk.KVStoreKey
func (*AppKeepers) GetKey ¶
func (appKeepers *AppKeepers) 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 (*AppKeepers) GetMemKey ¶
func (appKeepers *AppKeepers) GetMemKey(storeKey string) *sdk.MemoryStoreKey
GetMemKey returns the MemStoreKey for the provided mem key.
NOTE: This is solely used for testing purposes.
func (*AppKeepers) GetMemoryStoreKey ¶
func (appKeepers *AppKeepers) GetMemoryStoreKey() map[string]*sdk.MemoryStoreKey
func (*AppKeepers) GetSubspace ¶
func (appKeepers *AppKeepers) GetSubspace(moduleName string) paramstypes.Subspace
GetSubspace returns a param subspace for a given module name.
func (*AppKeepers) GetTKey ¶
func (appKeepers *AppKeepers) 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 (*AppKeepers) GetTransientStoreKey ¶
func (appKeepers *AppKeepers) GetTransientStoreKey() map[string]*sdk.TransientStoreKey
Click to show internal directories.
Click to hide internal directories.