ethereum_mev_cookbooks

package
v0.6.0-quicknode Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MevSkeletonBaseConfig = zeus_cluster_config_drivers.ClusterSkeletonBaseDefinition{
		SkeletonBaseChart:         zeus_req_types.TopologyCreateRequest{},
		SkeletonBaseNameChartPath: MevChartPath,
		TopologyConfigDriver: &zeus_topology_config_drivers.TopologyConfigDriver{
			DeploymentDriver: &zeus_topology_config_drivers.DeploymentDriver{
				ContainerDrivers: map[string]zeus_topology_config_drivers.ContainerDriver{
					mevContainerReference: {Container: v1Core.Container{
						Name:  mevContainerReference,
						Image: flashbotsDockerImage,
						Args:  GetMevBoostArgs(ctx, hestia_req_types.Goerli, MevRelays),
					}},
				},
			}},
	}
	MevChartPath = filepaths.Path{
		PackageName: "",
		DirIn:       "./ethereum/mev/infra",
		DirOut:      "./ethereum/mev/infra/processed_mev",
		FnIn:        "mev",
		FnOut:       "",
		Env:         "",
	}
	MevRelays = RelaysEnabled{
		Flashbots:   true,
		Blocknative: true,
		EdenNetwork: true,
	}
)
View Source
var (
	DefaultBase = []string{"-c"}
)

Functions

func GetMevBoostArgs

func GetMevBoostArgs(ctx context.Context, network string, relays RelaysEnabled) []string

Types

type RelaysEnabled

type RelaysEnabled struct {
	Flashbots   bool `yaml:"flashbots"`
	Blocknative bool `yaml:"blocknative"`
	EdenNetwork bool `yaml:"eden_network"`
}

func (*RelaysEnabled) GetGoerliRelays

func (r *RelaysEnabled) GetGoerliRelays() []string

func (*RelaysEnabled) GetMainnetRelays

func (r *RelaysEnabled) GetMainnetRelays() []string

func (*RelaysEnabled) GetRelays

func (r *RelaysEnabled) GetRelays(network string) []string

Jump to

Keyboard shortcuts

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