execution

package
v0.0.0-...-7cdd60a Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: LGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const BlocksPerQuery = 4096

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelID

type ChannelID [32]byte

type Config

type Config struct {
	Source              SourceConfig      `mapstructure:"source"`
	Sink                SinkConfig        `mapstructure:"sink"`
	InstantVerification bool              `mapstructure:"instantVerification"`
	Schedule            ScheduleConfig    `mapstructure:"schedule"`
	OFAC                config.OFACConfig `mapstructure:"ofac"`
}

func (Config) Validate

func (c Config) Validate() error

type ContractsConfig

type ContractsConfig struct {
	Gateway string `mapstructure:"Gateway"`
}

type Relay

type Relay struct {
	// contains filtered or unexported fields
}

func NewRelay

func NewRelay(
	config *Config,
	keypair *sr25519.Keypair,
) *Relay

func (*Relay) Start

func (r *Relay) Start(ctx context.Context, eg *errgroup.Group) error

type ScheduleConfig

type ScheduleConfig struct {
	// ID of current relayer, starting from 0
	ID uint64 `mapstructure:"id"`
	// Number of total count of all relayers
	TotalRelayerCount uint64 `mapstructure:"totalRelayerCount"`
	// Sleep interval(in seconds) to check if message(nonce) has already been relayed
	SleepInterval uint64 `mapstructure:"sleepInterval"`
}

func (ScheduleConfig) Validate

func (r ScheduleConfig) Validate() error

type SinkConfig

type SinkConfig struct {
	Parachain  beaconconf.ParachainConfig `mapstructure:"parachain"`
	SS58Prefix uint8                      `mapstructure:"ss58Prefix"`
}

type SourceConfig

type SourceConfig struct {
	Ethereum  config.EthereumConfig   `mapstructure:"ethereum"`
	Contracts ContractsConfig         `mapstructure:"contracts"`
	ChannelID ChannelID               `mapstructure:"channel-id"`
	Beacon    beaconconf.BeaconConfig `mapstructure:"beacon"`
}

Jump to

Keyboard shortcuts

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