{"action":"created","comment":{"url":"https://api.github.com/repos/poanetwork/blockscout/pulls/comments/226978302","pull_request_review_id":166914796,"id":226978302,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjk3ODMwMg==","diff_hunk":"@@ -0,0 +1,50 @@\n+defmodule Explorer.ExchangeRates.Source.TransactionAndLog do\n+  @moduledoc \"\"\"\n+  Adapter for calculating the market cap and total supply from logs and transactions\n+  while still getting other info like price in dollars and bitcoin from a secondary source\n+  \"\"\"\n+\n+  alias Explorer.ExchangeRates.{Source, Token}\n+  alias Explorer.Chain\n+\n+  @behaviour Source\n+\n+  @impl Source\n+  def fetch_exchange_rates do\n+    token_data =\n+      secondary_source().fetch_exchange_rates()","path":"apps/explorer/lib/explorer/exchange_rates/source/transaction_and_log.ex","position":15,"original_position":15,"commit_id":"d2e0ef210ac863583c04ed16e0425cd8f34fe612","original_commit_id":"8672983eca00b6a22eb9f86defbedf5c2b08581c","user":{"login":"GuSilverFlame","id":18328258,"node_id":"MDQ6VXNlcjE4MzI4MjU4","avatar_url":"https://avatars1.githubusercontent.com/u/18328258?v=4","gravatar_id":"","url":"https://api.github.com/users/GuSilverFlame","html_url":"https://github.com/GuSilverFlame","followers_url":"https://api.github.com/users/GuSilverFlame/followers","following_url":"https://api.github.com/users/GuSilverFlame/following{/other_user}","gists_url":"https://api.github.com/users/GuSilverFlame/gists{/gist_id}","starred_url":"https://api.github.com/users/GuSilverFlame/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuSilverFlame/subscriptions","organizations_url":"https://api.github.com/users/GuSilverFlame/orgs","repos_url":"https://api.github.com/users/GuSilverFlame/repos","events_url":"https://api.github.com/users/GuSilverFlame/events{/privacy}","received_events_url":"https://api.github.com/users/GuSilverFlame/received_events","type":"User","site_admin":false},"body":"I tried it, but it generates a warning and the tests stop running because of it","created_at":"2018-10-22T12:54:19Z","updated_at":"2018-10-22T12:54:19Z","html_url":"https://github.com/poanetwork/blockscout/pull/951#discussion_r226978302","pull_request_url":"https://api.github.com/repos/poanetwork/blockscout/pulls/951","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/poanetwork/blockscout/pulls/comments/226978302"},"html":{"href":"https://github.com/poanetwork/blockscout/pull/951#discussion_r226978302"},"pull_request":{"href":"https://api.github.com/repos/poanetwork/blockscout/pulls/951"}},"in_reply_to_id":226781463},"pull_request":{"url":"https://api.github.com/repos/poanetwork/blockscout/pulls/951","id":224404377,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NDA0Mzc3","html_url":"https://github.com/poanetwork/blockscout/pull/951","diff_url":"https://github.com/poanetwork/blockscout/pull/951.diff","patch_url":"https://github.com/poanetwork/blockscout/pull/951.patch","issue_url":"https://api.github.com/repos/poanetwork/blockscout/issues/951","number":951,"state":"open","locked":false,"title":"dai chain supply and market cap","user":{"login":"GuSilverFlame","id":18328258,"node_id":"MDQ6VXNlcjE4MzI4MjU4","avatar_url":"https://avatars1.githubusercontent.com/u/18328258?v=4","gravatar_id":"","url":"https://api.github.com/users/GuSilverFlame","html_url":"https://github.com/GuSilverFlame","followers_url":"https://api.github.com/users/GuSilverFlame/followers","following_url":"https://api.github.com/users/GuSilverFlame/following{/other_user}","gists_url":"https://api.github.com/users/GuSilverFlame/gists{/gist_id}","starred_url":"https://api.github.com/users/GuSilverFlame/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuSilverFlame/subscriptions","organizations_url":"https://api.github.com/users/GuSilverFlame/orgs","repos_url":"https://api.github.com/users/GuSilverFlame/repos","events_url":"https://api.github.com/users/GuSilverFlame/events{/privacy}","received_events_url":"https://api.github.com/users/GuSilverFlame/received_events","type":"User","site_admin":false},"body":"closes #905 \r\n\r\n## Changelog\r\n\r\n### Enhancements\r\n\r\n- add a way to count the supply from mints and burns\r\n\r\n- change the chart on home for dai chain to use the supply of each day instead of the supply of today\r\n\r\n- add a configuration to use the new modules\r\n","created_at":"2018-10-19T20:39:56Z","updated_at":"2018-10-22T12:54:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"53374f7740faaf7da872d6b599f288600d149146","assignee":{"login":"GuSilverFlame","id":18328258,"node_id":"MDQ6VXNlcjE4MzI4MjU4","avatar_url":"https://avatars1.githubusercontent.com/u/18328258?v=4","gravatar_id":"","url":"https://api.github.com/users/GuSilverFlame","html_url":"https://github.com/GuSilverFlame","followers_url":"https://api.github.com/users/GuSilverFlame/followers","following_url":"https://api.github.com/users/GuSilverFlame/following{/other_user}","gists_url":"https://api.github.com/users/GuSilverFlame/gists{/gist_id}","starred_url":"https://api.github.com/users/GuSilverFlame/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuSilverFlame/subscriptions","organizations_url":"https://api.github.com/users/GuSilverFlame/orgs","repos_url":"https://api.github.com/users/GuSilverFlame/repos","events_url":"https://api.github.com/users/GuSilverFlame/events{/privacy}","received_events_url":"https://api.github.com/users/GuSilverFlame/received_events","type":"User","site_admin":false},"assignees":[{"login":"GuSilverFlame","id":18328258,"node_id":"MDQ6VXNlcjE4MzI4MjU4","avatar_url":"https://avatars1.githubusercontent.com/u/18328258?v=4","gravatar_id":"","url":"https://api.github.com/users/GuSilverFlame","html_url":"https://github.com/GuSilverFlame","followers_url":"https://api.github.com/users/GuSilverFlame/followers","following_url":"https://api.github.com/users/GuSilverFlame/following{/other_user}","gists_url":"https://api.github.com/users/GuSilverFlame/gists{/gist_id}","starred_url":"https://api.github.com/users/GuSilverFlame/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuSilverFlame/subscriptions","organizations_url":"https://api.github.com/users/GuSilverFlame/orgs","repos_url":"https://api.github.com/users/GuSilverFlame/repos","events_url":"https://api.github.com/users/GuSilverFlame/events{/privacy}","received_events_url":"https://api.github.com/users/GuSilverFlame/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"amandasposito","id":840531,"node_id":"MDQ6VXNlcjg0MDUzMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/840531?v=4","gravatar_id":"","url":"https://api.github.com/users/amandasposito","html_url":"https://github.com/amandasposito","followers_url":"https://api.github.com/users/amandasposito/followers","following_url":"https://api.github.com/users/amandasposito/following{/other_user}","gists_url":"https://api.github.com/users/amandasposito/gists{/gist_id}","starred_url":"https://api.github.com/users/amandasposito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amandasposito/subscriptions","organizations_url":"https://api.github.com/users/amandasposito/orgs","repos_url":"https://api.github.com/users/amandasposito/repos","events_url":"https://api.github.com/users/amandasposito/events{/privacy}","received_events_url":"https://api.github.com/users/amandasposito/received_events","type":"User","site_admin":false},{"login":"Lucasnar","id":10884247,"node_id":"MDQ6VXNlcjEwODg0MjQ3","avatar_url":"https://avatars2.githubusercontent.com/u/10884247?v=4","gravatar_id":"","url":"https://api.github.com/users/Lucasnar","html_url":"https://github.com/Lucasnar","followers_url":"https://api.github.com/users/Lucasnar/followers","following_url":"https://api.github.com/users/Lucasnar/following{/other_user}","gists_url":"https://api.github.com/users/Lucasnar/gists{/gist_id}","starred_url":"https://api.github.com/users/Lucasnar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lucasnar/subscriptions","organizations_url":"https://api.github.com/users/Lucasnar/orgs","repos_url":"https://api.github.com/users/Lucasnar/repos","events_url":"https://api.github.com/users/Lucasnar/events{/privacy}","received_events_url":"https://api.github.com/users/Lucasnar/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":859573185,"node_id":"MDU6TGFiZWw4NTk1NzMxODU=","url":"https://api.github.com/repos/poanetwork/blockscout/labels/in%20progress","name":"in progress","color":"ededed","default":false},{"id":995399849,"node_id":"MDU6TGFiZWw5OTUzOTk4NDk=","url":"https://api.github.com/repos/poanetwork/blockscout/labels/ready%20for%20review","name":"ready for review","color":"f274f0","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/poanetwork/blockscout/pulls/951/commits","review_comments_url":"https://api.github.com/repos/poanetwork/blockscout/pulls/951/comments","review_comment_url":"https://api.github.com/repos/poanetwork/blockscout/pulls/comments{/number}","comments_url":"https://api.github.com/repos/poanetwork/blockscout/issues/951/comments","statuses_url":"https://api.github.com/repos/poanetwork/blockscout/statuses/d2e0ef210ac863583c04ed16e0425cd8f34fe612","head":{"label":"poanetwork:gsf-dai-chain-supply-and-market-cap","ref":"gsf-dai-chain-supply-and-market-cap","sha":"d2e0ef210ac863583c04ed16e0425cd8f34fe612","user":{"login":"poanetwork","id":28943015,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4OTQzMDE1","avatar_url":"https://avatars2.githubusercontent.com/u/28943015?v=4","gravatar_id":"","url":"https://api.github.com/users/poanetwork","html_url":"https://github.com/poanetwork","followers_url":"https://api.github.com/users/poanetwork/followers","following_url":"https://api.github.com/users/poanetwork/following{/other_user}","gists_url":"https://api.github.com/users/poanetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/poanetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poanetwork/subscriptions","organizations_url":"https://api.github.com/users/poanetwork/orgs","repos_url":"https://api.github.com/users/poanetwork/repos","events_url":"https://api.github.com/users/poanetwork/events{/privacy}","received_events_url":"https://api.github.com/users/poanetwork/received_events","type":"Organization","site_admin":false},"repo":{"id":117294980,"node_id":"MDEwOlJlcG9zaXRvcnkxMTcyOTQ5ODA=","name":"blockscout","full_name":"poanetwork/blockscout","private":false,"owner":{"login":"poanetwork","id":28943015,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4OTQzMDE1","avatar_url":"https://avatars2.githubusercontent.com/u/28943015?v=4","gravatar_id":"","url":"https://api.github.com/users/poanetwork","html_url":"https://github.com/poanetwork","followers_url":"https://api.github.com/users/poanetwork/followers","following_url":"https://api.github.com/users/poanetwork/following{/other_user}","gists_url":"https://api.github.com/users/poanetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/poanetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poanetwork/subscriptions","organizations_url":"https://api.github.com/users/poanetwork/orgs","repos_url":"https://api.github.com/users/poanetwork/repos","events_url":"https://api.github.com/users/poanetwork/events{/privacy}","received_events_url":"https://api.github.com/users/poanetwork/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/poanetwork/blockscout","description":"A tool for inspecting and analyzing EVM based blockchains. Blockchain explorer for Ethereum networks.","fork":false,"url":"https://api.github.com/repos/poanetwork/blockscout","forks_url":"https://api.github.com/repos/poanetwork/blockscout/forks","keys_url":"https://api.github.com/repos/poanetwork/blockscout/keys{/key_id}","collaborators_url":"https://api.github.com/repos/poanetwork/blockscout/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/poanetwork/blockscout/teams","hooks_url":"https://api.github.com/repos/poanetwork/blockscout/hooks","issue_events_url":"https://api.github.com/repos/poanetwork/blockscout/issues/events{/number}","events_url":"https://api.github.com/repos/poanetwork/blockscout/events","assignees_url":"https://api.github.com/repos/poanetwork/blockscout/assignees{/user}","branches_url":"https://api.github.com/repos/poanetwork/blockscout/branches{/branch}","tags_url":"https://api.github.com/repos/poanetwork/blockscout/tags","blobs_url":"https://api.github.com/repos/poanetwork/blockscout/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/poanetwork/blockscout/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/poanetwork/blockscout/git/refs{/sha}","trees_url":"https://api.github.com/repos/poanetwork/blockscout/git/trees{/sha}","statuses_url":"https://api.github.com/repos/poanetwork/blockscout/statuses/{sha}","languages_url":"https://api.github.com/repos/poanetwork/blockscout/languages","stargazers_url":"https://api.github.com/repos/poanetwork/blockscout/stargazers","contributors_url":"https://api.github.com/repos/poanetwork/blockscout/contributors","subscribers_url":"https://api.github.com/repos/poanetwork/blockscout/subscribers","subscription_url":"https://api.github.com/repos/poanetwork/blockscout/subscription","commits_url":"https://api.github.com/repos/poanetwork/blockscout/commits{/sha}","git_commits_url":"https://api.github.com/repos/poanetwork/blockscout/git/commits{/sha}","comments_url":"https://api.github.com/repos/poanetwork/blockscout/comments{/number}","issue_comment_url":"https://api.github.com/repos/poanetwork/blockscout/issues/comments{/number}","contents_url":"https://api.github.com/repos/poanetwork/blockscout/contents/{+path}","compare_url":"https://api.github.com/repos/poanetwork/blockscout/compare/{base}...{head}","merges_url":"https://api.github.com/repos/poanetwork/blockscout/merges","archive_url":"https://api.github.com/repos/poanetwork/blockscout/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/poanetwork/blockscout/downloads","issues_url":"https://api.github.com/repos/poanetwork/blockscout/issues{/number}","pulls_url":"https://api.github.com/repos/poanetwork/blockscout/pulls{/number}","milestones_url":"https://api.github.com/repos/poanetwork/blockscout/milestones{/number}","notifications_url":"https://api.github.com/repos/poanetwork/blockscout/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/poanetwork/blockscout/labels{/name}","releases_url":"https://api.github.com/repos/poanetwork/blockscout/releases{/id}","deployments_url":"https://api.github.com/repos/poanetwork/blockscout/deployments","created_at":"2018-01-12T22:45:24Z","updated_at":"2018-10-22T11:20:45Z","pushed_at":"2018-10-22T12:53:41Z","git_url":"git://github.com/poanetwork/blockscout.git","ssh_url":"git@github.com:poanetwork/blockscout.git","clone_url":"https://github.com/poanetwork/blockscout.git","svn_url":"https://github.com/poanetwork/blockscout","homepage":"https://blockscout.com","size":8029,"stargazers_count":247,"watchers_count":247,"language":"Elixir","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":75,"mirror_url":null,"archived":false,"open_issues_count":153,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":75,"open_issues":153,"watchers":247,"default_branch":"master"}},"base":{"label":"poanetwork:master","ref":"master","sha":"05c8142e0cc7ad7a3df4ef4a07bd2075462c1878","user":{"login":"poanetwork","id":28943015,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4OTQzMDE1","avatar_url":"https://avatars2.githubusercontent.com/u/28943015?v=4","gravatar_id":"","url":"https://api.github.com/users/poanetwork","html_url":"https://github.com/poanetwork","followers_url":"https://api.github.com/users/poanetwork/followers","following_url":"https://api.github.com/users/poanetwork/following{/other_user}","gists_url":"https://api.github.com/users/poanetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/poanetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poanetwork/subscriptions","organizations_url":"https://api.github.com/users/poanetwork/orgs","repos_url":"https://api.github.com/users/poanetwork/repos","events_url":"https://api.github.com/users/poanetwork/events{/privacy}","received_events_url":"https://api.github.com/users/poanetwork/received_events","type":"Organization","site_admin":false},"repo":{"id":117294980,"node_id":"MDEwOlJlcG9zaXRvcnkxMTcyOTQ5ODA=","name":"blockscout","full_name":"poanetwork/blockscout","private":false,"owner":{"login":"poanetwork","id":28943015,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4OTQzMDE1","avatar_url":"https://avatars2.githubusercontent.com/u/28943015?v=4","gravatar_id":"","url":"https://api.github.com/users/poanetwork","html_url":"https://github.com/poanetwork","followers_url":"https://api.github.com/users/poanetwork/followers","following_url":"https://api.github.com/users/poanetwork/following{/other_user}","gists_url":"https://api.github.com/users/poanetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/poanetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poanetwork/subscriptions","organizations_url":"https://api.github.com/users/poanetwork/orgs","repos_url":"https://api.github.com/users/poanetwork/repos","events_url":"https://api.github.com/users/poanetwork/events{/privacy}","received_events_url":"https://api.github.com/users/poanetwork/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/poanetwork/blockscout","description":"A tool for inspecting and analyzing EVM based blockchains. Blockchain explorer for Ethereum networks.","fork":false,"url":"https://api.github.com/repos/poanetwork/blockscout","forks_url":"https://api.github.com/repos/poanetwork/blockscout/forks","keys_url":"https://api.github.com/repos/poanetwork/blockscout/keys{/key_id}","collaborators_url":"https://api.github.com/repos/poanetwork/blockscout/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/poanetwork/blockscout/teams","hooks_url":"https://api.github.com/repos/poanetwork/blockscout/hooks","issue_events_url":"https://api.github.com/repos/poanetwork/blockscout/issues/events{/number}","events_url":"https://api.github.com/repos/poanetwork/blockscout/events","assignees_url":"https://api.github.com/repos/poanetwork/blockscout/assignees{/user}","branches_url":"https://api.github.com/repos/poanetwork/blockscout/branches{/branch}","tags_url":"https://api.github.com/repos/poanetwork/blockscout/tags","blobs_url":"https://api.github.com/repos/poanetwork/blockscout/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/poanetwork/blockscout/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/poanetwork/blockscout/git/refs{/sha}","trees_url":"https://api.github.com/repos/poanetwork/blockscout/git/trees{/sha}","statuses_url":"https://api.github.com/repos/poanetwork/blockscout/statuses/{sha}","languages_url":"https://api.github.com/repos/poanetwork/blockscout/languages","stargazers_url":"https://api.github.com/repos/poanetwork/blockscout/stargazers","contributors_url":"https://api.github.com/repos/poanetwork/blockscout/contributors","subscribers_url":"https://api.github.com/repos/poanetwork/blockscout/subscribers","subscription_url":"https://api.github.com/repos/poanetwork/blockscout/subscription","commits_url":"https://api.github.com/repos/poanetwork/blockscout/commits{/sha}","git_commits_url":"https://api.github.com/repos/poanetwork/blockscout/git/commits{/sha}","comments_url":"https://api.github.com/repos/poanetwork/blockscout/comments{/number}","issue_comment_url":"https://api.github.com/repos/poanetwork/blockscout/issues/comments{/number}","contents_url":"https://api.github.com/repos/poanetwork/blockscout/contents/{+path}","compare_url":"https://api.github.com/repos/poanetwork/blockscout/compare/{base}...{head}","merges_url":"https://api.github.com/repos/poanetwork/blockscout/merges","archive_url":"https://api.github.com/repos/poanetwork/blockscout/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/poanetwork/blockscout/downloads","issues_url":"https://api.github.com/repos/poanetwork/blockscout/issues{/number}","pulls_url":"https://api.github.com/repos/poanetwork/blockscout/pulls{/number}","milestones_url":"https://api.github.com/repos/poanetwork/blockscout/milestones{/number}","notifications_url":"https://api.github.com/repos/poanetwork/blockscout/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/poanetwork/blockscout/labels{/name}","releases_url":"https://api.github.com/repos/poanetwork/blockscout/releases{/id}","deployments_url":"https://api.github.com/repos/poanetwork/blockscout/deployments","created_at":"2018-01-12T22:45:24Z","updated_at":"2018-10-22T11:20:45Z","pushed_at":"2018-10-22T12:53:41Z","git_url":"git://github.com/poanetwork/blockscout.git","ssh_url":"git@github.com:poanetwork/blockscout.git","clone_url":"https://github.com/poanetwork/blockscout.git","svn_url":"https://github.com/poanetwork/blockscout","homepage":"https://blockscout.com","size":8029,"stargazers_count":247,"watchers_count":247,"language":"Elixir","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":75,"mirror_url":null,"archived":false,"open_issues_count":153,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":75,"open_issues":153,"watchers":247,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/poanetwork/blockscout/pulls/951"},"html":{"href":"https://github.com/poanetwork/blockscout/pull/951"},"issue":{"href":"https://api.github.com/repos/poanetwork/blockscout/issues/951"},"comments":{"href":"https://api.github.com/repos/poanetwork/blockscout/issues/951/comments"},"review_comments":{"href":"https://api.github.com/repos/poanetwork/blockscout/pulls/951/comments"},"review_comment":{"href":"https://api.github.com/repos/poanetwork/blockscout/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/poanetwork/blockscout/pulls/951/commits"},"statuses":{"href":"https://api.github.com/repos/poanetwork/blockscout/statuses/d2e0ef210ac863583c04ed16e0425cd8f34fe612"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"GuSilverFlame"}}