estimation

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalogue

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

func NewCatalogueV2

func NewCatalogueV2() *Catalogue

func NewCatalogueV3

func NewCatalogueV3() *Catalogue

func NewCatalogueV4 added in v0.5.0

func NewCatalogueV4() *Catalogue

func (*Catalogue) FunctionCost

func (c *Catalogue) FunctionCost(id string) (uint64, bool)

type Costs

type Costs struct {
	Functions map[string]uint64
	DApp      uint64
	Verifier  uint64
}

type Estimator

type Estimator struct {
	Version int
	// contains filtered or unexported fields
}

func NewEstimator

func NewEstimator(version int, catalogue *Catalogue, variables map[string]ast.Expr) *Estimator

func (*Estimator) Estimate

func (e *Estimator) Estimate(script *ast.Script) (Costs, error)

func (*Estimator) EstimateDApp

func (e *Estimator) EstimateDApp(script *ast.Script) (Costs, error)

func (*Estimator) EstimateVerifier

func (e *Estimator) EstimateVerifier(script *ast.Script) (Costs, error)

Jump to

Keyboard shortcuts

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