{"action":"created","comment":{"url":"https://api.github.com/repos/dharmaprotocol/dharma.js/pulls/comments/192269025","pull_request_review_id":125011760,"id":192269025,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MjI2OTAyNQ==","diff_hunk":"@@ -43,4 +134,56 @@ export class LogsAPI {\n \n         return parser.parseDecodedLogs(decodedLogs);\n     }\n+\n+    /**\n+     * TODO: Add watch function.\n+     *\n+     * @example\n+     * // Get a listener for \"LogLoanOrderFilled\" events\n+     * dharma.logs.watch(\"LogLoanOrderFilled\");\n+     *\n+     * @param {string | string[]} eventNames\n+     * @returns {Promise<any>}\n+     *\n+     * public watch(eventNames: string | string[]): Promise<any>;\n+     */\n+\n+    private async getEventToContractsMap() {\n+        const contractWrappers = await this.getContractWrapper();\n+\n+        contractWrappers.map((wrapper) => ABIDecoder.addABI(wrapper.abi));\n+\n+        // Create a mapping of event names to the contract where they originate.","path":"src/apis/logs_api.ts","position":null,"original_position":145,"commit_id":"31e16a4b8e492a47e472ee993caa5bcb9c4b5e9d","original_commit_id":"afe98adacec452f7c155b713cc2453a848069c8e","user":{"login":"saturnial","id":683181,"node_id":"MDQ6VXNlcjY4MzE4MQ==","avatar_url":"https://avatars2.githubusercontent.com/u/683181?v=4","gravatar_id":"","url":"https://api.github.com/users/saturnial","html_url":"https://github.com/saturnial","followers_url":"https://api.github.com/users/saturnial/followers","following_url":"https://api.github.com/users/saturnial/following{/other_user}","gists_url":"https://api.github.com/users/saturnial/gists{/gist_id}","starred_url":"https://api.github.com/users/saturnial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saturnial/subscriptions","organizations_url":"https://api.github.com/users/saturnial/orgs","repos_url":"https://api.github.com/users/saturnial/repos","events_url":"https://api.github.com/users/saturnial/events{/privacy}","received_events_url":"https://api.github.com/users/saturnial/received_events","type":"User","site_admin":false},"body":"i think this would look cleaner if there was a clear chain of transformations","created_at":"2018-05-31T23:55:42Z","updated_at":"2018-05-31T23:55:47Z","html_url":"https://github.com/dharmaprotocol/dharma.js/pull/175#discussion_r192269025","pull_request_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/pulls/175","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/dharmaprotocol/dharma.js/pulls/comments/192269025"},"html":{"href":"https://github.com/dharmaprotocol/dharma.js/pull/175#discussion_r192269025"},"pull_request":{"href":"https://api.github.com/repos/dharmaprotocol/dharma.js/pulls/175"}},"in_reply_to_id":192231039},"pull_request":{"url":"https://api.github.com/repos/dharmaprotocol/dharma.js/pulls/175","id":191841203,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxODQxMjAz","html_url":"https://github.com/dharmaprotocol/dharma.js/pull/175","diff_url":"https://github.com/dharmaprotocol/dharma.js/pull/175.diff","patch_url":"https://github.com/dharmaprotocol/dharma.js/pull/175.patch","issue_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/issues/175","number":175,"state":"open","locked":false,"title":"Add get logs func","user":{"login":"graemecode","id":36094097,"node_id":"MDQ6VXNlcjM2MDk0MDk3","avatar_url":"https://avatars2.githubusercontent.com/u/36094097?v=4","gravatar_id":"","url":"https://api.github.com/users/graemecode","html_url":"https://github.com/graemecode","followers_url":"https://api.github.com/users/graemecode/followers","following_url":"https://api.github.com/users/graemecode/following{/other_user}","gists_url":"https://api.github.com/users/graemecode/gists{/gist_id}","starred_url":"https://api.github.com/users/graemecode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graemecode/subscriptions","organizations_url":"https://api.github.com/users/graemecode/orgs","repos_url":"https://api.github.com/users/graemecode/repos","events_url":"https://api.github.com/users/graemecode/events{/privacy}","received_events_url":"https://api.github.com/users/graemecode/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-31T18:46:28Z","updated_at":"2018-05-31T23:55:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2a0e02cfb0e80310ddf9b935c76735591bfc7b3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":872599313,"node_id":"MDU6TGFiZWw4NzI1OTkzMTM=","url":"https://api.github.com/repos/dharmaprotocol/dharma.js/labels/reviewed","name":"reviewed","color":"006b75","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/pulls/175/commits","review_comments_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/pulls/175/comments","review_comment_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/issues/175/comments","statuses_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/statuses/31e16a4b8e492a47e472ee993caa5bcb9c4b5e9d","head":{"label":"dharmaprotocol:add-get-logs-func","ref":"add-get-logs-func","sha":"31e16a4b8e492a47e472ee993caa5bcb9c4b5e9d","user":{"login":"dharmaprotocol","id":28667653,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4NjY3NjUz","avatar_url":"https://avatars3.githubusercontent.com/u/28667653?v=4","gravatar_id":"","url":"https://api.github.com/users/dharmaprotocol","html_url":"https://github.com/dharmaprotocol","followers_url":"https://api.github.com/users/dharmaprotocol/followers","following_url":"https://api.github.com/users/dharmaprotocol/following{/other_user}","gists_url":"https://api.github.com/users/dharmaprotocol/gists{/gist_id}","starred_url":"https://api.github.com/users/dharmaprotocol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dharmaprotocol/subscriptions","organizations_url":"https://api.github.com/users/dharmaprotocol/orgs","repos_url":"https://api.github.com/users/dharmaprotocol/repos","events_url":"https://api.github.com/users/dharmaprotocol/events{/privacy}","received_events_url":"https://api.github.com/users/dharmaprotocol/received_events","type":"Organization","site_admin":false},"repo":{"id":119430692,"node_id":"MDEwOlJlcG9zaXRvcnkxMTk0MzA2OTI=","name":"dharma.js","full_name":"dharmaprotocol/dharma.js","owner":{"login":"dharmaprotocol","id":28667653,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4NjY3NjUz","avatar_url":"https://avatars3.githubusercontent.com/u/28667653?v=4","gravatar_id":"","url":"https://api.github.com/users/dharmaprotocol","html_url":"https://github.com/dharmaprotocol","followers_url":"https://api.github.com/users/dharmaprotocol/followers","following_url":"https://api.github.com/users/dharmaprotocol/following{/other_user}","gists_url":"https://api.github.com/users/dharmaprotocol/gists{/gist_id}","starred_url":"https://api.github.com/users/dharmaprotocol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dharmaprotocol/subscriptions","organizations_url":"https://api.github.com/users/dharmaprotocol/orgs","repos_url":"https://api.github.com/users/dharmaprotocol/repos","events_url":"https://api.github.com/users/dharmaprotocol/events{/privacy}","received_events_url":"https://api.github.com/users/dharmaprotocol/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dharmaprotocol/dharma.js","description":"Javascript Developer library for interacting with Dharma Protocol","fork":false,"url":"https://api.github.com/repos/dharmaprotocol/dharma.js","forks_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/forks","keys_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/teams","hooks_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/hooks","issue_events_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/issues/events{/number}","events_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/events","assignees_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/assignees{/user}","branches_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/branches{/branch}","tags_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/tags","blobs_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/statuses/{sha}","languages_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/languages","stargazers_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/stargazers","contributors_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/contributors","subscribers_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/subscribers","subscription_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/subscription","commits_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/contents/{+path}","compare_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/merges","archive_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/downloads","issues_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/issues{/number}","pulls_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/pulls{/number}","milestones_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/milestones{/number}","notifications_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/labels{/name}","releases_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/releases{/id}","deployments_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/deployments","created_at":"2018-01-29T19:30:13Z","updated_at":"2018-05-29T22:36:10Z","pushed_at":"2018-05-31T23:50:01Z","git_url":"git://github.com/dharmaprotocol/dharma.js.git","ssh_url":"git@github.com:dharmaprotocol/dharma.js.git","clone_url":"https://github.com/dharmaprotocol/dharma.js.git","svn_url":"https://github.com/dharmaprotocol/dharma.js","homepage":"https://dharma.io","size":6645,"stargazers_count":23,"watchers_count":23,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":10,"open_issues":1,"watchers":23,"default_branch":"master"}},"base":{"label":"dharmaprotocol:master","ref":"master","sha":"5d19c67410b2c7d43b8c13d48ee958662df2b5df","user":{"login":"dharmaprotocol","id":28667653,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4NjY3NjUz","avatar_url":"https://avatars3.githubusercontent.com/u/28667653?v=4","gravatar_id":"","url":"https://api.github.com/users/dharmaprotocol","html_url":"https://github.com/dharmaprotocol","followers_url":"https://api.github.com/users/dharmaprotocol/followers","following_url":"https://api.github.com/users/dharmaprotocol/following{/other_user}","gists_url":"https://api.github.com/users/dharmaprotocol/gists{/gist_id}","starred_url":"https://api.github.com/users/dharmaprotocol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dharmaprotocol/subscriptions","organizations_url":"https://api.github.com/users/dharmaprotocol/orgs","repos_url":"https://api.github.com/users/dharmaprotocol/repos","events_url":"https://api.github.com/users/dharmaprotocol/events{/privacy}","received_events_url":"https://api.github.com/users/dharmaprotocol/received_events","type":"Organization","site_admin":false},"repo":{"id":119430692,"node_id":"MDEwOlJlcG9zaXRvcnkxMTk0MzA2OTI=","name":"dharma.js","full_name":"dharmaprotocol/dharma.js","owner":{"login":"dharmaprotocol","id":28667653,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4NjY3NjUz","avatar_url":"https://avatars3.githubusercontent.com/u/28667653?v=4","gravatar_id":"","url":"https://api.github.com/users/dharmaprotocol","html_url":"https://github.com/dharmaprotocol","followers_url":"https://api.github.com/users/dharmaprotocol/followers","following_url":"https://api.github.com/users/dharmaprotocol/following{/other_user}","gists_url":"https://api.github.com/users/dharmaprotocol/gists{/gist_id}","starred_url":"https://api.github.com/users/dharmaprotocol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dharmaprotocol/subscriptions","organizations_url":"https://api.github.com/users/dharmaprotocol/orgs","repos_url":"https://api.github.com/users/dharmaprotocol/repos","events_url":"https://api.github.com/users/dharmaprotocol/events{/privacy}","received_events_url":"https://api.github.com/users/dharmaprotocol/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dharmaprotocol/dharma.js","description":"Javascript Developer library for interacting with Dharma Protocol","fork":false,"url":"https://api.github.com/repos/dharmaprotocol/dharma.js","forks_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/forks","keys_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/teams","hooks_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/hooks","issue_events_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/issues/events{/number}","events_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/events","assignees_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/assignees{/user}","branches_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/branches{/branch}","tags_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/tags","blobs_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/statuses/{sha}","languages_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/languages","stargazers_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/stargazers","contributors_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/contributors","subscribers_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/subscribers","subscription_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/subscription","commits_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/contents/{+path}","compare_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/merges","archive_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/downloads","issues_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/issues{/number}","pulls_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/pulls{/number}","milestones_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/milestones{/number}","notifications_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/labels{/name}","releases_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/releases{/id}","deployments_url":"https://api.github.com/repos/dharmaprotocol/dharma.js/deployments","created_at":"2018-01-29T19:30:13Z","updated_at":"2018-05-29T22:36:10Z","pushed_at":"2018-05-31T23:50:01Z","git_url":"git://github.com/dharmaprotocol/dharma.js.git","ssh_url":"git@github.com:dharmaprotocol/dharma.js.git","clone_url":"https://github.com/dharmaprotocol/dharma.js.git","svn_url":"https://github.com/dharmaprotocol/dharma.js","homepage":"https://dharma.io","size":6645,"stargazers_count":23,"watchers_count":23,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":10,"open_issues":1,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dharmaprotocol/dharma.js/pulls/175"},"html":{"href":"https://github.com/dharmaprotocol/dharma.js/pull/175"},"issue":{"href":"https://api.github.com/repos/dharmaprotocol/dharma.js/issues/175"},"comments":{"href":"https://api.github.com/repos/dharmaprotocol/dharma.js/issues/175/comments"},"review_comments":{"href":"https://api.github.com/repos/dharmaprotocol/dharma.js/pulls/175/comments"},"review_comment":{"href":"https://api.github.com/repos/dharmaprotocol/dharma.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dharmaprotocol/dharma.js/pulls/175/commits"},"statuses":{"href":"https://api.github.com/repos/dharmaprotocol/dharma.js/statuses/31e16a4b8e492a47e472ee993caa5bcb9c4b5e9d"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"saturnial"}}