Documentation ¶
Index ¶
- Variables
- func GetEnabledProposals() []wasm.ProposalType
- func GetMaccPerms() map[string][]string
- func MakeEncodingConfig() appparams.EncodingConfig
- func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
- func RegisterSwaggerAPI(_ client.Context, rtr *mux.Router)
- type EmptyAppOptions
- type FuryunderverseApp
- func (app *FuryunderverseApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *FuryunderverseApp) BlockedAddrs() map[string]bool
- func (app *FuryunderverseApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *FuryunderverseApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs []string) (servertypes.ExportedApp, error)
- func (app *FuryunderverseApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *FuryunderverseApp) LegacyAmino() *codec.LegacyAmino
- func (app *FuryunderverseApp) LoadHeight(height int64) error
- func (app *FuryunderverseApp) ModuleAccountAddrs() map[string]bool
- func (app *FuryunderverseApp) Name() string
- func (app *FuryunderverseApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *FuryunderverseApp) RegisterNodeService(clientCtx client.Context)
- func (app *FuryunderverseApp) RegisterTendermintService(clientCtx client.Context)
- func (app *FuryunderverseApp) RegisterTxService(clientCtx client.Context)
- func (app *FuryunderverseApp) SimulationManager() *module.SimulationManager
- type GenesisState
- type HandlerOptions
- type MinCommissionDecorator
- type TestSupport
- func (s TestSupport) AppCodec() codec.Codec
- func (s TestSupport) BankKeeper() bankkeeper.Keeper
- func (s TestSupport) IBCKeeper() ibckeeper.Keeper
- func (s TestSupport) StakingKeeper() stakingkeeper.Keeper
- func (s TestSupport) TransferKeeper() ibctransferkeeper.Keeper
- func (s TestSupport) WasmKeeper() wasm.Keeper
Constants ¶
This section is empty.
Variables ¶
var ( NodeDir = ".furyad" BinaryVersion = "v0.41.2" // 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/furyunderverse/furya/blob/02a54d33ff2c064f3539ae12d75d027d9c665f05/x/wasm/internal/types/proposal.go#L28-L34 EnableSpecificProposals = "" )
We pull these out so we can set them with LDFLAGS in the Makefile
var ( // DefaultNodeHome default home directories for wasmd DefaultNodeHome = os.ExpandEnv("$PWD/") + NodeDir // Bech32PrefixAccAddr defines the Bech32 prefix of an account's address Bech32PrefixAccAddr = appconfig.Bech32Prefix // Bech32PrefixAccPub defines the Bech32 prefix of an account's public key Bech32PrefixAccPub = appconfig.Bech32Prefix + sdk.PrefixPublic // Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address Bech32PrefixValAddr = appconfig.Bech32Prefix + sdk.PrefixValidator + sdk.PrefixOperator // Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key Bech32PrefixValPub = appconfig.Bech32Prefix + sdk.PrefixValidator + sdk.PrefixOperator + sdk.PrefixPublic // Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address Bech32PrefixConsAddr = appconfig.Bech32Prefix + sdk.PrefixValidator + sdk.PrefixConsensus // Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key Bech32PrefixConsPub = appconfig.Bech32Prefix + sdk.PrefixValidator + sdk.PrefixConsensus + sdk.PrefixPublic )
These constants are derived from the above variables. These are the ones we will want to use in the code, based on any overrides above
var ( // ModuleBasics defines the module BasicManager 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{}, bank.AppModuleBasic{}, capability.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distr.AppModuleBasic{}, gov.NewAppModuleBasic( append( wasmclient.ProposalHandlers, paramsclient.ProposalHandler, distrclient.ProposalHandler, upgradeclient.ProposalHandler, upgradeclient.CancelProposalHandler, ibcclientclient.UpdateClientProposalHandler, ibcclientclient.UpgradeProposalHandler, )..., ), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, ibc.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, transfer.AppModuleBasic{}, vesting.AppModuleBasic{}, feegrantmodule.AppModuleBasic{}, authzmodule.AppModuleBasic{}, wasm.AppModuleBasic{}, ica.AppModuleBasic{}, intertx.AppModuleBasic{}, ibcfee.AppModuleBasic{}, ) )
Functions ¶
func GetEnabledProposals ¶
func GetEnabledProposals() []wasm.ProposalType
GetEnabledProposals parses the ProposalsEnabled / EnableSpecificProposals values to produce a list of enabled proposals to pass into wasmd app.
func GetMaccPerms ¶
GetMaccPerms returns a copy of the module account permissions
func MakeEncodingConfig ¶
func MakeEncodingConfig() appparams.EncodingConfig
MakeEncodingConfig creates an EncodingConfig for gravity.
func NewAnteHandler ¶
func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
NewAnteHandler returns an AnteHandler that checks and increments sequence numbers, checks signatures & account numbers, and deducts fees from the first signer.
Types ¶
type EmptyAppOptions ¶
type EmptyAppOptions struct{}
EmptyAppOptions is a stub implementing AppOptions
func (EmptyAppOptions) Get ¶
func (ao EmptyAppOptions) Get(o string) interface{}
Get implements AppOptions
type FuryunderverseApp ¶
FuryunderverseApp extended ABCI application
func NewFuryunderverseApp ¶
func NewFuryunderverseApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, skipUpgradeHeights map[int64]bool, homePath string, invCheckPeriod uint, encodingConfig appparams.EncodingConfig, enabledProposals []wasm.ProposalType, appOpts servertypes.AppOptions, wasmOpts []wasm.Option, baseAppOptions ...func(*baseapp.BaseApp)) *FuryunderverseApp
NewFuryunderverseApp returns a reference to an initialized FuryunderverseApp.
func (*FuryunderverseApp) BeginBlocker ¶
func (app *FuryunderverseApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
application updates every begin block
func (*FuryunderverseApp) BlockedAddrs ¶
func (app *FuryunderverseApp) BlockedAddrs() map[string]bool
BlockedAddrs returns all the app's module account addresses that are not allowed to receive external tokens.
func (*FuryunderverseApp) EndBlocker ¶
func (app *FuryunderverseApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker application updates every end block
func (*FuryunderverseApp) ExportAppStateAndValidators ¶
func (app *FuryunderverseApp) ExportAppStateAndValidators( forZeroHeight bool, jailAllowedAddrs []string, ) (servertypes.ExportedApp, error)
ExportAppStateAndValidators exports the state of the application for a genesis file.
func (*FuryunderverseApp) InitChainer ¶
func (app *FuryunderverseApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer application update at chain initialization
func (*FuryunderverseApp) LegacyAmino ¶
func (app *FuryunderverseApp) LegacyAmino() *codec.LegacyAmino
LegacyAmino returns SimApp'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 (*FuryunderverseApp) LoadHeight ¶
func (app *FuryunderverseApp) LoadHeight(height int64) error
LoadHeight loads a particular height
func (*FuryunderverseApp) ModuleAccountAddrs ¶
func (app *FuryunderverseApp) ModuleAccountAddrs() map[string]bool
ModuleAccountAddrs returns all the app's module account addresses.
func (*FuryunderverseApp) Name ¶
func (app *FuryunderverseApp) Name() string
Name returns the name of the App
func (*FuryunderverseApp) RegisterAPIRoutes ¶
func (app *FuryunderverseApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*FuryunderverseApp) RegisterNodeService ¶
func (app *FuryunderverseApp) RegisterNodeService(clientCtx client.Context)
func (*FuryunderverseApp) RegisterTendermintService ¶
func (app *FuryunderverseApp) RegisterTendermintService(clientCtx client.Context)
RegisterTendermintService implements the Application.RegisterTendermintService method.
func (*FuryunderverseApp) RegisterTxService ¶
func (app *FuryunderverseApp) RegisterTxService(clientCtx client.Context)
RegisterTxService implements the Application.RegisterTxService method.
func (*FuryunderverseApp) SimulationManager ¶
func (app *FuryunderverseApp) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface
type GenesisState ¶
type GenesisState map[string]json.RawMessage
GenesisState default state for the application
func NewDefaultGenesisState ¶
func NewDefaultGenesisState(cdc codec.Codec) GenesisState
NewDefaultGenesisState generates the default state for the application.
type HandlerOptions ¶
type HandlerOptions struct { ante.HandlerOptions IBCKeeper *keeper.Keeper TxCounterStoreKey sdk.StoreKey WasmConfig wasmTypes.WasmConfig Cdc codec.BinaryCodec }
HandlerOptions extends the SDK's AnteHandler options by requiring the IBC channel keeper.
type MinCommissionDecorator ¶
type MinCommissionDecorator struct {
// contains filtered or unexported fields
}
func NewMinCommissionDecorator ¶
func NewMinCommissionDecorator(cdc codec.BinaryCodec) MinCommissionDecorator
func (MinCommissionDecorator) AnteHandle ¶
type TestSupport ¶
type TestSupport struct {
// contains filtered or unexported fields
}
func NewTestSupport ¶
func NewTestSupport(t *testing.T, app *FuryunderverseApp) *TestSupport
func (TestSupport) AppCodec ¶
func (s TestSupport) AppCodec() codec.Codec
func (TestSupport) BankKeeper ¶
func (s TestSupport) BankKeeper() bankkeeper.Keeper
func (TestSupport) IBCKeeper ¶
func (s TestSupport) IBCKeeper() ibckeeper.Keeper
func (TestSupport) StakingKeeper ¶
func (s TestSupport) StakingKeeper() stakingkeeper.Keeper
func (TestSupport) TransferKeeper ¶
func (s TestSupport) TransferKeeper() ibctransferkeeper.Keeper
func (TestSupport) WasmKeeper ¶
func (s TestSupport) WasmKeeper() wasm.Keeper