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 PerpsMarket string ERC7412 string Forwarder string Account string }
ContractAddresses is a part of a PerpsvConfig struct with contract addresses
type FirstContractBlocks ¶
FirstContractBlocks is a part of a config struct with default first block numbers used to filters contract logs
type PerpsvConfig ¶
type PerpsvConfig struct { ChainID ChainID RPC string ContractAddresses *ContractAddresses FirstContractBlocks *FirstContractBlocks Multicall *Multicall ConnectionTimeout time.Duration ReadTimeout time.Duration }
PerpsvConfig is a type for lib configuration schema
func GetBaseAndromedaDefaultConfig ¶ added in v0.1.26
func GetBaseAndromedaDefaultConfig(rpcURL string) *PerpsvConfig
GetBaseAndromedaDefaultConfig is used to get default lib config for base goerli test net
func GetBaseMainnetDefaultConfig ¶ added in v0.3.1
func GetBaseMainnetDefaultConfig(rpcURL string) *PerpsvConfig
GetBaseMainnetDefaultConfig is used to get default lib config for base main net
func GetBaseSepoliaDefaultConfig ¶ added in v0.3.6
func GetBaseSepoliaDefaultConfig(rpcURL string) *PerpsvConfig
GetBaseSepoliaDefaultConfig is used to get default lib config for base sepolia test net
func GetOptimismGoerliDefaultConfig ¶ added in v0.1.26
func GetOptimismGoerliDefaultConfig(rpcURL string) *PerpsvConfig
GetOptimismGoerliDefaultConfig is used to get default lib config for goerli optimism test net
Click to show internal directories.
Click to hide internal directories.