Documentation ¶
Overview ¶
Package gserver contains a Component type satisfying the Cosmos SDK server component interface.
Index ¶
- type Client
- func (c *Client) ABCIInfo(ctx context.Context) (*coretypes.ResultABCIInfo, error)
- func (c *Client) ABCIQuery(ctx context.Context, path string, data cmtbytes.HexBytes) (*coretypes.ResultABCIQuery, error)
- func (c *Client) ABCIQueryWithOptions(ctx context.Context, path string, data cmtbytes.HexBytes, ...) (*coretypes.ResultABCIQuery, error)
- func (c *Client) Block(ctx context.Context, height *int64) (*coretypes.ResultBlock, error)
- func (c *Client) BlockByHash(ctx context.Context, hash []byte) (*coretypes.ResultBlock, error)
- func (c *Client) BlockResults(ctx context.Context, height *int64) (*coretypes.ResultBlockResults, error)
- func (c *Client) BlockSearch(ctx context.Context, query string, page, perPage *int, orderBy string) (*coretypes.ResultBlockSearch, error)
- func (c *Client) BlockchainInfo(ctx context.Context, minHeight, maxHeight int64) (*coretypes.ResultBlockchainInfo, error)
- func (c *Client) BroadcastTxAsync(ctx context.Context, tx cmttypes.Tx) (*coretypes.ResultBroadcastTx, error)
- func (c *Client) BroadcastTxCommit(ctx context.Context, tx cmttypes.Tx) (*coretypes.ResultBroadcastTxCommit, error)
- func (c *Client) BroadcastTxSync(ctx context.Context, tx cmttypes.Tx) (*coretypes.ResultBroadcastTx, error)
- func (c *Client) Commit(ctx context.Context, height *int64) (*coretypes.ResultCommit, error)
- func (c *Client) Status(ctx context.Context) (*coretypes.ResultStatus, error)
- func (c *Client) Tx(ctx context.Context, hash []byte, prove bool) (*coretypes.ResultTx, error)
- func (c *Client) TxSearch(ctx context.Context, query string, prove bool, page, perPage *int, ...) (*coretypes.ResultTxSearch, error)
- func (c *Client) Validators(ctx context.Context, height *int64, page, perPage *int) (*coretypes.ResultValidators, error)
- type Component
- func (c *Component) CLICommands() serverv2.CLIConfig
- func (c *Component) Name() string
- func (c *Component) Start(ctx context.Context) error
- func (c *Component) StartCmdFlags() *pflag.FlagSet
- func (c *Component) Stop(_ context.Context) error
- func (c *Component) WriteCustomConfigAt(configPath string) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ABCIQueryWithOptions ¶
func (*Client) BlockByHash ¶
func (*Client) BlockResults ¶
func (*Client) BlockSearch ¶
func (*Client) BlockchainInfo ¶
func (*Client) BroadcastTxAsync ¶
func (*Client) BroadcastTxCommit ¶
func (*Client) BroadcastTxSync ¶
func (*Client) Validators ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
Component is a server component to be injected into the Cosmos SDK server module.
func NewComponent ¶
func NewComponent( rootCtx context.Context, log *slog.Logger, homeDir string, txc transaction.Codec[transaction.Tx], codec codec.Codec, cfg Config, ) (*Component, error)
NewComponent returns a new server component ready to be supplied to the Cosmos SDK server module.
It accepts a *slog.Logger directly to avoid dealing with SDK loggers.
func (*Component) CLICommands ¶
func (*Component) StartCmdFlags ¶
StartCmdFlags satisfies the optional serverv2.HasStartFlags interface, which adds the returned flagset to the flags for "$app start".
The configured values are then available in the config map passed to [*Component.Init]; the flag names are top level keys in the config map, with values corresponding to the command line flag values.
func (*Component) WriteCustomConfigAt ¶
WriteCustomConfigAt satisfies an undocumented interface, and here we emulate what Comet does in order to get past some error expecting this file to exist.
type Config ¶
type Config struct { RootStore store.RootStore AppManager appmanager.AppManager[transaction.Tx] ConfigMap coreserver.ConfigMap }
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
gp2papi
Package gp2papi manages the handlers for nodes that choose to serve public gcosmos (Gordian-Cosmos, not plain Cosmos) APIs over libp2p.
|
Package gp2papi manages the handlers for nodes that choose to serve public gcosmos (Gordian-Cosmos, not plain Cosmos) APIs over libp2p. |
gsbd
Package gsbd (short for "Gordian Server Block Data") provides utilities for hosting and retrieving block data out of band from the consensus engine.
|
Package gsbd (short for "Gordian Server Block Data") provides utilities for hosting and retrieving block data out of band from the consensus engine. |