Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseSourceCode ¶
ParseSourceCode takes a group of files representing CX `sourceCode` and parses it into CX program structures for `PRGRM`.
func SetLogger ¶
func SetLogger(log logrus.FieldLogger)
Types ¶
type ProgBytes ¶
ProgBytes represents program bytes.
func LoadProgFromBytes ¶
LoadProgFromBytes initializes the program structure `prog` with data from the program state stored on a CX chain. This is used for transaction/broadcast mode.
func (*ProgBytes) MergeChainHeap ¶
MergeChainHeap adds the heap `bcHeap` found in the program state of a CX chain to the program to be run `PRGRM` and updates all the references to heap objects found in the transaction code considering the data segment found in the serialized program `sPrgrm`.
Click to show internal directories.
Click to hide internal directories.