This application utilizes Node.js and ethers.js to pull event data from the Ethereum block chain to form time series data on JellFi Kovan contract deployments. Time series data is produced for app TVL and Unique Address from contract deploy block to now.
The following is a pseudo flow of the app
-
add infura project id like
PROJECT_ID=your idto.envand place the file in./collection -
run
node index.js -
time series data for TVL and Unique Adresses from the
borrow-pool.soldeployed on Kovan at0x22f02241A4BC37361a45a67DC57703C4dff4dBc8will be returned in./collection/index.jsand fromtimeSeries(). This data is from the deploy block of0x22f02241A4BC37361a45a67DC57703C4dff4dBc8to now.
The shape of time series data returned is:
[
{ target: "TVL", data:[ [value:Number, timestamp:UNIX Timestamp as Number] ]}
{ target: "Unique Addresses", data:[ [count:Number, timestamp:UNIX Timestamp as Number] ]}
]