Documentation ¶
Overview ¶
Package contracts embeds compiled Neo contracts and provides access to them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contract ¶
Contract groups information about Neo contract stored in the current package.
func Read ¶
Read reads compiled contracts stored in the package sorted numerically. File schema:
- compiled executables (NEF) are named by pattern 'N-C.nef'
- JSON-encoded manifests are named by pattern 'N-C.manifest.json'
where C is the contract name (a-z) and N is the serial number of the contract starting from 0. Leading zeros are ignored (except zero sequence corresponding to N=0).
If NEF file exists, corresponding manifest file must exist. If manifest file is presented without corresponding NEF file, the contract is ignored.
Read fails if contract files has invalid name or format.
Click to show internal directories.
Click to hide internal directories.