{"action":"created","comment":{"url":"https://api.github.com/repos/scorum/scorum/pulls/comments/172433602","pull_request_review_id":101445787,"id":172433602,"diff_hunk":"@@ -0,0 +1,80 @@\n+#include <scorum/account_history/account_history_api.hpp>\n+#include <scorum/account_history/account_history_plugin.hpp>\n+#include <scorum/account_history/schema/account_history_object.hpp>\n+#include <scorum/app/api_context.hpp>\n+#include <scorum/app/application.hpp>\n+#include <scorum/chain/schema/operation_object.hpp>\n+#include <map>\n+\n+namespace scorum {\n+namespace account_history {\n+\n+namespace detail {\n+class account_history_api_impl\n+{\n+public:\n+    scorum::app::application& _app;\n+\n+public:\n+    account_history_api_impl(scorum::app::application& app)\n+        : _app(app)\n+    {\n+    }\n+\n+    template <typename history_object_type>\n+    std::map<uint32_t, applied_operation> get_history(const std::string& account, uint64_t from, uint32_t limit) const\n+    {\n+        const auto db = _app.chain_database();\n+\n+        FC_ASSERT(limit <= 10000, \"Limit of ${l} is greater than maxmimum allowed\", (\"l\", limit));","path":"libraries/plugins/account_history/account_history_api.cpp","position":29,"original_position":29,"commit_id":"6b974c19284385e63121f6dc4a9659dc51191849","original_commit_id":"6b974c19284385e63121f6dc4a9659dc51191849","user":{"login":"Andrei-Masilevich","id":9274149,"avatar_url":"https://avatars3.githubusercontent.com/u/9274149?v=4","gravatar_id":"","url":"https://api.github.com/users/Andrei-Masilevich","html_url":"https://github.com/Andrei-Masilevich","followers_url":"https://api.github.com/users/Andrei-Masilevich/followers","following_url":"https://api.github.com/users/Andrei-Masilevich/following{/other_user}","gists_url":"https://api.github.com/users/Andrei-Masilevich/gists{/gist_id}","starred_url":"https://api.github.com/users/Andrei-Masilevich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andrei-Masilevich/subscriptions","organizations_url":"https://api.github.com/users/Andrei-Masilevich/orgs","repos_url":"https://api.github.com/users/Andrei-Masilevich/repos","events_url":"https://api.github.com/users/Andrei-Masilevich/events{/privacy}","received_events_url":"https://api.github.com/users/Andrei-Masilevich/received_events","type":"User","site_admin":false},"body":"Replace 10000 with macro. ","created_at":"2018-03-06T07:53:21Z","updated_at":"2018-03-06T07:53:21Z","html_url":"https://github.com/scorum/scorum/pull/90#discussion_r172433602","pull_request_url":"https://api.github.com/repos/scorum/scorum/pulls/90","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/scorum/scorum/pulls/comments/172433602"},"html":{"href":"https://github.com/scorum/scorum/pull/90#discussion_r172433602"},"pull_request":{"href":"https://api.github.com/repos/scorum/scorum/pulls/90"}}},"pull_request":{"url":"https://api.github.com/repos/scorum/scorum/pulls/90","id":172919247,"html_url":"https://github.com/scorum/scorum/pull/90","diff_url":"https://github.com/scorum/scorum/pull/90.diff","patch_url":"https://github.com/scorum/scorum/pull/90.patch","issue_url":"https://api.github.com/repos/scorum/scorum/issues/90","number":90,"state":"open","locked":false,"title":"Wallet api","user":{"login":"abolinbsu","id":33287857,"avatar_url":"https://avatars1.githubusercontent.com/u/33287857?v=4","gravatar_id":"","url":"https://api.github.com/users/abolinbsu","html_url":"https://github.com/abolinbsu","followers_url":"https://api.github.com/users/abolinbsu/followers","following_url":"https://api.github.com/users/abolinbsu/following{/other_user}","gists_url":"https://api.github.com/users/abolinbsu/gists{/gist_id}","starred_url":"https://api.github.com/users/abolinbsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abolinbsu/subscriptions","organizations_url":"https://api.github.com/users/abolinbsu/orgs","repos_url":"https://api.github.com/users/abolinbsu/repos","events_url":"https://api.github.com/users/abolinbsu/events{/privacy}","received_events_url":"https://api.github.com/users/abolinbsu/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-05T16:34:38Z","updated_at":"2018-03-06T07:53:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a236659be3869e3c46f69b15883ed5f2cfc7bc4","assignee":null,"assignees":[],"requested_reviewers":[{"login":"AlexShkor","id":1121836,"avatar_url":"https://avatars0.githubusercontent.com/u/1121836?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexShkor","html_url":"https://github.com/AlexShkor","followers_url":"https://api.github.com/users/AlexShkor/followers","following_url":"https://api.github.com/users/AlexShkor/following{/other_user}","gists_url":"https://api.github.com/users/AlexShkor/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexShkor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexShkor/subscriptions","organizations_url":"https://api.github.com/users/AlexShkor/orgs","repos_url":"https://api.github.com/users/AlexShkor/repos","events_url":"https://api.github.com/users/AlexShkor/events{/privacy}","received_events_url":"https://api.github.com/users/AlexShkor/received_events","type":"User","site_admin":false},{"login":"alexplevako","id":7352162,"avatar_url":"https://avatars0.githubusercontent.com/u/7352162?v=4","gravatar_id":"","url":"https://api.github.com/users/alexplevako","html_url":"https://github.com/alexplevako","followers_url":"https://api.github.com/users/alexplevako/followers","following_url":"https://api.github.com/users/alexplevako/following{/other_user}","gists_url":"https://api.github.com/users/alexplevako/gists{/gist_id}","starred_url":"https://api.github.com/users/alexplevako/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexplevako/subscriptions","organizations_url":"https://api.github.com/users/alexplevako/orgs","repos_url":"https://api.github.com/users/alexplevako/repos","events_url":"https://api.github.com/users/alexplevako/events{/privacy}","received_events_url":"https://api.github.com/users/alexplevako/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/scorum/scorum/pulls/90/commits","review_comments_url":"https://api.github.com/repos/scorum/scorum/pulls/90/comments","review_comment_url":"https://api.github.com/repos/scorum/scorum/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scorum/scorum/issues/90/comments","statuses_url":"https://api.github.com/repos/scorum/scorum/statuses/6b974c19284385e63121f6dc4a9659dc51191849","head":{"label":"scorum:wallet_api","ref":"wallet_api","sha":"6b974c19284385e63121f6dc4a9659dc51191849","user":{"login":"scorum","id":32771359,"avatar_url":"https://avatars0.githubusercontent.com/u/32771359?v=4","gravatar_id":"","url":"https://api.github.com/users/scorum","html_url":"https://github.com/scorum","followers_url":"https://api.github.com/users/scorum/followers","following_url":"https://api.github.com/users/scorum/following{/other_user}","gists_url":"https://api.github.com/users/scorum/gists{/gist_id}","starred_url":"https://api.github.com/users/scorum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scorum/subscriptions","organizations_url":"https://api.github.com/users/scorum/orgs","repos_url":"https://api.github.com/users/scorum/repos","events_url":"https://api.github.com/users/scorum/events{/privacy}","received_events_url":"https://api.github.com/users/scorum/received_events","type":"Organization","site_admin":false},"repo":{"id":106838543,"name":"scorum","full_name":"scorum/scorum","owner":{"login":"scorum","id":32771359,"avatar_url":"https://avatars0.githubusercontent.com/u/32771359?v=4","gravatar_id":"","url":"https://api.github.com/users/scorum","html_url":"https://github.com/scorum","followers_url":"https://api.github.com/users/scorum/followers","following_url":"https://api.github.com/users/scorum/following{/other_user}","gists_url":"https://api.github.com/users/scorum/gists{/gist_id}","starred_url":"https://api.github.com/users/scorum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scorum/subscriptions","organizations_url":"https://api.github.com/users/scorum/orgs","repos_url":"https://api.github.com/users/scorum/repos","events_url":"https://api.github.com/users/scorum/events{/privacy}","received_events_url":"https://api.github.com/users/scorum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scorum/scorum","description":"Scorum is a blockchain powered sports media platform built for sports fans worldwide and designed to reward content creators and creators in a fair and transparent economy.","fork":false,"url":"https://api.github.com/repos/scorum/scorum","forks_url":"https://api.github.com/repos/scorum/scorum/forks","keys_url":"https://api.github.com/repos/scorum/scorum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scorum/scorum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scorum/scorum/teams","hooks_url":"https://api.github.com/repos/scorum/scorum/hooks","issue_events_url":"https://api.github.com/repos/scorum/scorum/issues/events{/number}","events_url":"https://api.github.com/repos/scorum/scorum/events","assignees_url":"https://api.github.com/repos/scorum/scorum/assignees{/user}","branches_url":"https://api.github.com/repos/scorum/scorum/branches{/branch}","tags_url":"https://api.github.com/repos/scorum/scorum/tags","blobs_url":"https://api.github.com/repos/scorum/scorum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scorum/scorum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scorum/scorum/git/refs{/sha}","trees_url":"https://api.github.com/repos/scorum/scorum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scorum/scorum/statuses/{sha}","languages_url":"https://api.github.com/repos/scorum/scorum/languages","stargazers_url":"https://api.github.com/repos/scorum/scorum/stargazers","contributors_url":"https://api.github.com/repos/scorum/scorum/contributors","subscribers_url":"https://api.github.com/repos/scorum/scorum/subscribers","subscription_url":"https://api.github.com/repos/scorum/scorum/subscription","commits_url":"https://api.github.com/repos/scorum/scorum/commits{/sha}","git_commits_url":"https://api.github.com/repos/scorum/scorum/git/commits{/sha}","comments_url":"https://api.github.com/repos/scorum/scorum/comments{/number}","issue_comment_url":"https://api.github.com/repos/scorum/scorum/issues/comments{/number}","contents_url":"https://api.github.com/repos/scorum/scorum/contents/{+path}","compare_url":"https://api.github.com/repos/scorum/scorum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scorum/scorum/merges","archive_url":"https://api.github.com/repos/scorum/scorum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scorum/scorum/downloads","issues_url":"https://api.github.com/repos/scorum/scorum/issues{/number}","pulls_url":"https://api.github.com/repos/scorum/scorum/pulls{/number}","milestones_url":"https://api.github.com/repos/scorum/scorum/milestones{/number}","notifications_url":"https://api.github.com/repos/scorum/scorum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scorum/scorum/labels{/name}","releases_url":"https://api.github.com/repos/scorum/scorum/releases{/id}","deployments_url":"https://api.github.com/repos/scorum/scorum/deployments","created_at":"2017-10-13T15:01:17Z","updated_at":"2018-02-27T21:23:18Z","pushed_at":"2018-03-06T07:06:44Z","git_url":"git://github.com/scorum/scorum.git","ssh_url":"git@github.com:scorum/scorum.git","clone_url":"https://github.com/scorum/scorum.git","svn_url":"https://github.com/scorum/scorum","homepage":"https://scorumcoins.com/","size":10631,"stargazers_count":29,"watchers_count":29,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":11,"open_issues":3,"watchers":29,"default_branch":"develop"}},"base":{"label":"scorum:develop","ref":"develop","sha":"fa2fcc9f1a67cf1a77621896fb51d96ca73d39d8","user":{"login":"scorum","id":32771359,"avatar_url":"https://avatars0.githubusercontent.com/u/32771359?v=4","gravatar_id":"","url":"https://api.github.com/users/scorum","html_url":"https://github.com/scorum","followers_url":"https://api.github.com/users/scorum/followers","following_url":"https://api.github.com/users/scorum/following{/other_user}","gists_url":"https://api.github.com/users/scorum/gists{/gist_id}","starred_url":"https://api.github.com/users/scorum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scorum/subscriptions","organizations_url":"https://api.github.com/users/scorum/orgs","repos_url":"https://api.github.com/users/scorum/repos","events_url":"https://api.github.com/users/scorum/events{/privacy}","received_events_url":"https://api.github.com/users/scorum/received_events","type":"Organization","site_admin":false},"repo":{"id":106838543,"name":"scorum","full_name":"scorum/scorum","owner":{"login":"scorum","id":32771359,"avatar_url":"https://avatars0.githubusercontent.com/u/32771359?v=4","gravatar_id":"","url":"https://api.github.com/users/scorum","html_url":"https://github.com/scorum","followers_url":"https://api.github.com/users/scorum/followers","following_url":"https://api.github.com/users/scorum/following{/other_user}","gists_url":"https://api.github.com/users/scorum/gists{/gist_id}","starred_url":"https://api.github.com/users/scorum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scorum/subscriptions","organizations_url":"https://api.github.com/users/scorum/orgs","repos_url":"https://api.github.com/users/scorum/repos","events_url":"https://api.github.com/users/scorum/events{/privacy}","received_events_url":"https://api.github.com/users/scorum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scorum/scorum","description":"Scorum is a blockchain powered sports media platform built for sports fans worldwide and designed to reward content creators and creators in a fair and transparent economy.","fork":false,"url":"https://api.github.com/repos/scorum/scorum","forks_url":"https://api.github.com/repos/scorum/scorum/forks","keys_url":"https://api.github.com/repos/scorum/scorum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scorum/scorum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scorum/scorum/teams","hooks_url":"https://api.github.com/repos/scorum/scorum/hooks","issue_events_url":"https://api.github.com/repos/scorum/scorum/issues/events{/number}","events_url":"https://api.github.com/repos/scorum/scorum/events","assignees_url":"https://api.github.com/repos/scorum/scorum/assignees{/user}","branches_url":"https://api.github.com/repos/scorum/scorum/branches{/branch}","tags_url":"https://api.github.com/repos/scorum/scorum/tags","blobs_url":"https://api.github.com/repos/scorum/scorum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scorum/scorum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scorum/scorum/git/refs{/sha}","trees_url":"https://api.github.com/repos/scorum/scorum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scorum/scorum/statuses/{sha}","languages_url":"https://api.github.com/repos/scorum/scorum/languages","stargazers_url":"https://api.github.com/repos/scorum/scorum/stargazers","contributors_url":"https://api.github.com/repos/scorum/scorum/contributors","subscribers_url":"https://api.github.com/repos/scorum/scorum/subscribers","subscription_url":"https://api.github.com/repos/scorum/scorum/subscription","commits_url":"https://api.github.com/repos/scorum/scorum/commits{/sha}","git_commits_url":"https://api.github.com/repos/scorum/scorum/git/commits{/sha}","comments_url":"https://api.github.com/repos/scorum/scorum/comments{/number}","issue_comment_url":"https://api.github.com/repos/scorum/scorum/issues/comments{/number}","contents_url":"https://api.github.com/repos/scorum/scorum/contents/{+path}","compare_url":"https://api.github.com/repos/scorum/scorum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scorum/scorum/merges","archive_url":"https://api.github.com/repos/scorum/scorum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scorum/scorum/downloads","issues_url":"https://api.github.com/repos/scorum/scorum/issues{/number}","pulls_url":"https://api.github.com/repos/scorum/scorum/pulls{/number}","milestones_url":"https://api.github.com/repos/scorum/scorum/milestones{/number}","notifications_url":"https://api.github.com/repos/scorum/scorum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scorum/scorum/labels{/name}","releases_url":"https://api.github.com/repos/scorum/scorum/releases{/id}","deployments_url":"https://api.github.com/repos/scorum/scorum/deployments","created_at":"2017-10-13T15:01:17Z","updated_at":"2018-02-27T21:23:18Z","pushed_at":"2018-03-06T07:06:44Z","git_url":"git://github.com/scorum/scorum.git","ssh_url":"git@github.com:scorum/scorum.git","clone_url":"https://github.com/scorum/scorum.git","svn_url":"https://github.com/scorum/scorum","homepage":"https://scorumcoins.com/","size":10631,"stargazers_count":29,"watchers_count":29,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":11,"open_issues":3,"watchers":29,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/scorum/scorum/pulls/90"},"html":{"href":"https://github.com/scorum/scorum/pull/90"},"issue":{"href":"https://api.github.com/repos/scorum/scorum/issues/90"},"comments":{"href":"https://api.github.com/repos/scorum/scorum/issues/90/comments"},"review_comments":{"href":"https://api.github.com/repos/scorum/scorum/pulls/90/comments"},"review_comment":{"href":"https://api.github.com/repos/scorum/scorum/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scorum/scorum/pulls/90/commits"},"statuses":{"href":"https://api.github.com/repos/scorum/scorum/statuses/6b974c19284385e63121f6dc4a9659dc51191849"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Andrei-Masilevich"}}