{"action":"created","comment":{"url":"https://api.github.com/repos/celo-org/ethereumjs-vm/pulls/comments/222107786","pull_request_review_id":160916649,"id":222107786,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMjEwNzc4Ng==","diff_hunk":"@@ -0,0 +1,32 @@\n+const utils = require('ethereumjs-util')\n+const BN = utils.BN\n+const error = require('../exceptions.js').ERROR\n+const assert = require('assert')\n+\n+// For the v0.3 of the AddressBasedEncryption contract we need access from within the VM to the\n+// miner of past blocks.\n+module.exports = function (opts, cb) {\n+  assert(opts.data)\n+\n+  let results = {}\n+  results.gasUsed = new BN(20)","path":"lib/precompiled/fe-blockminer.js","position":12,"original_position":12,"commit_id":"690c6ea8f8b0691b90033d7b4193a9d84dedff10","original_commit_id":"690c6ea8f8b0691b90033d7b4193a9d84dedff10","user":{"login":"nambrot","id":571810,"node_id":"MDQ6VXNlcjU3MTgxMA==","avatar_url":"https://avatars2.githubusercontent.com/u/571810?v=4","gravatar_id":"","url":"https://api.github.com/users/nambrot","html_url":"https://github.com/nambrot","followers_url":"https://api.github.com/users/nambrot/followers","following_url":"https://api.github.com/users/nambrot/following{/other_user}","gists_url":"https://api.github.com/users/nambrot/gists{/gist_id}","starred_url":"https://api.github.com/users/nambrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nambrot/subscriptions","organizations_url":"https://api.github.com/users/nambrot/orgs","repos_url":"https://api.github.com/users/nambrot/repos","events_url":"https://api.github.com/users/nambrot/events{/privacy}","received_events_url":"https://api.github.com/users/nambrot/received_events","type":"User","site_admin":false},"body":"I used the cost of the blockhash op https://docs.google.com/spreadsheets/d/1n6mRqkBz3iWcOlRem_mO09GtSKEKrAsfO7Frgx18pNU/edit#gid=0","created_at":"2018-10-02T20:52:49Z","updated_at":"2018-10-02T20:55:25Z","html_url":"https://github.com/celo-org/ethereumjs-vm/pull/1#discussion_r222107786","pull_request_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/pulls/1","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/celo-org/ethereumjs-vm/pulls/comments/222107786"},"html":{"href":"https://github.com/celo-org/ethereumjs-vm/pull/1#discussion_r222107786"},"pull_request":{"href":"https://api.github.com/repos/celo-org/ethereumjs-vm/pulls/1"}},"in_reply_to_id":222101090},"pull_request":{"url":"https://api.github.com/repos/celo-org/ethereumjs-vm/pulls/1","id":219812104,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5ODEyMTA0","html_url":"https://github.com/celo-org/ethereumjs-vm/pull/1","diff_url":"https://github.com/celo-org/ethereumjs-vm/pull/1.diff","patch_url":"https://github.com/celo-org/ethereumjs-vm/pull/1.patch","issue_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/issues/1","number":1,"state":"open","locked":false,"title":"Add an implementation of our new precompiled contract","user":{"login":"nambrot","id":571810,"node_id":"MDQ6VXNlcjU3MTgxMA==","avatar_url":"https://avatars2.githubusercontent.com/u/571810?v=4","gravatar_id":"","url":"https://api.github.com/users/nambrot","html_url":"https://github.com/nambrot","followers_url":"https://api.github.com/users/nambrot/followers","following_url":"https://api.github.com/users/nambrot/following{/other_user}","gists_url":"https://api.github.com/users/nambrot/gists{/gist_id}","starred_url":"https://api.github.com/users/nambrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nambrot/subscriptions","organizations_url":"https://api.github.com/users/nambrot/orgs","repos_url":"https://api.github.com/users/nambrot/repos","events_url":"https://api.github.com/users/nambrot/events{/privacy}","received_events_url":"https://api.github.com/users/nambrot/received_events","type":"User","site_admin":false},"body":"This PR adds an implementation of the new precompiled contract for v0.3 of ABE to ethereumjs-vm so that we can run our tests correctly. It is available at address `0xfe`.\r\n\r\n","created_at":"2018-10-02T19:05:57Z","updated_at":"2018-10-02T20:55:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62265e8716c22435eae0da8b00d91f81ed51abdc","assignee":null,"assignees":[],"requested_reviewers":[{"login":"m-chrzan","id":16142976,"node_id":"MDQ6VXNlcjE2MTQyOTc2","avatar_url":"https://avatars0.githubusercontent.com/u/16142976?v=4","gravatar_id":"","url":"https://api.github.com/users/m-chrzan","html_url":"https://github.com/m-chrzan","followers_url":"https://api.github.com/users/m-chrzan/followers","following_url":"https://api.github.com/users/m-chrzan/following{/other_user}","gists_url":"https://api.github.com/users/m-chrzan/gists{/gist_id}","starred_url":"https://api.github.com/users/m-chrzan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-chrzan/subscriptions","organizations_url":"https://api.github.com/users/m-chrzan/orgs","repos_url":"https://api.github.com/users/m-chrzan/repos","events_url":"https://api.github.com/users/m-chrzan/events{/privacy}","received_events_url":"https://api.github.com/users/m-chrzan/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/pulls/1/commits","review_comments_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/pulls/1/comments","review_comment_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/issues/1/comments","statuses_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/statuses/690c6ea8f8b0691b90033d7b4193a9d84dedff10","head":{"label":"celo-org:nambrot/getMinerOfBlock-precompiled-contract","ref":"nambrot/getMinerOfBlock-precompiled-contract","sha":"690c6ea8f8b0691b90033d7b4193a9d84dedff10","user":{"login":"celo-org","id":37552875,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3NTUyODc1","avatar_url":"https://avatars2.githubusercontent.com/u/37552875?v=4","gravatar_id":"","url":"https://api.github.com/users/celo-org","html_url":"https://github.com/celo-org","followers_url":"https://api.github.com/users/celo-org/followers","following_url":"https://api.github.com/users/celo-org/following{/other_user}","gists_url":"https://api.github.com/users/celo-org/gists{/gist_id}","starred_url":"https://api.github.com/users/celo-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celo-org/subscriptions","organizations_url":"https://api.github.com/users/celo-org/orgs","repos_url":"https://api.github.com/users/celo-org/repos","events_url":"https://api.github.com/users/celo-org/events{/privacy}","received_events_url":"https://api.github.com/users/celo-org/received_events","type":"Organization","site_admin":false},"repo":{"id":150624690,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA2MjQ2OTA=","name":"ethereumjs-vm","full_name":"celo-org/ethereumjs-vm","private":false,"owner":{"login":"celo-org","id":37552875,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3NTUyODc1","avatar_url":"https://avatars2.githubusercontent.com/u/37552875?v=4","gravatar_id":"","url":"https://api.github.com/users/celo-org","html_url":"https://github.com/celo-org","followers_url":"https://api.github.com/users/celo-org/followers","following_url":"https://api.github.com/users/celo-org/following{/other_user}","gists_url":"https://api.github.com/users/celo-org/gists{/gist_id}","starred_url":"https://api.github.com/users/celo-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celo-org/subscriptions","organizations_url":"https://api.github.com/users/celo-org/orgs","repos_url":"https://api.github.com/users/celo-org/repos","events_url":"https://api.github.com/users/celo-org/events{/privacy}","received_events_url":"https://api.github.com/users/celo-org/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/celo-org/ethereumjs-vm","description":"The Ethereum VM implemented in Javascript","fork":true,"url":"https://api.github.com/repos/celo-org/ethereumjs-vm","forks_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/forks","keys_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/teams","hooks_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/hooks","issue_events_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/issues/events{/number}","events_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/events","assignees_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/assignees{/user}","branches_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/branches{/branch}","tags_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/tags","blobs_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/git/refs{/sha}","trees_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/statuses/{sha}","languages_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/languages","stargazers_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/stargazers","contributors_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/contributors","subscribers_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/subscribers","subscription_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/subscription","commits_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/commits{/sha}","git_commits_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/git/commits{/sha}","comments_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/comments{/number}","issue_comment_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/issues/comments{/number}","contents_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/contents/{+path}","compare_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/merges","archive_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/downloads","issues_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/issues{/number}","pulls_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/pulls{/number}","milestones_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/milestones{/number}","notifications_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/labels{/name}","releases_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/releases{/id}","deployments_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/deployments","created_at":"2018-09-27T17:35:09Z","updated_at":"2018-09-27T17:35:11Z","pushed_at":"2018-10-02T19:05:57Z","git_url":"git://github.com/celo-org/ethereumjs-vm.git","ssh_url":"git@github.com:celo-org/ethereumjs-vm.git","clone_url":"https://github.com/celo-org/ethereumjs-vm.git","svn_url":"https://github.com/celo-org/ethereumjs-vm","homepage":"","size":2318,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"celo-org:master","ref":"master","sha":"aedda260e35ef6254e8a5f073d3f9071e2655974","user":{"login":"celo-org","id":37552875,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3NTUyODc1","avatar_url":"https://avatars2.githubusercontent.com/u/37552875?v=4","gravatar_id":"","url":"https://api.github.com/users/celo-org","html_url":"https://github.com/celo-org","followers_url":"https://api.github.com/users/celo-org/followers","following_url":"https://api.github.com/users/celo-org/following{/other_user}","gists_url":"https://api.github.com/users/celo-org/gists{/gist_id}","starred_url":"https://api.github.com/users/celo-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celo-org/subscriptions","organizations_url":"https://api.github.com/users/celo-org/orgs","repos_url":"https://api.github.com/users/celo-org/repos","events_url":"https://api.github.com/users/celo-org/events{/privacy}","received_events_url":"https://api.github.com/users/celo-org/received_events","type":"Organization","site_admin":false},"repo":{"id":150624690,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA2MjQ2OTA=","name":"ethereumjs-vm","full_name":"celo-org/ethereumjs-vm","private":false,"owner":{"login":"celo-org","id":37552875,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3NTUyODc1","avatar_url":"https://avatars2.githubusercontent.com/u/37552875?v=4","gravatar_id":"","url":"https://api.github.com/users/celo-org","html_url":"https://github.com/celo-org","followers_url":"https://api.github.com/users/celo-org/followers","following_url":"https://api.github.com/users/celo-org/following{/other_user}","gists_url":"https://api.github.com/users/celo-org/gists{/gist_id}","starred_url":"https://api.github.com/users/celo-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celo-org/subscriptions","organizations_url":"https://api.github.com/users/celo-org/orgs","repos_url":"https://api.github.com/users/celo-org/repos","events_url":"https://api.github.com/users/celo-org/events{/privacy}","received_events_url":"https://api.github.com/users/celo-org/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/celo-org/ethereumjs-vm","description":"The Ethereum VM implemented in Javascript","fork":true,"url":"https://api.github.com/repos/celo-org/ethereumjs-vm","forks_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/forks","keys_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/teams","hooks_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/hooks","issue_events_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/issues/events{/number}","events_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/events","assignees_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/assignees{/user}","branches_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/branches{/branch}","tags_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/tags","blobs_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/git/refs{/sha}","trees_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/statuses/{sha}","languages_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/languages","stargazers_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/stargazers","contributors_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/contributors","subscribers_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/subscribers","subscription_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/subscription","commits_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/commits{/sha}","git_commits_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/git/commits{/sha}","comments_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/comments{/number}","issue_comment_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/issues/comments{/number}","contents_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/contents/{+path}","compare_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/merges","archive_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/downloads","issues_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/issues{/number}","pulls_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/pulls{/number}","milestones_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/milestones{/number}","notifications_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/labels{/name}","releases_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/releases{/id}","deployments_url":"https://api.github.com/repos/celo-org/ethereumjs-vm/deployments","created_at":"2018-09-27T17:35:09Z","updated_at":"2018-09-27T17:35:11Z","pushed_at":"2018-10-02T19:05:57Z","git_url":"git://github.com/celo-org/ethereumjs-vm.git","ssh_url":"git@github.com:celo-org/ethereumjs-vm.git","clone_url":"https://github.com/celo-org/ethereumjs-vm.git","svn_url":"https://github.com/celo-org/ethereumjs-vm","homepage":"","size":2318,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/celo-org/ethereumjs-vm/pulls/1"},"html":{"href":"https://github.com/celo-org/ethereumjs-vm/pull/1"},"issue":{"href":"https://api.github.com/repos/celo-org/ethereumjs-vm/issues/1"},"comments":{"href":"https://api.github.com/repos/celo-org/ethereumjs-vm/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/celo-org/ethereumjs-vm/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/celo-org/ethereumjs-vm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/celo-org/ethereumjs-vm/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/celo-org/ethereumjs-vm/statuses/690c6ea8f8b0691b90033d7b4193a9d84dedff10"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"nambrot"}}