From 7e816e5f66e0f7b1d88fe8dea3f7b06bac7223a4 Mon Sep 17 00:00:00 2001 From: nolash Date: Thu, 8 Apr 2021 10:46:50 +0200 Subject: [PATCH] Add hints on how to find cic registry and eth provider --- apps/contract-migration/scripts/README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/apps/contract-migration/scripts/README.md b/apps/contract-migration/scripts/README.md index de8c795f..c638f13a 100644 --- a/apps/contract-migration/scripts/README.md +++ b/apps/contract-migration/scripts/README.md @@ -85,6 +85,8 @@ This step is needed in *all* cases. `RUN_MASK=1 docker-compose up contract-migration` +After this step is run, you can find top-level ethereum addresses (like the cic registry address, which you will need below) in `/service-configs/.env` + #### Custodial provisions @@ -112,8 +114,13 @@ If metadata is to be imported, also run: ### Step 3 - User imports +If you did not change the docker-compose setup, your `eth_provider` the you need for the commands below will be `http://localhost:63545`. + +The keystore file is relative to the directory you found this README in. Of course you can use a different wallet, but then you will have to provide it with tokens yourself (hint: `../reset.sh`) + Only run _one_ of the following. + #### Alternative 1 - Sovereign wallet import - `eth` @@ -135,20 +142,20 @@ If you are transferring balances externally, then run: Run in sequence, in first terminal: -`python cic_eth/import_balance.py -v -c config -p http://localhost:63545 -r 0xea6225212005e86a4490018ded4bf37f3e772161 -y ../keystore/UTC--2021-01-08T17-18-44.521011372Z--eb3907ecad74a0013c259d5874ae7f22dcbcc95c --head out` +`python cic_eth/import_balance.py -v -c config -p -r -y ../keystore/UTC--2021-01-08T17-18-44.521011372Z--eb3907ecad74a0013c259d5874ae7f22dcbcc95c --head out` In another terminal: `python cic_eth/import_users.py -v -c config --redis-host-callback out` -The `redis_hostname_in_docker` value is the hostname required to reach the redis server from within the docker cluster. The `import_users` script will receive the address of each newly created custodial account on a redis subscription fed by a callback task in the `cic_eth` account creation task chain. +The `redis_hostname_in_docker` value is the hostname required to reach the redis server from within the docker cluster, and should be `redis` if you left the docker-compose unchanged. The `import_users` script will receive the address of each newly created custodial account on a redis subscription fed by a callback task in the `cic_eth` account creation task chain. #### Alternative 3 - USSD import - `cic_ussd` Run in sequence, in first terminal: -`python cic_eth/import_balance.py -v -c config -p http://localhost:63545 -r 0xea6225212005e86a4490018ded4bf37f3e772161 -y ../keystore/UTC--2021-01-08T17-18-44.521011372Z--eb3907ecad74a0013c259d5874ae7f22dcbcc95c out` +`python cic_eth/import_balance.py -v -c config -p -r -y ../keystore/UTC--2021-01-08T17-18-44.521011372Z--eb3907ecad74a0013c259d5874ae7f22dcbcc95c out` In second terminal: