contract

package
v0.0.0-...-3eec7cb Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 13 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 FindConstants

func FindConstants(tree ast.UntypedAST) (types.Set, error)

FindConstants -

Types

type ContractData

type ContractData struct {
	Code    stdJSON.RawMessage `json:"code"`
	Storage stdJSON.RawMessage `json:"storage"`
}

ContractData -

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

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