diff --git a/apps/contract-migration/scripts/README.md b/apps/contract-migration/scripts/README.md index 01861ac5..b254a65b 100644 --- a/apps/contract-migration/scripts/README.md +++ b/apps/contract-migration/scripts/README.md @@ -104,8 +104,8 @@ If importing using `cic_eth` or `cic_ussd` also run: * cic-eth-retrier If importing using `cic_ussd` also run: -* cic-ussd-tasker -* cic-ussd-server +* cic-user-tasker +* cic-user-ussd-server * cic-notify-tasker If metadata is to be imported, also run: @@ -169,6 +169,24 @@ In second terminal: `python cic_ussd/import_users.py -v -c config out` +Once the user imports are complete the next step should be importing the user's pins and auxiliary ussd data. This can be done in 3 steps: + +In one terminal run: + +`python create_import_pins.py -c config -v --userdir pinsdir ` + +This script will recursively walk through all the directories defining user data in the users export directory and generate a csv file containing phone numbers and password hashes generated using fernet in a manner reflecting the nature of said hashes in the current sempo system. +This csv file will be stored in the pins export dir defined as the positional argument. + +Once the creation of the pins file is complete, proceed to import the pins and ussd data as follows: + +- To import the pins: + +`python cic_ussd/import_pins.py -c config -v pinsdir ` + +- To import ussd data: +`python cic_ussd/import_ussd_data.py -c config -v userdir ` + The balance script is a celery task worker, and will not exit by itself in its current version. However, after it's done doing its job, you will find "reached nonce ... exiting" among the last lines of the log. The connection parameters for the `cic-ussd-server` is currently _hardcoded_ in the `import_users.py` script file.