core.teos

core.teos.ABI(contract_dir_hint=None, code_name=None, include_dir=None)

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

core.teos.WAST(contract_dir_hint, code_name=None, include_dir=None, compile_only=False)

Given a hint to a contract directory, produce WAST and WASM code.

core.teos.get_keosd_wallet_dir()

Get the directory of the nodeos local wallet.

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')
[]
core.teos.template_create(project_name, template_name=None, workspace_dir=None, remove_existing=False, open_vscode=False)

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