core.teos

eosfactory.core.teos.ABI(contract_dir_hint=None, c_cpp_properties_path=None, verbosity=None)

Given a hint to a contract directory, produce ABI file.

eosfactory.core.teos.WAST(contract_dir_hint, c_cpp_properties_path=None, compile_only=False, verbosity=None)

Produce WASM code.

eosfactory.core.teos.get_pid(name=None)

Return process ids found by (partial) name or regex.

>>> get_process_id('kthreadd')
[2]
>>> get_process_id('watchdog')
[10, 11, 16, 21, 26, 31, 36, 41, 46, 51, 56, 61]  # ymmv
>>> get_process_id('non-existent process')
[]
eosfactory.core.teos.project_from_template(project_name, template=None, workspace_dir=None, c_cpp_prop_path=None, remove_existing=False, open_vscode=False, throw_exists=False, verbosity=None)

Given the project name and template name, create a smart contract project.

  • parameters:

    project_name: The name of the project, or an existing path to 
        a directory.
    template: The name of the template used.
    workspace_dir: If set, the folder for the work-space. Defaults to the 
        value returned by the config.contract_workspace() function.
    remove_existing: If set, overwrite any existing project.
    visual_studio_code: If set, open the ``VSCode``, if available.
    verbosity: The logging configuration.