utils

package
v0.0.0-...-692deea Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BigIntSliceContains

func BigIntSliceContains(slice []*big.Int, b *big.Int) bool

func BuildBootstrapSpec

func BuildBootstrapSpec(verifierAddr common.Address, chainID int64, feedId [32]byte) *coreClient.OCR2TaskJobSpec

func BuildBridges

func BuildBridges(eaUrls []*url.URL) []coreClient.BridgeTypeAttributes

func BuildOCRSpec

func BuildOCRSpec(
	verifierAddr common.Address, chainID int64, fromBlock uint64,
	feedId [32]byte, bridges []coreClient.BridgeTypeAttributes,
	csaPubKey string, msRemoteUrl string, msPubKey string,
	nodeOCRKey string, p2pV2Bootstrapper string, allowedFaults int) *coreClient.OCR2TaskJobSpec

func MergeSethAndEvmNetworkConfigs

func MergeSethAndEvmNetworkConfigs(evmNetwork blockchain.EVMNetwork, sethConfig seth.Config) (seth.Config, error)

MergeSethAndEvmNetworkConfigs merges EVMNetwork to Seth config. If Seth config already has Network settings, it will return unchanged Seth config that was passed to it. If the network is simulated, it will use Geth-specific settings. Otherwise it will use the chain ID to find the correct network settings. If no match is found it will return error.

func MustIP

func MustIP(s string) *net.IP

func MustReplaceSimulatedNetworkUrlWithK8

func MustReplaceSimulatedNetworkUrlWithK8(l zerolog.Logger, network blockchain.EVMNetwork, testEnvironment environment.Environment) blockchain.EVMNetwork

MustReplaceSimulatedNetworkUrlWithK8 replaces the simulated network URL with the K8 URL and returns the network. If the network is not simulated, it will return the network unchanged.

func MustURL

func MustURL(s string) *commonconfig.URL

func ValidateSethNetworkConfig

func ValidateSethNetworkConfig(cfg *seth.Network) error

ValidateSethNetworkConfig validates the Seth network config

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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