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)
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 bephp 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
php artisan polling:fetch block=667344
php artisan polling:fetch block=667344,667350
php artisan polling:fetch asset=oathKeeper
php artisan polling:fetch contract=0xgf6...
php artisan polling:fetch tx=0xgf6...
Based on the params, the polling service will provide all the data in response.