Generic cli tooling for the CIC token network
williamluke
0fcf2eb3bc
Some checks failed
continuous-integration/drone/push Build is failing
Reviewed-on: #2 |
||
---|---|---|
cic | ||
config | ||
doc/sphinx | ||
tests | ||
.coveragerc | ||
.drone.yml | ||
.gitignore | ||
.pylintrc | ||
CHANGELOG | ||
components.svg | ||
LICENSE | ||
MANIFEST.in | ||
poetry.lock | ||
pyproject.toml | ||
README.md |
CIC Token Deployment Tool
CIC-CLI provides tooling to generate and publish metadata in relation to token deployments.
pip install --extra-index-url https://pip.grassrootseconomics.net cic[eth]
Setup
Importing a wallet from metamask
- Export the accounts private key Instructions
- Save the private key to a file
- Run
eth-keyfile -k <file> > ~/.config/cic/keystore/keyfile.json
Usage
Using the wizard
# Local
cic wizard ./somewhere -c ./config/docker
# Test Net
cic wizard ./somewhere -c ./config/testnet
Modular
Some of the concepts described below assume familiarity with base concepts of the CIC architecture. Please refer to the appropriate documentation for more information.
To initialize a new token deployment for the EVM:
cic init --target eth --name <token_name> --symbol <token_symbol> --precision <token_value_precision> <settings_folder>
To automatically fill in settings detected in the network for the EVM:
cic ext --registry <contract_registry_address> -d <settings_folder> -i <chain_spec> -p <rpc_endpoint> eth
Structure of the components
CIC-CLI is designed to interface any network type backend. The current state of the package contains interface to EVM only. Thus, the examples below are limited to the context of the EVM.
Development
Requirements
Setup
poetry install -E eth
Running the CLI
poetry run cic -h
poetry run cic wizard ./somewhere -c ./config/docker
Tests
poetry run pytest