Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDecodeHooks ¶ added in v0.33.1
func AddDecodeHooks(cfg *mapstructure.DecoderConfig)
AddDecodeHooks adds decode hooks to the given config to correctly translate string into FinalityOverride
Types ¶
type BroadcastConfig ¶
type BroadcastConfig struct { MaxRetries int `mapstructure:"max_retries"` MinSleepBeforeRetry time.Duration `mapstructure:"min_sleep_before_retry"` MaxTimeout time.Duration `mapstructure:"max_timeout"` FeeGranter sdk.AccAddress `mapstructure:"fee_granter"` }
BroadcastConfig is the configuration for transaction broadcasting
func DefaultBroadcastConfig ¶
func DefaultBroadcastConfig() BroadcastConfig
DefaultBroadcastConfig returns a configurations populated with default values
type ValdConfig ¶
type ValdConfig struct { tss.TssConfig `mapstructure:"tss"` BroadcastConfig `mapstructure:"broadcast"` BatchSizeLimit int `mapstructure:"max_batch_size"` BatchThreshold int `mapstructure:"batch_threshold"` MaxBlocksBehindLatest int64 `mapstructure:"max_blocks_behind_latest"` // The max amount of blocks behind the latest until which the cached height is considered valid. EventNotificationsMaxRetries int `mapstructure:"event_notifications_max_retries"` EventNotificationsBackOff time.Duration `mapstructure:"event_notifications_back_off"` MaxLatestBlockAge time.Duration `mapstructure:"max_latest_block_age"` // If a block is older than this, vald does not consider it to be the latest block. This is supposed to be sufficiently larger than the block production time. NoNewBlockPanicTimeout time.Duration `mapstructure:"no_new_blocks_timeout"` // At times vald stalls completely. Until the bug is found it is better to panic and allow users to restart the process instead of doing nothing. Once at least one block has been seen vald will panic if it does not see another before the timout expires. EVMConfig []evm.EVMConfig `mapstructure:"axelar_bridge_evm"` }
ValdConfig contains all necessary vald configurations
func DefaultValdConfig ¶
func DefaultValdConfig() ValdConfig
DefaultValdConfig returns a configurations populated with default values
Click to show internal directories.
Click to hide internal directories.