presets

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0, MIT Imports: 9 Imported by: 0

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

const (
	ForgeProd   Network = "forge-prod"
	Prod        Network = "prod"
	Staging     Network = "staging"
	WarmStaging Network = "warm-staging"
)

func ParseNetwork added in v0.1.0

func ParseNetwork(s string) (Network, error)

ParseNetwork parses a string into a Network type

func (Network) String added in v0.1.0

func (n Network) String() string

String returns the string representation of the network

type Preset added in v0.1.0

type Preset struct {
	Services       ServiceSettings
	SmartContracts SmartContractSettings
}

Preset holds all configuration presets for a network

func GetPreset added in v0.1.0

func GetPreset(network Network) (Preset, error)

GetPreset returns the complete preset configuration for a given 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

Jump to

Keyboard shortcuts

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