contract

package
v0.1.27 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeHash

func ComputeHash(data []byte) (string, error)

ComputeHash -

func IsAddress

func IsAddress(str string) bool

IsAddress -

Types

type Fingerprint

type Fingerprint struct {
	Parameter []byte
	Storage   []byte
	Code      []byte
}

Fingerprint -

type Parser

type Parser struct {
	Code    *ast.Script
	Storage ast.UntypedAST

	FailStrings        types.Set
	Tags               types.Set
	Annotations        types.Set
	HardcodedAddresses types.Set

	Fingerprint Fingerprint

	Hash     string
	Language string

	CodeRaw []byte
}

Parser -

func NewParser

func NewParser(data []byte) (*Parser, error)

NewParser -

func (*Parser) IsUpgradable

func (p *Parser) IsUpgradable() bool

IsUpgradable -

func (*Parser) Parse

func (p *Parser) Parse() error

Parse -

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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