Expand description
Neo Solidity CLI Module
Command-line interface for the Neo Solidity compiler. This module provides the main entry point for compiling Solidity contracts to NeoVM bytecode.
Β§Features
- Single file and multi-file compilation
- Standard JSON input/output (Solidity compiler compatible)
- NEF (Neo Executable Format) generation
- Manifest generation for Neo N3 deployment
- Multiple optimization levels (0-3)
- Verbose output
Β§Submodules
bytecode- NeoVM bytecode generation from IRstandard_json- Standard JSON compilation interface
Β§Usage
neo-solc input.sol -o build/
neo-solc --standard-json < input.json > output.json
neo-solc --standard-json --input input.json --output output.jsonModulesΒ§
- bytecode π
- NeoVM Bytecode Generation Module
- ir_
optimize π - IR Optimization Module
- standard_
json π - Standard JSON Compilation Interface
StructsΒ§
- Abstract
State π - Compilation
Artifacts - Compile
Options π - Contract
Call πRequirement - Manifest
Permissions πOverride - Output
Config π - Resolved
Solidity πSources - Standards
Detection πResult - Result of standards detection: detected standards + any diagnostics.
- Standards
Diagnostic π - A diagnostic emitted during standards detection.
EnumsΒ§
- Abstract
Value π - Compile
Error - Manifest
Permission πMethods - Manifest
Permissions πMode - Permission
Methods π - Standards
Diagnostic πLevel - Severity level for standards-detection diagnostics.
ConstantsΒ§
- COMPILER_
EMAIL π - COMPILER_
ID π - VERSION_
STR π
FunctionsΒ§
- analyze_
contract_ πcalls - apply_
instruction π - apply_
manifest_ πcustom_ overrides - build_
cli_ πcommand - build_
manifest π - build_
matches π - check_
transfer_ πparams - Hint when the
transfermethod parameter count doesnβt match the standard. - collect_
contract_ πcall_ permissions - collect_
native_ πpermissions - compile_
contracts - compile_
contracts_ πwith_ options - compile_
input_ πor_ exit - compile_
metadata π - compiler_
version_ πstring_ 4 - contract_
output_ πprefix - descriptor_
from_ πliteral - detect_
supported_ πstandards - emit_
contract_ πwarnings - emit_
error π - emit_
warning π - emit_
warning_ πwith_ suggestion - ensure_
deploy_ πstub - ensure_
output_ πdir - infer_
permissions π - Infer contract permissions based on method signatures and behavior
- load_
manifest_ πpermissions_ override - manifest_
permissions_ πto_ json - merge_
manifest_ πpermissions - method_
name_ πfrom_ literal - parse_
json_ πor_ string - parse_
json_ πvalue - parse_
manifest_ πpermissions_ array - parse_
manifest_ πpermissions_ from_ manifest - parse_
manifest_ πpermissions_ mode - pop_n π
- pop_
value π - require_
native_ πmethod - resolve_
solidity_ πsources_ with_ imports - run
- run_
single_ πfile - split_
extension π - try_
run_ πstandard_ json - upsert_
manifest_ πextra - validate_
transfer_ πevent - Check that a
Transferevent exists with the expected parameter count. - write_
assembly_ πfile - write_
contract_ πoutputs - write_
json_ πfile - write_
manifest_ πfile - write_
nef_ πfile