Skip to content

Latest commit

 

History

History
98 lines (65 loc) · 5.14 KB

README.md

File metadata and controls

98 lines (65 loc) · 5.14 KB

DeversiFi Trustless Data

Constantly wait for new blocks and sync Fill events.

Currently saves data into 3 collections

  • Blocks
  • Transactions
  • Events ( currently 'Fill' events)

Data Structures are documented on the models folder

Example endpoints

Example reports

  • TODO - Improve caching logic for all endpoints, perhaps even save some data such as

    • 24 hours volume for past days permanetly
  • TODO - Write better tests for all endpoins

  • TODO - Custom error page

Developing

  1. npm run develop

Note: you should update .env file with your own INFURA web3 provider address

Testing

  1. npm run test:watch

Once you update tests you must delete ./tests/fixtures and run tests again.

Once the tests are ran once the HTTP requests will be cached and the tests will run offline using the recorded HTTP responses found on ./tests/fixtures

You can also deploy your own version to heroku

Deploy to Heroku