config

package
v0.0.0-...-efdc0b2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProdRegistryAddress  = "0xd976d3b4f4e22a238c1A736b6612D22f17b6f64C"
	StageRegistryAddress = "0xc682C2166E11690B64338e11633Cb8Bb60B0D9c0"
	DevRegistryAddress   = "0xABbfF712977dB51f9f212B85e8A4904c818C2b63"

	ProdAcdcAddress  = "0x1Cd8a543596D499B9b6E7a6eC15ECd2B7857Fd64"
	StageAcdcAddress = "0x1Cd8a543596D499B9b6E7a6eC15ECd2B7857Fd64"
	DevAcdcAddress   = "0x254dffcd3277C0b1660F6d42EFbB754edaBAbC2B"

	ProdEthRpc  = "https://eth.audius.co"
	StageEthRpc = "https://eth.staging.audius.co"
	DevEthRpc   = "http://eth-ganache:8545"
)
View Source
const (
	// discovery2, discovery3, creator2, creator3
	ProdPersistentPeers = "" /* 243-byte string literal not displayed */
	// discovery2, discovery3, discovery5, creator11, creator12
	StagePersistentPeers = "" /* 302-byte string literal not displayed */
	DevPersistentPeers   = "ffad25668e060a357bbe534c8b7e5b4e1274368b@core-discovery-1:26656"
)

Variables

View Source
var Version string

Functions

This section is empty.

Types

type Config

type Config struct {
	/* Comet Config */
	RootDir         string
	RPCladdr        string
	P2PLaddr        string
	PSQLConn        string
	RetainBlocks    uint
	PersistentPeers string
	Seeds           string
	ExternalAddress string
	AddrBookStrict  bool

	/* Audius Config */
	Environment        string
	DelegatePrivateKey string
	WalletAddress      string
	ProposerAddress    string
	GRPCladdr          string
	CoreServerAddr     string
	NodeEndpoint       string

	/* Ethereum Config */
	EthRPCUrl          string
	EthRegistryAddress string

	/* Console Config */
	StandaloneConsole bool

	/* System Config */
	RunDownMigration bool

	/* Derived Config */
	GenesisFile       *types.GenesisDoc
	EthereumKey       *ecdsa.PrivateKey
	CometKey          *ed25519.PrivKey
	NodeType          NodeType
	SlaRollupInterval int
}

func ReadConfig

func ReadConfig(logger *common.Logger) (*Config, error)

func (*Config) RunDownMigrations

func (c *Config) RunDownMigrations() bool

type NodeType

type NodeType = int
const (
	Discovery NodeType = iota
	Content
	Identity
)

type RollupInterval

type RollupInterval struct {
	BlockInterval int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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