2021-07-16 10:55:01 +02:00
|
|
|
|
# Environment
|
2021-07-16 15:35:37 +02:00
|
|
|
|
deploy contracts
|
|
|
|
|
set up system accounts
|
|
|
|
|
throw some gas and tokens around for system accounts
|
|
|
|
|
start all services
|
2021-07-16 10:55:01 +02:00
|
|
|
|
|
2021-07-16 12:42:19 +02:00
|
|
|
|
git clone https://gitlab.com/grassrootseconomics/cic-internal-integration/
|
|
|
|
|
|
2021-07-16 14:48:31 +02:00
|
|
|
|
sudo RUN_MASK=3 COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 DEV_FAUCET_AMOUNT=100000000 TOKEN_TYPE=erc20_demurrage_token CIC_DEFAULT_TOKEN_SYMBOL=SARAFU docker-compose up --build
|
2021-07-16 12:42:19 +02:00
|
|
|
|
that should set you up, and then you need to determine when the setup is done by running:
|
|
|
|
|
|
2021-07-16 15:35:37 +02:00
|
|
|
|
sudo docker logs -f cic-internal-integration_contract-migration_1
|
2021-07-16 12:42:19 +02:00
|
|
|
|
when that logs exits, you're good
|
|
|
|
|
|
2021-07-16 15:35:37 +02:00
|
|
|
|
# Create users
|
|
|
|
|
https://gitlab.com/grassrootseconomics/cic-internal-integration/-/tree/lash/migration-fix/apps/data-seeding#alternative-3-ussd-import-cic_ussd
|
2021-07-16 10:55:01 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Token Creation
|
|
|
|
|
|
2020-04-17 09:26:34 +02:00
|
|
|
|
git clone https://gitlab.com/nolash/grassroots-app
|
2021-06-18 08:35:07 +02:00
|
|
|
|
|
|
|
|
|
|
2021-07-16 10:55:01 +02:00
|
|
|
|
## Setup:
|
2021-06-18 08:35:07 +02:00
|
|
|
|
sudo docker-compose down -v
|
|
|
|
|
|
2021-07-16 15:35:37 +02:00
|
|
|
|
sudo RUN_MASK=3 COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 DEV_FAUCET_AMOUNT=100000000 TOKEN_TYPE=erc20_demurrage_token CIC_DEFAULT_TOKEN_SYMBOL=SARAFU docker-compose up --build
|
|
|
|
|
|
|
|
|
|
sudo RUN_MASK=3 docker-compose up –build
|
2021-06-18 08:35:07 +02:00
|
|
|
|
|
2021-07-16 10:55:01 +02:00
|
|
|
|
## Deploy token
|
2021-06-18 08:35:07 +02:00
|
|
|
|
erc20-demurrage-token-deploy –help
|
|
|
|
|
|
|
|
|
|
(venv) wor@gecon:~/src/ge/erc20-demurrage-token/python$ PYTHONPATH=. python erc20_demurrage_token/runnable/deploy.py -p http://localhost:63545 -y /home/wor/src/ge/cic-internal-integration/apps/contract-migration/keystore/UTC--2021-01-08T17-18-44.521011372Z--eb3907ecad74a0013c259d5874ae7f22dcbcc95c -i evm:bloxberg:8996 --name "Chama Token" --symbol "CHM" -vv -ww -c config --supply-limit 1000000
|
|
|
|
|
|
|
|
|
|
(venv) wor@gecon:~/src/ge/erc20-demurrage-token/python$ eth-get -p http://localhost:63545 0xcf38135da34784a9db226772dcf740089f466241ba82ab4a2f4b5265fcb23a4d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
giftable-token-gift -p http://localhost:63545 -y ./keystore/UTC--2021-01-08T17-18-44.521011372Z--eb3907ecad74a0013c259d5874ae7f22dcbcc95c -i evm:bloxberg:8996 -vv -w -a <token_address> --recipient <recipient_address> <amount>
|
|
|
|
|
|
|
|
|
|
giftable-token-gift -p http://localhost:63545 -y /home/wor/src/ge/cic-internal-integration/apps/contract-migration/keystore/UTC--2021-01-08T17-18-44.521011372Z--eb3907ecad74a0013c259d5874ae7f22dcbcc95c -i evm:bloxberg:8996 -vv -w -a 0x6ca3cb14aa6f761712e1c18646afba4d5ae249e8 100
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(venv) wor@gecon:~/src/ge/erc20-demurrage-token/python$ erc20-balance -p http://localhost:63545 -a 0x6Ca3cB14aA6F761712E1C18646AfBA4d5Ae249E8 0xEb3907eCad74a0013c259D5874AE7f22DcBcC95C
|
|
|
|
|
Chama Token (CHM): 0.000100
|
|
|
|
|
|
|
|
|
|
|