package
0.0.0-20200107211526-8e17a2142328
Repository: https://github.com/genesiskernel/go-genesis.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

ContractsList returns list of contracts names from source of code.
ExContract executes the name contract in the state with specified parameters.
ExecContract runs the name contract where txs contains the list of parameters and params are the values of parameters.
GetSettings returns the value of the parameter.
No description provided by the author
NewVM creates a new virtual machine.
No description provided by the author
SetVMError sets error of VM.
StateName checks the name of the contract and modifies it to @[state]name if it is necessary.
ValueToDecimal converts interface (string, float64, Decimal or int64) to Decimal.
ValueToFloat converts interface (string, float64 or int64) to float64.

# Constants

CostCall is the cost of the function calling.
CostContract is the cost of the contract calling.
CostExtend is the cost of the extend function calling.
Decimal is the constant string for decimal type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Interface is the constant string for interface type.
No description provided by the author
ObjContract is a contract object.
ObjExtend is an extended variable.
ObjExtFunc is an extended function object.
ObjFunc is a function object.
ObjUnknown is an unknown object.
ObjVar is a variable.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
VMTypeOBS is obs vm type.
VMTypeOBSMaster is OBSMaster type.
VMTypeSmart is smart vm type.

# Variables

No description provided by the author
No description provided by the author

# Structs

Block contains all information about compiled block {...} and its children.
ByteCode stores a command and an additional parameter.
ContractInfo contains the contract information.
ErrInfo stores info about current contract or function.
ExtendData is used for the definition of the extended functions and variables.
ExtFuncInfo is the structure for the extrended function.
FieldInfo describes the field of the data structure.
FuncInfo contains the function information.
FuncName is storing param of FuncName.
FuncNameCmd for cmdFuncName.
IndexInfo contains the information for SetIndex.
Lexem contains information about language item.
ObjInfo is the common object type.
OwnerInfo storing info about owner.
RunTime is needed for the execution of the byte-code.
VarInfo contains the variable information.
VM is the main type of the virtual machine.
VMError represents error of VM.

# Interfaces

Stacker represents interface for working with call stack.

# Type aliases

Blocks is a slice of blocks.
ByteCodes is the slice of ByteCode items.
Lexems is a slice of lexems.
VMType is virtual machine type.