Documentation
¶
Index ¶
- func ApplyWaitTxDefaults(cfg *WaitTxConfig)
- type Client
- type Config
- type Factory
- type Option
- func WithBlockchainTimeout(timeout time.Duration) Option
- func WithChainID(chainID string) Option
- func WithGRPCEndpoint(endpoint string) Option
- func WithKeyName(name string) Option
- func WithLogLevel(level string) Option
- func WithLogger(logger *zap.Logger) Option
- func WithMaxMessageSize(size int) Option
- func WithMaxRetries(retries int) Option
- func WithRPCEndpoint(endpoint string) Option
- func WithStorageTimeout(timeout time.Duration) Option
- func WithWaitTxConfig(waitCfg clientconfig.WaitTxConfig) Option
- type WaitTxConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyWaitTxDefaults ¶
func ApplyWaitTxDefaults(cfg *WaitTxConfig)
ApplyWaitTxDefaults mirrors config.ApplyWaitTxDefaults.
Types ¶
type Client ¶
type Client struct {
// High-level modules
Blockchain *blockchain.Client
Cascade *cascade.Client
// contains filtered or unexported fields
}
Client provides unified access to Lumera blockchain and storage
type Config ¶
type Config = clientconfig.Config
Config re-exports the config.Config type for backwards compatibility.
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory keeps a base configuration and keyring so callers can easily create per-signer clients without re-specifying shared settings.
func NewFactory ¶
NewFactory captures the shared configuration and keyring. The base config may omit Address/KeyName; they are supplied when creating signer-specific clients.
type Option ¶
type Option func(*Config)
Option is a function that modifies Config
func WithBlockchainTimeout ¶
WithBlockchainTimeout sets the blockchain timeout
func WithGRPCEndpoint ¶
WithGRPCEndpoint sets the gRPC address.
func WithKeyName ¶
WithKeyName sets the key name in the keyring.
func WithLogLevel ¶ added in v1.0.6
WithLogLevel sets the SDK log level.
func WithLogger ¶
WithLogger enables diagnostic logging using the provided logger.
func WithMaxMessageSize ¶
WithMaxMessageSize sets both send and receive message sizes
func WithMaxRetries ¶
WithMaxRetries sets the maximum number of retries
func WithRPCEndpoint ¶
WithRPCEndpoint sets the CometBFT RPC endpoint.
func WithStorageTimeout ¶
WithStorageTimeout sets the storage timeout
func WithWaitTxConfig ¶
func WithWaitTxConfig(waitCfg clientconfig.WaitTxConfig) Option
WithWaitTxConfig overrides the wait-for-tx behavior.
type WaitTxConfig ¶
type WaitTxConfig = clientconfig.WaitTxConfig
WaitTxConfig re-exports the wait-tx config type for backwards compatibility.
func DefaultWaitTxConfig ¶
func DefaultWaitTxConfig() WaitTxConfig
DefaultWaitTxConfig mirrors config.DefaultWaitTxConfig.