{"action":"created","comment":{"url":"https://api.github.com/repos/scorum/scorum/pulls/comments/151984939","pull_request_review_id":77776241,"id":151984939,"diff_hunk":"@@ -0,0 +1,524 @@\n+#include <scorum/chain/dbs_account.hpp>\n+#include <scorum/chain/database.hpp>\n+\n+#include <scorum/chain/account_object.hpp>\n+\n+namespace scorum {\n+namespace chain {\n+\n+dbs_account::dbs_account(database& db)\n+    : _BaseClass(db)\n+{\n+}\n+\n+const account_object& dbs_account::get_account(const account_name_type& name) const\n+{\n+    try\n+    {\n+        return db_impl().get<account_object, by_name>(name);\n+    }\n+    FC_CAPTURE_AND_RETHROW((name))\n+}\n+\n+const account_authority_object& dbs_account::get_account_authority(const account_name_type& name) const\n+{\n+    try\n+    {\n+        return db_impl().get<account_authority_object, by_account>(name);\n+    }\n+    FC_CAPTURE_AND_RETHROW((name))\n+}\n+\n+void dbs_account::check_account_existence(const account_name_type& name,\n+                                          const optional<const char*>& context_type_name) const\n+{\n+    auto acc = db_impl().find<account_object, by_name>(name);\n+    if (context_type_name.valid())\n+    {\n+        FC_ASSERT(acc != nullptr, \"\\\"${b}\\\" \\\"${b}\\\" must exist.\", (\"a\", *context_type_name)(\"b\", name));","path":"libraries/chain/dbs_account.cpp","position":38,"original_position":38,"commit_id":"aeaff702feb952ebaa6f22600ee4d06939409fae","original_commit_id":"aeaff702feb952ebaa6f22600ee4d06939409fae","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":"Change to $1 and $2, fix bug","created_at":"2017-11-20T13:06:22Z","updated_at":"2017-11-20T13:06:22Z","html_url":"https://github.com/scorum/scorum/pull/11#discussion_r151984939","pull_request_url":"https://api.github.com/repos/scorum/scorum/pulls/11","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/scorum/scorum/pulls/comments/151984939"},"html":{"href":"https://github.com/scorum/scorum/pull/11#discussion_r151984939"},"pull_request":{"href":"https://api.github.com/repos/scorum/scorum/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/scorum/scorum/pulls/11","id":153323363,"html_url":"https://github.com/scorum/scorum/pull/11","diff_url":"https://github.com/scorum/scorum/pull/11.diff","patch_url":"https://github.com/scorum/scorum/pull/11.patch","issue_url":"https://api.github.com/repos/scorum/scorum/issues/11","number":11,"state":"open","locked":false,"title":"Add dbs_account service","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":"","created_at":"2017-11-17T15:24:09Z","updated_at":"2017-11-20T13:06:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"76c690d8e6c16a6e6834f74dd4565b5088c1b707","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}],"milestone":null,"commits_url":"https://api.github.com/repos/scorum/scorum/pulls/11/commits","review_comments_url":"https://api.github.com/repos/scorum/scorum/pulls/11/comments","review_comment_url":"https://api.github.com/repos/scorum/scorum/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scorum/scorum/issues/11/comments","statuses_url":"https://api.github.com/repos/scorum/scorum/statuses/aeaff702feb952ebaa6f22600ee4d06939409fae","head":{"label":"scorum:BLOCK-69","ref":"BLOCK-69","sha":"aeaff702feb952ebaa6f22600ee4d06939409fae","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":null,"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":"2017-11-02T09:41:05Z","pushed_at":"2017-11-20T08:20:11Z","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":8520,"stargazers_count":2,"watchers_count":2,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"scorum:develop","ref":"develop","sha":"efa37ae6785eeb92fcc744d0425438a172dd3075","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":null,"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":"2017-11-02T09:41:05Z","pushed_at":"2017-11-20T08:20:11Z","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":8520,"stargazers_count":2,"watchers_count":2,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scorum/scorum/pulls/11"},"html":{"href":"https://github.com/scorum/scorum/pull/11"},"issue":{"href":"https://api.github.com/repos/scorum/scorum/issues/11"},"comments":{"href":"https://api.github.com/repos/scorum/scorum/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/scorum/scorum/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/scorum/scorum/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scorum/scorum/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/scorum/scorum/statuses/aeaff702feb952ebaa6f22600ee4d06939409fae"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"abolinbsu"}}