contract

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 12 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 Parser

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

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

	Hash string

	CodeRaw []byte
}

Parser -

func NewParser

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

NewParser -

func (*Parser) FindConstants added in v0.2.8

func (p *Parser) FindConstants() ([]string, error)

FindConstants -

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