config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Sandbox = iota // Sandbox network
	Mainnet        // Production network
)

The order of this enum should match with the order specified in the OpenApi Spec document.

Variables

This section is empty.

Functions

func GetAPIURL

func GetAPIURL(network Network) string

Types

type Config

type Config struct {
	EthereumClientEndpoint      string
	CoreAPIEndpoint             string
	RegistrationContractAddress string
	StarkContractAddress        string
	ChainID                     *big.Int
}

func GetConfig

func GetConfig(network Network, alchemyKey string) Config

type Network

type Network int

Jump to

Keyboard shortcuts

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