{"action":"created","comment":{"url":"https://api.github.com/repos/corda/corda/pulls/comments/139466278","pull_request_review_id":63402743,"id":139466278,"diff_hunk":"@@ -30,9 +51,31 @@ class CordappProvider(private val attachmentStorage: AttachmentStorage, private\n      */\n     fun getCordappAttachmentId(cordapp: Cordapp): SecureHash? = cordappAttachments.inverse().get(cordapp)\n \n-    private fun loadContractsIntoAttachmentStore(): Map<SecureHash, Cordapp> {\n+    private fun loadContractsIntoAttachmentStore(attachmentStorage: AttachmentStorage): Map<SecureHash, Cordapp> {\n         val cordappsWithAttachments = cordapps.filter { !it.contractClassNames.isEmpty() }\n         val attachmentIds = cordappsWithAttachments.map { it.jarPath.openStream().use { attachmentStorage.importAttachment(it) } }\n         return attachmentIds.zip(cordappsWithAttachments).toMap()\n     }\n-}\n\\ No newline at end of file\n+\n+    /**\n+     * Get the current cordapp context for the given CorDapp\n+     *\n+     * @param cordapp The cordapp to get the context for\n+     * @return A cordapp context for the given CorDapp\n+     */\n+    fun getAppContext(cordapp: Cordapp): CordappContext {","path":"node/src/main/kotlin/net/corda/node/internal/cordapp/CordappProvider.kt","position":68,"original_position":68,"commit_id":"f6a144109e0e4be9a32ded8b1b762d563cbe9191","original_commit_id":"a066028f85003aae408864f318e5f0b9eeefb1cf","user":{"login":"Clintonio","id":474659,"avatar_url":"https://avatars2.githubusercontent.com/u/474659?v=4","gravatar_id":"","url":"https://api.github.com/users/Clintonio","html_url":"https://github.com/Clintonio","followers_url":"https://api.github.com/users/Clintonio/followers","following_url":"https://api.github.com/users/Clintonio/following{/other_user}","gists_url":"https://api.github.com/users/Clintonio/gists{/gist_id}","starred_url":"https://api.github.com/users/Clintonio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clintonio/subscriptions","organizations_url":"https://api.github.com/users/Clintonio/orgs","repos_url":"https://api.github.com/users/Clintonio/repos","events_url":"https://api.github.com/users/Clintonio/events{/privacy}","received_events_url":"https://api.github.com/users/Clintonio/received_events","type":"User","site_admin":false},"body":"Since it can return a different object depending on which flow you are in, it does change pretty often. If called by the same flow twice it would be a waste, but it the flow suspends and another flow loads up it'll need to re-fresh. ","created_at":"2017-09-18T16:03:28Z","updated_at":"2017-09-18T16:03:28Z","html_url":"https://github.com/corda/corda/pull/1518#discussion_r139466278","pull_request_url":"https://api.github.com/repos/corda/corda/pulls/1518","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/corda/corda/pulls/comments/139466278"},"html":{"href":"https://github.com/corda/corda/pull/1518#discussion_r139466278"},"pull_request":{"href":"https://api.github.com/repos/corda/corda/pulls/1518"}},"in_reply_to_id":139408679},"pull_request":{"url":"https://api.github.com/repos/corda/corda/pulls/1518","id":141271863,"html_url":"https://github.com/corda/corda/pull/1518","diff_url":"https://github.com/corda/corda/pull/1518.diff","patch_url":"https://github.com/corda/corda/pull/1518.patch","issue_url":"https://api.github.com/repos/corda/corda/issues/1518","number":1518,"state":"open","locked":false,"title":"Contract constraints placeholder PR","user":{"login":"Clintonio","id":474659,"avatar_url":"https://avatars2.githubusercontent.com/u/474659?v=4","gravatar_id":"","url":"https://api.github.com/users/Clintonio","html_url":"https://github.com/Clintonio","followers_url":"https://api.github.com/users/Clintonio/followers","following_url":"https://api.github.com/users/Clintonio/following{/other_user}","gists_url":"https://api.github.com/users/Clintonio/gists{/gist_id}","starred_url":"https://api.github.com/users/Clintonio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Clintonio/subscriptions","organizations_url":"https://api.github.com/users/Clintonio/orgs","repos_url":"https://api.github.com/users/Clintonio/repos","events_url":"https://api.github.com/users/Clintonio/events{/privacy}","received_events_url":"https://api.github.com/users/Clintonio/received_events","type":"User","site_admin":false},"body":"Please ignore. WIP.","created_at":"2017-09-15T09:53:53Z","updated_at":"2017-09-18T16:03:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"69f3b032a9ff7c292d581038163c91e4557c241e","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":{"url":"https://api.github.com/repos/corda/corda/milestones/8","html_url":"https://github.com/corda/corda/milestone/8","labels_url":"https://api.github.com/repos/corda/corda/milestones/8/labels","id":2732166,"number":8,"title":"1.0","description":"","creator":{"login":"rnicoll","id":3513077,"avatar_url":"https://avatars2.githubusercontent.com/u/3513077?v=4","gravatar_id":"","url":"https://api.github.com/users/rnicoll","html_url":"https://github.com/rnicoll","followers_url":"https://api.github.com/users/rnicoll/followers","following_url":"https://api.github.com/users/rnicoll/following{/other_user}","gists_url":"https://api.github.com/users/rnicoll/gists{/gist_id}","starred_url":"https://api.github.com/users/rnicoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnicoll/subscriptions","organizations_url":"https://api.github.com/users/rnicoll/orgs","repos_url":"https://api.github.com/users/rnicoll/repos","events_url":"https://api.github.com/users/rnicoll/events{/privacy}","received_events_url":"https://api.github.com/users/rnicoll/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":65,"state":"open","created_at":"2017-08-30T09:11:44Z","updated_at":"2017-09-18T15:10:21Z","due_on":"2017-09-28T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/corda/corda/pulls/1518/commits","review_comments_url":"https://api.github.com/repos/corda/corda/pulls/1518/comments","review_comment_url":"https://api.github.com/repos/corda/corda/pulls/comments{/number}","comments_url":"https://api.github.com/repos/corda/corda/issues/1518/comments","statuses_url":"https://api.github.com/repos/corda/corda/statuses/f6a144109e0e4be9a32ded8b1b762d563cbe9191","head":{"label":"corda:clint/hash-constraint","ref":"clint/hash-constraint","sha":"f6a144109e0e4be9a32ded8b1b762d563cbe9191","user":{"login":"corda","id":22600631,"avatar_url":"https://avatars1.githubusercontent.com/u/22600631?v=4","gravatar_id":"","url":"https://api.github.com/users/corda","html_url":"https://github.com/corda","followers_url":"https://api.github.com/users/corda/followers","following_url":"https://api.github.com/users/corda/following{/other_user}","gists_url":"https://api.github.com/users/corda/gists{/gist_id}","starred_url":"https://api.github.com/users/corda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corda/subscriptions","organizations_url":"https://api.github.com/users/corda/orgs","repos_url":"https://api.github.com/users/corda/repos","events_url":"https://api.github.com/users/corda/events{/privacy}","received_events_url":"https://api.github.com/users/corda/received_events","type":"Organization","site_admin":false},"repo":{"id":70137417,"name":"corda","full_name":"corda/corda","owner":{"login":"corda","id":22600631,"avatar_url":"https://avatars1.githubusercontent.com/u/22600631?v=4","gravatar_id":"","url":"https://api.github.com/users/corda","html_url":"https://github.com/corda","followers_url":"https://api.github.com/users/corda/followers","following_url":"https://api.github.com/users/corda/following{/other_user}","gists_url":"https://api.github.com/users/corda/gists{/gist_id}","starred_url":"https://api.github.com/users/corda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corda/subscriptions","organizations_url":"https://api.github.com/users/corda/orgs","repos_url":"https://api.github.com/users/corda/repos","events_url":"https://api.github.com/users/corda/events{/privacy}","received_events_url":"https://api.github.com/users/corda/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/corda/corda","description":"Corda is a distributed ledger platform designed to record, manage and automate legal agreements between business partners. Designed by (and for) the world's largest financial institutions, it offers a unique response to the privacy and scalability challenges facing decentralised applications.","fork":false,"url":"https://api.github.com/repos/corda/corda","forks_url":"https://api.github.com/repos/corda/corda/forks","keys_url":"https://api.github.com/repos/corda/corda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/corda/corda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/corda/corda/teams","hooks_url":"https://api.github.com/repos/corda/corda/hooks","issue_events_url":"https://api.github.com/repos/corda/corda/issues/events{/number}","events_url":"https://api.github.com/repos/corda/corda/events","assignees_url":"https://api.github.com/repos/corda/corda/assignees{/user}","branches_url":"https://api.github.com/repos/corda/corda/branches{/branch}","tags_url":"https://api.github.com/repos/corda/corda/tags","blobs_url":"https://api.github.com/repos/corda/corda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/corda/corda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/corda/corda/git/refs{/sha}","trees_url":"https://api.github.com/repos/corda/corda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/corda/corda/statuses/{sha}","languages_url":"https://api.github.com/repos/corda/corda/languages","stargazers_url":"https://api.github.com/repos/corda/corda/stargazers","contributors_url":"https://api.github.com/repos/corda/corda/contributors","subscribers_url":"https://api.github.com/repos/corda/corda/subscribers","subscription_url":"https://api.github.com/repos/corda/corda/subscription","commits_url":"https://api.github.com/repos/corda/corda/commits{/sha}","git_commits_url":"https://api.github.com/repos/corda/corda/git/commits{/sha}","comments_url":"https://api.github.com/repos/corda/corda/comments{/number}","issue_comment_url":"https://api.github.com/repos/corda/corda/issues/comments{/number}","contents_url":"https://api.github.com/repos/corda/corda/contents/{+path}","compare_url":"https://api.github.com/repos/corda/corda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/corda/corda/merges","archive_url":"https://api.github.com/repos/corda/corda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/corda/corda/downloads","issues_url":"https://api.github.com/repos/corda/corda/issues{/number}","pulls_url":"https://api.github.com/repos/corda/corda/pulls{/number}","milestones_url":"https://api.github.com/repos/corda/corda/milestones{/number}","notifications_url":"https://api.github.com/repos/corda/corda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/corda/corda/labels{/name}","releases_url":"https://api.github.com/repos/corda/corda/releases{/id}","deployments_url":"https://api.github.com/repos/corda/corda/deployments","created_at":"2016-10-06T08:46:29Z","updated_at":"2017-09-18T14:48:04Z","pushed_at":"2017-09-18T15:55:15Z","git_url":"git://github.com/corda/corda.git","ssh_url":"git@github.com:corda/corda.git","clone_url":"https://github.com/corda/corda.git","svn_url":"https://github.com/corda/corda","homepage":"https://www.corda.net","size":96091,"stargazers_count":965,"watchers_count":965,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":283,"mirror_url":null,"open_issues_count":99,"forks":283,"open_issues":99,"watchers":965,"default_branch":"master"}},"base":{"label":"corda:master","ref":"master","sha":"64f2bf7b09c5a4d1c6e62fc620b6241d5adae344","user":{"login":"corda","id":22600631,"avatar_url":"https://avatars1.githubusercontent.com/u/22600631?v=4","gravatar_id":"","url":"https://api.github.com/users/corda","html_url":"https://github.com/corda","followers_url":"https://api.github.com/users/corda/followers","following_url":"https://api.github.com/users/corda/following{/other_user}","gists_url":"https://api.github.com/users/corda/gists{/gist_id}","starred_url":"https://api.github.com/users/corda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corda/subscriptions","organizations_url":"https://api.github.com/users/corda/orgs","repos_url":"https://api.github.com/users/corda/repos","events_url":"https://api.github.com/users/corda/events{/privacy}","received_events_url":"https://api.github.com/users/corda/received_events","type":"Organization","site_admin":false},"repo":{"id":70137417,"name":"corda","full_name":"corda/corda","owner":{"login":"corda","id":22600631,"avatar_url":"https://avatars1.githubusercontent.com/u/22600631?v=4","gravatar_id":"","url":"https://api.github.com/users/corda","html_url":"https://github.com/corda","followers_url":"https://api.github.com/users/corda/followers","following_url":"https://api.github.com/users/corda/following{/other_user}","gists_url":"https://api.github.com/users/corda/gists{/gist_id}","starred_url":"https://api.github.com/users/corda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corda/subscriptions","organizations_url":"https://api.github.com/users/corda/orgs","repos_url":"https://api.github.com/users/corda/repos","events_url":"https://api.github.com/users/corda/events{/privacy}","received_events_url":"https://api.github.com/users/corda/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/corda/corda","description":"Corda is a distributed ledger platform designed to record, manage and automate legal agreements between business partners. Designed by (and for) the world's largest financial institutions, it offers a unique response to the privacy and scalability challenges facing decentralised applications.","fork":false,"url":"https://api.github.com/repos/corda/corda","forks_url":"https://api.github.com/repos/corda/corda/forks","keys_url":"https://api.github.com/repos/corda/corda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/corda/corda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/corda/corda/teams","hooks_url":"https://api.github.com/repos/corda/corda/hooks","issue_events_url":"https://api.github.com/repos/corda/corda/issues/events{/number}","events_url":"https://api.github.com/repos/corda/corda/events","assignees_url":"https://api.github.com/repos/corda/corda/assignees{/user}","branches_url":"https://api.github.com/repos/corda/corda/branches{/branch}","tags_url":"https://api.github.com/repos/corda/corda/tags","blobs_url":"https://api.github.com/repos/corda/corda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/corda/corda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/corda/corda/git/refs{/sha}","trees_url":"https://api.github.com/repos/corda/corda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/corda/corda/statuses/{sha}","languages_url":"https://api.github.com/repos/corda/corda/languages","stargazers_url":"https://api.github.com/repos/corda/corda/stargazers","contributors_url":"https://api.github.com/repos/corda/corda/contributors","subscribers_url":"https://api.github.com/repos/corda/corda/subscribers","subscription_url":"https://api.github.com/repos/corda/corda/subscription","commits_url":"https://api.github.com/repos/corda/corda/commits{/sha}","git_commits_url":"https://api.github.com/repos/corda/corda/git/commits{/sha}","comments_url":"https://api.github.com/repos/corda/corda/comments{/number}","issue_comment_url":"https://api.github.com/repos/corda/corda/issues/comments{/number}","contents_url":"https://api.github.com/repos/corda/corda/contents/{+path}","compare_url":"https://api.github.com/repos/corda/corda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/corda/corda/merges","archive_url":"https://api.github.com/repos/corda/corda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/corda/corda/downloads","issues_url":"https://api.github.com/repos/corda/corda/issues{/number}","pulls_url":"https://api.github.com/repos/corda/corda/pulls{/number}","milestones_url":"https://api.github.com/repos/corda/corda/milestones{/number}","notifications_url":"https://api.github.com/repos/corda/corda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/corda/corda/labels{/name}","releases_url":"https://api.github.com/repos/corda/corda/releases{/id}","deployments_url":"https://api.github.com/repos/corda/corda/deployments","created_at":"2016-10-06T08:46:29Z","updated_at":"2017-09-18T14:48:04Z","pushed_at":"2017-09-18T15:55:15Z","git_url":"git://github.com/corda/corda.git","ssh_url":"git@github.com:corda/corda.git","clone_url":"https://github.com/corda/corda.git","svn_url":"https://github.com/corda/corda","homepage":"https://www.corda.net","size":96091,"stargazers_count":965,"watchers_count":965,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":283,"mirror_url":null,"open_issues_count":99,"forks":283,"open_issues":99,"watchers":965,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/corda/corda/pulls/1518"},"html":{"href":"https://github.com/corda/corda/pull/1518"},"issue":{"href":"https://api.github.com/repos/corda/corda/issues/1518"},"comments":{"href":"https://api.github.com/repos/corda/corda/issues/1518/comments"},"review_comments":{"href":"https://api.github.com/repos/corda/corda/pulls/1518/comments"},"review_comment":{"href":"https://api.github.com/repos/corda/corda/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/corda/corda/pulls/1518/commits"},"statuses":{"href":"https://api.github.com/repos/corda/corda/statuses/f6a144109e0e4be9a32ded8b1b762d563cbe9191"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Clintonio"}}