config

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContractAddresses

type ContractAddresses struct {
	Core        string
	SpotMarket  string
	PerpsMarket string
}

ContractAddresses is a part of a PerpsvConfig struct with contract addresses

type FirstContractBlocks

type FirstContractBlocks struct {
	Core        uint64
	SpotMarket  uint64
	PerpsMarket uint64
}

FirstContractBlocks is a part of a config struct with default first block numbers used to filters contract logs

type PerpsvConfig

type PerpsvConfig struct {
	RPC                 string
	ContractAddresses   *ContractAddresses
	FirstContractBlocks *FirstContractBlocks
	ConnectionTimeout   time.Duration
	ReadTimeout         time.Duration
}

PerpsvConfig is a type for lib configuration schema

func GetGoerliDefaultPerpsvConfig

func GetGoerliDefaultPerpsvConfig() *PerpsvConfig

GetGoerliDefaultPerpsvConfig is used to get default lib config for goerli optimism test net

func GetOptimismDefaultPerpsvConfig

func GetOptimismDefaultPerpsvConfig() *PerpsvConfig

GetOptimismDefaultPerpsvConfig is used to get default lib config for ompimism main net

Jump to

Keyboard shortcuts

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