can currently be run either using 'make start-blockchain-listener' or directly as a script using 'projectRootDir/app/blockchain-listener/blistener.ts'. see '--help' for options. --mode option not yet implemented, just defaults to a sequence of modes fetch followed by push - i.e. fetching events since fromBlock value, saving data to be posted to the API to disk, reading the data from disk, and pushing it to the API . Can be run with no arguments and will work with defaults.
data for requests that need to be made are saved to projectRootDir/app/blockchain-listener/data/{token_id}.json
High water mark of block number batch processed is stored in projectRootDir/app/blockchain-listener/fromBlock.json (failing to load atm, so just reruns from block 0)
script currently uses absolute paths for everything, so can be compiled as javascript and installed as a globallay accessible script if desired. Needs update to allow for redirecting output data to non-absolute path.
Works, but some improvements to be made.
can currently be run either using 'make start-blockchain-listener' or directly as a script using 'projectRootDir/app/blockchain-listener/blistener.ts'. see '--help' for options. --mode option not yet implemented, just defaults to a sequence of modes fetch followed by push - i.e. fetching events since fromBlock value, saving data to be posted to the API to disk, reading the data from disk, and pushing it to the API . Can be run with no arguments and will work with defaults.
data for requests that need to be made are saved to projectRootDir/app/blockchain-listener/data/{token_id}.json
High water mark of block number batch processed is stored in projectRootDir/app/blockchain-listener/fromBlock.json (failing to load atm, so just reruns from block 0)
script currently uses absolute paths for everything, so can be compiled as javascript and installed as a globallay accessible script if desired. Needs update to allow for redirecting output data to non-absolute path.
Closes #86 Closes #88