{"action":"opened","number":121,"pull_request":{"url":"https://api.github.com/repos/windingtree/wt-js-libs/pulls/121","id":177416087,"html_url":"https://github.com/windingtree/wt-js-libs/pull/121","diff_url":"https://github.com/windingtree/wt-js-libs/pull/121.diff","patch_url":"https://github.com/windingtree/wt-js-libs/pull/121.patch","issue_url":"https://api.github.com/repos/windingtree/wt-js-libs/issues/121","number":121,"state":"open","locked":false,"title":"[WIP] web3 backed future api","user":{"login":"JirkaChadima","id":375483,"avatar_url":"https://avatars3.githubusercontent.com/u/375483?v=4","gravatar_id":"","url":"https://api.github.com/users/JirkaChadima","html_url":"https://github.com/JirkaChadima","followers_url":"https://api.github.com/users/JirkaChadima/followers","following_url":"https://api.github.com/users/JirkaChadima/following{/other_user}","gists_url":"https://api.github.com/users/JirkaChadima/gists{/gist_id}","starred_url":"https://api.github.com/users/JirkaChadima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JirkaChadima/subscriptions","organizations_url":"https://api.github.com/users/JirkaChadima/orgs","repos_url":"https://api.github.com/users/JirkaChadima/repos","events_url":"https://api.github.com/users/JirkaChadima/events{/privacy}","received_events_url":"https://api.github.com/users/JirkaChadima/received_events","type":"User","site_admin":false},"body":"Part of #120. I know it's big, but I think it's not possible to split it anymore.\r\n\r\nBasically, this is an implementation of the public interface introduced in #119 backed by a local web3 network. There are lots of `TODO` comments, I'm very well aware of many shortcomings of this version.\r\n\r\nThe juicy stuff is happening in `src/network/connectors/web3/data-providers`. `wt-index.js` provides the actual implementation of public interface, and the `hotel.js` is trying to be both data storage and an encapsulation for data manipulation on the actual network. It's not ideal and I'm tackling that coupling next.\r\n\r\nFrom now on, the PRs should be much smaller increments. It's however still possible, that some public facing interface will change. I'm going to be experimenting with some meta `getters` and `setters` (see [this](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty) or [this](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy)) a lot. One of my main goals is to implement a kind of smart lazy loading to achieve a reasonable performance.","created_at":"2018-03-26T11:25:52Z","updated_at":"2018-03-26T11:25:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/windingtree/wt-js-libs/pulls/121/commits","review_comments_url":"https://api.github.com/repos/windingtree/wt-js-libs/pulls/121/comments","review_comment_url":"https://api.github.com/repos/windingtree/wt-js-libs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/windingtree/wt-js-libs/issues/121/comments","statuses_url":"https://api.github.com/repos/windingtree/wt-js-libs/statuses/cac516dadd0837bd2b86ba9a9dd9644262d901dd","head":{"label":"windingtree:features/web3-backed-future-api","ref":"features/web3-backed-future-api","sha":"cac516dadd0837bd2b86ba9a9dd9644262d901dd","user":{"login":"windingtree","id":22484548,"avatar_url":"https://avatars2.githubusercontent.com/u/22484548?v=4","gravatar_id":"","url":"https://api.github.com/users/windingtree","html_url":"https://github.com/windingtree","followers_url":"https://api.github.com/users/windingtree/followers","following_url":"https://api.github.com/users/windingtree/following{/other_user}","gists_url":"https://api.github.com/users/windingtree/gists{/gist_id}","starred_url":"https://api.github.com/users/windingtree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windingtree/subscriptions","organizations_url":"https://api.github.com/users/windingtree/orgs","repos_url":"https://api.github.com/users/windingtree/repos","events_url":"https://api.github.com/users/windingtree/events{/privacy}","received_events_url":"https://api.github.com/users/windingtree/received_events","type":"Organization","site_admin":false},"repo":{"id":94901158,"name":"wt-js-libs","full_name":"windingtree/wt-js-libs","owner":{"login":"windingtree","id":22484548,"avatar_url":"https://avatars2.githubusercontent.com/u/22484548?v=4","gravatar_id":"","url":"https://api.github.com/users/windingtree","html_url":"https://github.com/windingtree","followers_url":"https://api.github.com/users/windingtree/followers","following_url":"https://api.github.com/users/windingtree/following{/other_user}","gists_url":"https://api.github.com/users/windingtree/gists{/gist_id}","starred_url":"https://api.github.com/users/windingtree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windingtree/subscriptions","organizations_url":"https://api.github.com/users/windingtree/orgs","repos_url":"https://api.github.com/users/windingtree/repos","events_url":"https://api.github.com/users/windingtree/events{/privacy}","received_events_url":"https://api.github.com/users/windingtree/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/windingtree/wt-js-libs","description":"Javascript libraries to interact with the Winding tree smart contracts.","fork":false,"url":"https://api.github.com/repos/windingtree/wt-js-libs","forks_url":"https://api.github.com/repos/windingtree/wt-js-libs/forks","keys_url":"https://api.github.com/repos/windingtree/wt-js-libs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/windingtree/wt-js-libs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/windingtree/wt-js-libs/teams","hooks_url":"https://api.github.com/repos/windingtree/wt-js-libs/hooks","issue_events_url":"https://api.github.com/repos/windingtree/wt-js-libs/issues/events{/number}","events_url":"https://api.github.com/repos/windingtree/wt-js-libs/events","assignees_url":"https://api.github.com/repos/windingtree/wt-js-libs/assignees{/user}","branches_url":"https://api.github.com/repos/windingtree/wt-js-libs/branches{/branch}","tags_url":"https://api.github.com/repos/windingtree/wt-js-libs/tags","blobs_url":"https://api.github.com/repos/windingtree/wt-js-libs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/windingtree/wt-js-libs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/windingtree/wt-js-libs/git/refs{/sha}","trees_url":"https://api.github.com/repos/windingtree/wt-js-libs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/windingtree/wt-js-libs/statuses/{sha}","languages_url":"https://api.github.com/repos/windingtree/wt-js-libs/languages","stargazers_url":"https://api.github.com/repos/windingtree/wt-js-libs/stargazers","contributors_url":"https://api.github.com/repos/windingtree/wt-js-libs/contributors","subscribers_url":"https://api.github.com/repos/windingtree/wt-js-libs/subscribers","subscription_url":"https://api.github.com/repos/windingtree/wt-js-libs/subscription","commits_url":"https://api.github.com/repos/windingtree/wt-js-libs/commits{/sha}","git_commits_url":"https://api.github.com/repos/windingtree/wt-js-libs/git/commits{/sha}","comments_url":"https://api.github.com/repos/windingtree/wt-js-libs/comments{/number}","issue_comment_url":"https://api.github.com/repos/windingtree/wt-js-libs/issues/comments{/number}","contents_url":"https://api.github.com/repos/windingtree/wt-js-libs/contents/{+path}","compare_url":"https://api.github.com/repos/windingtree/wt-js-libs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/windingtree/wt-js-libs/merges","archive_url":"https://api.github.com/repos/windingtree/wt-js-libs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/windingtree/wt-js-libs/downloads","issues_url":"https://api.github.com/repos/windingtree/wt-js-libs/issues{/number}","pulls_url":"https://api.github.com/repos/windingtree/wt-js-libs/pulls{/number}","milestones_url":"https://api.github.com/repos/windingtree/wt-js-libs/milestones{/number}","notifications_url":"https://api.github.com/repos/windingtree/wt-js-libs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/windingtree/wt-js-libs/labels{/name}","releases_url":"https://api.github.com/repos/windingtree/wt-js-libs/releases{/id}","deployments_url":"https://api.github.com/repos/windingtree/wt-js-libs/deployments","created_at":"2017-06-20T14:36:04Z","updated_at":"2018-03-21T03:27:25Z","pushed_at":"2018-03-26T11:10:14Z","git_url":"git://github.com/windingtree/wt-js-libs.git","ssh_url":"git@github.com:windingtree/wt-js-libs.git","clone_url":"https://github.com/windingtree/wt-js-libs.git","svn_url":"https://github.com/windingtree/wt-js-libs","homepage":null,"size":13832,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":5,"open_issues":11,"watchers":13,"default_branch":"master"}},"base":{"label":"windingtree:proposal/future-public-interface","ref":"proposal/future-public-interface","sha":"4c3aecc71b06df92e3d0f9f2f91ee99bd9dc46d4","user":{"login":"windingtree","id":22484548,"avatar_url":"https://avatars2.githubusercontent.com/u/22484548?v=4","gravatar_id":"","url":"https://api.github.com/users/windingtree","html_url":"https://github.com/windingtree","followers_url":"https://api.github.com/users/windingtree/followers","following_url":"https://api.github.com/users/windingtree/following{/other_user}","gists_url":"https://api.github.com/users/windingtree/gists{/gist_id}","starred_url":"https://api.github.com/users/windingtree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windingtree/subscriptions","organizations_url":"https://api.github.com/users/windingtree/orgs","repos_url":"https://api.github.com/users/windingtree/repos","events_url":"https://api.github.com/users/windingtree/events{/privacy}","received_events_url":"https://api.github.com/users/windingtree/received_events","type":"Organization","site_admin":false},"repo":{"id":94901158,"name":"wt-js-libs","full_name":"windingtree/wt-js-libs","owner":{"login":"windingtree","id":22484548,"avatar_url":"https://avatars2.githubusercontent.com/u/22484548?v=4","gravatar_id":"","url":"https://api.github.com/users/windingtree","html_url":"https://github.com/windingtree","followers_url":"https://api.github.com/users/windingtree/followers","following_url":"https://api.github.com/users/windingtree/following{/other_user}","gists_url":"https://api.github.com/users/windingtree/gists{/gist_id}","starred_url":"https://api.github.com/users/windingtree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windingtree/subscriptions","organizations_url":"https://api.github.com/users/windingtree/orgs","repos_url":"https://api.github.com/users/windingtree/repos","events_url":"https://api.github.com/users/windingtree/events{/privacy}","received_events_url":"https://api.github.com/users/windingtree/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/windingtree/wt-js-libs","description":"Javascript libraries to interact with the Winding tree smart contracts.","fork":false,"url":"https://api.github.com/repos/windingtree/wt-js-libs","forks_url":"https://api.github.com/repos/windingtree/wt-js-libs/forks","keys_url":"https://api.github.com/repos/windingtree/wt-js-libs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/windingtree/wt-js-libs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/windingtree/wt-js-libs/teams","hooks_url":"https://api.github.com/repos/windingtree/wt-js-libs/hooks","issue_events_url":"https://api.github.com/repos/windingtree/wt-js-libs/issues/events{/number}","events_url":"https://api.github.com/repos/windingtree/wt-js-libs/events","assignees_url":"https://api.github.com/repos/windingtree/wt-js-libs/assignees{/user}","branches_url":"https://api.github.com/repos/windingtree/wt-js-libs/branches{/branch}","tags_url":"https://api.github.com/repos/windingtree/wt-js-libs/tags","blobs_url":"https://api.github.com/repos/windingtree/wt-js-libs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/windingtree/wt-js-libs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/windingtree/wt-js-libs/git/refs{/sha}","trees_url":"https://api.github.com/repos/windingtree/wt-js-libs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/windingtree/wt-js-libs/statuses/{sha}","languages_url":"https://api.github.com/repos/windingtree/wt-js-libs/languages","stargazers_url":"https://api.github.com/repos/windingtree/wt-js-libs/stargazers","contributors_url":"https://api.github.com/repos/windingtree/wt-js-libs/contributors","subscribers_url":"https://api.github.com/repos/windingtree/wt-js-libs/subscribers","subscription_url":"https://api.github.com/repos/windingtree/wt-js-libs/subscription","commits_url":"https://api.github.com/repos/windingtree/wt-js-libs/commits{/sha}","git_commits_url":"https://api.github.com/repos/windingtree/wt-js-libs/git/commits{/sha}","comments_url":"https://api.github.com/repos/windingtree/wt-js-libs/comments{/number}","issue_comment_url":"https://api.github.com/repos/windingtree/wt-js-libs/issues/comments{/number}","contents_url":"https://api.github.com/repos/windingtree/wt-js-libs/contents/{+path}","compare_url":"https://api.github.com/repos/windingtree/wt-js-libs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/windingtree/wt-js-libs/merges","archive_url":"https://api.github.com/repos/windingtree/wt-js-libs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/windingtree/wt-js-libs/downloads","issues_url":"https://api.github.com/repos/windingtree/wt-js-libs/issues{/number}","pulls_url":"https://api.github.com/repos/windingtree/wt-js-libs/pulls{/number}","milestones_url":"https://api.github.com/repos/windingtree/wt-js-libs/milestones{/number}","notifications_url":"https://api.github.com/repos/windingtree/wt-js-libs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/windingtree/wt-js-libs/labels{/name}","releases_url":"https://api.github.com/repos/windingtree/wt-js-libs/releases{/id}","deployments_url":"https://api.github.com/repos/windingtree/wt-js-libs/deployments","created_at":"2017-06-20T14:36:04Z","updated_at":"2018-03-21T03:27:25Z","pushed_at":"2018-03-26T11:10:14Z","git_url":"git://github.com/windingtree/wt-js-libs.git","ssh_url":"git@github.com:windingtree/wt-js-libs.git","clone_url":"https://github.com/windingtree/wt-js-libs.git","svn_url":"https://github.com/windingtree/wt-js-libs","homepage":null,"size":13832,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":5,"open_issues":11,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/windingtree/wt-js-libs/pulls/121"},"html":{"href":"https://github.com/windingtree/wt-js-libs/pull/121"},"issue":{"href":"https://api.github.com/repos/windingtree/wt-js-libs/issues/121"},"comments":{"href":"https://api.github.com/repos/windingtree/wt-js-libs/issues/121/comments"},"review_comments":{"href":"https://api.github.com/repos/windingtree/wt-js-libs/pulls/121/comments"},"review_comment":{"href":"https://api.github.com/repos/windingtree/wt-js-libs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/windingtree/wt-js-libs/pulls/121/commits"},"statuses":{"href":"https://api.github.com/repos/windingtree/wt-js-libs/statuses/cac516dadd0837bd2b86ba9a9dd9644262d901dd"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":3,"additions":861,"deletions":10,"changed_files":19}}
{"actor":{"display_login":"JirkaChadima"}}