{"push_id":2817959464,"size":1,"distinct_size":1,"ref":"refs/heads/sa-api-stats-module-tokensupply-action","head":"1e3f1e49192a59cb64af57693ffcd246f85a1ecc","before":"9615dda6bae5b775bc7a740d2a6f946c9994310b","commits":[{"sha":"1e3f1e49192a59cb64af57693ffcd246f85a1ecc","author":{"name":"Sebastian Abondano","email":"8c226f5918aadb758474e28b5d486c9b79afaef8@gmail.com"},"message":"Add stats#tokensupply API endpoint\n\nWhy:\n\n* For API users to be able to get a token's total supply. Note that API\nusers are probably better off using the `token#getToken` endpoint which\nreturns a token's total supply plus other token related data they'll\nprobably need. Etherscan doesn't support `token#getToken` as of this\nwriting. This endpoint (`stats#tokensupply`) was added for\nEtherscan-compatibility.\n  Example usage:\n\n    ```\n    /api?module=token&action=getToken&contractAddress={addressHash}\n    ```\n* Issue link: https://github.com/poanetwork/blockscout/issues/571\n\nThis change addresses the need by:\n\n* Creating `API.RPC.StatsController` to process tokensupply requests.\n* Editing router to route /api?module=stats&... requests to\n`API.RPC.StatsController`\n* Creating `API.RPC.StatsView` to render responses for the new API\nendpoint as needed.\n* Adding docs for the new stats#tokensupply endpoint. Documentation data\nlives in `BlockScoutWeb.Etherscan`.","distinct":true,"url":"https://api.github.com/repos/poanetwork/blockscout/commits/1e3f1e49192a59cb64af57693ffcd246f85a1ecc"}]}
{"actor":{"display_login":"sabondano"}}