{"action":"closed","number":5,"pull_request":{"url":"https://api.github.com/repos/parsec-labs/solevm-truffle/pulls/5","id":203083699,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzMDgzNjk5","html_url":"https://github.com/parsec-labs/solevm-truffle/pull/5","diff_url":"https://github.com/parsec-labs/solevm-truffle/pull/5.diff","patch_url":"https://github.com/parsec-labs/solevm-truffle/pull/5.patch","issue_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/issues/5","number":5,"state":"closed","locked":false,"title":"Off-Chain Executor","user":{"login":"troggy","id":163447,"node_id":"MDQ6VXNlcjE2MzQ0Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/163447?v=4","gravatar_id":"","url":"https://api.github.com/users/troggy","html_url":"https://github.com/troggy","followers_url":"https://api.github.com/users/troggy/followers","following_url":"https://api.github.com/users/troggy/following{/other_user}","gists_url":"https://api.github.com/users/troggy/gists{/gist_id}","starred_url":"https://api.github.com/users/troggy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troggy/subscriptions","organizations_url":"https://api.github.com/users/troggy/orgs","repos_url":"https://api.github.com/users/troggy/repos","events_url":"https://api.github.com/users/troggy/events{/privacy}","received_events_url":"https://api.github.com/users/troggy/received_events","type":"User","site_admin":false},"body":"#2 \r\n\r\nReference:\r\nhttps://ethervm.io\r\nhttps://github.com/trailofbits/evm-opcodes\r\nhttps://ethereum.github.io/yellowpaper/paper.pdf\r\n\r\nCode:\r\n\r\nexecute and stop:\r\n- [x] export stack\r\n- [x] export memory\r\n- [x] export account balances\r\n- [x] export storage\r\n- [x] export logs\r\n- [ ] export return data\r\n\r\ninit and execute:\r\n- [x] init program counter\r\n- [x] init stack\r\n- [x] init memory\r\n- [x] init account balances\r\n- [x] init storage\r\n- [x] init logs\r\n- [ ] init return data\r\n\r\nTest cases:\r\n\r\n- [x] Stack only opcodes (ADD, MUL, SUB, DIV, SDIV, MOD, SMOD, ADDMOD, MULMOD, EXP, SIGNEXTEND, SHL, SHR, SAR, LT, GT, SLT, SGT, EQ, ISZERO, AND, OR, XOR, NOT, BYTE, POP, DUP, SWAP)\r\n- [x] Context and stack opcodes (ADDRESS, BALANCE, ORIGIN, CALLER, CALLVALUE, GASPRICE, BLOCKHASH, COINBASE, TIMESTAMP, NUMBER, DIFFICULTY, GASLIMIT, JUMP, JUMPI, PC, GAS, RETURNDATASIZE)\r\n- [x] Code and stack opcodes (CODELOAD, CODESIZE, PUSH1 - PUSH32)\r\n- [x] Data and stack (CALLDATALOAD, CALLDATASIZE)\r\n- [x] Memory and stack (MLOAD, MSTORE, MSTORE8, MSIZE)\r\n- [x] Storage and stack (SSTORE, SLOAD)\r\n- [x] Context, stack and memory type OP-codes (LOG)\r\n- [x] Data, stack and memory type OP-codes (CALLDATACOPY)\r\n- [x] Code, stack and memory type OP-codes (CODECOPY)\r\n- [ ] Return, Stack and Memory type OP-codes (RETURN, REVENT, RETURNDATACOPY)","created_at":"2018-07-22T23:44:31Z","updated_at":"2018-09-17T11:32:03Z","closed_at":"2018-09-17T11:32:03Z","merged_at":"2018-09-17T11:32:03Z","merge_commit_sha":"1e5cc6c7ce68338145e9e3ff6abdf8f4d530cd7c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/pulls/5/commits","review_comments_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/pulls/5/comments","review_comment_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/issues/5/comments","statuses_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/statuses/d8aa340e616e4fe8346ad5e0f3b82a5b231ed855","head":{"label":"parsec-labs:feature/off-chain-execution","ref":"feature/off-chain-execution","sha":"d8aa340e616e4fe8346ad5e0f3b82a5b231ed855","user":{"login":"parsec-labs","id":24871304,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0ODcxMzA0","avatar_url":"https://avatars3.githubusercontent.com/u/24871304?v=4","gravatar_id":"","url":"https://api.github.com/users/parsec-labs","html_url":"https://github.com/parsec-labs","followers_url":"https://api.github.com/users/parsec-labs/followers","following_url":"https://api.github.com/users/parsec-labs/following{/other_user}","gists_url":"https://api.github.com/users/parsec-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/parsec-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parsec-labs/subscriptions","organizations_url":"https://api.github.com/users/parsec-labs/orgs","repos_url":"https://api.github.com/users/parsec-labs/repos","events_url":"https://api.github.com/users/parsec-labs/events{/privacy}","received_events_url":"https://api.github.com/users/parsec-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":137391346,"node_id":"MDEwOlJlcG9zaXRvcnkxMzczOTEzNDY=","name":"solevm-truffle","full_name":"parsec-labs/solevm-truffle","private":false,"owner":{"login":"parsec-labs","id":24871304,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0ODcxMzA0","avatar_url":"https://avatars3.githubusercontent.com/u/24871304?v=4","gravatar_id":"","url":"https://api.github.com/users/parsec-labs","html_url":"https://github.com/parsec-labs","followers_url":"https://api.github.com/users/parsec-labs/followers","following_url":"https://api.github.com/users/parsec-labs/following{/other_user}","gists_url":"https://api.github.com/users/parsec-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/parsec-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parsec-labs/subscriptions","organizations_url":"https://api.github.com/users/parsec-labs/orgs","repos_url":"https://api.github.com/users/parsec-labs/repos","events_url":"https://api.github.com/users/parsec-labs/events{/privacy}","received_events_url":"https://api.github.com/users/parsec-labs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/parsec-labs/solevm-truffle","description":"Partial implementation of the Ethereum runtime in Solidity (PoC)","fork":false,"url":"https://api.github.com/repos/parsec-labs/solevm-truffle","forks_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/forks","keys_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/teams","hooks_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/hooks","issue_events_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/issues/events{/number}","events_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/events","assignees_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/assignees{/user}","branches_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/branches{/branch}","tags_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/tags","blobs_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/git/refs{/sha}","trees_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/statuses/{sha}","languages_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/languages","stargazers_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/stargazers","contributors_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/contributors","subscribers_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/subscribers","subscription_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/subscription","commits_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/commits{/sha}","git_commits_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/git/commits{/sha}","comments_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/comments{/number}","issue_comment_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/issues/comments{/number}","contents_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/contents/{+path}","compare_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/merges","archive_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/downloads","issues_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/issues{/number}","pulls_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/pulls{/number}","milestones_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/milestones{/number}","notifications_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/labels{/name}","releases_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/releases{/id}","deployments_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/deployments","created_at":"2018-06-14T17:56:18Z","updated_at":"2018-09-15T16:50:57Z","pushed_at":"2018-09-17T11:32:03Z","git_url":"git://github.com/parsec-labs/solevm-truffle.git","ssh_url":"git@github.com:parsec-labs/solevm-truffle.git","clone_url":"https://github.com/parsec-labs/solevm-truffle.git","svn_url":"https://github.com/parsec-labs/solevm-truffle","homepage":"","size":159,"stargazers_count":16,"watchers_count":16,"language":"Solidity","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":4,"open_issues":5,"watchers":16,"default_branch":"master"}},"base":{"label":"parsec-labs:master","ref":"master","sha":"e32bb51b3da17c92ebb30e1f3228f06d7bb412db","user":{"login":"parsec-labs","id":24871304,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0ODcxMzA0","avatar_url":"https://avatars3.githubusercontent.com/u/24871304?v=4","gravatar_id":"","url":"https://api.github.com/users/parsec-labs","html_url":"https://github.com/parsec-labs","followers_url":"https://api.github.com/users/parsec-labs/followers","following_url":"https://api.github.com/users/parsec-labs/following{/other_user}","gists_url":"https://api.github.com/users/parsec-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/parsec-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parsec-labs/subscriptions","organizations_url":"https://api.github.com/users/parsec-labs/orgs","repos_url":"https://api.github.com/users/parsec-labs/repos","events_url":"https://api.github.com/users/parsec-labs/events{/privacy}","received_events_url":"https://api.github.com/users/parsec-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":137391346,"node_id":"MDEwOlJlcG9zaXRvcnkxMzczOTEzNDY=","name":"solevm-truffle","full_name":"parsec-labs/solevm-truffle","private":false,"owner":{"login":"parsec-labs","id":24871304,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0ODcxMzA0","avatar_url":"https://avatars3.githubusercontent.com/u/24871304?v=4","gravatar_id":"","url":"https://api.github.com/users/parsec-labs","html_url":"https://github.com/parsec-labs","followers_url":"https://api.github.com/users/parsec-labs/followers","following_url":"https://api.github.com/users/parsec-labs/following{/other_user}","gists_url":"https://api.github.com/users/parsec-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/parsec-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parsec-labs/subscriptions","organizations_url":"https://api.github.com/users/parsec-labs/orgs","repos_url":"https://api.github.com/users/parsec-labs/repos","events_url":"https://api.github.com/users/parsec-labs/events{/privacy}","received_events_url":"https://api.github.com/users/parsec-labs/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/parsec-labs/solevm-truffle","description":"Partial implementation of the Ethereum runtime in Solidity (PoC)","fork":false,"url":"https://api.github.com/repos/parsec-labs/solevm-truffle","forks_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/forks","keys_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/teams","hooks_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/hooks","issue_events_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/issues/events{/number}","events_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/events","assignees_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/assignees{/user}","branches_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/branches{/branch}","tags_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/tags","blobs_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/git/refs{/sha}","trees_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/statuses/{sha}","languages_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/languages","stargazers_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/stargazers","contributors_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/contributors","subscribers_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/subscribers","subscription_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/subscription","commits_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/commits{/sha}","git_commits_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/git/commits{/sha}","comments_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/comments{/number}","issue_comment_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/issues/comments{/number}","contents_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/contents/{+path}","compare_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/merges","archive_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/downloads","issues_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/issues{/number}","pulls_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/pulls{/number}","milestones_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/milestones{/number}","notifications_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/labels{/name}","releases_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/releases{/id}","deployments_url":"https://api.github.com/repos/parsec-labs/solevm-truffle/deployments","created_at":"2018-06-14T17:56:18Z","updated_at":"2018-09-15T16:50:57Z","pushed_at":"2018-09-17T11:32:03Z","git_url":"git://github.com/parsec-labs/solevm-truffle.git","ssh_url":"git@github.com:parsec-labs/solevm-truffle.git","clone_url":"https://github.com/parsec-labs/solevm-truffle.git","svn_url":"https://github.com/parsec-labs/solevm-truffle","homepage":"","size":159,"stargazers_count":16,"watchers_count":16,"language":"Solidity","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":4,"open_issues":5,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/parsec-labs/solevm-truffle/pulls/5"},"html":{"href":"https://github.com/parsec-labs/solevm-truffle/pull/5"},"issue":{"href":"https://api.github.com/repos/parsec-labs/solevm-truffle/issues/5"},"comments":{"href":"https://api.github.com/repos/parsec-labs/solevm-truffle/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/parsec-labs/solevm-truffle/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/parsec-labs/solevm-truffle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/parsec-labs/solevm-truffle/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/parsec-labs/solevm-truffle/statuses/d8aa340e616e4fe8346ad5e0f3b82a5b231ed855"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"troggy","id":163447,"node_id":"MDQ6VXNlcjE2MzQ0Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/163447?v=4","gravatar_id":"","url":"https://api.github.com/users/troggy","html_url":"https://github.com/troggy","followers_url":"https://api.github.com/users/troggy/followers","following_url":"https://api.github.com/users/troggy/following{/other_user}","gists_url":"https://api.github.com/users/troggy/gists{/gist_id}","starred_url":"https://api.github.com/users/troggy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troggy/subscriptions","organizations_url":"https://api.github.com/users/troggy/orgs","repos_url":"https://api.github.com/users/troggy/repos","events_url":"https://api.github.com/users/troggy/events{/privacy}","received_events_url":"https://api.github.com/users/troggy/received_events","type":"User","site_admin":false},"comments":2,"review_comments":2,"maintainer_can_modify":false,"commits":28,"additions":1207,"deletions":204,"changed_files":10}}
{"actor":{"display_login":"troggy"}}