Documentation
¶
Index ¶
- func ApplyWaitTxDefaults(cfg *WaitTxConfig)
- type Client
- type Config
- type Factory
- type Option
- func WithAccountHRP(hrp string) Option
- func WithBlockchainTimeout(timeout time.Duration) Option
- func WithChainID(chainID string) Option
- func WithEVMChainID(id *big.Int) Option
- func WithEVMExtendedDenom(denom string) Option
- func WithEVMGasCaps(tip, fee *big.Int) Option
- func WithEVMNativeDenom(denom string) Option
- func WithFeeDenom(denom string) Option
- func WithGRPCEndpoint(endpoint string) Option
- func WithGasPrice(price sdkmath.LegacyDec) 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 WithAccountHRP ¶ added in v1.2.0
WithAccountHRP sets the bech32 account address prefix (e.g. "lumera"). Empty leaves the Lumera default applied by blockchain.New.
func WithBlockchainTimeout ¶
WithBlockchainTimeout sets the blockchain timeout
func WithEVMChainID ¶ added in v1.2.0
WithEVMChainID sets the EIP-155 chain ID used for Ethereum-format transactions. Distinct from the Cosmos ChainID. Required for EVM tx helpers.
func WithEVMExtendedDenom ¶ added in v1.2.0
WithEVMExtendedDenom sets the 18-decimal precisebank denom (e.g. "alume").
func WithEVMGasCaps ¶ added in v1.2.0
WithEVMGasCaps sets optional defaults for EIP-1559 gas pricing in the extended denom's integer unit (alume/gas). Nil means "fetch from chain state at tx time".
func WithEVMNativeDenom ¶ added in v1.2.0
WithEVMNativeDenom sets the cosmos/evm `evm_denom` (e.g. "ulume").
func WithFeeDenom ¶ added in v1.2.0
WithFeeDenom sets the cosmos fee denom used for non-EVM transactions (e.g. "ulume"). Empty leaves the Lumera default applied by blockchain.New.
func WithGRPCEndpoint ¶
WithGRPCEndpoint sets the gRPC address.
func WithGasPrice ¶ added in v1.2.0
WithGasPrice sets the gas price in FeeDenom/gas (e.g. 0.025). A nil/zero LegacyDec leaves the Lumera default applied by blockchain.New.
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.