jurteam / platform

Jur Beta Platform
https://beta.jur.io
0 stars 0 forks source link

JBP artisan command to fetch data from polling (Producer & Blockchain) #295

Closed mtmsuhail closed 4 years ago

mtmsuhail commented 4 years ago

TL;DR

On deploying polling service on test/main server, we need a way to get all blockchain info in JBP using ad-hoc API of polling service.

Description

We will sync polling service from the first contract's deployment block. But once that data is ready, consumers will need to update themself. JBP (Advocate/Rewards/OathKeeper) will need a PHP artisan command to make such a request.

We can call command polling:fetch. So usage will be php artisan polling:fetch

Possibly command can take params that are supported by polling service.

All commands should have two choice

1. Producer ( fetch available data from the transactions table)

2. Blockchain ( fetch data from blockchain)

Commands

Based on the params, the polling service will provide all the data in response.