https://github.com/engi-network/cli
Setup the CLI
cd
into itpipenv install --dev
which will also create a virtual environment for the projectpipenv run engi
from within that environment (whether inside the project directory or not)~/.bashrc
or ~/.zshrc
to make engi
command available from anywhere
engienv
to activate the virtualenv before running engi
alias engienv="source PATH_TO_PIPENV_CREATED_VIRTUAL_ENV_BIN_ACTIVATE"
alias engi="PIPENV_VERBOSITY=-1 pipenv run engi"
<aside>
âď¸ Easily reuse a global âenvironmentâ by specifying chain
(mainnet
, testnet
, local
) and mnemonic
key-value pairs at ~/.config/engi/config.yml
</aside>
Create a bounty for a given a remote repository (Python Pytest Example).
Analyze
engi analyse [<https://github.com/engi-network/demo-python>](<https://github.com/engi-network/demo-python>) | tee python-demo-analysis.json
Draft
engi draft --name "Fix Python Calculator" --funding 10000000000 --test='test/test_demo.py::test_fail' python-demo-analysis.json | tee python-demo-draft.json
Create
BLOCKCHAIN_API_URL="wss://mainnet.engi.network:9944
GRAPHQL_API_URL="<https://api.engi.network/api/graphql>"
BLOCKCHAIN_API_URL="wss://testnet.engi.network:9944" GRAPHQL_API_URL="<https://staging.api.engi.network/api/graphql>"
engi job create python-demo-draft.json
When created successfully, youâll soon see it populated on the webâs bounty page (mainnet).
Attempt a bounty created from a fixed fork of the Python Pytest Example.