Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AvailableNetworks = []Network{ForgeProd, Prod, Staging, WarmStaging}
View Source
var HasherRegistry = map[string]func() hash.Hash{ multicodec.Sha2_256.String(): sha256.New, }
Functions ¶
This section is empty.
Types ¶
type Network ¶ added in v0.1.0
type Network string
Network represents the network the node will operate on
func ParseNetwork ¶ added in v0.1.0
ParseNetwork parses a string into a Network type
type Preset ¶ added in v0.1.0
type Preset struct {
Services ServiceSettings
SmartContracts SmartContractSettings
}
Preset holds all configuration presets for a network
type ServiceSettings ¶ added in v0.1.0
type ServiceSettings struct {
IPNIAnnounceURLs []url.URL
IndexingServiceDID did.DID
IndexingServiceURL *url.URL
EgressTrackerServiceDID did.DID
EgressTrackerServiceURL *url.URL
UploadServiceURL *url.URL
UploadServiceDID did.DID
SigningServiceURL *url.URL
SigningServiceDID did.DID
RegistrarServiceURL *url.URL
PrincipalMapping map[string]string
}
ServiceSettings holds the service configuration for a network
type SmartContractSettings ¶ added in v0.1.0
type SmartContractSettings struct {
Verifier common.Address
ProviderRegistry common.Address
Service common.Address
ServiceView common.Address
Payments common.Address
USDFCToken common.Address
ChainID *big.Int
PayerAddress common.Address
}
SmartContractSettings holds the smart contract configuration for a network
Click to show internal directories.
Click to hide internal directories.