{"action":"created","comment":{"url":"https://api.github.com/repos/expload/pravda/pulls/comments/226897551","pull_request_review_id":166821659,"id":226897551,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjg5NzU1MQ==","diff_hunk":"@@ -0,0 +1,51 @@\n+/*\n+ * Copyright (C) 2018  Expload.com\n+ *\n+ * This program is free software: you can redistribute it and/or modify\n+ * it under the terms of the GNU Affero General Public License as\n+ * published by the Free Software Foundation, either version 3 of the\n+ * License, or (at your option) any later version.\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU Affero General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU Affero General Public License\n+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+ */\n+\n+package pravda.evm.translate.opcode\n+\n+import pravda.evm.EVM\n+import pravda.evm.EVM.JumpDest\n+import pravda.vm.asm.Operation\n+import pravda.vm.{Opcodes, asm}\n+import pravda.vm.asm.Operation.PushRef\n+\n+object JumpDestinationPrepare {\n+\n+  def jumpDestToOps(op: (EVM.JumpDest, Int)): List[asm.Operation] =\n+    op match {\n+      case (JumpDest(addr), ind) =>\n+        List(\n+          asm.Operation.Label(getNameByNumber(ind)),\n+          asm.Operation(Opcodes.DUP),\n+          pushBigInt(addr),\n+          asm.Operation(Opcodes.EQ),\n+          asm.Operation(Opcodes.NOT),\n+          Operation.JumpI(Some(getNameByNumber(ind + 1))),","path":"evm/src/main/scala/pravda/evm/translate/opcode/JumpDestinationPrepare.scala","position":37,"original_position":37,"commit_id":"f87dca2cefaccc94e031ca72865753bf2cdedb35","original_commit_id":"f87dca2cefaccc94e031ca72865753bf2cdedb35","user":{"login":"dedok1997","id":26325259,"node_id":"MDQ6VXNlcjI2MzI1MjU5","avatar_url":"https://avatars2.githubusercontent.com/u/26325259?v=4","gravatar_id":"","url":"https://api.github.com/users/dedok1997","html_url":"https://github.com/dedok1997","followers_url":"https://api.github.com/users/dedok1997/followers","following_url":"https://api.github.com/users/dedok1997/following{/other_user}","gists_url":"https://api.github.com/users/dedok1997/gists{/gist_id}","starred_url":"https://api.github.com/users/dedok1997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dedok1997/subscriptions","organizations_url":"https://api.github.com/users/dedok1997/orgs","repos_url":"https://api.github.com/users/dedok1997/repos","events_url":"https://api.github.com/users/dedok1997/events{/privacy}","received_events_url":"https://api.github.com/users/dedok1997/received_events","type":"User","site_admin":false},"body":"[Here](https://github.com/expload/pravda/pull/238/files#diff-8d84434a1d81d866cf7389c884b00c16R166)","created_at":"2018-10-22T03:36:49Z","updated_at":"2018-10-22T03:36:52Z","html_url":"https://github.com/expload/pravda/pull/238#discussion_r226897551","pull_request_url":"https://api.github.com/repos/expload/pravda/pulls/238","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/expload/pravda/pulls/comments/226897551"},"html":{"href":"https://github.com/expload/pravda/pull/238#discussion_r226897551"},"pull_request":{"href":"https://api.github.com/repos/expload/pravda/pulls/238"}},"in_reply_to_id":226622934},"pull_request":{"url":"https://api.github.com/repos/expload/pravda/pulls/238","id":218245895,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4MjQ1ODk1","html_url":"https://github.com/expload/pravda/pull/238","diff_url":"https://github.com/expload/pravda/pull/238.diff","patch_url":"https://github.com/expload/pravda/pull/238.patch","issue_url":"https://api.github.com/repos/expload/pravda/issues/238","number":238,"state":"open","locked":false,"title":"[WIP] Added EVM operations translation","user":{"login":"dedok1997","id":26325259,"node_id":"MDQ6VXNlcjI2MzI1MjU5","avatar_url":"https://avatars2.githubusercontent.com/u/26325259?v=4","gravatar_id":"","url":"https://api.github.com/users/dedok1997","html_url":"https://github.com/dedok1997","followers_url":"https://api.github.com/users/dedok1997/followers","following_url":"https://api.github.com/users/dedok1997/following{/other_user}","gists_url":"https://api.github.com/users/dedok1997/gists{/gist_id}","starred_url":"https://api.github.com/users/dedok1997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dedok1997/subscriptions","organizations_url":"https://api.github.com/users/dedok1997/orgs","repos_url":"https://api.github.com/users/dedok1997/repos","events_url":"https://api.github.com/users/dedok1997/events{/privacy}","received_events_url":"https://api.github.com/users/dedok1997/received_events","type":"User","site_admin":false},"body":"There ethereum vm opcodes translation:\r\n- Unsigned arithmetic operations\r\n- Unsigned logical operations\r\n- Сontrol operations and system operations(not all)\r\nWe use unsigned `BigInt(1, bytes.toArray),` to handle all bytes as bytes of a number.","created_at":"2018-09-26T09:27:39Z","updated_at":"2018-10-22T03:36:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d9cc6a45e93b1b003fc9a8177393dd556553ef8b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/expload/pravda/pulls/238/commits","review_comments_url":"https://api.github.com/repos/expload/pravda/pulls/238/comments","review_comment_url":"https://api.github.com/repos/expload/pravda/pulls/comments{/number}","comments_url":"https://api.github.com/repos/expload/pravda/issues/238/comments","statuses_url":"https://api.github.com/repos/expload/pravda/statuses/f87dca2cefaccc94e031ca72865753bf2cdedb35","head":{"label":"dedok1997:feature/evm-translator","ref":"feature/evm-translator","sha":"f87dca2cefaccc94e031ca72865753bf2cdedb35","user":{"login":"dedok1997","id":26325259,"node_id":"MDQ6VXNlcjI2MzI1MjU5","avatar_url":"https://avatars2.githubusercontent.com/u/26325259?v=4","gravatar_id":"","url":"https://api.github.com/users/dedok1997","html_url":"https://github.com/dedok1997","followers_url":"https://api.github.com/users/dedok1997/followers","following_url":"https://api.github.com/users/dedok1997/following{/other_user}","gists_url":"https://api.github.com/users/dedok1997/gists{/gist_id}","starred_url":"https://api.github.com/users/dedok1997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dedok1997/subscriptions","organizations_url":"https://api.github.com/users/dedok1997/orgs","repos_url":"https://api.github.com/users/dedok1997/repos","events_url":"https://api.github.com/users/dedok1997/events{/privacy}","received_events_url":"https://api.github.com/users/dedok1997/received_events","type":"User","site_admin":false},"repo":{"id":150386272,"node_id":"MDEwOlJlcG9zaXRvcnkxNTAzODYyNzI=","name":"pravda","full_name":"dedok1997/pravda","private":false,"owner":{"login":"dedok1997","id":26325259,"node_id":"MDQ6VXNlcjI2MzI1MjU5","avatar_url":"https://avatars2.githubusercontent.com/u/26325259?v=4","gravatar_id":"","url":"https://api.github.com/users/dedok1997","html_url":"https://github.com/dedok1997","followers_url":"https://api.github.com/users/dedok1997/followers","following_url":"https://api.github.com/users/dedok1997/following{/other_user}","gists_url":"https://api.github.com/users/dedok1997/gists{/gist_id}","starred_url":"https://api.github.com/users/dedok1997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dedok1997/subscriptions","organizations_url":"https://api.github.com/users/dedok1997/orgs","repos_url":"https://api.github.com/users/dedok1997/repos","events_url":"https://api.github.com/users/dedok1997/events{/privacy}","received_events_url":"https://api.github.com/users/dedok1997/received_events","type":"User","site_admin":false},"html_url":"https://github.com/dedok1997/pravda","description":"Blockchain with Turing-complete VM implemented in Scala.","fork":true,"url":"https://api.github.com/repos/dedok1997/pravda","forks_url":"https://api.github.com/repos/dedok1997/pravda/forks","keys_url":"https://api.github.com/repos/dedok1997/pravda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dedok1997/pravda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dedok1997/pravda/teams","hooks_url":"https://api.github.com/repos/dedok1997/pravda/hooks","issue_events_url":"https://api.github.com/repos/dedok1997/pravda/issues/events{/number}","events_url":"https://api.github.com/repos/dedok1997/pravda/events","assignees_url":"https://api.github.com/repos/dedok1997/pravda/assignees{/user}","branches_url":"https://api.github.com/repos/dedok1997/pravda/branches{/branch}","tags_url":"https://api.github.com/repos/dedok1997/pravda/tags","blobs_url":"https://api.github.com/repos/dedok1997/pravda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dedok1997/pravda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dedok1997/pravda/git/refs{/sha}","trees_url":"https://api.github.com/repos/dedok1997/pravda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dedok1997/pravda/statuses/{sha}","languages_url":"https://api.github.com/repos/dedok1997/pravda/languages","stargazers_url":"https://api.github.com/repos/dedok1997/pravda/stargazers","contributors_url":"https://api.github.com/repos/dedok1997/pravda/contributors","subscribers_url":"https://api.github.com/repos/dedok1997/pravda/subscribers","subscription_url":"https://api.github.com/repos/dedok1997/pravda/subscription","commits_url":"https://api.github.com/repos/dedok1997/pravda/commits{/sha}","git_commits_url":"https://api.github.com/repos/dedok1997/pravda/git/commits{/sha}","comments_url":"https://api.github.com/repos/dedok1997/pravda/comments{/number}","issue_comment_url":"https://api.github.com/repos/dedok1997/pravda/issues/comments{/number}","contents_url":"https://api.github.com/repos/dedok1997/pravda/contents/{+path}","compare_url":"https://api.github.com/repos/dedok1997/pravda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dedok1997/pravda/merges","archive_url":"https://api.github.com/repos/dedok1997/pravda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dedok1997/pravda/downloads","issues_url":"https://api.github.com/repos/dedok1997/pravda/issues{/number}","pulls_url":"https://api.github.com/repos/dedok1997/pravda/pulls{/number}","milestones_url":"https://api.github.com/repos/dedok1997/pravda/milestones{/number}","notifications_url":"https://api.github.com/repos/dedok1997/pravda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dedok1997/pravda/labels{/name}","releases_url":"https://api.github.com/repos/dedok1997/pravda/releases{/id}","deployments_url":"https://api.github.com/repos/dedok1997/pravda/deployments","created_at":"2018-09-26T07:30:01Z","updated_at":"2018-10-11T16:54:44Z","pushed_at":"2018-10-17T13:06:59Z","git_url":"git://github.com/dedok1997/pravda.git","ssh_url":"git@github.com:dedok1997/pravda.git","clone_url":"https://github.com/dedok1997/pravda.git","svn_url":"https://github.com/dedok1997/pravda","homepage":"","size":3914,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"expload:i245-evm-translator","ref":"i245-evm-translator","sha":"008e3e8a19c31f386d3df7fe3027e6a092d9bc90","user":{"login":"expload","id":32139721,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMTM5NzIx","avatar_url":"https://avatars0.githubusercontent.com/u/32139721?v=4","gravatar_id":"","url":"https://api.github.com/users/expload","html_url":"https://github.com/expload","followers_url":"https://api.github.com/users/expload/followers","following_url":"https://api.github.com/users/expload/following{/other_user}","gists_url":"https://api.github.com/users/expload/gists{/gist_id}","starred_url":"https://api.github.com/users/expload/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/expload/subscriptions","organizations_url":"https://api.github.com/users/expload/orgs","repos_url":"https://api.github.com/users/expload/repos","events_url":"https://api.github.com/users/expload/events{/privacy}","received_events_url":"https://api.github.com/users/expload/received_events","type":"Organization","site_admin":false},"repo":{"id":127107004,"node_id":"MDEwOlJlcG9zaXRvcnkxMjcxMDcwMDQ=","name":"pravda","full_name":"expload/pravda","private":false,"owner":{"login":"expload","id":32139721,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMTM5NzIx","avatar_url":"https://avatars0.githubusercontent.com/u/32139721?v=4","gravatar_id":"","url":"https://api.github.com/users/expload","html_url":"https://github.com/expload","followers_url":"https://api.github.com/users/expload/followers","following_url":"https://api.github.com/users/expload/following{/other_user}","gists_url":"https://api.github.com/users/expload/gists{/gist_id}","starred_url":"https://api.github.com/users/expload/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/expload/subscriptions","organizations_url":"https://api.github.com/users/expload/orgs","repos_url":"https://api.github.com/users/expload/repos","events_url":"https://api.github.com/users/expload/events{/privacy}","received_events_url":"https://api.github.com/users/expload/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/expload/pravda","description":"Blockchain with Turing-complete VM implemented in Scala.","fork":false,"url":"https://api.github.com/repos/expload/pravda","forks_url":"https://api.github.com/repos/expload/pravda/forks","keys_url":"https://api.github.com/repos/expload/pravda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/expload/pravda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/expload/pravda/teams","hooks_url":"https://api.github.com/repos/expload/pravda/hooks","issue_events_url":"https://api.github.com/repos/expload/pravda/issues/events{/number}","events_url":"https://api.github.com/repos/expload/pravda/events","assignees_url":"https://api.github.com/repos/expload/pravda/assignees{/user}","branches_url":"https://api.github.com/repos/expload/pravda/branches{/branch}","tags_url":"https://api.github.com/repos/expload/pravda/tags","blobs_url":"https://api.github.com/repos/expload/pravda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/expload/pravda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/expload/pravda/git/refs{/sha}","trees_url":"https://api.github.com/repos/expload/pravda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/expload/pravda/statuses/{sha}","languages_url":"https://api.github.com/repos/expload/pravda/languages","stargazers_url":"https://api.github.com/repos/expload/pravda/stargazers","contributors_url":"https://api.github.com/repos/expload/pravda/contributors","subscribers_url":"https://api.github.com/repos/expload/pravda/subscribers","subscription_url":"https://api.github.com/repos/expload/pravda/subscription","commits_url":"https://api.github.com/repos/expload/pravda/commits{/sha}","git_commits_url":"https://api.github.com/repos/expload/pravda/git/commits{/sha}","comments_url":"https://api.github.com/repos/expload/pravda/comments{/number}","issue_comment_url":"https://api.github.com/repos/expload/pravda/issues/comments{/number}","contents_url":"https://api.github.com/repos/expload/pravda/contents/{+path}","compare_url":"https://api.github.com/repos/expload/pravda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/expload/pravda/merges","archive_url":"https://api.github.com/repos/expload/pravda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/expload/pravda/downloads","issues_url":"https://api.github.com/repos/expload/pravda/issues{/number}","pulls_url":"https://api.github.com/repos/expload/pravda/pulls{/number}","milestones_url":"https://api.github.com/repos/expload/pravda/milestones{/number}","notifications_url":"https://api.github.com/repos/expload/pravda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/expload/pravda/labels{/name}","releases_url":"https://api.github.com/repos/expload/pravda/releases{/id}","deployments_url":"https://api.github.com/repos/expload/pravda/deployments","created_at":"2018-03-28T08:13:32Z","updated_at":"2018-10-21T15:43:53Z","pushed_at":"2018-10-21T15:45:26Z","git_url":"git://github.com/expload/pravda.git","ssh_url":"git@github.com:expload/pravda.git","clone_url":"https://github.com/expload/pravda.git","svn_url":"https://github.com/expload/pravda","homepage":"","size":4107,"stargazers_count":24,"watchers_count":24,"language":"Scala","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":39,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":8,"open_issues":39,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/expload/pravda/pulls/238"},"html":{"href":"https://github.com/expload/pravda/pull/238"},"issue":{"href":"https://api.github.com/repos/expload/pravda/issues/238"},"comments":{"href":"https://api.github.com/repos/expload/pravda/issues/238/comments"},"review_comments":{"href":"https://api.github.com/repos/expload/pravda/pulls/238/comments"},"review_comment":{"href":"https://api.github.com/repos/expload/pravda/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/expload/pravda/pulls/238/commits"},"statuses":{"href":"https://api.github.com/repos/expload/pravda/statuses/f87dca2cefaccc94e031ca72865753bf2cdedb35"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"dedok1997"}}