Skip to content

ranchimall/flo-token-tracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FLO Token & Smart Contract System

Test flodata parsing

Important versions and their hashes

The python script scans the FLO Blockchain for Token and Smart Contract activity and creates/updates local SQLite databases accordingly.

339dac6a50bcd973dda4caf43998fc61dd79ea68 The legacy token and smart contract system running currently on the server

41c4078db98e878ecef3452007893136c531ba05 ==> WORKING VERSION | Token swap branch The latest version with token swap smart contract and token transfer with the following problems:

  1. Parsing module is not able to detect token creation and transfer floData
  2. The smart contract system is not moving forward because it is not able to detect token databases as they are created when run form scratch, however it is working with old created token databases

89d96501b9fcdd3c91c8900e1fb3dd5a8d8684c1 Docker-compatibility branch is needed right now because Docker image made for flo-token-tracking required some changes which have been made in that branch.

How to start the system

  1. Create a virtual environment with python3.7 and activate it

    python3.7 -m venv py3.7 
    source py3.7/bin/activate
    
  2. Install python packages required for the virtual environment from pip3 install -r requirements.txt

  3. Setup config files with the following information
    For testnet

    # config.ini
    [DEFAULT]
       NET = testnet
       FLO_CLI_PATH = /usr/local/bin/flo-cli
       START_BLOCK = 740400
       FLOSIGHT_NETURL = https://0.0.0.0:19166/
       TESTNET_FLOSIGHT_SERVER_LIST = https://0.0.0.0:19166/
       MAINNET_FLOSIGHT_SERVER_LIST = https://blockbook.ranchimall.net/
       TOKENAPI_SSE_URL = https://ranchimallflo-testnet-blockbook.ranchimall.net
       IGNORE_BLOCK_LIST = 902446
       IGNORE_TRANSACTION_LIST = b4ac4ddb51188b28b39bcb3aa31357d5bfe562c21e8aaf8dde0ec560fc893174
       DATA_PATH = /home/production/deployed/ftt-blockbook-migration-testnet-rescan
       APP_ADMIN = oWooGLbBELNnwq8Z5YmjoVjw8GhBGH3qSP
    

    For mainnet

    # config.ini
    [DEFAULT]
       NET = mainnet
       FLO_CLI_PATH = /usr/local/bin/flo-cli
       START_BLOCK = 3387900
       FLOSIGHT_NETURL = https://blockbook.ranchimall.net/
       TESTNET_FLOSIGHT_SERVER_LIST = https://0.0.0.0:19166/
       MAINNET_FLOSIGHT_SERVER_LIST = https://blockbook.ranchimall.net/
       TOKENAPI_SSE_URL = https://ranchimallflo-blockbook.ranchimall.net
       IGNORE_BLOCK_LIST = 2
       IGNORE_TRANSACTION_LIST = b4
       DATA_PATH = /home/production/deployed/ftt-blockbook-migration-rescan
       APP_ADMIN = FNcvkz9PZNZM3HcxM1XTrVL4tgivmCkHp9
       API_VERIFY = False
    
    
  4. Install pyflosetup.sh if dependency errors of any kind come. Give it execute permissions first chmod +x pyflosetup.sh, and then ./pyflosetup.sh

  5. If running for the first time, run python3.7 tracktokens-smartcontracts.py --reset otherwise run python3.7 tracktokens-smartcontracts.py

About

RanchiMall's Token and Smart Contract system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •