{"action":"created","comment":{"url":"https://api.github.com/repos/LedgerHQ/ledgerjs/pulls/comments/166353267","pull_request_review_id":94402525,"id":166353267,"diff_hunk":"@@ -0,0 +1,35 @@\n+//@flow\n+\n+import { encodeURIScheme, decodeURIScheme } from \"./CurrencyURIScheme\";\n+\n+import { getFiatUnit, getFiatUnitSafe } from \"./data/fiat\";\n+\n+import {\n+  listCurrencies,\n+  getCurrencyByCoinType,\n+  getCurrencyByCoinTypeSafe\n+} from \"./data/cryptocurrencies\";\n+\n+import {\n+  formatCurrencyUnit,\n+  formatCurrencyUnitFragment\n+} from \"./formatCurrencyUnit\";\n+\n+import countervalueForRate from \"./countervalueForRate\";\n+\n+export {\n+  listCurrencies,\n+  getFiatUnit,\n+  getFiatUnitSafe,\n+  formatCurrencyUnit,\n+  formatCurrencyUnitFragment,\n+  getCurrencyByCoinType,\n+  getCurrencyByCoinTypeSafe,\n+  countervalueForRate,\n+  encodeURIScheme,\n+  decodeURIScheme\n+};\n+\n+import type { Currency, Unit, Rate, UnitValue } from \"./types\";\n+\n+export type { Currency, Unit, Rate, UnitValue };","path":"packages/currencies/src/index.js","position":35,"original_position":35,"commit_id":"7b037e95e314c7e8c8eb6366f1587043b81b854b","original_commit_id":"7b037e95e314c7e8c8eb6366f1587043b81b854b","user":{"login":"meriadec","id":315259,"avatar_url":"https://avatars0.githubusercontent.com/u/315259?v=4","gravatar_id":"","url":"https://api.github.com/users/meriadec","html_url":"https://github.com/meriadec","followers_url":"https://api.github.com/users/meriadec/followers","following_url":"https://api.github.com/users/meriadec/following{/other_user}","gists_url":"https://api.github.com/users/meriadec/gists{/gist_id}","starred_url":"https://api.github.com/users/meriadec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meriadec/subscriptions","organizations_url":"https://api.github.com/users/meriadec/orgs","repos_url":"https://api.github.com/users/meriadec/repos","events_url":"https://api.github.com/users/meriadec/events{/privacy}","received_events_url":"https://api.github.com/users/meriadec/received_events","type":"User","site_admin":false},"body":"not sure for flow types, but doesn't this works?\r\n\r\n```\r\nexport type { Currency, Unit, Rate, UnitValue } from './types'\r\n```","created_at":"2018-02-06T16:10:05Z","updated_at":"2018-02-06T16:10:05Z","html_url":"https://github.com/LedgerHQ/ledgerjs/pull/64#discussion_r166353267","pull_request_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/pulls/64","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/LedgerHQ/ledgerjs/pulls/comments/166353267"},"html":{"href":"https://github.com/LedgerHQ/ledgerjs/pull/64#discussion_r166353267"},"pull_request":{"href":"https://api.github.com/repos/LedgerHQ/ledgerjs/pulls/64"}}},"pull_request":{"url":"https://api.github.com/repos/LedgerHQ/ledgerjs/pulls/64","id":167434676,"html_url":"https://github.com/LedgerHQ/ledgerjs/pull/64","diff_url":"https://github.com/LedgerHQ/ledgerjs/pull/64.diff","patch_url":"https://github.com/LedgerHQ/ledgerjs/pull/64.patch","issue_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/issues/64","number":64,"state":"open","locked":false,"title":"add 'currencies' library (forked out of common)","user":{"login":"gre","id":211411,"avatar_url":"https://avatars1.githubusercontent.com/u/211411?v=4","gravatar_id":"","url":"https://api.github.com/users/gre","html_url":"https://github.com/gre","followers_url":"https://api.github.com/users/gre/followers","following_url":"https://api.github.com/users/gre/following{/other_user}","gists_url":"https://api.github.com/users/gre/gists{/gist_id}","starred_url":"https://api.github.com/users/gre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gre/subscriptions","organizations_url":"https://api.github.com/users/gre/orgs","repos_url":"https://api.github.com/users/gre/repos","events_url":"https://api.github.com/users/gre/events{/privacy}","received_events_url":"https://api.github.com/users/gre/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-06T14:50:34Z","updated_at":"2018-02-06T16:10:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"35a84602577de08bdcd02a2ce65baa282de62844","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/pulls/64/commits","review_comments_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/pulls/64/comments","review_comment_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/issues/64/comments","statuses_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/statuses/7b037e95e314c7e8c8eb6366f1587043b81b854b","head":{"label":"LedgerHQ:currencies","ref":"currencies","sha":"7b037e95e314c7e8c8eb6366f1587043b81b854b","user":{"login":"LedgerHQ","id":9784193,"avatar_url":"https://avatars1.githubusercontent.com/u/9784193?v=4","gravatar_id":"","url":"https://api.github.com/users/LedgerHQ","html_url":"https://github.com/LedgerHQ","followers_url":"https://api.github.com/users/LedgerHQ/followers","following_url":"https://api.github.com/users/LedgerHQ/following{/other_user}","gists_url":"https://api.github.com/users/LedgerHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/LedgerHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LedgerHQ/subscriptions","organizations_url":"https://api.github.com/users/LedgerHQ/orgs","repos_url":"https://api.github.com/users/LedgerHQ/repos","events_url":"https://api.github.com/users/LedgerHQ/events{/privacy}","received_events_url":"https://api.github.com/users/LedgerHQ/received_events","type":"Organization","site_admin":false},"repo":{"id":33945868,"name":"ledgerjs","full_name":"LedgerHQ/ledgerjs","owner":{"login":"LedgerHQ","id":9784193,"avatar_url":"https://avatars1.githubusercontent.com/u/9784193?v=4","gravatar_id":"","url":"https://api.github.com/users/LedgerHQ","html_url":"https://github.com/LedgerHQ","followers_url":"https://api.github.com/users/LedgerHQ/followers","following_url":"https://api.github.com/users/LedgerHQ/following{/other_user}","gists_url":"https://api.github.com/users/LedgerHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/LedgerHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LedgerHQ/subscriptions","organizations_url":"https://api.github.com/users/LedgerHQ/orgs","repos_url":"https://api.github.com/users/LedgerHQ/repos","events_url":"https://api.github.com/users/LedgerHQ/events{/privacy}","received_events_url":"https://api.github.com/users/LedgerHQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LedgerHQ/ledgerjs","description":"Ledger Nano / Nano S / Blue JavaScript APIs for Node.js and browsers","fork":false,"url":"https://api.github.com/repos/LedgerHQ/ledgerjs","forks_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/forks","keys_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/teams","hooks_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/hooks","issue_events_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/issues/events{/number}","events_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/events","assignees_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/assignees{/user}","branches_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/branches{/branch}","tags_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/tags","blobs_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/statuses/{sha}","languages_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/languages","stargazers_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/stargazers","contributors_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/contributors","subscribers_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/subscribers","subscription_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/subscription","commits_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/contents/{+path}","compare_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/merges","archive_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/downloads","issues_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/issues{/number}","pulls_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/pulls{/number}","milestones_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/milestones{/number}","notifications_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/labels{/name}","releases_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/releases{/id}","deployments_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/deployments","created_at":"2015-04-14T17:16:09Z","updated_at":"2018-02-06T12:54:30Z","pushed_at":"2018-02-06T15:55:53Z","git_url":"git://github.com/LedgerHQ/ledgerjs.git","ssh_url":"git@github.com:LedgerHQ/ledgerjs.git","clone_url":"https://github.com/LedgerHQ/ledgerjs.git","svn_url":"https://github.com/LedgerHQ/ledgerjs","homepage":"http://ledgerhq.github.io/ledgerjs/","size":2304,"stargazers_count":62,"watchers_count":62,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":42,"mirror_url":null,"archived":false,"open_issues_count":14,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":42,"open_issues":14,"watchers":62,"default_branch":"master"}},"base":{"label":"LedgerHQ:master","ref":"master","sha":"6b961884219b11f07448804dfdf0acd30db47cbb","user":{"login":"LedgerHQ","id":9784193,"avatar_url":"https://avatars1.githubusercontent.com/u/9784193?v=4","gravatar_id":"","url":"https://api.github.com/users/LedgerHQ","html_url":"https://github.com/LedgerHQ","followers_url":"https://api.github.com/users/LedgerHQ/followers","following_url":"https://api.github.com/users/LedgerHQ/following{/other_user}","gists_url":"https://api.github.com/users/LedgerHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/LedgerHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LedgerHQ/subscriptions","organizations_url":"https://api.github.com/users/LedgerHQ/orgs","repos_url":"https://api.github.com/users/LedgerHQ/repos","events_url":"https://api.github.com/users/LedgerHQ/events{/privacy}","received_events_url":"https://api.github.com/users/LedgerHQ/received_events","type":"Organization","site_admin":false},"repo":{"id":33945868,"name":"ledgerjs","full_name":"LedgerHQ/ledgerjs","owner":{"login":"LedgerHQ","id":9784193,"avatar_url":"https://avatars1.githubusercontent.com/u/9784193?v=4","gravatar_id":"","url":"https://api.github.com/users/LedgerHQ","html_url":"https://github.com/LedgerHQ","followers_url":"https://api.github.com/users/LedgerHQ/followers","following_url":"https://api.github.com/users/LedgerHQ/following{/other_user}","gists_url":"https://api.github.com/users/LedgerHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/LedgerHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LedgerHQ/subscriptions","organizations_url":"https://api.github.com/users/LedgerHQ/orgs","repos_url":"https://api.github.com/users/LedgerHQ/repos","events_url":"https://api.github.com/users/LedgerHQ/events{/privacy}","received_events_url":"https://api.github.com/users/LedgerHQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LedgerHQ/ledgerjs","description":"Ledger Nano / Nano S / Blue JavaScript APIs for Node.js and browsers","fork":false,"url":"https://api.github.com/repos/LedgerHQ/ledgerjs","forks_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/forks","keys_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/teams","hooks_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/hooks","issue_events_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/issues/events{/number}","events_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/events","assignees_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/assignees{/user}","branches_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/branches{/branch}","tags_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/tags","blobs_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/statuses/{sha}","languages_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/languages","stargazers_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/stargazers","contributors_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/contributors","subscribers_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/subscribers","subscription_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/subscription","commits_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/contents/{+path}","compare_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/merges","archive_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/downloads","issues_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/issues{/number}","pulls_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/pulls{/number}","milestones_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/milestones{/number}","notifications_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/labels{/name}","releases_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/releases{/id}","deployments_url":"https://api.github.com/repos/LedgerHQ/ledgerjs/deployments","created_at":"2015-04-14T17:16:09Z","updated_at":"2018-02-06T12:54:30Z","pushed_at":"2018-02-06T15:55:53Z","git_url":"git://github.com/LedgerHQ/ledgerjs.git","ssh_url":"git@github.com:LedgerHQ/ledgerjs.git","clone_url":"https://github.com/LedgerHQ/ledgerjs.git","svn_url":"https://github.com/LedgerHQ/ledgerjs","homepage":"http://ledgerhq.github.io/ledgerjs/","size":2304,"stargazers_count":62,"watchers_count":62,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":42,"mirror_url":null,"archived":false,"open_issues_count":14,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":42,"open_issues":14,"watchers":62,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LedgerHQ/ledgerjs/pulls/64"},"html":{"href":"https://github.com/LedgerHQ/ledgerjs/pull/64"},"issue":{"href":"https://api.github.com/repos/LedgerHQ/ledgerjs/issues/64"},"comments":{"href":"https://api.github.com/repos/LedgerHQ/ledgerjs/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/LedgerHQ/ledgerjs/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/LedgerHQ/ledgerjs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LedgerHQ/ledgerjs/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/LedgerHQ/ledgerjs/statuses/7b037e95e314c7e8c8eb6366f1587043b81b854b"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"meriadec"}}