{"action":"created","comment":{"url":"https://api.github.com/repos/sonm-io/core/pulls/comments/198109704","pull_request_review_id":131977885,"id":198109704,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5ODEwOTcwNA==","diff_hunk":"@@ -0,0 +1,51 @@\n+package main\n+\n+import (\n+\n+\"fmt\"\n+\n+log \"github.com/noxiouz/zapctx/ctxlog\"\n+\"github.com/sonm-io/core/cmd\"\n+\"github.com/sonm-io/core/insonmnia/logging\"\n+\"github.com/sonm-io/core/insonmnia/oracle\"\n+\"golang.org/x/net/context\"\n+\n+)\n+\n+var (\n+\tconfigFlag  string\n+\tversionFlag bool\n+\tappVersion  string\n+)\n+\n+func main() {\n+\tcmd.NewCmd(\"oracle\", appVersion, &configFlag, &versionFlag, run).Execute()\n+}\n+\n+func run() error {\n+\tcfg, err := oracle.NewConfig(configFlag)\n+\tif err != nil {\n+\t\treturn fmt.Errorf(\"failed to load config file: %s\", err)\n+\t}\n+\n+\tlogger := logging.BuildLogger(cfg.Log.LogLevel())\n+\tctx := log.WithLogger(context.Background(), logger)\n+\n+\tkey, err := cfg.Eth.LoadKey()\n+\tif err != nil {\n+\t\treturn fmt.Errorf(\"failed to load Ethereum keys: %s\", err)\n+\t}\n+\n+\to, err := oracle.NewOracle(ctx, key, cfg)\n+\tif err != nil {\n+\t\treturn fmt.Errorf(\"failed to build Oracle instance: %s\", err)\n+\t}\n+\n+\tif err := o.Serve(); err != nil {\n+\t\treturn fmt.Errorf(\"termination: %s\", err)\n+\t}\n+\n+\tdefer o.Close()\n+\n+\treturn nil","path":"cmd/oracle/main.go","position":50,"original_position":50,"commit_id":"a3aad480785d2f0f05eefdf4c8e29a231dc60df4","original_commit_id":"e5c39edf165d5670f6857cfc23657e44120b39f5","user":{"login":"antmat","id":691770,"node_id":"MDQ6VXNlcjY5MTc3MA==","avatar_url":"https://avatars3.githubusercontent.com/u/691770?v=4","gravatar_id":"","url":"https://api.github.com/users/antmat","html_url":"https://github.com/antmat","followers_url":"https://api.github.com/users/antmat/followers","following_url":"https://api.github.com/users/antmat/following{/other_user}","gists_url":"https://api.github.com/users/antmat/gists{/gist_id}","starred_url":"https://api.github.com/users/antmat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antmat/subscriptions","organizations_url":"https://api.github.com/users/antmat/orgs","repos_url":"https://api.github.com/users/antmat/repos","events_url":"https://api.github.com/users/antmat/events{/privacy}","received_events_url":"https://api.github.com/users/antmat/received_events","type":"User","site_admin":false},"body":"signal processing?","created_at":"2018-06-26T11:35:45Z","updated_at":"2018-06-26T11:51:25Z","html_url":"https://github.com/sonm-io/core/pull/1082#discussion_r198109704","pull_request_url":"https://api.github.com/repos/sonm-io/core/pulls/1082","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/sonm-io/core/pulls/comments/198109704"},"html":{"href":"https://github.com/sonm-io/core/pull/1082#discussion_r198109704"},"pull_request":{"href":"https://api.github.com/repos/sonm-io/core/pulls/1082"}}},"pull_request":{"url":"https://api.github.com/repos/sonm-io/core/pulls/1082","id":197390564,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3MzkwNTY0","html_url":"https://github.com/sonm-io/core/pull/1082","diff_url":"https://github.com/sonm-io/core/pull/1082.diff","patch_url":"https://github.com/sonm-io/core/pull/1082.patch","issue_url":"https://api.github.com/repos/sonm-io/core/issues/1082","number":1082,"state":"open","locked":false,"title":"feat: oracle","user":{"login":"sokel","id":3659920,"node_id":"MDQ6VXNlcjM2NTk5MjA=","avatar_url":"https://avatars1.githubusercontent.com/u/3659920?v=4","gravatar_id":"","url":"https://api.github.com/users/sokel","html_url":"https://github.com/sokel","followers_url":"https://api.github.com/users/sokel/followers","following_url":"https://api.github.com/users/sokel/following{/other_user}","gists_url":"https://api.github.com/users/sokel/gists{/gist_id}","starred_url":"https://api.github.com/users/sokel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sokel/subscriptions","organizations_url":"https://api.github.com/users/sokel/orgs","repos_url":"https://api.github.com/users/sokel/repos","events_url":"https://api.github.com/users/sokel/events{/privacy}","received_events_url":"https://api.github.com/users/sokel/received_events","type":"User","site_admin":false},"body":"chained with #1069 ","created_at":"2018-06-26T11:31:38Z","updated_at":"2018-06-26T11:51:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"063fed7f0bf6f96b330bf2df32365abec1b3e3a1","assignee":null,"assignees":[],"requested_reviewers":[{"login":"3Hren","id":969900,"node_id":"MDQ6VXNlcjk2OTkwMA==","avatar_url":"https://avatars3.githubusercontent.com/u/969900?v=4","gravatar_id":"","url":"https://api.github.com/users/3Hren","html_url":"https://github.com/3Hren","followers_url":"https://api.github.com/users/3Hren/followers","following_url":"https://api.github.com/users/3Hren/following{/other_user}","gists_url":"https://api.github.com/users/3Hren/gists{/gist_id}","starred_url":"https://api.github.com/users/3Hren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3Hren/subscriptions","organizations_url":"https://api.github.com/users/3Hren/orgs","repos_url":"https://api.github.com/users/3Hren/repos","events_url":"https://api.github.com/users/3Hren/events{/privacy}","received_events_url":"https://api.github.com/users/3Hren/received_events","type":"User","site_admin":false},{"login":"sshaman1101","id":5667740,"node_id":"MDQ6VXNlcjU2Njc3NDA=","avatar_url":"https://avatars1.githubusercontent.com/u/5667740?v=4","gravatar_id":"","url":"https://api.github.com/users/sshaman1101","html_url":"https://github.com/sshaman1101","followers_url":"https://api.github.com/users/sshaman1101/followers","following_url":"https://api.github.com/users/sshaman1101/following{/other_user}","gists_url":"https://api.github.com/users/sshaman1101/gists{/gist_id}","starred_url":"https://api.github.com/users/sshaman1101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sshaman1101/subscriptions","organizations_url":"https://api.github.com/users/sshaman1101/orgs","repos_url":"https://api.github.com/users/sshaman1101/repos","events_url":"https://api.github.com/users/sshaman1101/events{/privacy}","received_events_url":"https://api.github.com/users/sshaman1101/received_events","type":"User","site_admin":false},{"login":"oopcode","id":6124982,"node_id":"MDQ6VXNlcjYxMjQ5ODI=","avatar_url":"https://avatars0.githubusercontent.com/u/6124982?v=4","gravatar_id":"","url":"https://api.github.com/users/oopcode","html_url":"https://github.com/oopcode","followers_url":"https://api.github.com/users/oopcode/followers","following_url":"https://api.github.com/users/oopcode/following{/other_user}","gists_url":"https://api.github.com/users/oopcode/gists{/gist_id}","starred_url":"https://api.github.com/users/oopcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oopcode/subscriptions","organizations_url":"https://api.github.com/users/oopcode/orgs","repos_url":"https://api.github.com/users/oopcode/repos","events_url":"https://api.github.com/users/oopcode/events{/privacy}","received_events_url":"https://api.github.com/users/oopcode/received_events","type":"User","site_admin":false}],"requested_teams":[{"name":"Solidity","id":2621677,"node_id":"MDQ6VGVhbTI2MjE2Nzc=","slug":"solidity","description":"Smart contracts developers","privacy":"closed","url":"https://api.github.com/teams/2621677","members_url":"https://api.github.com/teams/2621677/members{/member}","repositories_url":"https://api.github.com/teams/2621677/repos","permission":"pull"}],"labels":[{"id":953294465,"node_id":"MDU6TGFiZWw5NTMyOTQ0NjU=","url":"https://api.github.com/repos/sonm-io/core/labels/P:%20high","name":"P: high","color":"d93f0b","default":false},{"id":947255626,"node_id":"MDU6TGFiZWw5NDcyNTU2MjY=","url":"https://api.github.com/repos/sonm-io/core/labels/T:%20WIP","name":"T: WIP","color":"e88b86","default":false},{"id":953292501,"node_id":"MDU6TGFiZWw5NTMyOTI1MDE=","url":"https://api.github.com/repos/sonm-io/core/labels/T:%20feature","name":"T: feature","color":"1d76db","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/sonm-io/core/pulls/1082/commits","review_comments_url":"https://api.github.com/repos/sonm-io/core/pulls/1082/comments","review_comment_url":"https://api.github.com/repos/sonm-io/core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sonm-io/core/issues/1082/comments","statuses_url":"https://api.github.com/repos/sonm-io/core/statuses/a3aad480785d2f0f05eefdf4c8e29a231dc60df4","head":{"label":"sonm-io:feat/oracle","ref":"feat/oracle","sha":"a3aad480785d2f0f05eefdf4c8e29a231dc60df4","user":{"login":"sonm-io","id":25040195,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDQwMTk1","avatar_url":"https://avatars1.githubusercontent.com/u/25040195?v=4","gravatar_id":"","url":"https://api.github.com/users/sonm-io","html_url":"https://github.com/sonm-io","followers_url":"https://api.github.com/users/sonm-io/followers","following_url":"https://api.github.com/users/sonm-io/following{/other_user}","gists_url":"https://api.github.com/users/sonm-io/gists{/gist_id}","starred_url":"https://api.github.com/users/sonm-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonm-io/subscriptions","organizations_url":"https://api.github.com/users/sonm-io/orgs","repos_url":"https://api.github.com/users/sonm-io/repos","events_url":"https://api.github.com/users/sonm-io/events{/privacy}","received_events_url":"https://api.github.com/users/sonm-io/received_events","type":"Organization","site_admin":false},"repo":{"id":98422971,"node_id":"MDEwOlJlcG9zaXRvcnk5ODQyMjk3MQ==","name":"core","full_name":"sonm-io/core","owner":{"login":"sonm-io","id":25040195,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDQwMTk1","avatar_url":"https://avatars1.githubusercontent.com/u/25040195?v=4","gravatar_id":"","url":"https://api.github.com/users/sonm-io","html_url":"https://github.com/sonm-io","followers_url":"https://api.github.com/users/sonm-io/followers","following_url":"https://api.github.com/users/sonm-io/following{/other_user}","gists_url":"https://api.github.com/users/sonm-io/gists{/gist_id}","starred_url":"https://api.github.com/users/sonm-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonm-io/subscriptions","organizations_url":"https://api.github.com/users/sonm-io/orgs","repos_url":"https://api.github.com/users/sonm-io/repos","events_url":"https://api.github.com/users/sonm-io/events{/privacy}","received_events_url":"https://api.github.com/users/sonm-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sonm-io/core","description":"Decentralized Fog Computing Platform","fork":false,"url":"https://api.github.com/repos/sonm-io/core","forks_url":"https://api.github.com/repos/sonm-io/core/forks","keys_url":"https://api.github.com/repos/sonm-io/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sonm-io/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sonm-io/core/teams","hooks_url":"https://api.github.com/repos/sonm-io/core/hooks","issue_events_url":"https://api.github.com/repos/sonm-io/core/issues/events{/number}","events_url":"https://api.github.com/repos/sonm-io/core/events","assignees_url":"https://api.github.com/repos/sonm-io/core/assignees{/user}","branches_url":"https://api.github.com/repos/sonm-io/core/branches{/branch}","tags_url":"https://api.github.com/repos/sonm-io/core/tags","blobs_url":"https://api.github.com/repos/sonm-io/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sonm-io/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sonm-io/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/sonm-io/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sonm-io/core/statuses/{sha}","languages_url":"https://api.github.com/repos/sonm-io/core/languages","stargazers_url":"https://api.github.com/repos/sonm-io/core/stargazers","contributors_url":"https://api.github.com/repos/sonm-io/core/contributors","subscribers_url":"https://api.github.com/repos/sonm-io/core/subscribers","subscription_url":"https://api.github.com/repos/sonm-io/core/subscription","commits_url":"https://api.github.com/repos/sonm-io/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/sonm-io/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/sonm-io/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/sonm-io/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/sonm-io/core/contents/{+path}","compare_url":"https://api.github.com/repos/sonm-io/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sonm-io/core/merges","archive_url":"https://api.github.com/repos/sonm-io/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sonm-io/core/downloads","issues_url":"https://api.github.com/repos/sonm-io/core/issues{/number}","pulls_url":"https://api.github.com/repos/sonm-io/core/pulls{/number}","milestones_url":"https://api.github.com/repos/sonm-io/core/milestones{/number}","notifications_url":"https://api.github.com/repos/sonm-io/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sonm-io/core/labels{/name}","releases_url":"https://api.github.com/repos/sonm-io/core/releases{/id}","deployments_url":"https://api.github.com/repos/sonm-io/core/deployments","created_at":"2017-07-26T12:57:50Z","updated_at":"2018-06-26T10:49:37Z","pushed_at":"2018-06-26T11:47:21Z","git_url":"git://github.com/sonm-io/core.git","ssh_url":"git@github.com:sonm-io/core.git","clone_url":"https://github.com/sonm-io/core.git","svn_url":"https://github.com/sonm-io/core","homepage":"https://sonm.com","size":34732,"stargazers_count":283,"watchers_count":283,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":47,"mirror_url":null,"archived":false,"open_issues_count":14,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":47,"open_issues":14,"watchers":283,"default_branch":"master"}},"base":{"label":"sonm-io:master","ref":"master","sha":"ae28688d5a8f5f510e4fa298c5e15cd64e851f8f","user":{"login":"sonm-io","id":25040195,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDQwMTk1","avatar_url":"https://avatars1.githubusercontent.com/u/25040195?v=4","gravatar_id":"","url":"https://api.github.com/users/sonm-io","html_url":"https://github.com/sonm-io","followers_url":"https://api.github.com/users/sonm-io/followers","following_url":"https://api.github.com/users/sonm-io/following{/other_user}","gists_url":"https://api.github.com/users/sonm-io/gists{/gist_id}","starred_url":"https://api.github.com/users/sonm-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonm-io/subscriptions","organizations_url":"https://api.github.com/users/sonm-io/orgs","repos_url":"https://api.github.com/users/sonm-io/repos","events_url":"https://api.github.com/users/sonm-io/events{/privacy}","received_events_url":"https://api.github.com/users/sonm-io/received_events","type":"Organization","site_admin":false},"repo":{"id":98422971,"node_id":"MDEwOlJlcG9zaXRvcnk5ODQyMjk3MQ==","name":"core","full_name":"sonm-io/core","owner":{"login":"sonm-io","id":25040195,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDQwMTk1","avatar_url":"https://avatars1.githubusercontent.com/u/25040195?v=4","gravatar_id":"","url":"https://api.github.com/users/sonm-io","html_url":"https://github.com/sonm-io","followers_url":"https://api.github.com/users/sonm-io/followers","following_url":"https://api.github.com/users/sonm-io/following{/other_user}","gists_url":"https://api.github.com/users/sonm-io/gists{/gist_id}","starred_url":"https://api.github.com/users/sonm-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonm-io/subscriptions","organizations_url":"https://api.github.com/users/sonm-io/orgs","repos_url":"https://api.github.com/users/sonm-io/repos","events_url":"https://api.github.com/users/sonm-io/events{/privacy}","received_events_url":"https://api.github.com/users/sonm-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sonm-io/core","description":"Decentralized Fog Computing Platform","fork":false,"url":"https://api.github.com/repos/sonm-io/core","forks_url":"https://api.github.com/repos/sonm-io/core/forks","keys_url":"https://api.github.com/repos/sonm-io/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sonm-io/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sonm-io/core/teams","hooks_url":"https://api.github.com/repos/sonm-io/core/hooks","issue_events_url":"https://api.github.com/repos/sonm-io/core/issues/events{/number}","events_url":"https://api.github.com/repos/sonm-io/core/events","assignees_url":"https://api.github.com/repos/sonm-io/core/assignees{/user}","branches_url":"https://api.github.com/repos/sonm-io/core/branches{/branch}","tags_url":"https://api.github.com/repos/sonm-io/core/tags","blobs_url":"https://api.github.com/repos/sonm-io/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sonm-io/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sonm-io/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/sonm-io/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sonm-io/core/statuses/{sha}","languages_url":"https://api.github.com/repos/sonm-io/core/languages","stargazers_url":"https://api.github.com/repos/sonm-io/core/stargazers","contributors_url":"https://api.github.com/repos/sonm-io/core/contributors","subscribers_url":"https://api.github.com/repos/sonm-io/core/subscribers","subscription_url":"https://api.github.com/repos/sonm-io/core/subscription","commits_url":"https://api.github.com/repos/sonm-io/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/sonm-io/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/sonm-io/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/sonm-io/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/sonm-io/core/contents/{+path}","compare_url":"https://api.github.com/repos/sonm-io/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sonm-io/core/merges","archive_url":"https://api.github.com/repos/sonm-io/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sonm-io/core/downloads","issues_url":"https://api.github.com/repos/sonm-io/core/issues{/number}","pulls_url":"https://api.github.com/repos/sonm-io/core/pulls{/number}","milestones_url":"https://api.github.com/repos/sonm-io/core/milestones{/number}","notifications_url":"https://api.github.com/repos/sonm-io/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sonm-io/core/labels{/name}","releases_url":"https://api.github.com/repos/sonm-io/core/releases{/id}","deployments_url":"https://api.github.com/repos/sonm-io/core/deployments","created_at":"2017-07-26T12:57:50Z","updated_at":"2018-06-26T10:49:37Z","pushed_at":"2018-06-26T11:47:21Z","git_url":"git://github.com/sonm-io/core.git","ssh_url":"git@github.com:sonm-io/core.git","clone_url":"https://github.com/sonm-io/core.git","svn_url":"https://github.com/sonm-io/core","homepage":"https://sonm.com","size":34732,"stargazers_count":283,"watchers_count":283,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":47,"mirror_url":null,"archived":false,"open_issues_count":14,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":47,"open_issues":14,"watchers":283,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sonm-io/core/pulls/1082"},"html":{"href":"https://github.com/sonm-io/core/pull/1082"},"issue":{"href":"https://api.github.com/repos/sonm-io/core/issues/1082"},"comments":{"href":"https://api.github.com/repos/sonm-io/core/issues/1082/comments"},"review_comments":{"href":"https://api.github.com/repos/sonm-io/core/pulls/1082/comments"},"review_comment":{"href":"https://api.github.com/repos/sonm-io/core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sonm-io/core/pulls/1082/commits"},"statuses":{"href":"https://api.github.com/repos/sonm-io/core/statuses/a3aad480785d2f0f05eefdf4c8e29a231dc60df4"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"antmat"}}