Documentation ¶
Index ¶
- Constants
- Variables
- func FuryAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
- func GetEnabledProposals() []wasm.ProposalType
- func GetMaccPerms() map[string][]string
- func MakeCodecs() (codec.Codec, *codec.LegacyAmino)
- func MakeTestEncodingConfig() params.EncodingConfig
- func RegisterSwaggerAPI(ctx client.Context, rtr *mux.Router)
- type FuryApp
- func (app *FuryApp) AppCodec() codec.Codec
- func (app *FuryApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *FuryApp) BlockedAddrs() map[string]bool
- func (app *FuryApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *FuryApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string) (servertypes.ExportedApp, error)
- func (app *FuryApp) GetKey(storeKey string) *sdk.KVStoreKey
- func (app *FuryApp) GetMemKey(storeKey string) *sdk.MemoryStoreKey
- func (app *FuryApp) GetSubspace(moduleName string) paramstypes.Subspace
- func (app *FuryApp) GetTKey(storeKey string) *sdk.TransientStoreKey
- func (app *FuryApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *FuryApp) InterfaceRegistry() types.InterfaceRegistry
- func (app *FuryApp) LegacyAmino() *codec.LegacyAmino
- func (app *FuryApp) LoadHeight(height int64) error
- func (app *FuryApp) ModuleAccountAddrs() map[string]bool
- func (app *FuryApp) Name() string
- func (app *FuryApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig srvconfig.APIConfig)
- func (app *FuryApp) RegisterTendermintService(clientCtx client.Context)
- func (app *FuryApp) RegisterTxService(clientCtx client.Context)
- func (app *FuryApp) SimulationManager() *module.SimulationManager
- type GenesisState
- type HandlerOptions
- type KVStoreKey
Constants ¶
const ( Bech32MainPrefix = "fury" 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/.furyd") // 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{}, iidmodule.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, gov.NewAppModuleBasic( append( wasmclient.ProposalHandlers, paramsclient.ProposalHandler, distrclient.ProposalHandler, upgradeclient.ProposalHandler, upgradeclient.CancelProposalHandler, entityclient.ProposalHandler, tokenclient.ProposalHandler, )..., ), wasm.AppModuleBasic{}, bonds.AppModuleBasic{}, payments.AppModuleBasic{}, project.AppModuleBasic{}, entitymodule.AppModuleBasic{}, tokenmodule.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 FuryAnteHandler ¶
func FuryAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
func GetEnabledProposals ¶
func GetEnabledProposals() []wasm.ProposalType
func GetMaccPerms ¶
GetMaccPerms returns a copy of the module account permissions
func MakeCodecs ¶
func MakeCodecs() (codec.Codec, *codec.LegacyAmino)
MakeCodecs constructs the *std.Codec and *codec.LegacyAmino instances used by furyapp. It is useful for tests and clients who do not want to construct the full furyapp.
func MakeTestEncodingConfig ¶
func MakeTestEncodingConfig() params.EncodingConfig
MakeTestEncodingConfig creates an EncodingConfig for testing
Types ¶
type FuryApp ¶
type FuryApp struct { *baseapp.BaseApp `json:"_bam_base_app,omitempty"` // keepers AuthzKeeper authzkeeper.Keeper `json:"authz_keeper"` AccountKeeper authkeeper.AccountKeeper `json:"account_keeper"` BankKeeper bankkeeper.Keeper `json:"bank_keeper,omitempty"` CapabilityKeeper *capabilitykeeper.Keeper `json:"capability_keeper,omitempty"` StakingKeeper stakingkeeper.Keeper `json:"staking_keeper"` SlashingKeeper slashingkeeper.Keeper `json:"slashing_keeper"` MintKeeper mintkeeper.Keeper `json:"mint_keeper"` DistrKeeper distrkeeper.Keeper `json:"distr_keeper"` GovKeeper govkeeper.Keeper `json:"gov_keeper"` CrisisKeeper crisiskeeper.Keeper `json:"crisis_keeper"` UpgradeKeeper upgradekeeper.Keeper `json:"upgrade_keeper"` ParamsKeeper paramskeeper.Keeper `json:"params_keeper"` IBCKeeper *ibckeeper.Keeper `json:"ibc_keeper,omitempty"` // IBC Keeper must be a pointer in the app, so we can SetRouter on it correctly EvidenceKeeper evidencekeeper.Keeper `json:"evidence_keeper"` TransferKeeper ibctransferkeeper.Keeper `json:"transfer_keeper"` FeeGrantKeeper feegrantkeeper.Keeper `json:"feegrant_keeper"` WasmKeeper wasm.Keeper `json:"wasm_keeper"` // make scoped keepers public for test purposes ScopedIBCKeeper capabilitykeeper.ScopedKeeper `json:"scoped_ibc_keeper"` ScopedTransferKeeper capabilitykeeper.ScopedKeeper `json:"scoped_transfer_keeper"` IidKeeper iidmodulekeeper.Keeper `json:"iid_keeper"` EntityKeeper entitykeeper.Keeper `json:"entity_keeper"` TokenKeeper tokenkeeper.Keeper `json:"token_keeper"` BondsKeeper bondskeeper.Keeper `json:"bonds_keeper"` PaymentsKeeper paymentskeeper.Keeper `json:"payments_keeper,omitempty"` ProjectKeeper projectkeeper.Keeper `json:"project_keeper"` // contains filtered or unexported fields }
Extended ABCI application
func NewFuryApp ¶
func NewFuryApp( 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), ) *FuryApp
NewFuryApp returns a reference to an initialized FuryApp.
func (*FuryApp) AppCodec ¶
AppCodec returns FuryApp'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 (*FuryApp) BeginBlocker ¶
func (app *FuryApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker application updates every begin block
func (*FuryApp) BlockedAddrs ¶
BlockedAddrs returns all the app's module account addresses black listed for receiving tokens.
func (*FuryApp) EndBlocker ¶
func (app *FuryApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker application updates every end block
func (*FuryApp) ExportAppStateAndValidators ¶
func (app *FuryApp) ExportAppStateAndValidators( forZeroHeight bool, jailAllowedAddrs []string, ) (servertypes.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*FuryApp) GetKey ¶
func (app *FuryApp) 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 (*FuryApp) GetMemKey ¶
func (app *FuryApp) GetMemKey(storeKey string) *sdk.MemoryStoreKey
GetMemKey returns the MemStoreKey for the provided mem key.
NOTE: This is solely used for testing purposes.
func (*FuryApp) GetSubspace ¶
func (app *FuryApp) GetSubspace(moduleName string) paramstypes.Subspace
GetSubspace returns a param subspace for a given module name.
NOTE: This is solely to be used for testing purposes.
func (*FuryApp) GetTKey ¶
func (app *FuryApp) 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 (*FuryApp) InitChainer ¶
func (app *FuryApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer application update at chain initialization
func (*FuryApp) InterfaceRegistry ¶
func (app *FuryApp) InterfaceRegistry() types.InterfaceRegistry
InterfaceRegistry returns FuryApp's InterfaceRegistry
func (*FuryApp) LegacyAmino ¶
func (app *FuryApp) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns FuryApp'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 (*FuryApp) LoadHeight ¶
LoadHeight loads a particular height
func (*FuryApp) ModuleAccountAddrs ¶
ModuleAccountAddrs returns all the app's module account addresses.
func (*FuryApp) RegisterAPIRoutes ¶
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*FuryApp) RegisterTendermintService ¶
RegisterTendermintService implements the Application.RegisterTendermintService method.
func (*FuryApp) RegisterTxService ¶
RegisterTxService implements the Application.RegisterTxService method.
func (*FuryApp) SimulationManager ¶
func (app *FuryApp) 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 { AccountKeeper projectante.AccountKeeper BankKeeper bankkeeper.Keeper FeegrantKeeper authante.FeegrantKeeper IidKeeper iidkeeper.Keeper ProjectKeeper projectkeeper.Keeper SignModeHandler authsigning.SignModeHandler SigGasConsumer func(meter sdk.GasMeter, sig txsigning.SignatureV2, params authtypes.Params) error // contains filtered or unexported fields }
type KVStoreKey ¶
type KVStoreKey struct {
// contains filtered or unexported fields
}