config

package
v0.0.0-...-b4f0473 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2024 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeaconConfig

type BeaconConfig struct {
	Endpoint      string       `mapstructure:"endpoint"`
	StateEndpoint string       `mapstructure:"stateEndpoint"`
	Spec          SpecSettings `mapstructure:"spec"`
	DataStore     DataStore    `mapstructure:"datastore"`
}

func (BeaconConfig) Validate

func (b BeaconConfig) Validate() error

type Config

type Config struct {
	Source SourceConfig `mapstructure:"source"`
	Sink   SinkConfig   `mapstructure:"sink"`
}

func (Config) Validate

func (c Config) Validate() error

type DataStore

type DataStore struct {
	Location   string `mapstructure:"location"`
	MaxEntries uint64 `mapstructure:"maxEntries"`
}

type ParachainConfig

type ParachainConfig struct {
	Endpoint             string `mapstructure:"endpoint"`
	MaxWatchedExtrinsics int64  `mapstructure:"maxWatchedExtrinsics"`
	// The max number of header in the FinalizedBeaconStateBuffer on-chain.
	// https://github.com/paritytech/polkadot-sdk/blob/master/bridges/snowbridge/pallets/ethereum-client/src/types.rs#L23
	HeaderRedundancy uint64 `mapstructure:"headerRedundancy"`
}

func (ParachainConfig) Validate

func (p ParachainConfig) Validate() error

type SinkConfig

type SinkConfig struct {
	Parachain          ParachainConfig `mapstructure:"parachain"`
	UpdateSlotInterval uint64          `mapstructure:"updateSlotInterval"`
}

type SourceConfig

type SourceConfig struct {
	Beacon BeaconConfig `mapstructure:"beacon"`
}

type SpecSettings

type SpecSettings struct {
	SyncCommitteeSize            uint64 `mapstructure:"syncCommitteeSize"`
	SlotsInEpoch                 uint64 `mapstructure:"slotsInEpoch"`
	EpochsPerSyncCommitteePeriod uint64 `mapstructure:"epochsPerSyncCommitteePeriod"`
	DenebForkEpoch               uint64 `mapstructure:"denebForkedEpoch"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL