{"action":"created","comment":{"url":"https://api.github.com/repos/d3ledger/notary/pulls/comments/197718345","pull_request_review_id":131514350,"id":197718345,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NzcxODM0NQ==","diff_hunk":"@@ -70,26 +98,75 @@ class IntegrationTest {\n     }\n \n     /**\n-     * Query Iroha account balance\n+     * Sends transaction to Iroha.\n+     * @return hex representation of transaction\n      */\n-    fun queryIroha() {\n-        IrohaInitializtion.loadIrohaLibrary()\n-            .failure {\n-                println(it)\n-                System.exit(1)\n-            }\n+    fun sendTxToIroha(txBuilder: ModelTransactionBuilder): String {\n+        val utx = txBuilder.build()\n+        val hash = utx.hash().hex()\n+\n+        // sign transaction and get its binary representation (Blob)\n+        val txblob = ModelProtoTransaction(utx).signAndAddSignature(keypair).finish().blob().toByteArray()\n+\n+        // create proto object\n+        var protoTx: BlockOuterClass.Transaction? = null","path":"src/test/integration/IntegrationTest.kt","position":84,"original_position":84,"commit_id":"44bf4dd7b44c0d49b2783f5a72d761adda164a35","original_commit_id":"44bf4dd7b44c0d49b2783f5a72d761adda164a35","user":{"login":"Alexey-N-Chernyshov","id":495478,"node_id":"MDQ6VXNlcjQ5NTQ3OA==","avatar_url":"https://avatars0.githubusercontent.com/u/495478?v=4","gravatar_id":"","url":"https://api.github.com/users/Alexey-N-Chernyshov","html_url":"https://github.com/Alexey-N-Chernyshov","followers_url":"https://api.github.com/users/Alexey-N-Chernyshov/followers","following_url":"https://api.github.com/users/Alexey-N-Chernyshov/following{/other_user}","gists_url":"https://api.github.com/users/Alexey-N-Chernyshov/gists{/gist_id}","starred_url":"https://api.github.com/users/Alexey-N-Chernyshov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alexey-N-Chernyshov/subscriptions","organizations_url":"https://api.github.com/users/Alexey-N-Chernyshov/orgs","repos_url":"https://api.github.com/users/Alexey-N-Chernyshov/repos","events_url":"https://api.github.com/users/Alexey-N-Chernyshov/events{/privacy}","received_events_url":"https://api.github.com/users/Alexey-N-Chernyshov/received_events","type":"User","site_admin":false},"body":"Yes, but now we have more prioritised tasks to do.","created_at":"2018-06-25T08:40:16Z","updated_at":"2018-06-25T08:40:16Z","html_url":"https://github.com/d3ledger/notary/pull/47#discussion_r197718345","pull_request_url":"https://api.github.com/repos/d3ledger/notary/pulls/47","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/d3ledger/notary/pulls/comments/197718345"},"html":{"href":"https://github.com/d3ledger/notary/pull/47#discussion_r197718345"},"pull_request":{"href":"https://api.github.com/repos/d3ledger/notary/pulls/47"}},"in_reply_to_id":197705841},"pull_request":{"url":"https://api.github.com/repos/d3ledger/notary/pulls/47","id":195846787,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1ODQ2Nzg3","html_url":"https://github.com/d3ledger/notary/pull/47","diff_url":"https://github.com/d3ledger/notary/pull/47.diff","patch_url":"https://github.com/d3ledger/notary/pull/47.patch","issue_url":"https://api.github.com/repos/d3ledger/notary/issues/47","number":47,"state":"open","locked":false,"title":"Feature/implement refund","user":{"login":"Alexey-N-Chernyshov","id":495478,"node_id":"MDQ6VXNlcjQ5NTQ3OA==","avatar_url":"https://avatars0.githubusercontent.com/u/495478?v=4","gravatar_id":"","url":"https://api.github.com/users/Alexey-N-Chernyshov","html_url":"https://github.com/Alexey-N-Chernyshov","followers_url":"https://api.github.com/users/Alexey-N-Chernyshov/followers","following_url":"https://api.github.com/users/Alexey-N-Chernyshov/following{/other_user}","gists_url":"https://api.github.com/users/Alexey-N-Chernyshov/gists{/gist_id}","starred_url":"https://api.github.com/users/Alexey-N-Chernyshov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alexey-N-Chernyshov/subscriptions","organizations_url":"https://api.github.com/users/Alexey-N-Chernyshov/orgs","repos_url":"https://api.github.com/users/Alexey-N-Chernyshov/repos","events_url":"https://api.github.com/users/Alexey-N-Chernyshov/events{/privacy}","received_events_url":"https://api.github.com/users/Alexey-N-Chernyshov/received_events","type":"User","site_admin":false},"body":"add effective refund implementation and tests","created_at":"2018-06-19T14:26:14Z","updated_at":"2018-06-25T08:40:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f42a9d286c5472875f31c8c49255ab2cc73600e3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/d3ledger/notary/pulls/47/commits","review_comments_url":"https://api.github.com/repos/d3ledger/notary/pulls/47/comments","review_comment_url":"https://api.github.com/repos/d3ledger/notary/pulls/comments{/number}","comments_url":"https://api.github.com/repos/d3ledger/notary/issues/47/comments","statuses_url":"https://api.github.com/repos/d3ledger/notary/statuses/44bf4dd7b44c0d49b2783f5a72d761adda164a35","head":{"label":"d3ledger:feature/implement-refund","ref":"feature/implement-refund","sha":"44bf4dd7b44c0d49b2783f5a72d761adda164a35","user":{"login":"d3ledger","id":31348469,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMzQ4NDY5","avatar_url":"https://avatars1.githubusercontent.com/u/31348469?v=4","gravatar_id":"","url":"https://api.github.com/users/d3ledger","html_url":"https://github.com/d3ledger","followers_url":"https://api.github.com/users/d3ledger/followers","following_url":"https://api.github.com/users/d3ledger/following{/other_user}","gists_url":"https://api.github.com/users/d3ledger/gists{/gist_id}","starred_url":"https://api.github.com/users/d3ledger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3ledger/subscriptions","organizations_url":"https://api.github.com/users/d3ledger/orgs","repos_url":"https://api.github.com/users/d3ledger/repos","events_url":"https://api.github.com/users/d3ledger/events{/privacy}","received_events_url":"https://api.github.com/users/d3ledger/received_events","type":"Organization","site_admin":false},"repo":{"id":129921969,"node_id":"MDEwOlJlcG9zaXRvcnkxMjk5MjE5Njk=","name":"notary","full_name":"d3ledger/notary","owner":{"login":"d3ledger","id":31348469,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMzQ4NDY5","avatar_url":"https://avatars1.githubusercontent.com/u/31348469?v=4","gravatar_id":"","url":"https://api.github.com/users/d3ledger","html_url":"https://github.com/d3ledger","followers_url":"https://api.github.com/users/d3ledger/followers","following_url":"https://api.github.com/users/d3ledger/following{/other_user}","gists_url":"https://api.github.com/users/d3ledger/gists{/gist_id}","starred_url":"https://api.github.com/users/d3ledger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3ledger/subscriptions","organizations_url":"https://api.github.com/users/d3ledger/orgs","repos_url":"https://api.github.com/users/d3ledger/repos","events_url":"https://api.github.com/users/d3ledger/events{/privacy}","received_events_url":"https://api.github.com/users/d3ledger/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/d3ledger/notary","description":"Backend code for a D3 notary","fork":false,"url":"https://api.github.com/repos/d3ledger/notary","forks_url":"https://api.github.com/repos/d3ledger/notary/forks","keys_url":"https://api.github.com/repos/d3ledger/notary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/d3ledger/notary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/d3ledger/notary/teams","hooks_url":"https://api.github.com/repos/d3ledger/notary/hooks","issue_events_url":"https://api.github.com/repos/d3ledger/notary/issues/events{/number}","events_url":"https://api.github.com/repos/d3ledger/notary/events","assignees_url":"https://api.github.com/repos/d3ledger/notary/assignees{/user}","branches_url":"https://api.github.com/repos/d3ledger/notary/branches{/branch}","tags_url":"https://api.github.com/repos/d3ledger/notary/tags","blobs_url":"https://api.github.com/repos/d3ledger/notary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/d3ledger/notary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/d3ledger/notary/git/refs{/sha}","trees_url":"https://api.github.com/repos/d3ledger/notary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/d3ledger/notary/statuses/{sha}","languages_url":"https://api.github.com/repos/d3ledger/notary/languages","stargazers_url":"https://api.github.com/repos/d3ledger/notary/stargazers","contributors_url":"https://api.github.com/repos/d3ledger/notary/contributors","subscribers_url":"https://api.github.com/repos/d3ledger/notary/subscribers","subscription_url":"https://api.github.com/repos/d3ledger/notary/subscription","commits_url":"https://api.github.com/repos/d3ledger/notary/commits{/sha}","git_commits_url":"https://api.github.com/repos/d3ledger/notary/git/commits{/sha}","comments_url":"https://api.github.com/repos/d3ledger/notary/comments{/number}","issue_comment_url":"https://api.github.com/repos/d3ledger/notary/issues/comments{/number}","contents_url":"https://api.github.com/repos/d3ledger/notary/contents/{+path}","compare_url":"https://api.github.com/repos/d3ledger/notary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/d3ledger/notary/merges","archive_url":"https://api.github.com/repos/d3ledger/notary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/d3ledger/notary/downloads","issues_url":"https://api.github.com/repos/d3ledger/notary/issues{/number}","pulls_url":"https://api.github.com/repos/d3ledger/notary/pulls{/number}","milestones_url":"https://api.github.com/repos/d3ledger/notary/milestones{/number}","notifications_url":"https://api.github.com/repos/d3ledger/notary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/d3ledger/notary/labels{/name}","releases_url":"https://api.github.com/repos/d3ledger/notary/releases{/id}","deployments_url":"https://api.github.com/repos/d3ledger/notary/deployments","created_at":"2018-04-17T15:01:56Z","updated_at":"2018-06-20T12:33:59Z","pushed_at":"2018-06-25T07:51:35Z","git_url":"git://github.com/d3ledger/notary.git","ssh_url":"git@github.com:d3ledger/notary.git","clone_url":"https://github.com/d3ledger/notary.git","svn_url":"https://github.com/d3ledger/notary","homepage":"","size":31132,"stargazers_count":2,"watchers_count":2,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":3,"watchers":2,"default_branch":"master"}},"base":{"label":"d3ledger:master","ref":"master","sha":"49d100fadb383f3ba013e21ab45fe176afa3ba3c","user":{"login":"d3ledger","id":31348469,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMzQ4NDY5","avatar_url":"https://avatars1.githubusercontent.com/u/31348469?v=4","gravatar_id":"","url":"https://api.github.com/users/d3ledger","html_url":"https://github.com/d3ledger","followers_url":"https://api.github.com/users/d3ledger/followers","following_url":"https://api.github.com/users/d3ledger/following{/other_user}","gists_url":"https://api.github.com/users/d3ledger/gists{/gist_id}","starred_url":"https://api.github.com/users/d3ledger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3ledger/subscriptions","organizations_url":"https://api.github.com/users/d3ledger/orgs","repos_url":"https://api.github.com/users/d3ledger/repos","events_url":"https://api.github.com/users/d3ledger/events{/privacy}","received_events_url":"https://api.github.com/users/d3ledger/received_events","type":"Organization","site_admin":false},"repo":{"id":129921969,"node_id":"MDEwOlJlcG9zaXRvcnkxMjk5MjE5Njk=","name":"notary","full_name":"d3ledger/notary","owner":{"login":"d3ledger","id":31348469,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMzQ4NDY5","avatar_url":"https://avatars1.githubusercontent.com/u/31348469?v=4","gravatar_id":"","url":"https://api.github.com/users/d3ledger","html_url":"https://github.com/d3ledger","followers_url":"https://api.github.com/users/d3ledger/followers","following_url":"https://api.github.com/users/d3ledger/following{/other_user}","gists_url":"https://api.github.com/users/d3ledger/gists{/gist_id}","starred_url":"https://api.github.com/users/d3ledger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3ledger/subscriptions","organizations_url":"https://api.github.com/users/d3ledger/orgs","repos_url":"https://api.github.com/users/d3ledger/repos","events_url":"https://api.github.com/users/d3ledger/events{/privacy}","received_events_url":"https://api.github.com/users/d3ledger/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/d3ledger/notary","description":"Backend code for a D3 notary","fork":false,"url":"https://api.github.com/repos/d3ledger/notary","forks_url":"https://api.github.com/repos/d3ledger/notary/forks","keys_url":"https://api.github.com/repos/d3ledger/notary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/d3ledger/notary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/d3ledger/notary/teams","hooks_url":"https://api.github.com/repos/d3ledger/notary/hooks","issue_events_url":"https://api.github.com/repos/d3ledger/notary/issues/events{/number}","events_url":"https://api.github.com/repos/d3ledger/notary/events","assignees_url":"https://api.github.com/repos/d3ledger/notary/assignees{/user}","branches_url":"https://api.github.com/repos/d3ledger/notary/branches{/branch}","tags_url":"https://api.github.com/repos/d3ledger/notary/tags","blobs_url":"https://api.github.com/repos/d3ledger/notary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/d3ledger/notary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/d3ledger/notary/git/refs{/sha}","trees_url":"https://api.github.com/repos/d3ledger/notary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/d3ledger/notary/statuses/{sha}","languages_url":"https://api.github.com/repos/d3ledger/notary/languages","stargazers_url":"https://api.github.com/repos/d3ledger/notary/stargazers","contributors_url":"https://api.github.com/repos/d3ledger/notary/contributors","subscribers_url":"https://api.github.com/repos/d3ledger/notary/subscribers","subscription_url":"https://api.github.com/repos/d3ledger/notary/subscription","commits_url":"https://api.github.com/repos/d3ledger/notary/commits{/sha}","git_commits_url":"https://api.github.com/repos/d3ledger/notary/git/commits{/sha}","comments_url":"https://api.github.com/repos/d3ledger/notary/comments{/number}","issue_comment_url":"https://api.github.com/repos/d3ledger/notary/issues/comments{/number}","contents_url":"https://api.github.com/repos/d3ledger/notary/contents/{+path}","compare_url":"https://api.github.com/repos/d3ledger/notary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/d3ledger/notary/merges","archive_url":"https://api.github.com/repos/d3ledger/notary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/d3ledger/notary/downloads","issues_url":"https://api.github.com/repos/d3ledger/notary/issues{/number}","pulls_url":"https://api.github.com/repos/d3ledger/notary/pulls{/number}","milestones_url":"https://api.github.com/repos/d3ledger/notary/milestones{/number}","notifications_url":"https://api.github.com/repos/d3ledger/notary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/d3ledger/notary/labels{/name}","releases_url":"https://api.github.com/repos/d3ledger/notary/releases{/id}","deployments_url":"https://api.github.com/repos/d3ledger/notary/deployments","created_at":"2018-04-17T15:01:56Z","updated_at":"2018-06-20T12:33:59Z","pushed_at":"2018-06-25T07:51:35Z","git_url":"git://github.com/d3ledger/notary.git","ssh_url":"git@github.com:d3ledger/notary.git","clone_url":"https://github.com/d3ledger/notary.git","svn_url":"https://github.com/d3ledger/notary","homepage":"","size":31132,"stargazers_count":2,"watchers_count":2,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/d3ledger/notary/pulls/47"},"html":{"href":"https://github.com/d3ledger/notary/pull/47"},"issue":{"href":"https://api.github.com/repos/d3ledger/notary/issues/47"},"comments":{"href":"https://api.github.com/repos/d3ledger/notary/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/d3ledger/notary/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/d3ledger/notary/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/d3ledger/notary/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/d3ledger/notary/statuses/44bf4dd7b44c0d49b2783f5a72d761adda164a35"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Alexey-N-Chernyshov"}}