config

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Core
	APIPort uint16

	// Onboarding
	StarterDESOSeed         string
	StarterDESONanos        uint64
	StarterPrefixNanosMap   map[string]uint64
	TwilioAccountSID        string
	TwilioAuthToken         string
	TwilioVerifyServiceID   string
	CompProfileCreation     bool
	MinSatoshisForProfile   uint64
	PhoneNumberUseThreshold uint64

	// Global State
	GlobalStateRemoteNode   string
	GlobalStateRemoteSecret string

	// Hot Feed
	RunHotFeedRoutine    bool
	HotFeedMediaRequired bool

	// Web Security
	AccessControlAllowOrigins []string
	SecureHeaderDevelopment   bool
	SecureHeaderAllowHosts    []string
	AdminPublicKeys           []string
	SuperAdminPublicKeys      []string

	// Analytics
	AmplitudeKey string

	// Images
	GCPCredentialsPath string
	GCPBucketName      string

	// Wyre
	WyreUrl           string
	WyreAccountId     string
	WyreApiKey        string
	WyreSecretKey     string
	BuyDESOBTCAddress string
	BuyDESOETHAddress string
	BuyDESOSeed       string
	InfuraProjectID   string

	// Emails
	SendgridApiKey         string
	SendgridDomain         string
	SendgridSalt           string
	SendgridFromName       string
	SendgridFromEmail      string
	SendgridConfirmEmailId string

	// Jumio
	JumioToken  string
	JumioSecret string

	// Video Upload
	CloudflareStreamToken string
	CloudflareAccountId   string

	// Global State
	ExposeGlobalState bool
	GlobalStateAPIUrl string

	// Supply Monitoring Routine
	RunSupplyMonitoringRoutine bool

	// ID to tag node source
	NodeSource uint64

	// Public keys that need their balances monitored. Map of Label to Public key
	PublicKeyBalancesToMonitor map[string][]byte

	// Metamask minimal Eth in Wei required to receive an airdrop.
	MetamaskAirdropEthMinimum *uint256.Int
	// Amount of DESO in nanos metamask users receive as an airdrop
	MetamaskAirdropDESONanosAmount uint64
}

func LoadConfig

func LoadConfig(coreConfig *coreCmd.Config) *Config

Jump to

Keyboard shortcuts

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