GitHub PullRequestReviewCommentEvent at 2014-12-06 02:18:41
Repository: cpp-ethereum
Actor: subtly
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/comments/21413299","id":21413299,"diff_hunk":"@@ -0,0 +1,133 @@\n+/*\n+\tThis file is part of cpp-ethereum.\n+\n+\tcpp-ethereum is free software: you can redistribute it and/or modify\n+\tit under the terms of the GNU General Public License as published by\n+\tthe Free Software Foundation, either version 3 of the License, or\n+\t(at your option) any later version.\n+\n+\tcpp-ethereum is distributed in the hope that it will be useful,\n+\tbut WITHOUT ANY WARRANTY; without even the implied warranty of\n+\tMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+\tGNU General Public License for more details.\n+\n+\tYou should have received a copy of the GNU General Public License\n+\talong with cpp-ethereum.  If not, see <http://www.gnu.org/licenses/>.\n+*/\n+/** @file DebuggingState.h\n+ * @author Yann yann@ethdev.com\n+ * @date 2014\n+ * Ethereum IDE client.\n+ */\n+\n+#pragma once\n+\n+#include <QStringList>\n+#include \"libethereum/State.h\"\n+#include \"libethereum/Executive.h\"\n+#include \"libdevcore/Common.h\"\n+\n+namespace dev\n+{\n+\n+namespace mix\n+{\n+\n+struct DebuggingState\n+{\n+\tuint64_t steps;\n+\tdev::Address cur;\n+\tdev::u256 curPC;\n+\tdev::eth::Instruction inst;\n+\tdev::bigint newMemSize;\n+\tdev::u256 gas;\n+\tdev::u256s stack;\n+\tdev::bytes memory;\n+\tdev::bigint gasCost;\n+\tstd::map<dev::u256, dev::u256> storage;\n+\tstd::vector<DebuggingState const*> levels;\n+};\n+\n+struct DebuggingContent\n+{\n+\tQList<DebuggingState> states;\n+\tbytes executionCode;\n+\tbytesConstRef executionData;\n+\tbool contentAvailable;\n+\tQString message;\n+};\n+\n+/* contains the line nb of the assembly code and the corresponding index in the code bytes array */\n+class HumanReadableCode: public QObject\n+{\n+\tQ_OBJECT\n+\tQ_PROPERTY(QString line READ line)\n+\tQ_PROPERTY(int processIndex READ processIndex)\n+\n+public:\n+\tHumanReadableCode(QString _line, int _processIndex, QObject* _parent): QObject(_parent), m_line(_line), m_processIndex(_processIndex) {}\n+\tQString line() { return m_line; }\n+\tint processIndex() { return m_processIndex; }\n+\n+private:\n+\tQString m_line;\n+\tint m_processIndex;\n+};\n+\n+/* used to publish QMap type to QML */\n+class QQMLMap: public QObject\n+{\n+\tQ_OBJECT\n+\n+public:\n+\tQQMLMap(QMap<int, int> _map, QObject* _parent): QObject(_parent), m_map(_map)  { }\n+\tQ_INVOKABLE int getValue(int _key) { return m_map.value(_key);   }\n+\n+private:\n+\tQMap<int, int> m_map;\n+};\n+\n+/* used to publish DebuggingState struct to QML */","path":"mix/DebuggingStateWrapper.h","position":90,"original_position":90,"commit_id":"eb3e005dee2b03a2fa43b4d806338996a4586d97","original_commit_id":"eb3e005dee2b03a2fa43b4d806338996a4586d97","user":{"login":"subtly","id":6557250,"avatar_url":"https://avatars.githubusercontent.com/u/6557250?v=3","gravatar_id":"","url":"https://api.github.com/users/subtly","html_url":"https://github.com/subtly","followers_url":"https://api.github.com/users/subtly/followers","following_url":"https://api.github.com/users/subtly/following{/other_user}","gists_url":"https://api.github.com/users/subtly/gists{/gist_id}","starred_url":"https://api.github.com/users/subtly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subtly/subscriptions","organizations_url":"https://api.github.com/users/subtly/orgs","repos_url":"https://api.github.com/users/subtly/repos","events_url":"https://api.github.com/users/subtly/events{/privacy}","received_events_url":"https://api.github.com/users/subtly/received_events","type":"User","site_admin":false},"body":"Documentation syntax (see prev example)","created_at":"2014-12-06T02:18:41Z","updated_at":"2014-12-06T02:18:41Z","html_url":"https://github.com/ethereum/cpp-ethereum/pull/565#discussion_r21413299","pull_request_url":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/565","_links":{"self":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/comments/21413299"},"html":{"href":"https://github.com/ethereum/cpp-ethereum/pull/565#discussion_r21413299"},"pull_request":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/565"}}},"pull_request":{"url":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/565","id":25561630,"html_url":"https://github.com/ethereum/cpp-ethereum/pull/565","diff_url":"https://github.com/ethereum/cpp-ethereum/pull/565.diff","patch_url":"https://github.com/ethereum/cpp-ethereum/pull/565.patch","issue_url":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/565","number":565,"state":"open","locked":false,"title":"mix IDE M2","user":{"login":"yann300","id":6940742,"avatar_url":"https://avatars.githubusercontent.com/u/6940742?v=3","gravatar_id":"","url":"https://api.github.com/users/yann300","html_url":"https://github.com/yann300","followers_url":"https://api.github.com/users/yann300/followers","following_url":"https://api.github.com/users/yann300/following{/other_user}","gists_url":"https://api.github.com/users/yann300/gists{/gist_id}","starred_url":"https://api.github.com/users/yann300/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yann300/subscriptions","organizations_url":"https://api.github.com/users/yann300/orgs","repos_url":"https://api.github.com/users/yann300/repos","events_url":"https://api.github.com/users/yann300/events{/privacy}","received_events_url":"https://api.github.com/users/yann300/received_events","type":"User","site_admin":false},"body":"Integrated debugger;\r\nHit F5 and you can step forwards/backwards through execution.\r\n","created_at":"2014-12-05T10:31:33Z","updated_at":"2014-12-06T02:18:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/565/commits","review_comments_url":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/565/comments","review_comment_url":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/565/comments","statuses_url":"https://api.github.com/repos/ethereum/cpp-ethereum/statuses/eb3e005dee2b03a2fa43b4d806338996a4586d97","head":{"label":"yann300:ide_m2","ref":"ide_m2","sha":"eb3e005dee2b03a2fa43b4d806338996a4586d97","user":{"login":"yann300","id":6940742,"avatar_url":"https://avatars.githubusercontent.com/u/6940742?v=3","gravatar_id":"","url":"https://api.github.com/users/yann300","html_url":"https://github.com/yann300","followers_url":"https://api.github.com/users/yann300/followers","following_url":"https://api.github.com/users/yann300/following{/other_user}","gists_url":"https://api.github.com/users/yann300/gists{/gist_id}","starred_url":"https://api.github.com/users/yann300/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yann300/subscriptions","organizations_url":"https://api.github.com/users/yann300/orgs","repos_url":"https://api.github.com/users/yann300/repos","events_url":"https://api.github.com/users/yann300/events{/privacy}","received_events_url":"https://api.github.com/users/yann300/received_events","type":"User","site_admin":false},"repo":{"id":26877307,"name":"cpp-ethereum","full_name":"yann300/cpp-ethereum","owner":{"login":"yann300","id":6940742,"avatar_url":"https://avatars.githubusercontent.com/u/6940742?v=3","gravatar_id":"","url":"https://api.github.com/users/yann300","html_url":"https://github.com/yann300","followers_url":"https://api.github.com/users/yann300/followers","following_url":"https://api.github.com/users/yann300/following{/other_user}","gists_url":"https://api.github.com/users/yann300/gists{/gist_id}","starred_url":"https://api.github.com/users/yann300/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yann300/subscriptions","organizations_url":"https://api.github.com/users/yann300/orgs","repos_url":"https://api.github.com/users/yann300/repos","events_url":"https://api.github.com/users/yann300/events{/privacy}","received_events_url":"https://api.github.com/users/yann300/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yann300/cpp-ethereum","description":"Gavin Wood's C++ implementation of the Ethereum yellowpaper.","fork":true,"url":"https://api.github.com/repos/yann300/cpp-ethereum","forks_url":"https://api.github.com/repos/yann300/cpp-ethereum/forks","keys_url":"https://api.github.com/repos/yann300/cpp-ethereum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yann300/cpp-ethereum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yann300/cpp-ethereum/teams","hooks_url":"https://api.github.com/repos/yann300/cpp-ethereum/hooks","issue_events_url":"https://api.github.com/repos/yann300/cpp-ethereum/issues/events{/number}","events_url":"https://api.github.com/repos/yann300/cpp-ethereum/events","assignees_url":"https://api.github.com/repos/yann300/cpp-ethereum/assignees{/user}","branches_url":"https://api.github.com/repos/yann300/cpp-ethereum/branches{/branch}","tags_url":"https://api.github.com/repos/yann300/cpp-ethereum/tags","blobs_url":"https://api.github.com/repos/yann300/cpp-ethereum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yann300/cpp-ethereum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yann300/cpp-ethereum/git/refs{/sha}","trees_url":"https://api.github.com/repos/yann300/cpp-ethereum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yann300/cpp-ethereum/statuses/{sha}","languages_url":"https://api.github.com/repos/yann300/cpp-ethereum/languages","stargazers_url":"https://api.github.com/repos/yann300/cpp-ethereum/stargazers","contributors_url":"https://api.github.com/repos/yann300/cpp-ethereum/contributors","subscribers_url":"https://api.github.com/repos/yann300/cpp-ethereum/subscribers","subscription_url":"https://api.github.com/repos/yann300/cpp-ethereum/subscription","commits_url":"https://api.github.com/repos/yann300/cpp-ethereum/commits{/sha}","git_commits_url":"https://api.github.com/repos/yann300/cpp-ethereum/git/commits{/sha}","comments_url":"https://api.github.com/repos/yann300/cpp-ethereum/comments{/number}","issue_comment_url":"https://api.github.com/repos/yann300/cpp-ethereum/issues/comments/{number}","contents_url":"https://api.github.com/repos/yann300/cpp-ethereum/contents/{+path}","compare_url":"https://api.github.com/repos/yann300/cpp-ethereum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yann300/cpp-ethereum/merges","archive_url":"https://api.github.com/repos/yann300/cpp-ethereum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yann300/cpp-ethereum/downloads","issues_url":"https://api.github.com/repos/yann300/cpp-ethereum/issues{/number}","pulls_url":"https://api.github.com/repos/yann300/cpp-ethereum/pulls{/number}","milestones_url":"https://api.github.com/repos/yann300/cpp-ethereum/milestones{/number}","notifications_url":"https://api.github.com/repos/yann300/cpp-ethereum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yann300/cpp-ethereum/labels{/name}","releases_url":"https://api.github.com/repos/yann300/cpp-ethereum/releases{/id}","created_at":"2014-11-19T19:18:56Z","updated_at":"2014-12-04T08:54:50Z","pushed_at":"2014-12-05T15:20:18Z","git_url":"git://github.com/yann300/cpp-ethereum.git","ssh_url":"git@github.com:yann300/cpp-ethereum.git","clone_url":"https://github.com/yann300/cpp-ethereum.git","svn_url":"https://github.com/yann300/cpp-ethereum","homepage":"www.gavwood.com/Paper.pdf","size":7106,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"ethereum:develop","ref":"develop","sha":"5a818a5d7da5c922ef522913485e0e56595c9d6a","user":{"login":"ethereum","id":6250754,"avatar_url":"https://avatars.githubusercontent.com/u/6250754?v=3","gravatar_id":"","url":"https://api.github.com/users/ethereum","html_url":"https://github.com/ethereum","followers_url":"https://api.github.com/users/ethereum/followers","following_url":"https://api.github.com/users/ethereum/following{/other_user}","gists_url":"https://api.github.com/users/ethereum/gists{/gist_id}","starred_url":"https://api.github.com/users/ethereum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethereum/subscriptions","organizations_url":"https://api.github.com/users/ethereum/orgs","repos_url":"https://api.github.com/users/ethereum/repos","events_url":"https://api.github.com/users/ethereum/events{/privacy}","received_events_url":"https://api.github.com/users/ethereum/received_events","type":"Organization","site_admin":false},"repo":{"id":15460666,"name":"cpp-ethereum","full_name":"ethereum/cpp-ethereum","owner":{"login":"ethereum","id":6250754,"avatar_url":"https://avatars.githubusercontent.com/u/6250754?v=3","gravatar_id":"","url":"https://api.github.com/users/ethereum","html_url":"https://github.com/ethereum","followers_url":"https://api.github.com/users/ethereum/followers","following_url":"https://api.github.com/users/ethereum/following{/other_user}","gists_url":"https://api.github.com/users/ethereum/gists{/gist_id}","starred_url":"https://api.github.com/users/ethereum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethereum/subscriptions","organizations_url":"https://api.github.com/users/ethereum/orgs","repos_url":"https://api.github.com/users/ethereum/repos","events_url":"https://api.github.com/users/ethereum/events{/privacy}","received_events_url":"https://api.github.com/users/ethereum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ethereum/cpp-ethereum","description":"Gavin Wood's C++ implementation of the Ethereum yellowpaper.","fork":false,"url":"https://api.github.com/repos/ethereum/cpp-ethereum","forks_url":"https://api.github.com/repos/ethereum/cpp-ethereum/forks","keys_url":"https://api.github.com/repos/ethereum/cpp-ethereum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ethereum/cpp-ethereum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ethereum/cpp-ethereum/teams","hooks_url":"https://api.github.com/repos/ethereum/cpp-ethereum/hooks","issue_events_url":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/events{/number}","events_url":"https://api.github.com/repos/ethereum/cpp-ethereum/events","assignees_url":"https://api.github.com/repos/ethereum/cpp-ethereum/assignees{/user}","branches_url":"https://api.github.com/repos/ethereum/cpp-ethereum/branches{/branch}","tags_url":"https://api.github.com/repos/ethereum/cpp-ethereum/tags","blobs_url":"https://api.github.com/repos/ethereum/cpp-ethereum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ethereum/cpp-ethereum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ethereum/cpp-ethereum/git/refs{/sha}","trees_url":"https://api.github.com/repos/ethereum/cpp-ethereum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ethereum/cpp-ethereum/statuses/{sha}","languages_url":"https://api.github.com/repos/ethereum/cpp-ethereum/languages","stargazers_url":"https://api.github.com/repos/ethereum/cpp-ethereum/stargazers","contributors_url":"https://api.github.com/repos/ethereum/cpp-ethereum/contributors","subscribers_url":"https://api.github.com/repos/ethereum/cpp-ethereum/subscribers","subscription_url":"https://api.github.com/repos/ethereum/cpp-ethereum/subscription","commits_url":"https://api.github.com/repos/ethereum/cpp-ethereum/commits{/sha}","git_commits_url":"https://api.github.com/repos/ethereum/cpp-ethereum/git/commits{/sha}","comments_url":"https://api.github.com/repos/ethereum/cpp-ethereum/comments{/number}","issue_comment_url":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/comments/{number}","contents_url":"https://api.github.com/repos/ethereum/cpp-ethereum/contents/{+path}","compare_url":"https://api.github.com/repos/ethereum/cpp-ethereum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ethereum/cpp-ethereum/merges","archive_url":"https://api.github.com/repos/ethereum/cpp-ethereum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ethereum/cpp-ethereum/downloads","issues_url":"https://api.github.com/repos/ethereum/cpp-ethereum/issues{/number}","pulls_url":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls{/number}","milestones_url":"https://api.github.com/repos/ethereum/cpp-ethereum/milestones{/number}","notifications_url":"https://api.github.com/repos/ethereum/cpp-ethereum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ethereum/cpp-ethereum/labels{/name}","releases_url":"https://api.github.com/repos/ethereum/cpp-ethereum/releases{/id}","created_at":"2013-12-26T21:26:06Z","updated_at":"2014-12-05T15:29:15Z","pushed_at":"2014-12-06T01:18:16Z","git_url":"git://github.com/ethereum/cpp-ethereum.git","ssh_url":"git@github.com:ethereum/cpp-ethereum.git","clone_url":"https://github.com/ethereum/cpp-ethereum.git","svn_url":"https://github.com/ethereum/cpp-ethereum","homepage":"www.gavwood.com/Paper.pdf","size":23193,"stargazers_count":353,"watchers_count":353,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":127,"mirror_url":null,"open_issues_count":58,"forks":127,"open_issues":58,"watchers":353,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/565"},"html":{"href":"https://github.com/ethereum/cpp-ethereum/pull/565"},"issue":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/565"},"comments":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/565/comments"},"review_comments":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/565/comments"},"review_comment":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/pulls/565/commits"},"statuses":{"href":"https://api.github.com/repos/ethereum/cpp-ethereum/statuses/eb3e005dee2b03a2fa43b4d806338996a4586d97"}}}}