core.config

eosfactory.core.config.abi_file(contract_dir)

Given the contract directory, return the ABI file path relative.

eosfactory.core.config.contract_dir(contract_dir_hint)

Given a hint, determine the contract directory. The contract directory is the container for the project of a contract. The hint is probed to be one of the following pieces of information: the absolute path to a contract directory; the relative path to a contract directory, relative to the directory set with the contract_workspace_ variable; the relative path to a contract directory, relative to the contracts directory in the repository of EOSFactory; the relative path to a contract directory, relative to the contracts directory in the repository of EOSIO.

eosfactory.core.config.contract_file(contract_dir_hint, contract_file_hint)

Given contract dir and contract file hints, determine the file.

Contract files are those extended with wast, wasm and abi.

First, the contract_file_hint may be an absolute path. Next, it may be relative to the contract directory.

The contract directory is the container for the project of a contract. This directory is determined with the contract_dir function, basing on the contract_dir_hint.

Any contract directory contains directories and files structured according to few schemes: flat structure with all the files in this directory as in the eos/contracts/* contract directories in the EOS repository; structure with a directory named build as resulting from the EOSFactory templates;

eosfactory.core.config.contract_workspace()

Return the absolute path to the contract workspace of the user.

eosfactory.core.config.first_valid_path(config_list, findFile=None, raise_error=True)

Given a key to the config list, get a valid file system path.

The key may map to a path either absolute, or relative either to the EOSIO or EOSF repositories.

Also, the path can be relative to the HOME environment variable.

eosfactory.core.config.node_exe_name()

Name of the local node executable, used for killing the process.

eosfactory.core.config.wasm_file(contract_dir)

Given the contract directory, return the WASM file path relative.

eosfactory.core.config.wast_file(contract_dir)

Given the contract directory, return the WAST file path relative.