Documentation
¶
Index ¶
- Constants
- Variables
- func AppConfig() depinject.Config
- func ConnectEngineClient(ctx context.Context, logger log.Logger, endpoint string) (*ethrpc.Client, *params.ChainConfig, error)
- func NewAnteHandler(accKeeper ante.AccountKeeper, relayerKeeper goattypes.RelayerKeeper, ...) sdk.AnteHandler
- func ProvideEngineClient(logger log.Logger, appOpts servertypes.AppOptions) (*ethrpc.Client, *params.ChainConfig)
- func ProvideValidatorPrvKey(appOpts servertypes.AppOptions) cryptotypes.PrivKey
- type App
- func (app *App) AppCodec() codec.Codec
- func (app *App) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAddrs, modulesToExport []string) (servertypes.ExportedApp, error)
- func (app *App) GetKey(storeKey string) *storetypes.KVStoreKey
- func (app *App) GetMemKey(storeKey string) *storetypes.MemoryStoreKey
- func (app *App) LegacyAmino() *codec.LegacyAmino
- func (app *App) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig)
- func (app *App) SimulationManager() *module.SimulationManager
- type GoatGuardHandler
- type StdTx
Constants ¶
const ( Name = "goat" AccountAddressPrefix = Name )
Variables ¶
var DefaultNodeHome string
DefaultNodeHome default home directories for the application daemon
Functions ¶
func ConnectEngineClient ¶ added in v0.4.3
func NewAnteHandler ¶
func NewAnteHandler(accKeeper ante.AccountKeeper, relayerKeeper goattypes.RelayerKeeper, signModeHandler *txsigning.HandlerMap) sdk.AnteHandler
func ProvideEngineClient ¶
func ProvideEngineClient(logger log.Logger, appOpts servertypes.AppOptions) (*ethrpc.Client, *params.ChainConfig)
func ProvideValidatorPrvKey ¶
func ProvideValidatorPrvKey(appOpts servertypes.AppOptions) cryptotypes.PrivKey
Types ¶
type App ¶
type App struct {
*runtime.App
// keepers
AccountKeeper authkeeper.AccountKeeper
ConsensusParamsKeeper consensuskeeper.Keeper
RelayerKeeper relayermodulekeeper.Keeper
BitcoinKeeper bitcoinmodulekeeper.Keeper
LockingKeeper lockingmodulekeeper.Keeper
GoatKeeper goatmodulekeeper.Keeper
EthClient ethrpc.EngineClient
NodeKeyProvider cryptotypes.PrivKey
// 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 New ¶
func New( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, appOpts servertypes.AppOptions, baseAppOptions ...func(*baseapp.BaseApp), ) (*App, error)
New returns a reference to an initialized App.
func (*App) AppCodec ¶
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 ¶
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) GetKey ¶
func (app *App) GetKey(storeKey string) *storetypes.KVStoreKey
GetKey returns the KVStoreKey for the provided store key.
func (*App) GetMemKey ¶
func (app *App) GetMemKey(storeKey string) *storetypes.MemoryStoreKey
GetMemKey returns the MemoryStoreKey for the provided store key.
func (*App) LegacyAmino ¶
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 ¶
RegisterAPIRoutes registers all application module routes with the provided API server.
func (*App) SimulationManager ¶
func (app *App) SimulationManager() *module.SimulationManager
SimulationManager implements the SimulationApp interface.
type GoatGuardHandler ¶
type GoatGuardHandler struct {
// contains filtered or unexported fields
}
func (GoatGuardHandler) AnteHandle ¶
type StdTx ¶
type StdTx interface {
sdk.TxWithMemo
sdk.TxWithTimeoutHeight
authsigning.SigVerifiableTx
}