project

package
v0.15.6 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Paused                bool
	RequestedProverAmount uint64
}

func (Attribute) MarshalEasyJSON

func (v Attribute) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Attribute) MarshalJSON

func (v Attribute) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Attribute) UnmarshalEasyJSON

func (v *Attribute) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Attribute) UnmarshalJSON

func (v *Attribute) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Config

type Config struct {
	Version      string        `json:"version"`
	VMTypeID     uint64        `json:"vmTypeID"`
	Output       output.Config `json:"output"`
	CodeExpParam string        `json:"codeExpParam,omitempty"`
	Code         string        `json:"code"`
}

func (Config) MarshalEasyJSON

func (v Config) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Config) MarshalJSON

func (v Config) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Config) UnmarshalEasyJSON

func (v *Config) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Config) UnmarshalJSON

func (v *Config) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ContractProject

type ContractProject func(projectID uint64) *contract.Project

type Manager

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

func NewLocalManager

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

func NewManager

func NewManager(db *pebble.DB, contractProject ContractProject) *Manager

func (*Manager) Project

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

func (*Manager) ProjectIDs

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

type Meta

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

func (*Meta) FetchProjectFile

func (m *Meta) FetchProjectFile() ([]byte, error)

func (Meta) MarshalEasyJSON

func (v Meta) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Meta) MarshalJSON

func (v Meta) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Meta) UnmarshalEasyJSON

func (v *Meta) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Meta) UnmarshalJSON

func (v *Meta) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Project

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

func (*Project) Config

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

func (*Project) DefaultConfig

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

func (Project) MarshalEasyJSON

func (v Project) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Project) MarshalJSON

func (v Project) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Project) UnmarshalEasyJSON

func (v *Project) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Project) UnmarshalJSON

func (v *Project) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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