Compare commits

...

14 Commits

Author SHA1 Message Date
6ca34dc3ba
Update README.md 2024-10-29 10:53:54 +05:30
Shivam Pandey
a087d0aa71
Update README.md 2024-07-21 19:03:29 +05:30
Shivam Pandey
2996f7f5dc
Update README.md 2024-07-21 18:58:07 +05:30
Vivek Teega
1e8c693290 Update README.md to reflect "Test flodata parsing" status badge 2023-03-19 20:18:27 +05:30
Vivek Teega
a2416e71e3
Changing Readme 2023-03-06 16:45:40 +05:30
Vivek Teega
59dba1ac4d
Merge pull request #15 from ranchimall/dependabot/pip/certifi-2022.12.7
Bump certifi from 2021.5.30 to 2022.12.7
2023-01-23 16:35:40 +05:30
dependabot[bot]
e05d978355
Bump certifi from 2021.5.30 to 2022.12.7
Bumps [certifi](https://github.com/certifi/python-certifi) from 2021.5.30 to 2022.12.7.
- [Release notes](https://github.com/certifi/python-certifi/releases)
- [Commits](https://github.com/certifi/python-certifi/compare/2021.05.30...2022.12.07)

---
updated-dependencies:
- dependency-name: certifi
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-09 05:26:08 +00:00
Vivek Teega
258eea97e9
Update requirements.txt 2022-07-22 22:13:02 +05:30
Vivek Teega
cf600ef23a
Update SSE subscription events 2022-01-03 13:45:47 +05:30
d6fe1e2e26
Update README.md 2022-01-03 12:38:30 +05:30
0d8b1c04a4
Update README.md 2022-01-03 12:38:03 +05:30
Vivek Teega
3a6ffd346d
Update README.md 2022-01-03 12:36:54 +05:30
Vivek Teega
f7a5deb917
Update README.md 2022-01-03 12:34:14 +05:30
Vivek Teega
d722ef93a9
Update README.md 2022-01-03 12:16:14 +05:30
2 changed files with 67 additions and 3 deletions

View File

@ -1,3 +1,67 @@
# FLO Token & Smart Contract System
# Master branch is based on Flosight, which we do not support now
# FLO Token & Smart Contract System
[![Test flodata parsing](https://github.com/ranchimall/flo-token-tracking/actions/workflows/test_parsing.yml/badge.svg?branch=swap-statef-testing)](https://github.com/ranchimall/flo-token-tracking/actions/workflows/test_parsing.yml)
## 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. If running for the first time, run `python3.7 tracktokens-smartcontracts.py --reset` otherwise run `python3.7 tracktokens-smartcontracts.py`

View File

@ -1,9 +1,9 @@
arrow==1.1.0
bidict==0.21.2
certifi==2021.5.30
certifi==2022.12.7
cffi==1.14.5
requests==2.25.0
chardet
chardet==3.0.4
greenlet==1.1.0
idna==2.10
pycparser==2.20