project

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute added in v0.9.0

type Attribute struct {
	Paused                bool
	RequestedProverAmount uint64
}

type Config

type Config struct {
	Version      string        `json:"version"`
	VMType       vm.Type       `json:"vmType"`
	Output       output.Config `json:"output"`
	CodeExpParam string        `json:"codeExpParam,omitempty"`
	Code         string        `json:"code"`
}

type ContractProject added in v0.10.1

type ContractProject func(projectID uint64) *contract.Project

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewLocalManager added in v0.10.1

func NewLocalManager(projectFileDirectory string) (*Manager, error)

func NewManager

func NewManager(projectCacheDir, ipfsEndpoint string, contractProject ContractProject, projectNotification <-chan *contract.Project) (*Manager, error)

func (*Manager) Project added in v0.10.1

func (m *Manager) Project(projectID uint64) (*Project, error)

func (*Manager) ProjectIDs added in v0.10.1

func (m *Manager) ProjectIDs() []uint64

type Meta added in v0.9.0

type Meta struct {
	ProjectID uint64
	Uri       string
	Hash      [32]byte
}

func (*Meta) FetchProjectRawData added in v0.10.1

func (m *Meta) FetchProjectRawData(ipfsEndpoint string) ([]byte, error)

type Project

type Project struct {
	DatasourceURI  string    `json:"datasourceURI"`
	DefaultVersion string    `json:"defaultVersion"`
	Versions       []*Config `json:"versions"`
}

func (*Project) Config

func (p *Project) Config(version string) (*Config, error)

func (*Project) DefaultConfig added in v0.10.1

func (p *Project) DefaultConfig() (*Config, error)

Jump to

Keyboard shortcuts

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