project

package
v0.16.20 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 13 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"`
	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) (string, common.Hash, error)

type Manager

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

func NewManager

func NewManager(cp ContractProject, pf ProjectFile, upf UpsertProjectFile) *Manager

func (*Manager) Project

func (m *Manager) Project(projectID uint64) (*Project, 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 {
	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

type ProjectFile added in v0.16.0

type ProjectFile func(projectID uint64) ([]byte, common.Hash, error)

type UpsertProjectFile added in v0.16.0

type UpsertProjectFile func(projectID uint64, file []byte, hash common.Hash) error

Jump to

Keyboard shortcuts

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